Manuscript Offprint

arXiv:2610.19405

Scaling LLM Inference via Parallelism: Throughput-Latency Trade-off

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) serving systems must balance latency and throughput while efficiently utilizing distributed GPU resources. This challenge arises because inference consists of two fundamentally different phases: prefill, which determines time-to-first-token (TTFT), and decode, which determines inter-token latency (ITL). The use of tensor parallelism (TP), pipeline parallelism (PP), and hybrid configurations exposes different trade-offs between these latency dimensions, making the optimal parallelism configuration highly dependent on workload characteristics, latency requirements, and context length. Moreover, despite the widespread adoption of distributed inference, there is still limited understanding of how parallelism configurations should be selected under varying workload conditions and service-level objectives (SLO). In this paper, we develop a systematic framework for characterizing LLM inference parallelism via throughput-latency trade-offs, SLO-aware serving, and long-context scalability. We introduce the notion of parallelism operating regions by constructing TTFT-ITL feasible sets and Pareto frontiers across different workload compositions, thereby revealing a systematic transition from TP-dominant to PP-dominant configurations as workloads become increasingly prefill-heavy. We further formulate SLO-aware parallelism selection using goodput, showing that stringent TTFT requirements favor PP-dominated configurations, whereas relaxed latency constraints progressively shift the optimality toward TP-dominated configurations with higher serving capacity. Finally, we demonstrate that increasing context length fundamentally changes the relative advantages of parallelism configurations, with PP-dominant configurations exhibiting more favorable scalability and SLO attainment in the long-context regime.

1 Introduction

Large language models (LLMs) have become a foundational component of modern AI applications, powering conversational assistants, code-generation systems, retrieval-augmented generation workflows, and increasingly complex agentic pipelines. As these applications move from offline processing to interactive services, inference efficiency has become a primary serving challenge. Modern LLM serving systems must simultaneously satisfy stringent latency requirements, sustain high request throughput, and efficiently utilize expensive GPU resources. Achieving these objectives is particularly difficult because autoregressive inference consists of two fundamentally different phases: prefill, which processes the input context in parallel, and decode, which generates output tokens autoregressively. These phases exhibit distinct computational, memory, and communication characteristics, which creates an inherent trade-off between time-to-first-token (TTFT) and inter-token latency (ITL) [1,2]. Consequently, evaluating serving systems using only a single latency or throughput metric is often insufficient to characterize real-world performance. Instead, systems increasingly consider service-level objectives (SLO) and goodput 2^{2} as serving objectives [3,4].

The challenge is further compounded by the diversity of LLM workloads. Requests can vary substantially in input length, output length, concurrency, and latency requirements, causing different phases of the inference pipeline to

∗^{*}Corresponding author.

2^{2}Goodput is the rate at which requests are completed while satisfying the specified latency requirement.

become dominant under different operating conditions [5, 6]. There is no single parallelization configuration that is universally optimal across serving scenarios. Tensor parallelism (TP), pipeline parallelism (PP), and their hybrid configurations impose different computation, synchronization, communication, and memory trade-offs, and their efficacy depends strongly on model size, sequence length, hardware topology, and workload composition [7–9]. As a result, the use of parallelism should not be viewed as a static universal deployment decision; rather, it is a workload-dependent operating point that balances competing latency and throughput objectives. Dynamic reconfiguration and parallelism-switching approaches have therefore been proposed to adapt execution strategies as workload conditions change [10–12].

A second challenge stems from the SLO constraints encountered in production deployments. In production environments, maximizing raw throughput is often insufficient because only requests that satisfy their latency requirements constitute useful service [2, 13]. Moreover, the relative importance of TTFT and throughput depends on application requirements. For example, interactive applications generally demand fast responsiveness, whereas batch or offline workloads may prioritize overall serving capacity and cost efficiency [4, 14]. The problem becomes even more pronounced for long-context inference, where increasing context length increases prefill computation, communication overhead, key-value (KV) cache memory consumption, and scheduling complexity [15, 16]. Under these conditions, the preferred parallelism and scheduling strategy can change dramatically as sequence lengths, workload heterogeneity, and latency requirements evolve, thereby making static parallelism configuration choices inefficient [10, 17].

In this paper, we develop a systematic framework to understand and select parallelism configuration for LLM inference through three complementary perspectives: latency trade-offs, SLO-aware serving, and long-context scalability. First, we introduce the notion of a parallelism operating region by constructing TTFT-ITL feasible sets and Pareto frontiers across different workload compositions, revealing a systematic transition from heavy TP-dominant to PP-dominant configurations as workloads move from decode-heavy to prefill-heavy regimes. Second, we formulate SLO-aware parallelism selection, which enables parallelism configurations to be evaluated according to both serving capacity and latency compliance. We show that the optimal configuration shifts from PP-dominant to TP-dominant strategies as TTFT requirements are relaxed. Finally, we extend the analysis to long-context serving and show that sequence-length growth fundamentally changes the relative advantages of different parallelism strategies, increasingly favoring PP-dominant configurations under stringent latency constraints. Together, these results provide a unified view of how workload characteristics, latency requirements, and context length jointly determine the optimal operating region for LLM inference parallelism, thereby offering practical guidance for deploying and adapting serving systems across diverse application scenarios.

References (38)