Cross-Datacenter KVCache Transfer: A Practical Path to 54% Higher Throughput

    This article explains how cross-datacenter KVCache transfer becomes feasible when hybrid attention architectures shrink KV throughput, and how a Prefill-as-a-Service design with selective offloading and bandwidth-aware scheduling delivers 54% higher throughput and 64% lower P90 time-to-first-token. It covers the bandwidth bottleneck in disaggregated prefill-decode serving, the role of layer ratios, the feasibility condition, and key implementation steps for engineering teams.

    1. The Starting Point: Why PD Disaggregation Is Locked by Bandwidth

    Large-scale LLM inference has converged on a standard paradigm: Prefill-Decode (PD) disaggregation. The reason is straightforward. Prefill is compute-intensive and consumes compute capacity, while decode is memory-bandwidth-intensive and consumes memory capacity and bandwidth. Splitting the two stages significantly improves resource utilization on each side.

    However, the split introduces an unavoidable side effect: the KVCache produced by prefill must be moved across nodes. High-speed interconnects work within a node, but once traffic crosses racks, data centers, or even regions, bandwidth and latency immediately become hard constraints.

    The industry typically measures this pressure with “KV throughput” (the volume of KVCache generated by prefill per unit time, denoted Φ_kv). Take a hundred-billion-parameter dense-attention model as an example: with a 32K token input, a single instance can produce KVCache at roughly 60 Gbps, well beyond the usable capacity of typical cross-datacenter Ethernet. This effectively locks traditional dense-attention models inside a single high-speed network domain, making cross-domain PD disaggregation impossible.

    A coupling effect makes things worse: when heterogeneous hardware is forced into the same tightly coupled cluster, the hardware ratio between prefill and decode becomes fixed. When the traffic pattern shifts (more long-text requests or higher concurrency), the ratio cannot be adjusted dynamically, leaving resources either idle or queued.

    2. The Window Opens: Hybrid Attention Lowers Φ_kv

    The core idea of hybrid attention models is to interleave a small number of full-attention layers with a large number of linear-complexity layers. Full-attention layers handle global information aggregation, while linear-complexity layers maintain long-range modeling ability at extremely low state cost.

    Layer ratios vary significantly across models, typically 3:1 for “linear attention to latent attention,” 5:1 for “sliding window attention to grouped query attention,” and 7:1 for “lightweight attention to latent attention.” The layer ratio directly determines KVCache size: with a 32K token input, a 5:1 model has a KV throughput of about 4.66 Gbps, while a dense-attention model is around 59.93 Gbps, roughly a 13x difference.

    The significance of that 13x is this: the previously “impossible to cross domains” 60 Gbps is compressed to single-digit Gbps, falling within the range that ordinary Ethernet can carry. Cross-datacenter transfer becomes engineering-feasible for the first time.

    3. Architecture: Prefill-as-a-Service

    The core design selectively offloads long-context prefill to an independent high-compute cluster, then sends the resulting KVCache back over ordinary Ethernet to the local PD cluster for decode. Three keywords are worth emphasizing:

    • Selective: not all requests are offloaded, only those with long inputs and high prefill benefit;
    • Independent high-compute cluster: the prefill side can scale independently according to compute needs, decoupled from the decode side;
    • Ordinary Ethernet return path: no reliance on dedicated high-speed interconnects, greatly relaxing deployment boundaries.

    In internal testing with a 1T-parameter hybrid model, this approach delivered 54% higher throughput than an equivalent homogeneous PD deployment, with P90 time-to-first-token reduced by 64%.

    4. Why a Combined Approach Is Required

    The paper-like, candid conclusion is worth remembering: reducing KVCache on the model side alone is far from enough. What truly makes cross-datacenter deployment work is the combination of model architecture optimization + system-side selective offloading + bandwidth-aware scheduling.

    This can be abstracted into a decision chain:

    1. feasibility ≈ (Φ_kv small enough) AND (offload benefit > transfer cost) AND (scheduling aware of real-time bandwidth)

    If any link is missing, the benefit is canceled out: a large Φ_kv saturates the link; without selectivity, transfer cost is paid for nothing; without bandwidth awareness, P90 latency rebounds during congestion.

    5. Implementation Notes

    1. Establish a Φ_kv baseline: run load tests bucketed by input length, and clarify the ratio of single-instance production rate to link capacity.
    2. Set offload thresholds: use “prefill time saved > KV transfer time + queuing overhead” as the gate, and adjust dynamically.
    3. Bandwidth-aware scheduling: probe available link bandwidth and congestion in real time, and fall back to local prefill.
    4. Capacity tiering: scale the prefill cluster and decode cluster independently, with the ratio following changes in traffic patterns.
    5. Observability: build monitoring, alerting, and log tracing for KV throughput, transfer latency, and P90 TTFT.

    6. Conclusion

    Cross-datacenter KVCache transfer is not a single-point breakthrough but a systems engineering effort combining “architecture compression + selective offloading + bandwidth-aware scheduling.” Hybrid attention compressing Φ_kv into a transferable range is the prerequisite; selective offloading and scheduling are what turn that prerequisite into a 54% throughput gain and a 64% P90 latency reduction. For teams preparing cross-domain inference deployments, the recommended path is to quantify Φ_kv first, then design offloading and scheduling strategies, and finally close the loop with P90 metrics.