Prefill and decode are two different jobs wearing the same model. Prefill processes the whole prompt in one pass: compute-heavy, parallel, latency-sensitive at the start. Decode generates one token at a time: memory-bandwidth-bound, sequential, sensitive to every millisecond between tokens. Serving them together forces one hardware profile to do both.
Heterogeneous P/D disaggregation separates the phases and, critically, runs each on hardware matched to its bottleneck. The result is better silicon utilization and more predictable latency.
Why one pool is a compromise
- Prefill wants compute throughput. Large matrix operations, high FLOPS, big batches of prompt tokens.
- Decode wants memory bandwidth and capacity. Small per-token operations, large KV caches, low batch sizes for interactive latency.
- Mixed pools compromise. A GPU chosen for prefill is underused in decode; one chosen for decode limits prefill throughput. Scheduling one workload protects the other at the cost of utilization.
The architecture in four parts
- Prefill workers. Compute-optimized accelerators that process prompts and produce KV caches.
- A transfer layer. High-bandwidth links that move KV state from prefill to decode workers.
- Decode workers. Memory-optimized accelerators that hold caches and generate tokens.
- A router. Assigns requests, balances load and enforces priority across pools.
Each part has its own failure modes. The transfer layer is the one teams underestimate: it is a data movement problem at the size of the cache, and it must be fast relative to the work it saves.
Key takeaway Disaggregation is not a free win. It pays when the phases have different economics, the transfer is fast, and traffic is large enough to keep both pools busy.
The KV transfer question
Moving a cache is not free. The cost scales with prompt length, model size and the number of layers transferred. If transfer time approaches the prefill time saved, the architecture is pointless. Fast interconnect and careful placement — prefill and decode workers near each other — are not optional. Details are in KV cache transfer in disaggregated serving.
Heterogeneous, not just separate
Disaggregation with identical GPUs in both pools still helps — each pool can be batched for its phase. Heterogeneity goes further: pick accelerators by bottleneck. Compute-dense parts for prefill, memory-dense parts for decode. The gain is real but requires operational maturity: two hardware pools, two failure domains, one coherent service.
What it looks like from outside
For a customer of a token service, the architecture should surface as:
| Observable | What good looks like |
|---|---|
| TTFT at long prompts | Stable, not collapsing under load |
| Inter-token latency | Tight p99, unaffected by prefill bursts |
| Throughput at SLO | Rises with fleet size, not with luck |
| Cost per accepted token | Falls as utilization improves |
If a provider claims disaggregation but its long-prompt TTFT degrades whenever batch jobs run, the phases are not really isolated.
When not to bother
Small fleets, uniform short-prompt workloads, and latency-tolerant batch use cases rarely justify the complexity. Disaggregation is an answer to scale and to mixed traffic. We cover the decision in When P/D Disaggregation Pays Off.
FAQ
Is disaggregation the same as distributed inference?
No. Distributed inference splits one model across devices. Disaggregation splits phases across pools while each request still uses one model instance per phase.
Does it improve quality?
Indirectly. Isolating phases protects long-context requests from eviction pressure and keeps latency stable, which improves the usable quality of the service.
Do all providers do this?
Many claim it; fewer operate true phase isolation with fast transfer. Ask for latency evidence under mixed load.