跳到正文
arXiv cs.AI· Muhammad Azlan Qazi, Alexandros Iosifidis, Qi Zhang·· 12 小时前AI 评分22

TRACE:面向通信高效分布式边缘推理的 Transformer 残差激活码本编码

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

AI 导读

TRACE 在每层 Transformer 的 post-attention 残差处放置向量量化器(VQ),将交换的激活编码为紧凑码本索引,接收端通过查表直接恢复 key/value,省去下游投影计算,实现通信与计算重叠。

正文 · 原文

View PDF HTML (experimental)

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.
Subjects: Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Distributed, Parallel, and Cluster Computing (cs.DC)
Cite as: arXiv:2610.22435 [cs.LG]
  (or arXiv:2610.22435v1 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2610.22435

arXiv-issued DOI via DataCite

Submission history

From: Muhammad Azlan Qazi [view email]
[v1] Thu, 15 Oct 2026 09:57:04 UTC (626 KB)

来源:arXiv cs.AI · arxiv.org