English

TokenWeave: Efficient Compute-Communication Overlap for Distributed LLM Inference

Distributed, Parallel, and Cluster Computing 2026-05-04 v5 Machine Learning

Abstract

Distributed inference of large language models (LLMs) using tensor parallelism can introduce communication overheads of 2020% even over GPUs connected via NVLink, a high-speed GPU interconnect. Several techniques have been proposed to mitigate these overheads by decomposing computations into smaller tasks and overlapping communication with these subtasks. However, none of these techniques are turned on by default during tensor-parallel serving in systems like vLLM, SGLang and TensorRT-LLM. This is because the number of tokens processed per iteration is typically kept small to support low-latency serving, and decomposing such smaller workloads to enable communication overlap results in worse performance. Further, the communication itself uses many streaming multiprocessors (SMs) that would otherwise be available for computation, increasing overhead. We present TokenWeave, the first system to enable efficient compute-communication overlap for tensor-parallel model inference for token lengths as small as 1024. TokenWeave identifies RMSNorm, a previously overlooked operation, as crucial and optimizes it along with communication by implementing a novel fused AllReduce--RMSNorm kernel. Further, this kernel leverages the NVSHARP/Multimem feature available on modern GPUs (e.g., Hopper, Blackwell) to jointly perform communication and RMSNorm efficiently using only 282-8 streaming multiprocessors (SMs) on an 8×8\timesH100 DGX system. Our evaluations demonstrate up to 1.28×\boldsymbol{1.28\times} speedup in latency (baseline÷\divours) and up to 1.19×\boldsymbol{1.19\times} higher throughput (ours÷\divbaseline) across multiple models and workloads. In several settings, TokenWeave delivers better performance than an equivalent model with all communication removed. The source code is available at https://github.com/microsoft/tokenweave.

Keywords

Cite

@article{arxiv.2505.11329,
  title  = {TokenWeave: Efficient Compute-Communication Overlap for Distributed LLM Inference},
  author = {Raja Gond and Nipun Kwatra and Ramachandran Ramjee},
  journal= {arXiv preprint arXiv:2505.11329},
  year   = {2026}
}

Comments

Accepted at MLSys 2026. In Versions 1 and 2, Figure 6 erroneously reports Multimem-AllReduce bandwidth rather than Multimem Reduce-Scatter bandwidth. In Version 4, we corrected the x-axis tick labels in Figure 7

R2 v1 2026-06-28T23:36:10.886Z