Before you start: words you need#
| Word | Plain meaning |
|---|---|
| Disaggregation | Running prefill and decode on different GPUs (or machines), and moving each request’s KV cache from the first to the second (14.j). |
| Colocation | The usual setup: the same GPUs do both prefill and decode, often in the same batch. |
| Interference | Prefill and decode slowing each other down when they share a GPU. A long prefill stalls everyone’s next token; many decodes slow a new prefill. |
| TTFT | Time to first token: mostly the prefill (2.c). |
| TPOT / TBT | Time per output token, or time between tokens: the decode pace (DistServe says TPOT, Splitwise says TBT). |
| SLO / SLO attainment | A latency target, and the fraction of requests that meet it (23.a). |
| Goodput | Requests per second served while meeting the SLOs for a target share (say 90%) of requests. Throughput that misses the SLO does not count. |
| Power cap | A limit set on how many watts a GPU may draw; the GPU slows down to stay under it. |
1. The paper#
Two papers, written independently, with the same core idea and different emphasis:
- Splitwise — Pratyush Patel, Esha Choukse, Chaojie Zhang, Aashaka Shah, Íñigo Goiri, Saeed Maleki, Ricardo Bianchini (University of Washington, Microsoft), “Splitwise: Efficient Generative LLM Inference Using Phase Splitting”, ISCA 2024 (arXiv November 2023). arXiv:2311.18677
- DistServe — Yinmin Zhong, Shengyu Liu, Junda Chen, Jianbo Hu, Yibo Zhu, Xuanzhe Liu, Xin Jin, Hao Zhang (Peking University, StepFun, UC San Diego), “DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving”, OSDI 2024 (arXiv January 2024). arXiv:2401.09670
Splitwise is a cloud-provider view (cost, power, hardware choice). DistServe is a systems view (latency SLOs, goodput, parallelism per phase).
2. The problem#
Prefill and decode are different workloads (12.c, 30.j):
| Prefill | Decode | |
|---|---|---|
| Bound by | compute | memory bandwidth and capacity |
| Latency metric | TTFT | TPOT / TBT |
| Likes | big tensor cores, high power | lots of HBM, big batches |
Continuous batching (30.g) puts both in one batch on the same GPUs. That causes interference: DistServe shows that adding a single 512-token prefill to a batch of decodes noticeably slows every decode step, and decodes slow prefills too. To meet both a TTFT and a TPOT target, operators over-provision GPUs.
It also couples resources: one tensor-parallel degree, one batch policy and one GPU type must serve two phases that would each prefer something different.
Splitwise adds the hardware angle with production traces from two Azure LLM services (coding and conversation): decode leaves an H100’s compute mostly idle and barely slows when the GPU is power-capped by 50%, while prefill slows sharply.
3. The idea#
Run prefill and decode on separate pools of GPUs, and ship the KV cache between them.
- A request goes to a prefill instance, which computes the prompt’s KV cache and the first token.
- The KV cache is transferred to a decode instance, which generates the rest.
- Each pool is sized, parallelised and (in Splitwise) even chosen from different hardware independently.
flowchart LR R["Request"] --> S["Scheduler"] S --> P["Prefill pool: compute-heavy, TP for low TTFT"] P -- "KV cache over NVLink / InfiniBand (layer by layer)" --> D["Decode pool: big batches, memory-heavy"] D --> O["Streamed tokens"] class R,O io class S neutral class P,D compute
What each paper added on top:
- Splitwise: heterogeneous clusters (H100 for prefill, A100 or power-capped H100 for decode); a mixed pool that machines move into when one side is overloaded; layer-wise KV transfer overlapped with prefill compute, so most of the transfer is hidden.
- DistServe: optimise per-GPU goodput under both SLOs; a placement algorithm that searches the parallelism (tensor and pipeline) and number of instances for each phase separately, with a variant for clusters with slow cross-node links that keeps each prefill–decode pair inside one NVLink node.
4. How it works#
Transfer cost. The KV cache to move is proportional to prompt length (12.f). Splitwise’s measurements show that over InfiniBand a naive transfer becomes a significant fraction of one token’s time for long prompts; sending each layer’s KV as soon as it is computed overlaps almost all of it. DistServe computes, for example, about 1.13 GB of KV for one 512-token OPT-66B request, and argues that over NVLink (600 GB/s on A100) the transfer is negligible — so it places the matching prefill and decode GPUs inside the same node when the inter-node network is slow.
Sizing (DistServe). Model each phase as a queue. For prefill, more parallelism cuts TTFT; for decode, larger batches raise throughput until TPOT hits its limit. Search configurations with a simulator, pick the one with the highest goodput per GPU, then replicate to meet the load.
Provisioning (Splitwise). Search the space of (number of prompt machines, number of token machines, GPU types, power caps) for the cheapest or lowest-power cluster that meets the SLOs at a target load, using production traces and a discrete-event simulator (SplitwiseSim), after validating it against real runs.
5. Results#
Splitwise (production Azure traces; BLOOM-176B and Llama-70B on vLLM; cluster designs evaluated with SplitwiseSim):
| Claim | Result |
|---|---|
| Throughput and cost vs colocated clusters | up to 1.4× higher throughput at 20% lower cost |
| Throughput at the same power and cost | up to 2.35× |
| Decode on a power-capped H100 | little slowdown with the cap cut by over 50% (700 W → 350 W) |
DistServe (32 A100 80 GB GPUs in 4 nodes, 25 Gbps between nodes; OPT-13B to 175B; chatbot, code completion and summarisation workloads; baseline vLLM and DeepSpeed-MII):
| Claim | Result |
|---|---|
| Requests served within SLO for > 90% of requests | up to 7.4× more than the baselines |
| Or, at the same rate | up to 12.6× tighter SLOs |
| KV transfer overhead with intra-node placement | negligible in their measurements |
How to read these: both compare against colocated systems of early 2024, before chunked prefill (30.t) was standard. Chunked prefill removes much of the interference too, so the gap against a 2026 colocated engine is smaller, and depends heavily on prompt lengths and SLOs.
6. What held up and what did not#
Held up
- Disaggregated prefill/decode is the standard architecture at scale. DeepSeek’s own serving (30.v), Mooncake at Moonshot AI (30.w), NVIDIA Dynamo, llm-d, and SGLang’s and vLLM’s PD modes all disaggregate (14.j, 21.j).
- Goodput under SLOs replaced raw throughput as the metric serving papers report.
- Layer-wise, overlapped KV transfer with RDMA is how KV connectors work (NIXL, Mooncake transfer engine; 9.e, 19.b).
- Size and parallelise each phase separately. Decode pools now use wide expert parallelism with large batches; prefill pools use TP or smaller EP for low TTFT.
Did not, or changed
- Heterogeneous hardware (old GPUs for decode) is rarely how it is deployed; operators prefer one GPU type for fleet simplicity. NVIDIA’s Groq 3 LPX racks, sold as a decode companion to Vera Rubin (7.k, 7.e), revive the idea with purpose-built decode hardware.
- Not always worth it. For small models, short prompts or modest scale, chunked prefill on colocated GPUs matches it with less complexity (14.j, 30.t). Disaggregation pays most with long prompts, strict TPOT targets and large fleets.
- KV transfer is a real cost across nodes, especially for MHA models with large caches. MLA and GQA models (30.d, 30.v), KV quantization and fast RDMA made it cheaper.
7. Where it lives in 2026#
- Taught in depth: disaggregated prefill/decode in 14.j, moving the KV cache in 9.e, KV offloading and transfer in 14.k, vLLM KV connectors in 19.b, Dynamo and llm-d in 21.j, SLOs in 23.a.
- vLLM v0.32.0 supports disaggregation through its KV connector API (NIXL, Mooncake, LMCache and others); SGLang has a built-in PD mode; NVIDIA Dynamo and llm-d orchestrate both.
Checked on 13 November 2026.
8. Questions#
- Why do prefill and decode interfere when they share a GPU?
- Define goodput. Why is it a better target than throughput for an interactive service?
- What has to move from the prefill instance to the decode instance, and how big is it?
- How does layer-wise KV transfer hide most of the transfer time?
- Why might a power-capped GPU be fine for decode but not for prefill?
- Both papers compare against 2024 colocated systems. What later technique narrows the gap, and why?
- You serve a 7B model with 300-token prompts on 8 GPUs. Would you disaggregate? Why or why not?
9. Further reading#
- Splitwise, arXiv:2311.18677 — sections III (characterisation) and IV.
- DistServe, arXiv:2401.09670 — sections 2 and 4.
- Hao AI Lab, “Disaggregated Inference: 18 Months Later” (blog, 2025).
- 14.j and 19.b in this material.
- Next: SGLang and RadixAttention (30.r).