Editor’s introduction
It finds that prefill-heavy workloads favor TP-dominant configurations, while decode-heavy workloads shift toward PP-dominant setups, revealing a workload-dependent Pareto frontier. This transition highlights that no single parallelism strategy is universally optimal. The research also shows that longer context lengths favor PP configurations due to improved scalability and better service-level objective attainment.
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). 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 goodput11 1 Goodput is the rate at which requests are completed while satisfying the specified latency requirement. as serving objectives.
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 become dominant under different operating conditions. 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. 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.
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. 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. 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. 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.
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.
Related Works
Latency-oriented LLM serving: Recent works on LLM serving have shown that throughput alone is insufficient to characterize system performance, mainly because TTFT and ITL depend on distinct phases of inference and exhibit different sensitivities to system design choices. During prefill, computation scales with input sequence length, whereas decoding proceeds iteratively while repeatedly accessing a growing KV cache. Consequently, configurations that maximize token throughput may still deliver poor interactive performance. Recently, attention has shifted toward latency-aware metrics. Sarathi-Serve examines the trade-off among batching, throughput, and streaming latency, while DistServe introduces goodput as the throughput of requests that satisfy latency requirements. This perspective is further reinforced by holistic evaluation frameworks in, which show that prompt length, output length, request arrival patterns, and hardware topology jointly determine performance. As a result, modern LLM serving systems are increasingly evaluated in terms of their ability to satisfy TTFT and ITL constraints rather than optimizing a single latency or throughput metric.
The separation between prefill and decode phases has also motivated architectural innovations that explicitly address resource utilization during inference. When long prefill computations and latency-sensitive decoding requests share the same resources, contention can simultaneously degrade TTFT and ITL. To mitigate this effect, Nexus explores proactive prefill-decode disaggregation and chunked-prefill scheduling, while studies the conditions where aggregation or disaggregation yields superior goodput. These observations suggest that the efficacy of any parallelism configuration depends not only on its computational efficiency but also on how resources are allocated between prefill and decode workloads. Consequently, the choice of a parallelism configuration is closely coupled with broader serving-system architectural decisions.
To scale increasingly large models and long-context workloads, existing systems employ combinations of data parallelism (DP), TP, and PP. Hybrid approaches are often necessary because model weights, activations, KV caches, computation, and communication scale differently across hardware platforms and workloads. DP provides high request-level concurrency and benefits from efficient KV-cache management techniques such as PagedAttention, while TP enables model execution beyond the memory limits of a single accelerator and has motivated adaptive mechanisms for workload-dependent reconfiguration. PP further expands model capacity but introduces additional pipeline scheduling and load-balancing challenges, particularly for long-context workloads. More recently, dynamic approaches such as on-the-fly parallelism switching have emphasized that no single parallelism configuration is universally optimal. Instead, the appropriate configuration depends on workload characteristics, latency objectives, and changing demand conditions.
SLO-aware serving: Moving from throughput-centric evaluation toward TTFT and/or ITL constrained serving, recent work has increasingly adopted goodput as the primary optimization objective. Unlike raw throughput, goodput measures only the requests that satisfy their latency requirements, thereby directly reflecting user-perceived quality of service. DistServe demonstrates how architectural decisions such as prefill-decode disaggregation can significantly improve goodput under latency constraints, while Cascade extends this perspective through SLO-aware resource allocation for heterogeneous workloads. Together, these studies emphasize that maximizing token processing rates alone is insufficient, and effective serving systems must balance resource utilization against the ability to consistently meet latency targets across diverse request classes.
A recurring theme in the literature is the close interaction between parallelism configuration and request scheduling. Parallelism techniques determine the available compute capacity, communication overhead, and memory footprint, whereas scheduling policies decide how these resources are allocated to incoming requests. Prior work has shown that scheduling decisions strongly influence latency outcomes, especially in the presence of long input prompts and mixed workloads. To address this challenge, Sarathi-Serve introduced chunked prefill to prevent large prompts from monopolizing execution and to enable better interleaved decode operations, thereby improving responsiveness without sacrificing throughput. Nexus further advances this idea by exploring the scheduling granularity of prefill workloads in shared-resource environments. These works collectively suggest that achieving high goodput requires coordinated optimization of both system configuration and runtime scheduling rather than addressing either problems in isolation.
The challenge becomes significantly more pronounced in multi-SLO and heterogeneous serving environments, where requests exhibit different latency requirements, priorities, and resource demands. GoodServe investigates goodput-aware serving for agentic inference workloads spanning heterogeneous resources, while Nitsum, Niyama, and SLOs-Serve explore adaptive parallelism, QoS-aware scheduling, and dynamic request routing to meet differentiated service objectives. Infinite-LLM addresses the challenge of highly variable context lengths through attention-layer disaggregation. At the same time, uncertainty in output length introduces additional complexity because future KV-cache consumption and decode time are unknown at admission. Jenga addresses memory efficiency through a heterogeneity-aware allocation framework, while highlights the trade-off between conservative memory reservation and aggressive admission policies under uncertain decode demand. These studies point toward a control framework where long-term resource allocation, parallelism selection, memory management, and dynamic scheduling decisions must be jointly optimized to maximize goodput while maintaining SLO compliance.
Serving for long context: As context lengths continue to grow, traditional model-parallel techniques alone become insufficient to sustain efficient LLM serving. Long-context workloads increase attention computation during prefill, expand KV-cache requirements, and impose higher memory-access costs during decoding, thereby affecting TTFT and ITL through different mechanisms. TTFT is primarily influenced by the cost of processing increasingly large input prompts, while ITL degrades as each decoding step repeatedly accesses a larger context state. Medha highlights this challenge by targeting inference at multi-million-token context lengths, demonstrating that sequence state and KV-cache management can become the dominant scalability bottlenecks. To address this issue, recent studies have focused on context parallelism (CP), which distributes context tokens and associated state across multiple accelerators. Adaptive CP techniques have been explored for production environments, while Untied Ulysses improves memory efficiency through headwise chunking and PecSched reduces communication overhead for sequence-parallel execution. Collectively, these studies suggest that CP is an effective mechanism when sequence length and KV-cache growth dominate resource consumption, although its communication costs can outweigh its benefits for shorter-context workloads.
Long-context serving also strengthens the interaction between scheduling policies, pipeline execution, and attention mechanisms. While chunked prefill has emerged as an effective mechanism for reducing interference and preserving decode responsiveness, the computational cost of successive chunks is not uniform because later chunks attend to progressively longer prefixes. The work in addresses this challenge through virtual pipeline parallelism (VPP) that better balances chunked-prefill execution under long-context workloads, thereby linking pipeline scheduling directly to the TTFT-ITL trade-off discussed earlier. Beyond dense-attention models, recent work has further shown that the choice of attention mechanism can significantly influence parallelism configuration efficacy. SparseServe demonstrates that dynamic sparse-attention mechanisms introduce irregular computation and communication patterns that require specialized scheduling and distribution policies to fully exploit available parallelism. Together, these works indicate that efficient long-context serving requires a holistic approach that jointly considers context parallelism, pipeline scheduling, memory management, and attention algorithms, extending the broader theme that optimal serving performance emerges from coordinated management of both system architecture and runtime execution policies.
Experiment Results on Pareto Frontier
The behavior is reversed during decode. Each decoding iteration processes only the newly generated token, making the computation per iteration relatively small. Under these conditions, the communication and synchronization costs associated with pipeline execution become more prominent relative to useful computation. A deep PP configuration must propagate each token through multiple pipeline stages, and the limited amount of computation available per decoding step makes pipeline scheduling overhead more difficult to amortize. TP8, on the other hand, distributes the computation of every layer across all available GPUs, thereby reducing the computation required by each GPU and providing a highly parallel execution path for each decoding iteration. Although TP still incurs collective communication, its lower per-token computation time results in substantially lower ITL. TP8 therefore occupies the low-ITL end of the frontier.
Note that the four configurations should not be viewed as having a fixed global performance ranking. Instead, each configuration occupies a different position in the TTFT-ITL design space, and the desirable operating point changes as the workload moves through different prefill - decode regimes. The Pareto frontier provides a compact representation of this behavior by exposing the set of non-dominated latency trade-offs available for each workload.
Importantly, the effect of OSL is not uniform across parallelism configurations. PP8 shows relatively little improvement in ITL as OSL increases, whereas the benefit becomes progressively larger for TP2PP4 and, most notably, TP8. This reflects the different strengths of the parallelism strategies during decoding. PP-dominant configurations incur pipeline-related synchronization and stage-propagation costs on each decoding iteration, mainly because these costs remain significant throughout generation, increasing the number of output tokens provides limited improvement in the measured per-token latency. In contrast, TP-dominant configurations are better suited to autoregressive decoding. Once the decoding pipeline is established, the computation can be distributed across more GPUs and the associated per-request overheads are amortized over increasingly many decoding iterations. As a result, longer OSL increasingly favors TP-dominant configurations, causing their points to move toward lower ITL while their TTFT remains largely unchanged. The figure therefore shows that OSL does not merely shift the overall latency frontier; it changes the relative benefit of parallelism configurations, increasingly favoring TP as the workload becomes more decode-intensive.
SLO-Aware Parallelism
In the previous section, we characterized the fundamental latency trade-offs induced by different parallelism configurations through the TTFT-ITL Pareto frontier. This perspective is important because it reveals the inherent operating regions of TP-, PP-, and hybrid-parallel execution and identifies the set of non-dominated latency trade-offs available for a given workload. However, practical serving systems are rarely optimized for latency alone. Instead, they must deliver as much useful service capacity as possible while satisfying application-level latency requirements. A configuration with higher throughput is not necessarily preferable if it produces excessive latency for a significant fraction of requests, while a configuration with excellent latency may leave substantial system capacity underutilized.
Conclusions
In this paper, we presented a systematic study of LLM inference parallelism from the perspectives of latency trade-offs, SLO-aware serving, and long-context scalability. We showed that TP, PP, and their hybrid combinations occupy distinct operating points in the TTFT-ITL design space, resulting in a workload-dependent Pareto frontier rather than a single globally optimal configuration. Our analysis revealed a clear transition from TP-dominant configurations for decode-heavy workloads to PP-dominant configurations for prefill-heavy workloads, which highlights the importance of considering workload composition when selecting inference parallelism. We further demonstrated that average latency metrics alone are insufficient to characterize serving performance and that TTFT and ITL should be treated as complementary dimensions when evaluating distributed inference systems.
Building upon this latency-centric view, we formulated SLO-aware parallelism selection through goodput and showed that the optimal configuration depends jointly on serving capacity and latency compliance. Our results indicate that stringent TTFT requirements favor PP-dominant configurations, whereas relaxed SLOs progressively shift the optimality toward TP-dominant configurations with higher throughput capacity. Finally, we demonstrated that increasing context length fundamentally changes the relative advantages of parallelism strategies, with PP-dominant configurations exhibiting more favorable scaling and maintaining higher SLO attainment in the long-context regime. Collectively, these findings suggest that parallelism should be treated not as a fixed deployment choice, but as a workload-, SLO-, and context-dependent operating decision. We believe that the proposed operating-region framework provides a useful foundation for future adaptive serving systems capable of dynamically selecting parallelism configurations in response to changing workload conditions and application requirements.


