TokenWeave: Efficient Compute-Communication Overlap for Distributed LLM Inference

Raja Gond, Nipun Kwatra, Ramachandran RamjeearXiv 2025 · DOI

Abstract

Distributed inference of Large Language Models (LLMs) often suffers from significant communication overheads, primarily due to the synchronization requirements of Tensor Parallelism. TokenWeave introduces a novel framework designed to eliminate these bottlenecks by overlapping computation with a highly efficient, fused communication-normalization kernel. By employing "wave-aware" batch splitting and leveraging modern hardware features like NVIDIA Multimem, TokenWeave achieves up to a 1.29× latency speedup and 1.26× higher throughput, frequently outperforming theoretical models with zero communication overhead.

Introduction

As LLMs scale, running them across multiple GPUs becomes a necessity. Tensor Parallelism is a common strategy, but it requires frequent "AllReduce" operations to synchronize data across the cluster. Even with high-speed interconnects like NVLink, this communication can account for over 20% of total inference latency.

Existing attempts to mitigate this latency through fine-grained tiling often lead to "wave quantization" issues, where GPU cores (Streaming Multiprocessors or SMs) are underutilized because tasks are too small to fill execution waves. Furthermore, standard communication kernels are resource-intensive, competing with model computation for SMs. Additionally, normalization layers like RMSNorm contribute a further 5–9% overhead and are often redundantly computed across all GPUs.

Methodology

TokenWeave addresses these challenges through three primary innovations:

1. Wave-Aware Smart-Splitting

Instead of the conventional approach of breaking tasks into many tiny "nanobatches," TokenWeave splits an inference batch into just two approximately equal subsets. This split is "wave-aware," meaning it calculates the exact number of GPU waves required for a task and ensures the split does not increase the total wave count. This maintains high compute efficiency by keeping the GPU SMs fully occupied.

2. Fused AllReduce–RMSNorm Kernel

The framework reorders mathematical operations by decomposing AllReduce into a ReduceScatter, followed by RMSNorm, and finally an AllGather. By integrating normalization into the communication pipeline, TokenWeave eliminates redundant calculations across GPUs. These operations are fused into a single CUDA kernel, reducing memory-bandwidth pressure.

Figure 3: Performance comparison of the fused AllReduce-RMSNorm kernel against baseline implementations across various sequence lengths.

3. Hardware-Accelerated Communication

TokenWeave leverages NVIDIA Multimem and NV-SHARP features available on Hopper and Blackwell architectures. These features offload reduction operations to the NVSwitch hardware, allowing the communication kernel to operate using as few as 2–8 SMs. This leaves the vast majority of the GPU's SMs (e.g., 124+ on an H100) available for model computation.

Experimental Evaluation

The authors evaluated TokenWeave on 8×H100 DGX systems using state-of-the-art models including Llama-3.3-70B, Qwen2.5-72B, and Mixtral-8x22B. Workloads included fixed-length sequences and realistic multi-turn conversation traces from the ShareGPT dataset.

Key Results

TokenWeave demonstrated significant performance improvements:

  • Latency: Up to 1.29× speedup for dense models on 8-GPU configurations.
  • Throughput: Up to 1.26× higher throughput across various workloads.
  • Efficiency: The fused kernel significantly reduces SM usage compared to prior methods like NanoFlow (~20 SMs).
Figure 2: End-to-end latency comparison between vLLM (with and without communication) and TokenWeave, showing TokenWeave outperforming even the zero-communication theoretical baseline.

One of the most striking findings is that TokenWeave often outperforms a theoretical "no-communication" baseline (vllm-nocomm). This is attributed to the superior efficiency of the fused kernel compared to the standard, non-fused RMSNorm implementations used in production frameworks like vLLM.

Discussion and Limitations

TokenWeave demonstrates that coarse-grained splitting is often superior to fine-grained tiling because it preserves GPU execution wave efficiency. Furthermore, it highlights that memory-bandwidth-bound operations like RMSNorm are ideal candidates for fusion with communication.

However, some limitations remain. For Mixture-of-Experts (MoE) models, TokenWeave can introduce overhead at very small sequence lengths (1k-2k tokens) due to the fragmentation of tokens across many experts, which can lead to memory-bandwidth bottlenecks even with a two-way split. Additionally, the current implementation is highly optimized for NVIDIA's latest architectures (Hopper/Blackwell) and BFloat16 precision. Future work will focus on extending support to older hardware and quantized formats like FP8.

Conclusion

TokenWeave provides a robust solution to the communication bottleneck in distributed LLM inference. By combining wave-aware scheduling with hardware-accelerated, fused kernels, it sets a new standard for efficient distributed execution on modern GPU clusters.

Summary updated

BibTeX
@misc{gond2025tokenweave,
  author = {Raja Gond and Nipun Kwatra and Ramachandran Ramjee},
  title = {{TokenWeave: Efficient Compute-Communication Overlap for Distributed LLM Inference}},
  year = {2025},
  eprint = {2505.11329},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.11329},
}
Figure