Communication-Efficient Multi-Device Inference Acceleration for Transformer Models

Xiao Liu, Lijun Zhang, Deepak Ganesan, Hui Guan
5/25/2025
cs.LGcs.AI

Official code: xl1990/Astra (3 stars, last commit 2025-05-25).

Abstract

Transformer models power many AI applications but suffer from high inference latency, limiting their use in real-time settings. Multi-device inference can reduce latency by parallelizing computation. Yet, existing methods require high inter-device bandwidth, making them impractical for bandwidth-constrained environments. We propose ASTRA, a communication-efficient framework that accelerates Transformer inference through a novel integration of sequence parallelism and a Mixed-Precision Attention mechanism designed to minimize inter-device communication. ASTRA compresses non-local token embeddings via vector quantization and preserves task accuracy through two optimizations, Noise-Augmented Quantization and Distributed Class Tokens. Experiments on ViT and GPT2 across vision and NLP tasks show that ASTRA achieves up to 2.64X speedups over single-device inference and up to 15.25X speedups over state-of-the-art multi-device inferences, while operating under bandwidths as low as 10 Mbps. ASTRA is open-sourced at https://github.com/xl1990/Astra.

View on arXivView PDF

Code Implementations(1)

xl1990/AstraOfficial100%

Repository for the paper "Communication-Efficient Multi-Device Inference Acceleration for Transformer Models"

30Shell, PythonMay 25, 20251 years ago

Cite this paper

@article{liu2025communicationefficient,
  title  = {Communication-Efficient Multi-Device Inference Acceleration for Transformer Models},
  author = {Xiao Liu and Lijun Zhang and Deepak Ganesan and Hui Guan},
  year   = {2025},
  eprint = {2505.19342},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.19342v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.19342.svg)](https://codeofpaper.com/paper/2505.19342)

Discussion