arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2505.19342cs.LGcs.AI
收藏

ASTRA:面向多设备Transformer推理的通信高效加速

ASTRA: Communication-Efficient Acceleration for Multi-Device Transformer Inference

Manning College of Information and Computer Sciences, University of Massachusetts Amherst, MA, US(信息与计算机科学学院,马萨诸塞大学阿默斯特分校,马萨诸塞州,美国);Amazon, Seattle, WA, US(亚马逊,华盛顿州西雅图,美国);Amazon AWS, Washington, D.C., US(亚马逊AWS,华盛顿特区,美国)

Xiao Liu, Lijun Zhang, Deepak Ganesan, Hui Guan

AI总结:

提出ASTRA框架,通过序列并行与混合精度注意力机制,在低带宽环境下实现高效多设备Transformer推理,显著加速并保持精度。

摘要:

多设备推理可以通过并行计算降低Transformer延迟。然而,现有方法需要高设备间带宽,使其在带宽受限环境中不实用。我们提出ASTRA,一个通信高效的框架,将序列并行与混合精度注意力相结合,其中非局部token嵌入作为低位向量量化码传输,而局部注意力保持全精度。为了在激进压缩下保持精度,ASTRA引入了噪声增强量化和分布式分类token。在视觉和语言模型(如ViT和GPT2)上,ASTRA在低至10 Mbps的带宽下,相比单设备推理实现了高达2.64倍的加速,相比先前的多设备基线实现了高达15.25倍的加速。即使在非理想网络条件(如丢包和动态网络)下,ASTRA在大模型(如Llama-3-8B)上仍然保持鲁棒性。

英文摘要:

Multi-device inference can reduce Transformer latency by parallelizing computation. However, existing methods require high inter-device bandwidth, making them impractical for bandwidth-constrained environments. We present ASTRA, a communication-efficient framework that integrates sequence parallelism with mixed-precision attention, where non-local token embeddings are transmitted as low-bit vector-quantized codes while local attention remains full precision. To preserve accuracy under aggressive compression, ASTRA introduces Noise-Augmented Quantization and Distributed Class Tokens. Across vision and language models (e.g., ViT and GPT2), ASTRA achieves up to 2.64$\times$ speedup over single-device inference and up to 15.25$\times$ over prior multi-device baselines while operating at bandwidths as low as 10 Mbps. ASTRA remains robust on large models (e.g., Llama-3-8B) even under non-ideal network conditions such as packet loss and dynamic networks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑