Serving large language models (LLMs) at production scale under strict interactive latency constraints exposes a fundamental conflict between hardware compute efficiency and tail-latency Service Level Objectives (SLOs). Every autoregressive LLM request executes across two physically distinct computational regimes: a parallel prompt prefill phase that processes hundreds or thousands of input tokens simultaneously to emit the first output token—governed by Time-To-First-Token (TTFT)—followed by a sequential autoregressive decode phase that generates subsequent tokens one iteration at a time—governed by Time-Between-Tokens (TBT) or Time-Per-Output-Token (TPOT). While a single prompt prefill of 512 to 2,048 tokens saturates GPU Tensor Cores deep inside the compute-bound regime, a single decode step streams gigabytes of model weights and historical Key-Value (KV) cache states from High Bandwidth Memory (HBM) to compute just one token per sequence, leaving GPU arithmetic units severely underutilized unless dozens of concurrent requests are batched together.
Between 2022 and 2026, LLM serving engines evolved through four architectural generations to resolve this tension without over-provisioning scarce accelerators:
- Iteration-Level Continuous & Selective Batching (Orca): Replacing coarse request-level batching and zero-padding with iteration-level scheduling—allowing completed requests to exit and newly arrived requests to enter the execution batch after any single forward pass—achieving up to a 36.9x throughput speedup on GPT-3 175B over NVIDIA FasterTransformer.
- Prefix-Tree KV-Cache Reuse & Jump-Forward Constrained Decoding (SGLang): Retaining prompt and generation KV caches across multi-turn chats, agent loops, tree searches, and few-shot calls inside a CPU-managed RadixAttention LRU radix tree, paired with Compressed Finite State Machines (FSMs) that decode multi-token deterministic schema fragments in a single forward pass—delivering up to 6.4x higher throughput and 3.7x lower latency.
- Chunked Prefills & Stall-Free Scheduling (Sarathi-Serve): Eliminating the multi-second generation stalls (up to 28.3x TBT spikes) caused by prefill-prioritizing continuous batchers by splitting long prompts into tile-aligned chunks and piggybacking them onto memory-bound decode batches within a strict token budget $\tau$, boosting SLO-compliant serving capacity by up to 2.6x on Mistral-7B, 2.8x on Yi-34B, and 6.9x on Falcon-180B.
- Prefill-Decode Disaggregation & KVCache-Centric Clusters (DistServe, Splitwise, and Mooncake): Physically decoupling prefill and decoding onto separate GPU pools with phase-specific Tensor/Pipeline Parallelism (DistServe, achieving up to 7.4x higher goodput or 12.6x tighter SLOs), heterogeneous compute/memory hardware tiers and power caps (Splitwise, achieving 1.4x higher throughput at 20% lower cost or 2.35x throughput at iso-power/iso-cost), and cluster-wide GPUDirect RDMA DRAM/SSD KV-cache pools with prediction-based early overload rejection (Mooncake, achieving up to 525% higher long-context throughput and handling 75% more requests in production on Moonshot AI's Kimi).
- ✓Iteration-Level Scheduling & Selective Batching (Orca, OSDI '22): By scheduling execution at single-iteration granularity and applying batching selectively to linear projections while processing variable-length attention masks unpadded, Orca delivers up to 36.9x higher throughput at identical latency compared to request-level FasterTransformer on GPT-3 175B.
- ✓RadixAttention KV Reuse & Compressed FSMs (SGLang, arXiv:2312.07104): Managing paged KV caches in an LRU radix tree with longest-shared-prefix-first scheduling achieves 50%–99% cache hit rates (approaching 96% of theoretical optimal on average and 74.1% in production on Vicuna-33B in Chatbot Arena, cutting TTFT by 1.7x with <0.3% tree overhead). Combined with Compressed FSM jump-forward JSON decoding (1.6x speedup), SGLang reaches up to 6.4x higher throughput and 3.7x lower latency across Llama-7B/70B, Mixtral-8x7B, and LLaVA models.
- ✓Stall-Free Chunked Prefills (Sarathi-Serve, OSDI '24 / arXiv:2403.02310): Because 1 decode token costs nearly the same linear-layer execution time as 128 prefill tokens on Mistral-7B (A100), Sarathi-Serve piggybacks tile-aligned prefill chunks onto ongoing decode iterations without pausing decodes—increasing SLO-compliant serving capacity by up to 2.6x on Mistral-7B (3.2x vs. Orca under strict 0.1s P99 TBT), 2.8x on Yi-34B, and 6.9x on Falcon-180B across 8 A100 GPUs.
- ✓Phase Disaggregation & KVCache-Centric Clusters (DistServe, Splitwise & Mooncake): DistServe (arXiv:2401.09670) separates prefill and decode GPUs with phase-optimal TP/PP and intra-node NVLink placement (<0.1% transmission latency, <30ms for >95% of OPT-175B requests) to serve up to 7.4x more requests or 12.6x tighter SLOs. Splitwise (arXiv:2311.18677) exploits hardware asymmetry (H100 for prefill, A100 or 50% power-capped H100 for decode with ~5ms–8ms layer-wise MSCCL++ InfiniBand transfer) for 2.35x iso-power/iso-cost throughput. Mooncake (arXiv:2407.00079) pools cluster CPU DRAM/SSDs via GPUDirect RDMA to achieve up to 525% higher long-context throughput and 75% more requests on real production traces.
Peak throughput gain (6.4x) and latency reduction (3.7x) via RadixAttention LRU prefix trees and Compressed FSM decoding (arXiv:2312.07104).
End-to-end serving capacity increase on Falcon-180B (8x A100 TP4-PP2) and 2.6x on Mistral-7B via stall-free chunked prefills (arXiv:2403.02310).
Higher request rate (7.4x) or tighter latency SLO (12.6x) achieved by disaggregating prefill and decode instances with >90% SLO attainment (arXiv:2401.09670).
Long-context simulated throughput gain (up to 525%) and real production request capacity increase (+75%) on Kimi traces (arXiv:2407.00079).
The Bimodal Physics of LLM Serving: Compute-Bound Prefill vs. Memory-Bound Decode and the TTFT–TBT Trade-Off
Why do traditional deep learning serving frameworks—such as NVIDIA Triton Inference Server, TensorFlow Serving, or TorchServe—fail to utilize modern GPUs efficiently when serving generative Transformers? In non-autoregressive inference (such as ResNet image classification or BERT encoder classification), every incoming request performs a single deterministic forward pass of known tensor dimensions. By contrast, an autoregressive decoder-only LLM processes each user query through a two-phase execution lifecycle whose hardware utilization profiles are diametrically opposed.
1. Contrasting Arithmetic Intensity and Batching Scaling Laws
Let us examine the two execution phases quantitatively using the empirical measurements from Sarathi-Serve (Agrawal et al., OSDI 2024, arXiv:2403.02310), DistServe (Zhong et al., OSDI 2024, arXiv:2401.09670), and Splitwise (Patel et al., ISCA 2024, arXiv:2311.18677):
- The Prompt Prefill Phase (Compute-Bound, High MFU, Low MBU): When a request arrives with an input prompt of $L_{\text{in}}$ tokens, the serving engine evaluates all $L_{\text{in}}$ tokens in parallel during a single forward pass to populate the initial Key-Value (KV) cache and emit the first output token. Because production prompts routinely contain hundreds to thousands of tokens—for example, in the Azure LLM Inference Trace (
arXiv:2311.18677), the coding service exhibits a median prompt length of 1,500 tokens and the conversation service exhibits a median prompt length of 1,020 tokens; inopenchat_sharegpt4andarxiv_summarization(arXiv:2403.02310, Table 2), median prompt lengths are 1,730 tokens (P90 5,696) and 7,059 tokens (P90 12,985), respectively—the linear projection matrices ($W_q, W_k, W_v, W_o, W_{\text{gate}}, W_{\text{up}}, W_{\text{down}}$) are fetched from HBM once and amortized across all $L_{\text{in}}$ tokens. - As measured in DistServe (arXiv:2401.09670, Section 3.1) on an OPT-13B model running on an NVIDIA A100-80GB GPU, processing a single sequence of 512 tokens already saturates the GPU's compute units ($L_m \approx 512$). Once total batched prefill tokens exceed $L_m$ (or 2,048 prompt tokens on Llama2-70B and BLOOM-176B across 8× H100 GPUs in Splitwise,arXiv:2311.18677, Section III-D), batching additional prefill requests yields virtually zero throughput gain and instead increases Time-To-First-Token (TTFT) linearly. - The Autoregressive Decode Phase (Memory-Bandwidth-Bound, Low MFU, High MBU): After the first token is emitted, causal dependency forces the model to generate output tokens sequentially, one token per iteration ($L_{\text{step}} = 1$). During each decode iteration, the GPU must stream the entire model weight footprint plus the growing KV cache of all active sequences in the batch $B$ from HBM into on-chip SRAM just to compute $B$ tokens. - As measured in Sarathi-Serve (
arXiv:2403.02310, Figure 5) on Mistral-7B running on a single A100 GPU, because linear operators dominate runtime and operate at rock-bottom arithmetic intensity during decoding, the linear-layer execution cost for 1 decode token is nearly identical to that of 128 prefill tokens! - Similarly, on LLaMA2-70B running across four A100 GPUs (arXiv:2403.02310, Section 3.2 & Figure 7), linear-layer execution time remains largely flat as the number of tokens per batch scales from 128 to 512 tokens, only transitioning from the memory-bound regime ($T_{\text{mem}} > T_{\text{math}}$) to the compute-bound regime ($T_{\text{math}} > T_{\text{mem}}$) at approximately 200 tokens theoretically and 500–600 tokens in practice at higher Tensor Parallel degrees due to fixed kernel and communication overheads. - In Splitwise (arXiv:2311.18677, Section III-C), characterization of BLOOM-176B on an 8-GPU DGX-H100 node reveals that a prompt phase with 1,500 input tokens takes the exact same wall-clock time as a token generation phase generating only 6 output tokens, while increasing the decode batch size all the way to 64 concurrent requests increases Time-Between-Tokens (TBT) by only 2x while scaling token throughput nearly linearly until HBM capacity is exhausted.
2. Service Level Objectives (SLOs) and Goodput vs. Raw Throughput
In interactive production deployments—such as conversational assistants, real-time IDE code completion, and document summarization—optimizing raw token throughput without bounding per-request latency produces an unusable service. Modern serving architectures therefore evaluate performance through SLO Attainment and Goodput (arXiv:2401.09670, arXiv:2403.02310, arXiv:2407.00079):
- Time-To-First-Token (TTFT): The elapsed wall-clock latency from a request's arrival at the scheduler ($t_{\text{arrive}}$) to the emission of its first generated token ($t_{\text{first}}$), comprising queueing delay ($T_{\text{queue}}$), prefix cache transfer time ($T_{\text{transfer}}$, if disaggregated), and prefill execution time ($T_{\text{prefill}}$): $$\text{TTFT} = T_{\text{queue}} + T_{\text{transfer}} + T_{\text{prefill}}$$
- Time-Between-Tokens (TBT) / Time-Per-Output-Token (TPOT): TBT measures the latency interval $t_{k} - t_{k-1}$ between consecutive output tokens of a request (often constrained at the 99th percentile, P99 TBT, in Sarathi-Serve to prevent noticeable streaming stutter), while TPOT measures the average decoding step latency per output token across a request's generation lifecycle: $$\text{TPOT} = \frac{t_{\text{finish}} - t_{\text{first}}}{L_{\text{out}} - 1}$$
- Per-GPU Goodput (Serving Capacity): Defined in DistServe (
arXiv:2401.09670) and Sarathi-Serve (arXiv:2403.02310) as the maximum sustainable arrival rate (in requests/second or queries/second per GPU) under which at least a target fraction (e.g., 90% or 99%) of requests simultaneously satisfy both their TTFT and TPOT/TBT SLOs. In Mooncake (arXiv:2407.00079, Section 2), goodput is enforced even more strictly: only requests that complete their entire generation within SLOs are counted toward goodput, meaning any request aborted or rejected mid-stream wastes 100% of its prefill compute.
| Serving Paradigm & System | Primary Scheduling & Batching Granularity | KV-Cache Memory & Reuse Architecture | Prefill–Decode Interference Mitigation | Headline Empirical Gain vs. Baseline | Primary Source |
|---|---|---|---|---|---|
| Orca (OSDI '22) | Iteration-level scheduling + Selective batching (unpadded Attention, batched Linear/FFN) | Per-request contiguous KV buffer allocated for active batch duration | None (eagerly admits prefill requests into hybrid iteration batches) | 36.9x throughput at equal latency vs. FasterTransformer on GPT-3 175B | Yu et al. (USENIX OSDI 2022) |
| vLLM (SOSP '23) | Iteration-level continuous batching (prefill-prioritizing, unmixed prefill or decode batches) | PagedAttention block table (<4% internal fragmentation, Copy-on-Write prefix blocks) | None (pauses ongoing decodes to run new prefills, causing multi-second stalls) | 2x–4x throughput vs. FasterTransformer & Orca; up to 24x vs. HF Transformers | Kwon et al. (arXiv:2309.06180) |
| SGLang (NeurIPS '24) | Cache-aware longest-shared-prefix-first continuous batching + Compressed FSM jump decoding | RadixAttention CPU-managed LRU radix tree with 1-token paged KV blocks & ref-counters | Reduces prefill compute via 50%–99% prefix cache hits (74.1% on Vicuna-33B Arena) | Up to 6.4x throughput & 3.7x lower latency; 1.6x JSON FSM decoding speedup | Zheng et al. (arXiv:2312.07104v2) |
| Sarathi-Serve (OSDI '24) | Stall-free batching + Chunked-prefills within tile-aligned token budget $\tau$ (512–2048) | Co-located vLLM PagedAttention KV cache read across chunked prefill iterations | Throttles prefill tokens per iteration so ongoing decodes never pause | Up to 2.6x capacity on Mistral-7B, 2.8x on Yi-34B, 6.9x on Falcon-180B | Agrawal et al. (arXiv:2403.02310v1) |
| DistServe (OSDI '24) | Disaggregated prefill & decode GPU instances with phase-specific TP/PP & pull-based KV queue | Intra-node 600 GB/s NVLink stage-aligned KV transfer (<0.1% latency, <30ms P95) | 100% physical isolation between prefill and decode GPU pools | Up to 7.4x higher request rate or 12.6x tighter SLO (>90% attainment) | Zhong et al. (arXiv:2401.09670v3) |
| Splitwise (ISCA '24) | Phase splitting across Prompt, Token, and elastic Mixed pools (JSQ cluster + FCFS machine) | Layer-wise asynchronous MSCCL++ one-sided put over InfiniBand (~5ms H100 / ~8ms A100) | Physical isolation + heterogeneous hardware (Splitwise-HA, 50% power-capped HHcap) | 1.4x throughput at 20% lower cost; 2.35x throughput at iso-power & iso-cost | Patel et al. (arXiv:2311.18677v2) |
| Mooncake (FAST '25) | Conductor KVCache-centric global scheduling + Chunked Pipeline Parallelism + Early Rejection | Disaggregated cluster CPU DRAM / SSD paged KV pool via Messenger GPUDirect RDMA | Physical disaggregation + layer-wise prefill streaming + predictive overload rejection | Up to 525% higher throughput (long-context); +75% requests on Kimi real traces | Qin et al. (arXiv:2407.00079v2) |
First-Generation Continuous Batching: Orca's Iteration-Level Scheduling and Selective Batching
Before 2022, production Transformer serving systems such as NVIDIA FasterTransformer and Triton Inference Server operated on request-level (static) batching (Algorithm 1 in arXiv:2403.02310). In request-level batching, the scheduler collects a batch of $B$ newly arrived requests, pads their prompt tensors with zeros to match the longest prompt $\max_{i} L_{\text{in}}^{(i)}$, executes the prefill pass, and then steps the entire batch through autoregressive decoding until every single request in the batch emits its <eos> token.
This static request-level paradigm suffers from three severe inefficiencies identified by Gyeong-In Yu et al. in Orca: A Distributed Serving System for Transformer-Based Generative Models (USENIX OSDI 2022):
- Early-Completion Bubble Waste: If Request $A$ finishes generating after 20 output tokens while Request $B$ in the same batch generates 500 output tokens, Request $A$ cannot return to the client and its GPU batch slot sits completely idle (or executes dummy padding operations) for the remaining 480 iterations.
- Head-of-Line Queuing Delay for New Arrivals: A new request arriving 1 millisecond after batch execution begins cannot join the running decode batch; it must wait in the queue until the longest request in the active batch completes all 500 decode steps, inflating TTFT by seconds.
- Prompt & Context Padding Waste: Because sequences in a batch have heterogeneous prompt lengths $L_{\text{in}}^{(i)}$, standard batched tensor operators pad all inputs to $\max_i L_{\text{in}}^{(i)}$, wasting FLOPs and activation memory on zero tokens.
1. Iteration-Level Scheduling vs. Request-Level Batching
Orca (OSDI 2022) replaces request-level scheduling with iteration-level scheduling (now universally known as continuous batching or in-flight batching). Instead of invoking the execution engine to run a batch of requests to completion, the Orca scheduler invokes the engine to execute only a single forward iteration of the Transformer at a time:
- At the end of every iteration, the scheduler inspects the emitted tokens across the active batch $B$. Any request that just generated an
<eos>token or reached itsmax_tokenslimit is immediately filtered out of $B$ and returned to the user. - Simultaneously, if GPU KV-cache memory is available, the scheduler pulls pending requests $B_{\text{new}}$ from the waiting queue and admits them into the very next iteration!
2. Selective Batching: Decoupling Token-Level Matrix Ops from Sequence-Level Attention
How can a single forward pass simultaneously execute a newly admitted request in its prefill phase (processing $L_{\text{in}} = 512$ tokens), an older request in its prefill phase ($L_{\text{in}} = 128$ tokens), and 16 ongoing requests in their decode phase ($1$ token each)? Standard batching requires all tensors in a batch to share an identical sequence dimension $[B, L, d_{\text{model}}]$, which is impossible when mixing variable-length prefills with single-token decodes without massive zero-padding.
Orca solves this via Selective Batching:
- Flattened Token-Dimension Batching for Linear, LayerNorm, and GeLU/SwiGLU Operations: Non-attention operators in a Transformer (QKV projections $W_{qkv}$, output projection $W_o$, FFN up/gate/down projections, RMSNorm/LayerNorm, and element-wise activations) operate identically and independently on each token vector $x \in \mathbb{R}^{d_{\text{model}}}$, regardless of which request the token belongs to or whether it is a prefill token or a decode token. Orca coalesces all tokens across all active prefill and decode requests into a single 2D flattened matrix of shape: $$\mathbf{X}{\text{flat}} \in \mathbb{R}^{N{\text{total}} \times d_{\text{model}}}, \quad \text{where } N_{\text{total}} = \sum_{r \in B_{\text{prefill}}} L_{\text{in}}^{(r)} + |B_{\text{decode}}|$$ and executes a single dense cuBLAS GEMM $\mathbf{X}{\text{flat}} \mathbf{W}$ across all $N{\text{total}}$ tokens with zero padding!
- Split Unbatched Execution for Self-Attention: Only the self-attention operator ($\text{Softmax}(\mathbf{Q}\mathbf{K}^T / \sqrt{d_k})\mathbf{V}$) requires sequence-level causal masking and attends to request-specific historical KV caches of varying sequence lengths $S^{(r)}$. Orca splits the flattened tensor back into per-request views before the attention kernel, executes attention individually (or via variable-length grouped attention kernels) against each request's KV cache slot, and immediately merges the attention outputs back into $\mathbb{R}^{N_{\text{total}} \times d_{\text{model}}}$ for the output projection $W_o$ and FFN block.
Evaluated on GPT-3 175B, Orca's combination of iteration-level scheduling, selective batching, and distributed intra-/inter-layer parallelism delivered a 36.9x throughput improvement at the exact same latency level compared to NVIDIA FasterTransformer (USENIX OSDI 2022, pp. 521–538).
Prefix-Aware KV-Cache Reuse and Structured Decoding: SGLang's RadixAttention and Compressed Finite State Machines
While Orca and vLLM (arXiv:2309.06180, which introduced PagedAttention to eliminate 60%–80% contiguous KV-cache fragmentation and achieve 2x–4x higher throughput than Orca) optimized the execution of independent, isolated single-turn requests, modern LLM workloads rarely consist of isolated single-shot prompts. In SGLang: Efficient Execution of Structured Language Model Programs (Zheng et al., NeurIPS 2024, arXiv:2312.07104v2), researchers from Stanford, UC Berkeley, SJTU, and Texas A&M observed that production workloads are overwhelmingly Language Model Programs (LM Programs) characterized by two structural properties:
- Multi-Call Control Flow with Deep Prefix Sharing: Multi-turn chat histories, few-shot in-context learning benchmarks (5-shot MMLU, 20-shot HellaSwag), self-consistency majority voting, Skeleton-of-Thought parallel expansion, Tree-of-Thoughts heuristic search, ReAct tool-use loops, and DSPy RAG pipelines repeatedly invoke the LLM with shared system instructions, shared few-shot examples, shared parent search branches, or growing multi-turn conversation logs.
- Strict Grammatical Output Constraints: To compose LLM outputs with downstream software APIs, responses are frequently constrained to follow regular expressions or structured JSON schemas.
In conventional serving engines, the KV cache of a request is immediately deallocated and discarded the moment the request finishes generating. When the user sends the next turn in a chat session—or when a Tree-of-Thoughts agent forks 5 parallel child reasoning branches from a parent state—the serving engine redundantly recomputes the entire prefix KV cache from scratch.
Comparison of a Standard Uncompressed Trie versus a Space-Efficient Radix Tree Merging Singular-Child Character Paths into Multi-Element Edge Labels (CC0, David Eppstein)
1. RadixAttention: Managing Paged KV Caches as a CPU-Orchestrated LRU Radix Tree
To enable automatic, zero-configuration KV-cache reuse across both intra-program parallel forks and inter-request shared prefixes, SGLang introduces RadixAttention (arXiv:2312.07104v2, Section 3 & Appendix A). Instead of freeing KV-cache pages upon request completion, RadixAttention retains the KV-cache tensors of both input prompts and generated outputs inside a radix tree (compact prefix tree) $T$:
- Variable-Length Token-Sequence Edges and 1-Token Paged Storage: Unlike a classical trie where each edge represents a single token, each edge $e$ in SGLang's radix tree is labeled with a variable-length sequence of tokens (or an input image hash for multimodal models like LLaVA) and points to the corresponding GPU KV-cache tensors stored in a non-contiguous paged layout where 1 page = 1 token.
- Unified Dynamic Memory Pool with Reference Counting and Leaf-First LRU Eviction: SGLang does not partition GPU HBM into a static cache pool and a separate active-batch pool. Instead, cached prefix nodes and currently executing batch requests share the exact same GPU memory pool $P$. Each radix tree node maintains a
ref_countertracking how many active requests in the currently running continuous batch $B$ are reading from that prefix path: - Any node with $\text{ref\_counter} > 0$ is pinned and non-evictable.
- Any node with $\text{ref\_counter} = 0$ is eligible for eviction. When new requests in batch $B$ require more KV-cache pages than currently free in $P$, RadixAttention traverses the leaf nodes with $\text{ref\_counter} = 0$ and evicts the Least Recently Used (LRU) leaves first, preserving shared internal ancestor prefixes until all of their children have been evicted and the ancestor itself becomes an unused leaf.
- Dynamic Node Splitting on Partial Prefix Matches: When a new request arrives whose token sequence matches $k$ tokens along an existing edge of length $L > k$, RadixAttention splits the edge at position $k$ into a shared parent node (length $k$) and two child branches, enabling automatic multi-level sharing across system prompts, few-shot blocks, question stems, and multi-turn branches without manual configuration.
2. Cache-Aware Longest-Shared-Prefix-First Scheduling and DFS Optimality (Theorem 3.1)
Maintaining a radix tree in HBM is only half the battle: if the request scheduler processes waiting queue $Q$ in naive First-Come-First-Served (FCFS) order, alternating between unrelated tasks will repeatedly evict and recompute cached prefixes (cache thrashing). SGLang pairs RadixAttention with a Cache-Aware Scheduling Algorithm (Algorithm 1 in arXiv:2312.07104v2, Appendix A.2):
- At each scheduling step, the scheduler matches every waiting request $r \in Q$ against the radix tree $T$: $$(r.\text{prefix\_node},\; r.\text{prefix\_len}) \leftarrow T.\text{match\_prefix}(r.\text{input\_tokens})$$
- It sorts the waiting requests in descending order of matched prefix length (longest-shared-prefix-first), greedily admitting requests into the next continuous batch $B$ while incrementing
ref_counteralong their matched prefix paths (which simultaneously reclaims those nodes from theevictable_sizepool so they are protected during execution).
In Theorem 3.1 (arXiv:2312.07104v2, Section 3 & Appendix A.3), Zheng et al. prove that for a batch of requests $R$ forming a radix tree $T$, any schedule must compute the KV cache of each edge $e \in \text{edges}(T)$ at least once, establishing a strict computational lower bound: $$C \ge \sum_{e \in \text{edges}(T)} |e|$$ When requests are scheduled in Depth-First Search (DFS) order (which is mathematically equivalent to online longest-shared-prefix-first ordering) with a cache capacity at least equal to the maximum request length, every edge $e$ is computed exactly once while its entire subtree is evaluated and never visited again, achieving the theoretical minimum computation $C = \sum_{e \in \text{edges}(T)} |e|$ and the optimal cache hit rate: $$\text{Cache Hit Rate} = \frac{\sum_{r \in R} \text{cached prefill tokens in } r}{\sum_{r \in R} \text{total prefill tokens in } r}$$
Across SGLang's evaluation suite (arXiv:2312.07104v2, Section 6.2 & Appendix Fig. 13), cache-aware scheduling achieves cache hit rates between 50% and 99%, reaching 96% of the theoretical optimal hit rate on average. Even when evaluated on 100 unshared ShareGPT requests with 0% cache reuse opportunity (arXiv:2312.07104v2, Section 6.3), CPU radix tree maintenance takes just 0.2 seconds out of 74.3 seconds total execution time—a negligible overhead of less than 0.3%.
3. Compressed Finite State Machines (FSMs) for Jump-Forward Constrained Decoding
When an LLM is forced to emit structured output conforming to a JSON schema or regular expression (e.g., {"summary": "...", "grade": "..."}), existing guided-decoding libraries (such as Outlines or Guidance) compile the regular expression into a token-level Finite State Machine (FSM). At every single autoregressive decode step, the runtime queries the current FSM state, masks disallowed vocabulary logits to $-\infty$, and runs a full Transformer forward pass to sample one token at a time (arXiv:2312.07104v2, Section 4).
Comparison of a Prefix Trie versus a Minimal Acyclic Finite Automaton Compressing Redundant States and Deterministic Transitions (CC BY-SA 3.0, Chkno)
Why is token-by-token FSM masking wasteful? Consider the constant JSON key prefix {"summary": " in a schema. Even though this literal string spans multiple subword tokens in the LLM's tokenizer vocabulary, there is only one valid deterministic character path through those states! Running three or four sequential memory-bound GPU forward passes to "predict" tokens that are 100% predetermined by the grammar wastes multiple decode iterations.
SGLang eliminates these redundant forward passes by building a Compressed Finite State Machine (arXiv:2312.07104v2, Section 4 & Figure 4):
- Singular-Transition Edge Compression: During FSM compilation, SGLang analyzes the state graph and merges adjacent singular-transition edges (states that have only one valid outgoing transition) into a single compressed multi-token edge.
- Jump-Forward Multi-Token Prefill Step: Whenever the decoder enters a state with a compressed multi-token edge, SGLang appends the entire deterministic string segment directly to the sequence buffer, retokenizes the boundary cleanly to avoid BPE tokenization artifacts (Appendix B.2), and advances all tokens along the compressed edge in a single forward pass.
On the JSON schema decoding benchmark (arXiv:2312.07104v2, Section 6.3), the Compressed FSM alone increases decoding throughput by 1.6x (while preprocessing and caching the state machine across request batches prevents a 2.4x throughput degradation). Furthermore, for black-box commercial endpoints (such as OpenAI GPT-3.5/GPT-4), SGLang introduces API Speculative Execution (Section 5), ignoring intermediate stop sequences during multi-field extraction so the model speculatively continues generating subsequent template fields in a single API call—reducing input token costs by approximately 3x when extracting three fields from Wikipedia articles (Section 6.2).
As reported in Section 6.2 and Table 2 of arXiv:2312.07104v2, deploying SGLang in production on LMSys Chatbot Arena over a one-month period yielded a 52.4% RadixAttention cache hit rate on LLaVA-NeXT-34B and a 74.1% cache hit rate on Vicuna-33B (driven by shared system prompts, reused sample images, and multi-turn conversation histories), cutting average first-token latency (TTFT) by 1.7x on Vicuna-33B. On multimodal benchmarks where image/video hashes serve as radix tree keys, SGLang accelerated LLaVA-v1.5-7B (image) on llava-bench-in-the-wild by 6.39x (from 0.18 image/s to 1.15 image/s) and LLaVA-NeXT-34B (video) on ActivityNet by 5.0x (from 0.02 frame/s to 0.10 frame/s) over the authors' Hugging Face Transformers baseline.
Eliminating Generation Stalls in Co-Located Serving: Sarathi-Serve's Chunked Prefills and Stall-Free Batching
While Orca, vLLM, and SGLang dramatically improved throughput and prefix reuse, any serving system that co-locates prefill and decode iterations on the same GPU pool faces a severe tail-latency vulnerability identified by Amey Agrawal et al. (Georgia Tech and Microsoft Research India) in Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Serve (USENIX OSDI 2024, arXiv:2403.02310v1): Generation Stalls.
1. Why Prefill-Prioritizing Continuous Batchers Induce Multi-Second Generation Stalls
In both Orca and vLLM (Algorithm 2 in arXiv:2403.02310v1), the iteration-level scheduler follows a prefill-prioritizing policy: whenever a running request finishes or GPU memory becomes available, the scheduler eagerly admits waiting requests $B_{\text{new}}$ and executes their full prefill pass before (or merged with) the next decode step of already-running requests.
- In vLLM (Unmixed Prefill/Decode Batches): Because vLLM executes either a pure prefill iteration or a pure decode iteration, admitting a new request with a 4,000-token or 8,000-token prompt completely pauses all ongoing decode streams for the entire duration of the prefill forward pass. As shown in Figure 1(a) of
arXiv:2403.02310v1(Yi-34Bon 2× A100 GPUs serving 128 requests fromarxiv_summarization), this induces repeated generation stalls lasting over several seconds each, causing a user watching a streaming response to see text freeze mid-sentence! - In Orca (Naive Hybrid Batching with Full Prefills): Even if an engine forms a hybrid batch coalescing ongoing decode tokens with a newly arrived full prefill prompt, the iteration duration is dictated by the total token count in the batch. As shown in Figure 8 of
arXiv:2403.02310v1, coalescing a full prefill with an active decode batch causes a catastrophic up to 28.3x increase in TBT latency compared to a decode-only iteration!
2. Exploiting the Arithmetic Intensity Slack: Piggybacking Chunked Prefills onto Decode Batches
Why does Sarathi-Serve succeed where naive hybrid batching fails? Recall the roofline execution profile of linear layers measured in Section 3.2 of arXiv:2403.02310v1: $$\text{Iteration Execution Time } T \approx \max\left(T_{\text{math}},\; T_{\text{mem}}\right)$$ During a decode-only iteration with $B_{\text{decode}} = 32$ or $64$ requests, each request contributes only 1 token ($32$–$64$ tokens total). Because $T_{\text{math}} \ll T_{\text{mem}}$, the GPU's Tensor Cores sit mostly idle waiting for HBM weight reads to finish, leaving a massive arithmetic intensity slack of several hundred tokens (up to the ~200–512 token compute-bound ridge threshold on A100 GPUs) where extra matrix-multiply tokens can be evaluated in the exact same GEMM call with almost zero increase in wall-clock iteration time!
Sarathi-Serve exploits this slack through two tightly coupled mechanisms (Algorithm 3 in arXiv:2403.02310v1, Section 4):
- Chunked-Prefills: Instead of evaluating a 7,059-token prompt in one monolithic multi-second iteration, Sarathi-Serve partitions the input prompt into smaller contiguous token chunks $c_1, c_2, \dots, c_k$ evaluated across consecutive iterations.
- Stall-Free Batching under a Tile-Aligned Token Budget $\tau$: Given the application's target P99 TBT SLO $T_{\max}$, Sarathi-Serve profiles the model once to determine the maximum per-iteration token budget $\tau$ that can be executed without violating $T_{\max}$ (e.g., $\tau = 512$ tokens under strict SLOs and $\tau = 2048$ tokens under relaxed SLOs, or $\tau = 1536$ for LLaMA2-70B TP4-PP2). At the start of every iteration, the scheduler constructs the hybrid batch $B$ in strict priority order: - Step 1 (Zero-Stall Decode Priority): First, pack all currently active decode tokens ($1$ token per request $r \in B_{\text{decode}}$), incrementing the batch token counter $n_t \leftarrow |B_{\text{decode}}|$. Ongoing decodes are never paused or preempted. - Step 2 (In-Progress Prefill Continuation): Next, if an existing request in $B$ has a partially completed chunked prefill, allocate a chunk of size $c \le \tau - n_t$ from its remaining prompt tokens and add $n_t \leftarrow n_t + c$. - Step 3 (New Request Admission within Budget): Finally, while $n_t < \tau$ and KV-cache memory permits, pull new requests from the queue and admit a prefix chunk of size $c \le \tau - n_t$.
3. Hardware Tile-Quantization Effects and KV-Cache Re-Read Overheads
In Section 4.3 of arXiv:2403.02310v1, Agrawal et al. identify two subtle hardware-level constraints that govern the choice of chunk size and token budget $\tau$:
- The GPU Matrix Tile-Quantization Cliff (32% Penalty for 1 Extra Token): GPU GEMM kernels partition matrices into power-of-two threadblock tiles (e.g., $128 \times 128$ or $256 \times 128$). If the total number of batched tokens $n_t$ in an iteration is not a multiple of the GPU tile dimension, an extra wave of partially empty threadblocks must be launched, performing wasted arithmetic. Empirically, Sarathi-Serve demonstrates that using a chunk size of 257 tokens increases prefill computation time by 32% compared to a chunk size of 256 tokens! Consequently, Sarathi-Serve always aligns $\tau$ and chunk boundaries to powers of two (
256,512,1024,2048). - Repeated HBM KV-Cache Reads Across Chunks: When a prompt is split into $N$ chunks, the attention kernel for chunk $k$ must read the KV cache of chunks $1 \dots k-1$ from HBM (meaning chunk 1's KV cache is loaded $N-1$ times, chunk 2's $N-2$ times, etc.), and distributed Tensor Parallelism must invoke NCCL
AllReducecollectives $N$ times instead of once. However, because linear FFN/projection layers dominate total Transformer runtime and experience near-zero chunking overhead at $\tau \ge 512$–$2048$, the net prefill overhead is tiny compared to the massive reduction in tail TBT and pipeline bubbles.
| Evaluated Model & Hardware Topology | Parallelism Strategy | Strict P99 TBT SLO | Relaxed P99 TBT SLO | Sarathi-Serve Capacity Gain & Ablation Highlights (arXiv:2403.02310v1) |
|---|---|---|---|---|
| Mistral-7B (GQA + Sliding Window) | 1× NVIDIA A100 (80GB) | 0.1 s | 0.5 s | Up to 2.6x higher serving capacity overall; 3.2x higher load vs. Orca under strict SLO on openchat_sharegpt4 |
| Yi-34B (GQA) | 2× NVIDIA A100 (160GB, TP2) | 0.2 s | 1.0 s | Up to 2.8x higher serving capacity (2.7x vs. vLLM under relaxed SLO); combined chunking + hybrid batching cuts arxiv_summarization P99 TBT from 1.76s to 0.35s and P50 TTFT from 4.86s to 3.03s |
| LLaMA2-70B (GQA, 8× smaller KV vs. 65B) | 8× NVIDIA A40 (384GB, TP4-PP2) | 1.0 s | 5.0 s | Eliminates uneven prefill pipeline bubbles across 2 pipeline stages using uniform $\tau = 1536$ (relaxed) / $\tau = 512$ (strict) batches |
| Falcon-180B (GQA) | 8× NVIDIA A100 across 2 nodes (640GB, TP4-PP2, 100 Gbps Ethernet) | 1.0 s | 5.0 s | Up to 6.9x increase in end-to-end serving capacity over Orca and vLLM by equalizing micro-batch iteration times across pipeline stages |
Goodput-Optimized Prefill-Decode Disaggregation: DistServe's Phase-Specific Parallelism and Bandwidth-Aware Placement
While Sarathi-Serve mitigates prefill-decode interference on co-located GPUs by chunking prefills, chunking inherently trades away some TTFT performance: splitting a long prompt across multiple decode-coalesced iterations stretches the prefill completion time, and co-locating both phases forces prefill and decode to share the exact same GPU count, hardware type, and model parallelism configuration.
In DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving (Zhong et al., USENIX OSDI 2024, arXiv:2401.09670v3), researchers from Peking University, StepFun, and UC San Diego proved that co-locating prefill and decode fundamentally limits per-GPU Goodput for two structural reasons:
- Inherent TTFT–TPOT Coupling and Chunking Overhead: Even with chunked prefills (as in DeepSpeed-MII or Sarathi-Serve), splitting a prompt to protect TPOT slows down TTFT compared to a dedicated full-prefill pass, and adding prefill tokens to a decode step still increases step latency.
- Incompatible Parallelism Requirements Between Prefill and Decode: Prefill and decode respond completely differently to Intra-Operator Parallelism (Tensor Parallelism, TP) versus Inter-Operator Parallelism (Pipeline Parallelism, PP)!
1. Queueing-Theoretic M/D/1 Proof of Phase-Specific Parallelism (TP vs. PP)
In Section 3.1 of arXiv:2401.09670v3, Zhong et al. model a dedicated prefill instance processing uniform prompts of execution time $D$ (where a single prompt of $L_m = 512$ tokens already saturates an A100 GPU, so requests are served FCFS at batch size 1) under a Poisson arrival rate $R$ (with utilization $RD < 1$) as an M/D/1 queue. Under standard queueing theory, the average TTFT on a single GPU is the sum of execution time and queueing delay:
$$\text{Avg\TTFT}{\text{single}} = D + \frac{R D^2}{2(1 - R D)}$$
Now consider scaling this prefill instance across 2 GPUs using either 2-way Inter-Op (Pipeline Parallelism, PP) or 2-way Intra-Op (Tensor Parallelism, TP):
- Under 2-Way Inter-Op Parallelism (PP): Each stage takes $D_m \approx D/2$ to execute (since inter-layer activation transfer is negligible), while total single-request execution time remains $D_s \approx 2 D_m \approx D$. Substituting $D_m = D/2$ into the M/D/1 queueing delay term yields: $$\text{Avg\TTFT}{\text{inter (PP)}} = D_s + \frac{R D_m^2}{2(1 - R D_m)} = D + \frac{R D^2}{4(2 - R D)}$$
- Under 2-Way Intra-Op Parallelism (TP): Partitioning matrix multiplications across 2 GPUs reduces single-request execution time to $D_s = D / K$, where $1 < K < 2$ is the imperfect speedup factor caused by per-layer
AllReducecommunication overhead. Substituting $D_s = D/K$ into the M/D/1 equation yields: $$\text{Avg\TTFT}{\text{intra (TP)}} = \frac{D}{K} + \frac{R D^2}{2 K (K - R D)}$$
Comparing $\text{Avg\TTFT}{\text{inter (PP)}}$ and $\text{Avg\TTFT}{\text{intra (TP)}}$ reveals a foundational architectural law:
- At low arrival rates $R$ or under stringent TTFT SLOs (such as real-time IDE code completion requiring $\text{TTFT} \le 0.125\text{ s}$), the first term (execution time $D/K$) dominates, making Intra-Op Tensor Parallelism (TP) superior for prefill.
- At high arrival rates $R$ where queueing delay dominates, Inter-Op Pipeline Parallelism (PP) becomes superior because $K < 2$ causes TP's saturation ceiling to be lower than PP's!
- For Decoding Instances (Section 3.2): Once multiple prefill instances feed a dedicated decoding instance, the decoding batch size scales up (e.g., $B = 128$) until it approaches the compute-bound regime. In this large-batch decoding regime, Intra-Op (TP) is used just enough to shrink single-step latency below the strict TPOT SLO with diminishing returns, while Inter-Op (PP) scales decoding throughput almost linearly!
Look at how DistServe's placement search algorithm (Algorithm 1 & Algorithm 2) automatically exploits this asymmetry when serving OPT-175B (350 GB FP16) on the ShareGPT chatbot workload (arXiv:2401.09670v3, Section 6.2):
- For the Prefill Instance, DistServe selects 9 GPUs configured as
inter-op (PP) = 3, intra-op (TP) = 3. - For the Decoding Instance, DistServe selects 12 GPUs configured as
inter-op (PP) = 3, intra-op (TP) = 4.
No co-located serving system (where a single monolith must use identical TP and PP for both phases) can ever express this decoupled topology!
2. Taming the KV-Cache Transmission Bottleneck via Stage-Co-Located NVLink Placement
A common objection to disaggregating prefill and decode onto separate GPUs is the network bandwidth required to transfer the newly computed KV cache after every prefill pass. Let us check the exact math from Section 3.3 of arXiv:2401.09670v3:
- For a single 512-token prompt on OPT-66B (FP16, classic Multi-Head Attention), the KV cache size is approximately 1.13 GB.
- At an arrival rate of 10 requests/second, transferring those KV caches requires 11.3 GB/s (90 Gbps) of sustained network bandwidth. While modern 800 Gbps InfiniBand fabrics handle 90 Gbps effortlessly (High Node-Affinity Cluster, solved by DistServe's
Algorithm 1in $\mathcal{O}(NM^2)$ time—under 1.3 minutes for the largest cluster), many commodity GPU clusters only have 25 Gbps cross-node Ethernet alongside 600 GB/s intra-node NVLink between the 8 A100 GPUs inside each node (Low Node-Affinity Cluster).
How does DistServe serve a 350 GB OPT-175B model when two full instances ($350\text{ GB} \times 2 = 700\text{ GB}$) cannot even fit inside a single 8-GPU node ($8 \times 80\text{ GB} = 640\text{ GB}$)? DistServe's Low Node-Affinity Placement Algorithm (Algorithm 2) observes that KV-cache transfer only occurs between corresponding layers (pipeline stages) of a prefill instance and a decoding instance! By partitioning both the prefill instance and the decoding instance into $S$ inter-op pipeline stages (instance segments) and co-locating stage $s$ of the prefill instance with stage $s$ of the decoding instance on the exact same physical 8-GPU node, 100% of KV-cache transfers travel exclusively across 600 GB/s intra-node NVLink via asynchronous cudaMemcpyAsync, while only lightweight inter-layer hidden state activations cross the 25 Gbps inter-node network!
paired with pull-based KV-cache transmission (where decoding instances pull KV caches on demand using the prefill instance's HBM as a shock-absorbing queue buffer during traffic bursts), DistServe's latency breakdown on OPT-175B (arXiv:2401.09670v3, Section 6.3 & Figure 10) proves that KV-cache transmission accounts for less than 0.1% of total request latency, with over 95% of requests experiencing a transmission delay under 30 milliseconds!
| Application Workload & Dataset | Model & FP16 Weight Size | Target TTFT SLO | Target TPOT SLO | DistServe Per-GPU Goodput & SLO Tightening vs. vLLM & DeepSpeed-MII (arXiv:2401.09670v3) |
|---|---|---|---|---|
Interactive Chatbot (ShareGPT) | OPT-13B (26 GB) / OPT-66B (132 GB) / OPT-175B (350 GB) | 0.25 s (13B) / 2.5 s (66B) / 4.0 s (175B) | 0.10 s (13B) / 0.15 s (66B) / 0.20 s (175B) | 2.0x–4.6x higher request rate and 1.8x–3.2x tighter SLO than vLLM; 1.6x–7.4x higher request rate and 1.7x–1.8x tighter SLO than DeepSpeed-MII (at $\ge 90\%$ SLO attainment) |
Real-Time Code Completion (HumanEval) | OPT-66B (132 GB) | 0.125 s (125 ms) | 0.20 s | 5.7x higher request rate and 1.4x tighter SLO than vLLM; 1.6x higher request rate and 1.4x tighter SLO than DeepSpeed-MII |
Long-Document Summarization (LongBench) | OPT-66B (132 GB) | 15.0 s | 0.15 s | 4.3x higher request rate and 12.6x more stringent SLO than vLLM; 1.8x higher request rate and 2.6x tighter SLO than DeepSpeed-MII |
Hardware-Heterogeneous Phase Splitting and Power Capping: Splitwise Across H100 and A100 Tiers
While DistServe focused on homogeneous GPU clusters (NVIDIA A100-80GB nodes), Pratyush Patel et al. (University of Washington and Microsoft Azure Research) asked a deeper hardware-economics question in Splitwise: Efficient Generative LLM Inference Using Phase Splitting (ISCA 2024, arXiv:2311.18677v2): do the prompt computation phase and the token generation phase even belong on the same generation of GPU silicon or under the same power envelope?
1. The Diverging Silicon Scaling Ratio Between NVIDIA A100 and H100
Look at the architectural comparison between DGX-A100 and DGX-H100 documented in Table I and Table IV of arXiv:2311.18677v2:
| Hardware / Economic Metric | NVIDIA DGX-A100 | NVIDIA DGX-H100 | H100 / A100 Scaling Ratio | Architectural Impact on LLM Inference Phases (arXiv:2311.18677v2) |
|---|---|---|---|---|
| Compute Throughput (Base TFLOPs metric) | 19.5 TFLOPs | 66.9 TFLOPs | 3.43x | Accelerates compute-bound Prompt TTFT nearly 2x on Llama-70B (185ms $\to$ 95ms coding, 0.51x; 155ms $\to$ 84ms conversation, 0.54x) |
| HBM Capacity per GPU | 80 GB | 80 GB | 1.00x (No gain) | Identical maximum KV-cache batch capacity ($B_{\max} \approx 64$) during the Token Generation phase |
| HBM Memory Bandwidth | 2,039 GB/s | 3,352 GB/s | 1.64x | Reduces memory-bound Token TBT by only 0.70x (52ms $\to$ 31ms coding; 40ms $\to$ 28ms conversation)—less than half the compute scaling rate! |
| Thermal Design Power (TDP) | 400 W | 700 W | 1.75x | Token phase leaves H100 power budget severely underutilized; 50% GPU power cap (700W $\to$ 350W) causes near-zero TBT penalty! |
| Back-End InfiniBand / NVLink | 200 Gbps IB / 50 Gbps NVL | 400 Gbps IB / 100 Gbps NVL | 2.00x | Enables ~5ms (H100) to ~8ms (A100) non-overlapped layer-wise KV-cache transfers via MSCCL++ |
| Cloud Instance Cost | $17.60 / hr | $38.00 / hr | 2.16x | Running unbatched Llama-70B conversation on H100 costs 1.5x more per query ($3.6 vs. $2.4) and 1.2x more energy (9.4 Whr vs. 7.9 Whr) than A100 |
This hardware characterization reveals seven critical production insights (Insights I–VII in arXiv:2311.18677v2, Section III):
- In standard mixed continuous batching on production Azure traces, machines spend 60%–70% of their wall-clock time running 20 active batched tokens or fewer in conversation (and run with just 1 active token for >20% of the time in coding!).
- Because H100's compute scaled by 3.43x and cost scaled by 2.16x while HBM bandwidth scaled by only 1.64x and HBM capacity remained stagnant at 80 GB (1.00x), running the memory-bound token generation phase on uncapped H100 GPUs wastes both capital expenditure (
Perf/$) and datacenter power capacity (Perf/W). - Most remarkably, when Patel et al. applied hardware power caps to DGX-H100 GPUs (Section III-F, Figure 9), the compute-intensive prompt phase suffered severe latency degradation, whereas the token generation phase incurred almost zero latency impact even when capping GPU power by over 50% (from 700W down to 350W per GPU, or 70% total machine power)!
2. Splitwise Architecture: Prompt, Token, and Elastic Mixed Pools with Layer-Wise MSCCL++ Transfers
Splitwise (arXiv:2311.18677v2, Section IV) partitions an inference cluster into three dynamically managed machine pools orchestrated by a two-level hierarchy—a Cluster-Level Scheduler (CLS) using Join-the-Shortest-Queue (JSQ) routing and a Machine-Level Scheduler (MLS):
- The Prompt Pool: Dedicated to running parallel prompt prefill passes (capped at
2,048batched prompt tokens by the MLS so prefill throughput never degrades). - The Token Pool: Dedicated to running large-batch continuous decoding up to HBM capacity limits without ever being interrupted by incoming prefill spikes.
- The Elastic Mixed Pool: To prevent static pool fragmentation under heavy load spikes, if either the Prompt Pool or Token Pool queue exceeds a threshold, the CLS temporarily transitions a machine into the Mixed Pool (running mixed continuous batching with age-prioritized preemption protection) and returns it to its native pool once the overflow drains.
- Layer-Wise Asynchronous KV-Cache Transfer via MSCCL++: When the prompt length is small ($< 512$ tokens on H100), Splitwise transfers the KV cache serially after prefill finishes. For larger prompts ($\ge 512$ tokens), Splitwise overlaps KV-cache transmission with prompt computation layer by layer: as soon as layer $l$ finishes computing its KV cache on the Prompt Machine, Splitwise invokes a zero-copy, one-sided RDMA
putprimitive in MSCCL++ over InfiniBand directly into the Token Machine's HBM without requiring the Token Machine to issue receive instructions, signaling completion via an InfiniBand semaphore after the final layer! - As measured in Section VI-A (Figures 14 & 15), layer-wise overlapping reduces the visible non-overlapped transfer time to a constant ~8 ms on DGX-A100 (200 Gbps InfiniBand) and ~5 ms on DGX-H100 (400 Gbps InfiniBand)—accounting for just 0.8% of end-to-end latency (versus 3% for serialized transfer) and adding only 16.5% latency to the second generated token (versus 64% for serialized transfer).
Using this architecture, Splitwise evaluates four cluster provisioning topologies (Table V & Section VI-B/C):
Splitwise-AA(Homogeneous DGX-A100 Prompt + DGX-A100 Token): Delivers 2.15x more throughput thanBaseline-A100at the exact same power and cost, 1.4x more throughput thanBaseline-H100at the same cost (or 1.4x higher throughput at 20% lower cost / 2.35x more throughput under identical cost and power budgets across optimized configurations), and achievesBaseline-H100iso-throughput at 25% lower cost.Splitwise-HA(Heterogeneous DGX-H100 Prompt + DGX-A100 Token): Pairs H100's 3.43x compute density for fast prompt TTFT with A100's superior memory-bandwidth-per-dollar for token decoding, achieving 1.18x higher throughput at 10% lower cost and identical power while maintaining low TTFT and TBT.Splitwise-HHcap(DGX-H100 Prompt + Power-Capped DGX-H100 Token at 70% machine / 50% GPU power): Achieves the exact same throughput as uncappedBaseline-H100at 25% lower datacenter power and identical cost and rack space (or 1.76x better throughput with 15% lower power at the same cost).
KVCache-Centric Disaggregated Clusters at Hyperscale: Mooncake's RDMA Pool, Chunked Pipeline Parallelism, and Overload Early Rejection
In 2025–2026, as context windows expanded from 8K to 128K–1M+ tokens and commercial Model-as-a-Service (MaaS) platforms faced extreme peak-hour traffic surges, prefill-decode disaggregation evolved one step further. In Mooncake: A KVCache-centric Disaggregated Architecture for LLM Serving (Qin et al., Moonshot AI & Tsinghua University, USENIX FAST 2025 Best Paper, arXiv:2407.00079v2)—the production serving architecture powering Moonshot AI's Kimi service—the authors demonstrated that scheduling the KV cache itself as a disaggregated, cluster-wide first-class storage tier is the central problem of long-context LLM serving.
1. Three-Tier Disaggregation: Prefill Pool, Decoding Pool, and the Messenger GPUDirect RDMA KVCache Pool
In standard GPU servers (such as DGX/HGX nodes), hundreds of gigabytes of host CPU DRAM, local NVMe SSDs, and multi-hundred-gigabit RDMA NICs sit largely underutilized while GPU HBM (VRAM) is completely saturated. Mooncake (arXiv:2407.00079v2, Section 3 & Figure 1) restructures the cluster into three collaborative layers coordinated by a global scheduler named Conductor:
- Disaggregated CPU DRAM / SSD Paged KVCache Pool &
Messenger: Every node stores reusable KV-cache blocks in host CPU DRAM (and lower-tier SSDs) as paged blocks indexed by a recursive cryptographic prefix hash (PrefixHash(prompt_tokens, B), where each block's hash depends on its own tokens concatenated with its parent block's hash for exact prefix deduplication). Cross-node and CPU-to-GPU transfers are executed by an independent per-node GPUDirect RDMA daemon named Messenger. - Multi-Node Prefill Pool with Chunked Pipeline Parallelism (CPP) and Layer-Wise Prefill Streaming: - Why not inline chunked prefills into decoding nodes as in Sarathi-Serve? In Section 4 of
arXiv:2407.00079v2, Qin et al. explain two critical reasons why long-context serving ($10\times$ to $100\times$ more input tokens than output tokens) requires dedicated prefill nodes: - First, processing a 128K-token prompt within TTFT SLOs requires multi-node parallelism. Extending Tensor Parallelism (TP) across nodes incurs two expensive RDMAAllReducecollectives per layer, while Ring/Striped Sequence Parallelism (SP) still requires cross-node ring communication once per layer and complex elastic process-group resizing. Mooncake instead groups every $X$ prefill nodes into a Chunked Pipeline Parallelism (CPP) group: a long prompt is split into chunks of size $\le \text{prefill\_chunk}$ (typically $> 1,000$ tokens to saturate GPU compute), and different chunks of the same request are pipelined simultaneously across different nodes, requiring cross-node transfer only at pipeline stage boundaries! - Second, VRAM Occupation Cost ($S \times T$): If a request's KV cache has size $S$ and resides in GPU VRAM for duration $T$, its memory occupation cost is $S \times T$. Inlining chunked prefills into a decoding batch stretches $T$ and bloats VRAM occupation. Instead, Mooncake's Layer-Wise Prefill (Section 4.2) asynchronously loads layer $l+1$'s reusable prefix KV cache from CPU DRAM vialaunch/waitstreams while computing layer $l$'s attention, and immediately streams layer $l$'s newly computed KV cache out of GPU VRAM into remote decoding node DRAM viaMessengeras soon as layer $l$ finishes! Because KV states are streamed out layer-by-layer, prefill node scheduling is completely freed from GPU VRAM capacity limits as long as a single request fits in VRAM.
2. Conductor's KVCache-Centric Global Scheduling and Hot-Spot Migration (Algorithm 1)
When a new request $R$ arrives at Conductor (Algorithm 1 in arXiv:2407.00079v2, Section 5.1), routing it simply to the prefill node with the longest cached prefix (best_prefix_len) can overload a single "hot" node holding a popular system prompt or shared document, violating TTFT SLOs due to queueing delay $T_{\text{queue}}$. Conversely, routing it to an idle node with zero cached prefix forces full prefill recomputation.
Conductor resolves this by evaluating every candidate prefill instance $p \in P$ using an explicit latency-cost objective:
- It computes
block_keys = PrefixHash(R.prompt_tokens, B)and finds both the local prefix match length $p.\text{prefix\_len}$ on each instance $p$ and the cluster-wide maximum match $(\text{best\_prefix\_len}, \text{best\_matched\_instance})$. - If the ratio $\frac{\text{best\prefix\_len}}{p.\text{prefix\_len}}$ is below a balancing threshold (
kvcache_balancing_threshold), Conductor estimates: $$\text{TTFT}(p) = T{\text{queue}}(p) + T_{\text{prefill}}\left(\text{len}(R),\; p.\text{prefix\_len}\right)$$ - Otherwise—if another node holds a substantially longer prefix match—Conductor calculates the cost of migrating/replicating the missing prefix KV blocks ($\text{transfer\len} = \text{best\_prefix\_len} - p.\text{prefix\_len}$) across GPUDirect RDMA from
best_matched_instanceto $p$: $$\text{TTFT}{\text{migrated}}(p) = T_{\text{transfer}} + T_{\text{queue}}(p) + T_{\text{prefill}}\left(\text{len}(R),\; \text{best\_prefix\_len}\right)$$ - Conductor assigns the request to the prefill instance $p^*$ that minimizes total predicted TTFT and automatically triggers hot-spot KVCache replication (
TransferKVCache(best_matched_instance, p^*)) when beneficial, diffusing hot prefixes across the cluster without requiring oracle predictions of future queries!
3. Overload-Oriented Scheduling and Prediction-Based Early Rejection
Unlike academic benchmarks that assume cluster capacity always exceeds incoming traffic, commercial MaaS platforms routinely face severe traffic overloads where requests must be rejected via HTTP 429 Too Many Requests (arXiv:2407.00079v2, Section 6).
In a disaggregated cluster, a naive admission policy checks whether the decoding pool has room only after the prefill phase finishes (or checks current instantaneous load before prefill). Why does that fail?
- Because prefill takes time, a decoding node that looked under-loaded when Request $R$ started prefill may be completely saturated by the time Request $R$ finishes prefill and transfers its KV cache! If the decoding node's local scheduler rejects Request $R$ at step 4 to protect its
TBT_SLO, 100% of the GPU compute and RDMA bandwidth spent prefilling Request $R$ is wasted. - Furthermore, naive threshold-based Early Rejection (rejecting incoming requests before prefill based on current decoding batch load) induces severe load oscillation (fluctuation): when decoding load is high, Conductor rejects a wave of incoming requests; a few seconds later, when those rejected requests would have entered the decoding pool, decoding utilization plunges into a trough, causing Conductor to over-admit the next wave!
Mooncake solves both wasted prefill compute and load oscillation via Early Rejection Based on Prediction (Section 6.4): Conductor forecasts the future token generation length of active requests and predicts the decoding pool's load trajectory over the upcoming prefill window before admitting a request to the prefill pool.
Look at the empirical impact measured in Mooncake's evaluation (arXiv:2407.00079v2, Section 7):
- Simulated Long-Context Workloads (Section 7.1.2): Comparing
Mooncake-[3P+1D]andMooncake-[2P+2D]againstvLLM-[4M](4 GPUs/instances total), where long-context prefills force co-located vLLM to process requests individually to avoid breaking TBT SLOs, Mooncake achieves 50% to 525% higher throughput under identical TTFT and TBT SLO constraints. - 20-Node Production Trace Replay (Section 7.1.3): Comparing 10 prefill + 10 decoding instances (
Mooncake-[10P+10D]) against 20 co-located vLLM instances (vLLM-[20M]) on real Kimi request traces under a30 sTTFT SLO and0.1 s/tokenTBT SLO: while both systems meet the TTFT SLO on ~100% of requests, only 57% of requests invLLM-[20M]satisfy the0.1 sTBT SLO (due to prefill-decode interference spikes), whereasMooncake-[10P+10D]achieves ~100% TBT SLO attainment and processes approximately 75% more requests! - Overload Early Rejection Benchmark (Section 7.2, Table 2): On an 8 prefill + 8 decoding instance Mooncake cluster replaying 23,000 real requests at 2x speed, prediction-based early rejection cuts the total number of rejected requests from 4,183 (Baseline post-prefill/naive rejection) down to 3,771 (Early Rejection) and 3,589 (Early Rejection based on Prediction)—recovering 594 additional completed user requests from the exact same overloaded hardware by eliminating wasted prefill cycles and smoothing load oscillations.
Reference Implementation: Prefix Radix-Tree Matcher & Stall-Free Hybrid Batch Scheduler in Python
To illustrate how SGLang's RadixAttention cache-aware scheduler (Algorithm 1 in arXiv:2312.07104v2) and Sarathi-Serve's stall-free chunked-prefill scheduler (Algorithm 3 in arXiv:2403.02310v1) operate inside an inference engine, the following self-contained Python reference implementation models both algorithms with strict immutability and full type annotations:
from __future__ import annotations
from dataclasses import dataclass, field
from typing import Dict, List, Optional, Tuple
@dataclass
class RadixNode:
"""CPU-side radix tree node tracking paged KV-cache prefix slices (SGLang RadixAttention)."""
edge_tokens: Tuple[int, ...] = ()
children: Dict[int, "RadixNode"] = field(default_factory=dict)
ref_counter: int = 0
last_access_step: int = 0
parent: Optional["RadixNode"] = None
@property
def cached_token_count(self) -> int:
return len(self.edge_tokens)
class RadixCacheTree:
"""Space-efficient radix tree with reference counting and leaf-first LRU eviction."""
def __init__(self) -> None:
self.root = RadixNode()
self.step_clock: int = 0
def match_prefix(self, tokens: Tuple[int, ...]) -> Tuple[RadixNode, int]:
"""Return (deepest_matched_node, matched_token_length) along the radix tree."""
self.step_clock += 1
curr = self.root
curr.last_access_step = self.step_clock
matched_len = 0
idx = 0
while idx < len(tokens) and tokens[idx] in curr.children:
child = curr.children[tokens[idx]]
edge = child.edge_tokens
common = 0
while (
common < len(edge)
and idx + common < len(tokens)
and edge[common] == tokens[idx + common]
):
common += 1
if common < len(edge):
# Split edge on partial match (SGLang Figure 3 step 4/7)
split_node = RadixNode(
edge_tokens=edge[:common],
children={edge[common]: child},
ref_counter=child.ref_counter,
last_access_step=self.step_clock,
parent=curr,
)
child.edge_tokens = edge[common:]
child.parent = split_node
curr.children[tokens[idx]] = split_node
matched_len += common
return split_node, matched_len
curr = child
curr.last_access_step = self.step_clock
matched_len += common
idx += common
return curr, matched_len
@dataclass(frozen=True)
class ServingRequest:
"""Immutable snapshot of an active or waiting LLM inference request."""
request_id: str
prompt_tokens: Tuple[int, ...]
prefilled_tokens: int = 0
generated_tokens: int = 0
max_new_tokens: int = 64
@property
def is_prefill_complete(self) -> bool:
return self.prefilled_tokens >= len(self.prompt_tokens)
@property
def remaining_prefill(self) -> int:
return max(0, len(self.prompt_tokens) - self.prefilled_tokens)
def schedule_stall_free_iteration(
active_batch: Tuple[ServingRequest, ...],
waiting_queue: Tuple[ServingRequest, ...],
token_budget: int = 512,
tile_size: int = 64,
) -> Tuple[List[Tuple[str, str, int]], Tuple[ServingRequest, ...], Tuple[ServingRequest, ...]]:
"""Sarathi-Serve Algorithm 3: Stall-free batching with tile-aligned chunked prefills.
Priority 1: Pack 1 decode token for every request that has finished prefill.
Priority 2: Pack next chunk for any in-progress chunked prefill request.
Priority 3: Admit new requests from waiting_queue within leftover token_budget.
"""
scheduled_ops: List[Tuple[str, str, int]] = []
updated_batch: List[ServingRequest] = []
batch_num_tokens = 0
# 1. Pack all ongoing decode requests first (zero generation stalls)
for req in active_batch:
if req.is_prefill_complete:
batch_num_tokens += 1
scheduled_ops.append((req.request_id, "decode", 1))
updated_batch.append(
ServingRequest(
request_id=req.request_id,
prompt_tokens=req.prompt_tokens,
prefilled_tokens=req.prefilled_tokens,
generated_tokens=req.generated_tokens + 1,
max_new_tokens=req.max_new_tokens,
)
)
# 2. Allocate leftover budget to partially completed prefills in active_batch
for req in active_batch:
if not req.is_prefill_complete:
available = max(0, token_budget - batch_num_tokens)
aligned_chunk = min(req.remaining_prefill, (available // tile_size) * tile_size)
if aligned_chunk > 0:
batch_num_tokens += aligned_chunk
scheduled_ops.append((req.request_id, "prefill_chunk", aligned_chunk))
updated_batch.append(
ServingRequest(
request_id=req.request_id,
prompt_tokens=req.prompt_tokens,
prefilled_tokens=req.prefilled_tokens + aligned_chunk,
generated_tokens=req.generated_tokens,
max_new_tokens=req.max_new_tokens,
)
)
else:
updated_batch.append(req)
# 3. Admit new requests from waiting_queue up to token_budget
remaining_queue = list(waiting_queue)
while remaining_queue and batch_num_tokens < token_budget:
available = token_budget - batch_num_tokens
candidate = remaining_queue[0]
aligned_chunk = min(candidate.remaining_prefill, (available // tile_size) * tile_size)
if aligned_chunk <= 0:
break
remaining_queue.pop(0)
batch_num_tokens += aligned_chunk
scheduled_ops.append((candidate.request_id, "new_prefill_chunk", aligned_chunk))
updated_batch.append(
ServingRequest(
request_id=candidate.request_id,
prompt_tokens=candidate.prompt_tokens,
prefilled_tokens=aligned_chunk,
generated_tokens=0,
max_new_tokens=candidate.max_new_tokens,
)
)
return scheduled_ops, tuple(updated_batch), tuple(remaining_queue)Architectural Decision Matrix: Selecting an LLM Serving Topology in 2026
Choosing between co-located stall-free serving, prefix-tree runtime caching, and physical prefill-decode disaggregation depends on three concrete deployment parameters: cluster scale and interconnect bandwidth, prompt-to-output length ratios, and prefix sharing density.
- Single-Node or Small-Cluster Deployments (1 to 8 GPUs) with Long Prompts and Strict Streaming TBT SLOs: - Recommended Architecture: Enable Sarathi-Serve Stall-Free Chunked Prefills (
arXiv:2403.02310, now integrated across vLLM and TensorRT-LLM) with a power-of-two tile-aligned token budget ($\tau = 512$ for strict interactive P99 TBT $\le 0.1\text{s}$–$0.2\text{s}$, or $\tau = 1536$–$2048$ for relaxed TBT). - Why: When GPU count is too small to dedicate separate multi-GPU pools to prefill and decode, stall-free chunked prefill eliminates multi-second generation stalls and pipeline bubbles while boosting serving capacity by 2.6x to 6.9x. - Agentic Workflows, Multi-Turn Chat, Tree Search, Few-Shot Pipelines, and Structured JSON Extraction: - Recommended Architecture: Deploy SGLang Runtime (
SRT) with RadixAttention and Compressed FSM Decoding (arXiv:2312.07104). - Why: When requests share system prompts, few-shot examples, RAG contexts, or tree-search ancestors, RadixAttention's CPU-managed LRU radix tree and longest-shared-prefix-first scheduling eliminate 50%–99% of redundant prefill compute with < 0.3% tree overhead, while Compressed FSM jump-forward decoding accelerates schema-constrained JSON generation by 1.6x (and up to 6.4x end-to-end throughput). - Multi-Node Homogeneous GPU Clusters (8 to 64+ GPUs) with Stringent Dual TTFT & TPOT SLOs: - Recommended Architecture: Deploy DistServe Prefill-Decode Disaggregation (
arXiv:2401.09670) usingAlgorithm 1on InfiniBand clusters orAlgorithm 2(stage-co-located intra-node 600 GB/s NVLink placement) on Ethernet-connected nodes. - Why: Disaggregation eliminates prefill-decode contention completely and unlocks asymmetric parallelism (e.g., higher intra-op TP on prefill for fast TTFT, combined with large-batch inter-op PP on decode for high TPOT goodput), serving up to 7.4x more requests or 12.6x tighter SLOs with < 0.1% KV-cache transfer latency. - Hyperscale / Multi-Generation Datacenters and Long-Context (128K–1M) MaaS Platforms under Overload: - Recommended Architecture: Combine Splitwise Heterogeneous Phase Splitting / Power Capping (
arXiv:2311.18677) with Mooncake's KVCache-Centric Disaggregated RDMA Architecture (arXiv:2407.00079). - Why: Assigning prompt pools to compute-dense H100s while running token decode pools on cost-efficient A100s (Splitwise-HA) or 50% power-capped H100s (Splitwise-HHcap) yields up to 2.35x iso-power/iso-cost throughput or 25% power savings. Pooling cluster-wide CPU DRAM and NVMe SSDs via GPUDirect RDMA (Messenger) alongsideConductor's prefix-aware hot-spot migration, Chunked Pipeline Parallelism (CPP), layer-wise prefill streaming, and prediction-based early overload rejection delivers up to 525% higher long-context throughput and 75% more requests on real production workloads.
Frequently Asked Questions (FAQ) on LLM Inference Serving Systems
1. Why does naive continuous batching in vLLM or Orca cause multi-second generation stalls during streaming output? Because first-generation iteration-level schedulers (arXiv:2403.02310, Algorithm 2) follow a prefill-prioritizing policy to maximize downstream decode batch size. Whenever memory becomes free, they eagerly schedule the full prefill phase of newly arrived requests before resuming ongoing decode iterations. When a new request arrives with a 4,000-to-12,000-token prompt (such as in arxiv_summarization, median 7,059 tokens), computing its full prefill takes several seconds, pausing every active user's streaming decode output (or inflating TBT by up to 28.3x in unchunked hybrid batches). Sarathi-Serve eliminates these stalls by chunking prompts and packing ongoing decode tokens first within a fixed per-iteration token budget $\tau$.
2. How does SGLang's RadixAttention differ from vLLM's PagedAttention? PagedAttention (arXiv:2309.06180) is a memory layout mechanism that partitions each request's KV cache into non-contiguous physical HBM pages to eliminate internal/external fragmentation (reducing waste from 60%–80% to < 4%), but in standard vLLM a request's KV pages are freed as soon as generation completes. RadixAttention (arXiv:2312.07104) layers a CPU-managed LRU radix tree on top of 1-token paged KV memory: instead of freeing finished KV pages, it retains both prompt and generated KV blocks in the radix tree with reference counting (ref_counter) and leaf-first LRU eviction, automatically sharing arbitrary multi-level prefixes across multi-turn chats, tree searches, and agent forks while sorting waiting requests in longest-shared-prefix-first (DFS) order.
3. Why does changing a chunked-prefill size from 256 tokens to 257 tokens increase prefill execution time by 32%? Because of the GPU matrix tile-quantization effect documented in Sarathi-Serve (arXiv:2403.02310, Section 4.3). GPU Tensor Core GEMM kernels divide activation and weight matrices into fixed power-of-two tiles (such as $128 \times 128$ or $256 \times 128$) assigned to parallel threadblocks. When a batch contains exactly 256 tokens, all launched threadblocks are 100% utilized. Adding a 257th token forces the GPU to schedule an extra wave of threadblocks that compute almost entirely on padded zeros, increasing prefill latency by 32%. Consequently, production chunked-prefill schedulers always enforce power-of-two tile alignment on total batch tokens $n_t$.
4. Why can token decoding GPUs be power-capped by 50% (from 700W to 350W on H100) with almost zero latency degradation? As demonstrated in Splitwise (arXiv:2311.18677, Section III-F, Figures 8 & 9), the prompt prefill phase is compute-bound and drives GPU Tensor Cores near their 700W Thermal Design Power (TDP), making prefill latency highly sensitive to clock throttling under power caps. By contrast, the autoregressive token generation phase is strictly memory-bandwidth-bound (streaming weights and KV caches from HBM at low arithmetic intensity). Because Tensor Core math units sit mostly idle waiting on HBM transfers during decoding, capping each H100 GPU in the Token Pool by 50% (from 700W to 350W) incurs virtually zero TBT latency penalty while cutting cluster provisioned power by 25% (Splitwise-HHcap).
5. How do disaggregated serving systems transfer multi-gigabyte KV caches from prefill GPUs to decode GPUs without adding latency spikes? They use three complementary techniques across DistServe, Splitwise, and Mooncake:
- Stage-Co-Located Intra-Node NVLink Placement (DistServe
Algorithm 2): On clusters without fast cross-node InfiniBand, DistServe co-locates pipeline stage $s$ of the prefill instance with pipeline stage $s$ of the decoding instance inside the same 8-GPU node, routing all KV transfers across 600 GB/s NVLink (< 0.1% of total latency, < 30ms for > 95% of OPT-175B requests). - Layer-Wise Asynchronous Computation Overlapping (Splitwise & Mooncake): Rather than waiting for all $L$ layers of prefill to finish before starting the network transfer, the prefill node triggers an asynchronous one-sided RDMA
put(via MSCCL++ in Splitwise or Messenger GPUDirect RDMA in Mooncake) for layer $l$'s KV cache while the GPU computes layer $l+1$, leaving only ~5ms (H100) to ~8ms (A100) of non-overlapped latency.
6. Why does naive early request rejection cause load oscillations during traffic overloads, and how does Mooncake fix it? In a disaggregated architecture (arXiv:2407.00079, Section 6.3), a request admitted to the prefill pool does not reach the decoding pool until its prefill pass completes. If the global scheduler (Conductor) admits or rejects incoming requests based solely on the decoding pool's instantaneous load, a temporary spike in decoding load causes Conductor to reject a large wave of incoming requests prior to prefill. Seconds later, when that rejected wave would have transitioned into decoding, the decoding pool starves and drops to low utilization—prompting Conductor to over-admit the next wave. Mooncake resolves this oscillation by predicting each active request's output generation length and forecasting the decoding pool's future load over the prefill window (Early Rejection Based on Prediction), reducing rejected requests from 4,183 to 3,589 on a 23,000-request 2x overload trace.
Primary Sources & Technical References
- Yu, G.-I., Jeong, J. S., Kim, G.-W., Kim, S., & Chun, B.-G. (2022). Orca: A Distributed Serving System for Transformer-Based Generative Models. In Proceedings of the 16th USENIX Symposium on Operating Systems Design and Implementation (OSDI '22), pp. 521–538. https://www.usenix.org/conference/osdi22/presentation/yu
- Zheng, L., Yin, L., Xie, Z., Sun, C., Huang, J., Yu, C. H., Cao, S., Kozyrakis, C., Stoica, I., Gonzalez, J. E., Barrett, C., & Sheng, Y. (2024). SGLang: Efficient Execution of Structured Language Model Programs. Advances in Neural Information Processing Systems (NeurIPS 2024), arXiv:2312.07104v2. https://arxiv.org/abs/2312.07104 and https://arxiv.org/html/2312.07104v2
- Agrawal, A., Kedia, N., Panwar, A., Mohan, J., Kwatra, N., Gulavani, B. S., Tumanov, A., & Ramjee, R. (2024). Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Serve. In Proceedings of the 18th USENIX Symposium on Operating Systems Design and Implementation (OSDI '24), arXiv:2403.02310v1. https://arxiv.org/abs/2403.02310 and https://arxiv.org/html/2403.02310v1
- Zhong, Y., Liu, S., Chen, J., Hu, J., Zhu, Y., Liu, X., Jin, X., & Zhang, H. (2024). DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving. In Proceedings of the 18th USENIX Symposium on Operating Systems Design and Implementation (OSDI '24), arXiv:2401.09670v3. https://arxiv.org/abs/2401.09670 and https://arxiv.org/html/2401.09670v3
- Patel, P., Choukse, E., Zhang, C., Shah, A., Goiri, Í., Maleki, S., & Bianchini, R. (2024). Splitwise: Efficient Generative LLM Inference Using Phase Splitting. In Proceedings of the 51st Annual International Symposium on Computer Architecture (ISCA 2024), arXiv:2311.18677v2. https://arxiv.org/abs/2311.18677 and https://arxiv.org/html/2311.18677v2
- Qin, R., Li, Z., He, W., Zhang, M., Wu, Y., Zheng, W., & Xu, X. (2025). Mooncake: A KVCache-centric Disaggregated Architecture for LLM Serving. In Proceedings of the 23rd USENIX Conference on File and Storage Technologies (FAST '25 Best Paper), arXiv:2407.00079v2. https://arxiv.org/abs/2407.00079 and https://arxiv.org/html/2407.00079v2
- Kwon, W., Li, Z., Zhuang, S., Sheng, Y., Zheng, L., Yu, C. H., Gonzalez, J. E., Zhang, H., & Stoica, I. (2023). Efficient Memory Management for Large Language Model Serving with PagedAttention. In Proceedings of the 29th Symposium on Operating Systems Principles (SOSP '23), pp. 611–626, arXiv:2309.06180. https://arxiv.org/abs/2309.06180