Understanding and Improving Communication Performance in Multi-node LLM Inference

Prajwal Singhania, Siddharth Singh, Lannie Dalton Hough, Akarsh Srivastava, Harshitha Menon, Charles Fredrick Jekel, Abhinav Bhatele

TL;DR

Multi-node large language model (LLM) inference is heavily bottlenecked by inter-node communication during the token generation (decode) phase. This paper introduces NVRAR, a custom NVSHMEM-based hierarchical all-reduce algorithm optimized for small message sizes that outperforms NCCL by up to 3.6$\times$. When integrated into inference engines, NVRAR delivers up to a 1.72$\times$ speedup in end-to-end multi-node inference for massive models like Llama 3.1 405B.

What Problem Does This Paper Address?

As LLMs scale to hundreds of billions of parameters, they quickly outgrow the memory capacity of a single GPU or even a single server node. Running inference on models like Llama 3.1 405B requires distributing the workload across multiple nodes using model parallelism strategies like Tensor Parallelism (TP) and Pipeline Parallelism (PP).

While intra-node communication over ultra-fast interconnects like NVLink is highly optimized, scaling across multiple nodes introduces severe latency penalties over standard cluster networks (e.g., InfiniBand or HPE Slingshot). Standard communication libraries like NCCL are tuned for large, bandwidth-bound message sizes typical of deep learning training. However, the decode phase of LLM inference generates small, latency-sensitive messages (typically 128 KB to 2 MB). As a result, standard multi-node inference scales poorly, often hitting a performance ceiling or even slowing down as more GPUs are added.

Strong scaling performance for Llama 3.1 70B across different inference engines.

Methods

To systematically isolate and solve these bottlenecks, the authors developed two key components:

  1. YALIS (Yet Another LLM Inference System): A research-oriented prototype inference engine designed for controlled experimentation in multi-node HPC environments. It utilizes Torch Compile for kernel fusion and CUDA Graphs to minimize driver overhead.
  2. NVRAR (NVSHMEM-based Recursive Doubling All-Reduce): A custom, three-phase hierarchical all-reduce algorithm tailored specifically for the small-message regime of LLM decoding:
  3. Phase 1 (Intra-node Reduce-Scatter): GPUs within the same node locally reduce data using fast local connections.
  4. Phase 2 (Inter-node Recursive-Doubling All-Reduce): Corresponding GPUs across different nodes exchange and reduce data using a latency-optimal recursive-doubling topology implemented via NVSHMEM.
  5. Phase 3 (Intra-node All-Gather): The final globally reduced results are distributed back to all local GPUs.

Key NVRAR Optimizations:

  • Chunked Non-Blocking Communication: Divides messages into fine-grained chunks to maximize the overlap between GPU computation and network transfers.
  • Fused Payloads: Fuses data and synchronization flags into a single 8-byte payload (leveraging low-latency design principles similar to NCCL's LL protocol), eliminating explicit signaling overhead.
  • Sequence-Number Synchronization: Replaces expensive global barriers with peer-to-peer synchronization based on unique sequence numbers, allowing GPUs to immediately use reduced data.

Datasets

The authors evaluated their approach using:

  • Synthetic Workloads: Custom configurations modeling Prefill-heavy (prompt processing) and Decode-heavy (token generation) phases for Llama 3.1 70B and 405B models.
  • BurstGPT Trace: A real-world dataset consisting of 1,000 prompts sampled from production LLM serving traffic to evaluate throughput under realistic, mixed-concurrency conditions.

Key Insights and Ideas

  • The Decode GEMM Tiling Wall: Hybrid Parallelism (TP + PP) fails to scale during decoding because splitting a batch into micro-batches reduces the matrix size ($M$) below the threshold where GPU GEMM (General Matrix Multiply) tiling kernels can provide any speedup. Tensor Parallelism is algorithmically superior here but gets crippled by communication overhead.
  • NCCL’s Small-Message Deficit: For messages under 2 MB, standard NCCL all-reduce scales poorly across nodes and can be significantly slower than optimized MPI implementations (like Cray-MPICH) which natively use recursive doubling.
  • Hiding Sync Costs: Standard microbenchmarks often underestimate NVRAR's real-world benefits. Because NVRAR defers peer-wise synchronization to the beginning of the next collective call, its synchronization overhead is completely hidden behind the matrix multiplication kernels of the current layer during actual LLM execution.
Figure 3: Performance breakdown of TP (using YALIS) and HP (using vLLM) for the prefill-heavy and decode-heavy work- loads on Perlmutter for the 70B Llama model.

Key Results

  • Microbenchmark Speedups: NVRAR achieved 1.9$\times$ to 3.6$\times$ lower latency than NCCL for message sizes between 128 KB and 2 MB across HPE Slingshot-11 and InfiniBand networks.
  • End-to-End Inference Acceleration: Integrating NVRAR into YALIS and vLLM yielded up to a 1.72$\times$ reduction in end-to-end batch latency for the Llama 3.1 405B model in multi-node decode-heavy workloads.
  • Production Trace Throughput: On the real-world BurstGPT trace, NVRAR-backed Tensor Parallelism outperformed standard NCCL-backed vLLM by 1.04$\times$ to 1.36$\times$ in token throughput.
  • Extensibility to MoE: NVRAR also accelerated Mixture-of-Experts (MoE) models like Qwen3-235B-A22B, improving serving throughput by up to 1.14$\times$.

Limitations and Future Work

  • Higher Idle Time: NVRAR currently exhibits slightly higher GPU idle times than NCCL in certain configurations, which the authors plan to investigate and optimize.
  • Manual Hyperparameter Tuning: Performance is highly sensitive to block size ($B_s$) and chunk size ($C_s$). Currently, these must be tuned manually for specific hardware configurations; developing an automated, heuristic-based tuning mechanism is left for future work.
  • Pipeline Bubbles: The evaluation noted significant idle time in Hybrid Parallelism due to pipeline bubbles from imbalanced prefill/decode times, suggesting that integration with continuous batching frameworks is needed for deeper PP optimization.

Summary updated

Abstract

As large language models (LLMs) continue to grow in size, distributed inference has become increasingly important. Model-parallel strategies must now efficiently scale not only across multiple GPUs but also across multiple nodes. In this work, we present a detailed performance study of multi-node distributed inference using LLMs on GPU-based supercomputers. We conduct experiments with several state-of-the-art inference engines alongside YALIS, a research-oriented prototype engine designed for controlled experimentation. We analyze the strong-scaling behavior of different model-parallel schemes and identify key bottlenecks. Because all-reduce operations are a common performance bottleneck, we develop NVRAR, a hierarchical all-reduce algorithm based on recursive doubling with NVSHMEM. NVRAR achieves up to 1.9$\times$-3.6$\times$ lower latency than NCCL for message sizes between 128 KB and 2 MB on HPE Slingshot and InfiniBand interconnects. Integrated into YALIS, NVRAR achieves up to a 1.72$\times$ reduction in end-to-end batch latency for the Llama 3.1 405B model in multi-node decode-heavy workloads using tensor parallelism.
BibTeX
@inproceedings{singhania2026understanding,
  author = {Prajwal Singhania and Siddharth Singh and Lannie Dalton Hough and Akarsh Srivastava and Harshitha Menon and Charles Fredrick Jekel and Abhinav Bhatele},
  title = {{Understanding and Improving Communication Performance in Multi-node LLM Inference}},
  booktitle = {CAIS},
  year = {2026},
  doi = {10.1145/3786335.3813165},
}
Figure