Breaking Inference Bottlenecks with PD Disaggregation and Heterogeneous Mixed Deployment on Domestic AI Accelerators

    Large language model inference is shifting from "can it answer" to "what does each request cost." This article explains how PD disaggregation—splitting Prefill and Decode into separate resource pools—combined with heterogeneous mixed deployment lets domestic AI accelerators handle compute-heavy Prefill while scarce high-end GPUs focus on bandwidth-heavy Decode. It covers the two-stage inference workload profile, architecture design covering routing, resource pools, KV Cache transfer and observability, scheduling strategies based on prediction and feedback, where performance gains up to 3x come from, and the practical boundaries and risk controls teams should consider before adopting this approach.

    Breaking Inference Bottlenecks with PD Disaggregation and Heterogeneous Mixed Deployment on Domestic AI Accelerators

    The competitive focus of large language model (LLM) inference is shifting from “can the model answer” to “what does each task cost.” When high-end accelerators are in short supply and existing resources cannot scale quickly, simply adding more cards can no longer cover growing inference workloads. A more practical path is to split the inference pipeline apart, let different resource pools handle the tasks they are best at, and raise utilization of limited compute through architecture and scheduling.

    This article focuses on PD disaggregation with heterogeneous mixed deployment, addressing three key questions: why Prefill and Decode should be split; how heterogeneous resource pools can work together; and which transfer, scheduling, and tuning details matter during engineering implementation. Public technical materials report throughput improvements of up to 3x or more, but such figures depend heavily on model size, sequence length, concurrency patterns, SLA requirements, and resource ratios. They should not be treated as universal guarantees.

    1. The Two-Stage Profile of Inference: Prefill and Decode

    A single LLM inference request looks simple on the surface—“take an input, produce an output”—but underneath it consists of two stages with completely different resource profiles.

    1.1 Prefill: Compute-Intensive, Determines First-Token Latency

    The Prefill stage reads all of the user’s input tokens into the model at once, performs attention computations, and generates the KV Cache. This stage is highly parallelizable: the longer the input, the larger the matrix multiplication workload, and the higher the demands on raw compute power, interconnect bandwidth, and operator efficiency. How long users wait after pressing Enter before seeing the first word depends mainly on Prefill throughput.

    The key metric for Prefill is therefore TTFT (Time To First Token). Long inputs, large prefill batches, and complex prompts all significantly lengthen TTFT. Prefill is fundamentally a “compute-hungry” workload.

    1.2 Decode: Bandwidth-Intensive, Determines Output Smoothness

    The Decode stage generates the answer token by token. Each generated token involves modest computation but requires repeatedly reading model weights and the accumulated KV Cache. In other words, during Decode, compute is rarely the bottleneck—the real constraints are memory bandwidth, memory capacity, and cache access efficiency.

    This stage corresponds to TPOT (Time Per Output Token), or inter-token latency. The user’s perception of “smooth streaming” versus “stuttering output” is primarily determined by Decode. It is fundamentally a “bandwidth- and memory-hungry” workload.

    1.3 Why Co-Location Creates Mutual Interference

    Prefill and Decode have opposing resource demands: one needs compute, the other needs bandwidth. When both workloads share the same set of cards, resource contention follows. A long request with hundreds of thousands of tokens entering Prefill can force Decode tasks for multiple users on the same card to wait collectively, causing output stuttering. Conversely, a large number of Decode tasks occupying memory bandwidth slows Prefill’s batch processing efficiency.

    The core of PD disaggregation is not “splitting for splitting’s sake”—it is about separating two workloads with different resource profiles into independent pools, so each pool can independently scale, batch, and tune according to its own bottleneck.

    2. Heterogeneous Mixed Deployment: Domestic Accelerators for Prefill, High-End GPUs for Decode

    When high-end accelerator supply is limited, a pragmatic approach is heterogeneous mixed deployment: use domestic AI accelerators for the compute-intensive Prefill stage, and concentrate limited high-end GPU resources on the bandwidth-intensive Decode stage. The logic is straightforward:

    • Prefill has high parallelism and suits batch prefill strategies that maximize compute utilization.
    • Decode is more sensitive to memory bandwidth and capacity, so high-end cards deliver higher marginal value at this stage.
    • Once the two pools are scheduled independently, long-input requests no longer easily block online output streaming.
    • Resource ratios can be adjusted dynamically based on traffic patterns, rather than being locked in by a homogeneous single-card architecture.

    A simplified cost model illustrates this:

    1. Total inference cost =
    2. Prefill resource cost
    3. + Decode resource cost
    4. + KV Cache cross-pool transfer cost
    5. + Scheduling and queuing cost
    6. System throughput ≈ min(Prefill throughput, Decode throughput, transfer throughput)

    This means PD disaggregation with heterogeneous mixed deployment is not simply a matter of routing requests into two pools. What actually determines the benefit is whether the Prefill pool can fully saturate its compute, whether the Decode pool can sustain stable output, and whether KV Cache transfer becomes a new bottleneck.

    3. Architecture Design: Control Plane and Data Plane Together

    A deployable PD disaggregation system with heterogeneous mixed deployment typically includes the following components.

    3.1 Request Ingress and Routing Layer

    The ingress layer identifies request characteristics, including input length, expected output length, SLA tier, and tenant priority. Based on current queue depth, Prefill pool utilization, and Decode pool memory headroom, the routing layer decides which Prefill instance handles the request and which Decode instance it later binds to.

    Routing must consider not just average load but also the proportion of long requests. Long inputs put significant stress on the Prefill pool; without length prediction and admission control, a few long requests can stretch queues dramatically.

    3.2 Prefill Resource Pool

    The Prefill pool targets throughput and TTFT, focusing on batch size, operator fusion, long-sequence chunking, and cache reuse. For domestic accelerators, teams need to verify operator coverage for the target model, precision strategies, memory layout, and batch processing efficiency. The Prefill pool does not chase minimal per-token latency; it aims to process more input tokens per unit of time.

    3.3 Decode Resource Pool

    The Decode pool targets stable TPOT, focusing on memory capacity management, KV Cache paging, batch scheduling windows, and preemption policies. High-end cards handle the online streaming workload here, so frequent swapping that inflates tail latency must be avoided. Scaling of the Decode pool should be tied to output concurrency and the distribution of context lengths.

    3.4 KV Cache Transfer Channel

    After PD disaggregation, the KV Cache generated by Prefill must be handed off to the Decode pool. This is the most commonly underestimated part of implementation. The transfer channel must address:

    • Whether bandwidth is sufficient to sustain peak token throughput.
    • Whether transfer latency affects TTFT.
    • Whether KV Cache sharded by layer, head, or block supports pipelined transfer.
    • Whether compression, quantization, and prefetching are supported.
    • How retries and rollbacks are handled when transfer fails.

    If KV Cache transfer costs are too high, they will eat into the gains of PD disaggregation. The transfer channel should therefore be coupled with the scheduler, placing Prefill and Decode instances topologically close to minimize cross-node hops.

    3.5 Monitoring and Observability

    At minimum, you should monitor: Prefill queue wait time, Prefill throughput in tokens/s, Decode concurrency, TPOT percentiles, KV transfer latency and bandwidth, memory headroom, cache hit rate, request failure rate, and retry rate. Without these metrics, heterogeneous mixed deployment easily becomes a case of “looks disaggregated on paper, but the bottleneck simply moved.”

    4. Scheduling Strategy: From Static Ratios to Feedback Control

    The scheduler for PD disaggregation with heterogeneous mixed deployment should use a “prediction + feedback” approach rather than fixed ratios:

    1. on_request(request):
    2. profile = estimate_tokens(request.input, request.output)
    3. priority = classify_sla(request)
    4. if prefill_pool.queue_latency(profile) > threshold:
    5. apply_backpressure(request)
    6. prefill_instance = select_prefill(profile, priority)
    7. kv_handle = prefill_instance.run(request)
    8. decode_instance = select_decode(kv_handle.size, priority)
    9. transfer_kv(kv_handle, decode_instance, prefetch=True)
    10. decode_instance.enqueue(request, kv_handle)

    The scheduler must handle four categories of problems:

    1. Length prediction: The more accurate input and output length predictions are, the more precise resource reservations can be.
    2. SLA tiering: Online interactive requests get TPOT guarantees first; offline batch jobs can tolerate longer queuing.
    3. Backpressure and admission control: When the Prefill or Decode pool approaches saturation, reject or degrade requests early to avoid cascading failures.
    4. Dynamic ratios: Adjust instance counts or batching parameters for both pools based on long-request share, output concurrency, and memory headroom.

    5. Where the Performance Gains Come From

    The benefits of heterogeneous mixed deployment arise at four levels:

    • Eliminating resource mismatch: Prefill no longer competes for Decode’s memory bandwidth, and Decode is no longer blocked by long inputs.
    • Independent batching: Prefill can run large batches to maximize compute utilization, while Decode runs small batches at output pace to keep latency stable.
    • Scaling by bottleneck: Expand the Prefill pool when compute is tight; expand the Decode pool when memory is tight—avoiding homogeneous whole-system scaling.
    • Higher marginal value for existing high-end cards: Concentrating high-end GPUs on bandwidth-sensitive stages like Decode yields more output per unit of resource.

    Under specific stress-test conditions, public materials report throughput improvements of 3x or more. But in practice, you must benchmark against your own traffic: compare homogeneous deployments on throughput, TTFT, TPOT, P99 latency, cost per token, and resource utilization. Only end-to-end improvement proves that PD disaggregation with heterogeneous mixed deployment is actually working.

    6. Applicability Boundaries and Risk Control

    PD disaggregation with heterogeneous mixed deployment is not suitable for every scenario. It fits best when: long inputs make up a large share of traffic, online output concurrency is high, high-end card supply is limited, workloads fluctuate noticeably, and the team has cross-pool scheduling expertise. For small models, short sequences, low concurrency, or cases where a single card has ample headroom, the transfer and scheduling overhead of splitting may not pay off.

    Recommended risk controls:

    • Start with a small-scale gray rollout and keep a fallback path to the homogeneous deployment.
    • Apply rate limiting and timeout controls to KV Cache transfers.
    • Enforce memory isolation and thorough data cleanup in multi-tenant environments.
    • Stress-test long inputs, bursty concurrency, node failures, and transfer jitter.
    • Establish a cost accounting framework that includes transfer, scheduling, and retry costs in the total ledger.

    In summary, the value of PD disaggregation with heterogeneous mixed deployment lies not in “switching to a different card,” but in using finer-grained division of resources to unbundle the bottlenecks of the inference pipeline. Domestic AI accelerators handling Prefill while high-end GPUs focus on Decode is a cost-saving path worth validating for engineering teams—but the final benefit depends on scheduling precision, transfer efficiency, and how well the architecture matches your actual workload. Measure first, disaggregate second, tune last: only then can the potential 3x-level gains become a stable, reproducible system capability.