P/D Disaggregation

Heterogeneous P/D Disaggregation: A Primer

Prefill and decode have opposite hardware profiles. Disaggregating them - and running each on the right accelerators - is the structural move behind efficient AI token serving. A primer.

Heterogeneous P/D Disaggregation: A Primer
P/D Disaggregation · Inference Watch

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

  1. Prefill workers. Compute-optimized accelerators that process prompts and produce KV caches.
  2. A transfer layer. High-bandwidth links that move KV state from prefill to decode workers.
  3. Decode workers. Memory-optimized accelerators that hold caches and generate tokens.
  4. 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:

ObservableWhat good looks like
TTFT at long promptsStable, not collapsing under load
Inter-token latencyTight p99, unaffected by prefill bursts
Throughput at SLORises with fleet size, not with luck
Cost per accepted tokenFalls 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.

Filed in P/D Disaggregation. The wider frame — how serving cost and token quality travel into price — is in The Transmission.

IW

Inference Watch Research

Inference Watch covers AI compute and inference infrastructure. Company Watch items are reproduced with attribution and are not independently verified.