arXiv(opens in a new tab)cs.DCOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.05305

Characterizing Parallelism Strategies in LLM Inference: Fundamental Compute-Communication Trade-offs

Javad Mirzaei, Jeebak Mitra

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Large Language Model (LLM) inference has become the dominant workload in modern AI systems, requiring serving infrastructures to simultaneously maximize throughput while satisfying stringent latency Service-Level Objectives (SLOs). Since state-of-the-art LLMs exceed the compute and memory capacity of a single GPU, inference is commonly distributed across multiple GPUs using tensor parallelism (TP), pipeline parallelism (PP), or hybrid parallelism (HB), which combines both approaches. However, selecting an appropriate parallelism strategy remains a challenging task because inference performance is governed by complex interactions among computation, inter-GPU communication, pipeline utilization, sequence length, batch size, and model architecture. Existing studies primarily rely on empirical evaluations or optimize specific serving components, offering limited analytical insights into the performance trade-offs among different parallelism strategies, particularly across the distinct prefill and decoding phases of inference.

In this paper, we present a unified analytical framework for modeling distributed LLM inference under TP, PP, and HB. Our framework decomposes end-to-end inference latency into computation, inter-GPU communication, and pipeline bubble overhead, and derives analytical models that explicitly characterize TP collective communication, PP point-to-point communication, and pipeline utilization as functions of hardware, model and workload characteristics. The proposed model further captures the fundamentally different execution characteristics of prefill and decoding, explaining why PP-dominant configurations favor compute-intensive prefill while TP configurations achieve lower decoding latency by eliminating pipeline bubbles. Extensive experiments using modern LLMs on multi-GPU platforms validate the model and confirm the fundamental trade-off between compute and communication of TP and PP across diverse workloads. Our framework provides practical insights for selecting efficient parallelism strategies and establishes a principled foundation for performance modeling and capacity planning in future LLM serving systems.

1 Introduction

Large Language Models (LLMs) have rapidly become a fundamental component of modern artificial intelligence (AI) applications, enabling conversational assistants, retrieval-augmented generation, code generation, and long-context reasoning systems. The rapid evolution of models from billions to hundreds of billions of parameters, together with the increasing adoption of long-context workloads, has introduced unprecedented computational and memory challenges during inference. Unlike model training, where large batches and long-running executions allow systems to maximize accelerator utilization, LLM serving must simultaneously achieve high throughput and satisfy strict latency requirements, including time-to-first-token (TTFT) and inter-token latency (ITL), under highly dynamic and heteroge-

∗^{*}Corresponding author.

neous workloads [1, 2]. As a result, designing efficient inference systems has become a critical challenge for modern AI infrastructure.

To overcome the computational and memory limitations of large models, modern LLM serving systems increasingly rely on distributed execution across multiple GPUs. Tensor Parallelism (TP), introduced by Megatron-LM [3], partitions transformer computations across devices by sharding model weights and intermediate activations, reducing the computation and memory requirements per GPU. Pipeline Parallelism (PP), explored in systems such as GPipe [4] and PipeDream [5], partitions model layers across devices and enables models that exceed the memory capacity of a single accelerator. More recently, hybrid parallelism (HB), combining TP and PP, has been adopted in large-scale deployments to balance computation, memory capacity, and communication overhead [6,7]. These parallelism strategies form the foundation of modern LLM inference frameworks, including TensorRT-LLM [8], vLLM [9], and NVIDIA Dynamo [10].

Despite extensive progress in distributed LLM serving, selecting an appropriate parallelism strategy remains challenging because performance depends on complex interactions among computation, communication, memory bandwidth, KV-cache capacity, and workload characteristics. Existing evaluations typically compare parallelism strategies through empirical measurements under fixed model configurations, batch sizes, and hardware settings. While such evaluations provide valuable insights, they often fail to explain the underlying mechanisms that determine performance scalability. In practice, the dominant bottleneck of LLM inference can shift significantly across workloads: prefill execution may be limited mainly by matrix computation, whereas decoding may become constrained by memory bandwidth, KV-cache accesses, and repeated synchronization overhead [1, 2]. Consequently, conclusions obtained from a single workload configuration often do not generalize to different models, sequence lengths, or deployment environments.

This challenge is further amplified by the fundamentally different characteristics of the prefill and decoding phases. During prefill, the system processes the entire input sequence simultaneously and benefits from large matrix operations with high arithmetic intensity. In contrast, decoding generates tokens sequentially, requiring repeated execution of the model for every generated token and introducing frequent communication and synchronization operations. For example, TP reduces computation per GPU but introduces collective communication after transformer components, while PP reduces communication volume but suffers from pipeline bubbles when the amount of useful work is insufficient to keep all stages occupied. Although recent serving systems employ advanced scheduling techniques, including continuous batching, KV-cache management, and phase-aware execution [1, 2, 11, 12], most systems still rely on a fixed parallelism configuration across prefill and decode phases. Therefore, understanding how parallelism overhead evolves across different inference phases remains an open challenge.

In this work, we address this challenge by developing a unified analytical framework for modeling distributed LLM inference performance. Unlike prior studies that focus on empirical benchmarking or isolated optimization techniques, our framework captures the fundamental latency components introduced by TP, PP, and HB across both prefill and decode execution. Specifically, we model TP communication overhead using collective communication costs, characterize pipeline bubble effects for autoregressive inference, and integrate computation, communication, and pipeline overhead into a unified performance model parameterized by model architecture, sequence length, batch size, GPU configuration, and interconnect topology. Our goal is to provide a fundamental understanding of the scalability limits of distributed LLM inference and enable systematic reasoning about the trade-offs among different parallelism strategies.

References (23)

  • Taming throughput-latency tradeoff in LLM inference with sarathi-serve
  • Efficient memory management for large language model serving with paged attention
  • Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelism
  • Gpipe: Efficient training of giant neural networks using pipeline parallelism
  • Pipedream: Fast and efficient pipeline parallel DNN training (opens arXiv in a new tab)
  • Efficient large-scale language model training on GPU clusters using Megatron-LM
  • Deepspeed-inference: enabling efficient inference of transformer models at unprecedented scale
  • TensorRT-LLM documentation
  • vLLM documentation
  • Nvidia dynamo
  • DistServe: Disaggregating prefill and decoding for goodput-optimized large language model serving
  • Splitwise: Efficient generative llm inference using phase splitting
  • Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity
  • The communication challenge for MPP: Intel paragon and meiko CS-2
  • LogP performance characterization of fast messages atop myrinet
  • NVIDIA Collective Communications Library (NCCL)
  • Roofline: an insightful visual performance model for multicore architectures
  • Mooncake: A KV cache-centric disaggregated architecture for LLM serving
  • Demystifying NCCL: An in-depth analysis of GPU communication protocols and algorithms
  • Qwen2.5 Technical Report
  • NVIDIA A100 tensor core GPU: Unprecedented acceleration at every scale
  • vLLM: Easy, fast, and cheap llm serving for everyone
  • NVIDIA Nsight Systems v2026.5.1