cd /news/machine-learning/trace-transformer-residual-activatio… · home › topics › machine-learning › article
[ARTICLE · art-152653] src=arxiv.org ↗ pub= topic=machine-learning verified=true sentiment=↑ positive

TRACE: Transformer Residual Activation Codebook Encoding for Communication-efficient Distributed Edge Inference

A paper on arXiv (2610.22435v1) introduces Transformer Residual Activation Codebook Encoding (Trace), a framework that places a Vector Quantizer at the post-attention residual of every Transformer layer and precomputes codebook-indexed key/value representations so receivers recover keys and values by table lookup instead of running downstream projection. On ViT-Base (ImageNet-1K and CIFAR-100) and ViViT-B (UCF-101), Trace achieves up to 1.89% higher accuracy and up to 1.27x end-to-end inference speedup versus the state-of-the-art VQ-based distributed inference framework, and cuts communication overhead by up to 22,624x compared with uncompressed sequence-parallel inference. A hierarchical clustering structures the learned codebook into a multi-resolution hierarchy, letting runtime bitrate adapt without retraining.

by read1 min views1 publishedOct 19, 2026

arXiv:2610.22435v1 Announce Type: new Abstract: Distributed Transformer inference across co-located edge devices is fundamentally communication-bound, as exchanging activations between sequence-parallel partitions dominates inference latency under commodity edge bandwidths. Existing compression schemes reduce this cost but retain a structural bottleneck: the received data must still undergo key/value projection before attention can proceed, serializing computation behind communication. This paper presents Transformer Residual Activation Codebook Encoding (Trace), a framework that addresses these limitations. Trace places a Vector Quantizer (VQ) at the post-attention residual of every Transformer layer and precomputes codebook-indexed key/value representations. During inference, exchanged activations are encoded into compact codebook indices, allowing receivers to directly recover keys and values through table lookup instead of executing the downstream computations required to derive them. By eliminating the received data downstream computation, Trace enables communication--computation overlap and reduces a key latency bottleneck in distributed Transformer inference. A hierarchical clustering further structures the learned codebook into a multi-resolution hierarchy, enabling runtime adaptation of the communication bitrate without retraining. The framework supports two operating variants: one prioritizing accuracy and the other balancing accuracy and efficiency through buffer-compatible quantization. Experiments on ViT-Base (ImageNet-1K and CIFAR-100) and ViViT-B (UCF-101) show that Trace achieves up to 1.89% higher accuracy and up to 1.27x end-to-end inference speedup compared with the state-of-the-art VQ-based distributed inference framework. Compared with uncompressed sequence-parallel inference, Trace reduces communication overhead by up to 22,624x.

── more in #machine-learning 4 stories · sorted by recency
── more on @trace 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/trace-transformer-re…] indexed:0 read:1min 2026-10-19 · —