Cross-Datacenter KVCache Transfer: The Path to a 54% Throughput Gain

    This article explains why KVCache transfer is the real bottleneck in disaggregated prefill and decode, how hybrid attention architectures shrink KVCache volume enough to make cross-datacenter transfer practical, and how selective offloading plus bandwidth-aware scheduling turn that possibility into measurable gains. It includes a routing decision example, key engineering requirements, and a realistic reading of the reported 54% throughput improvement.

    1. Prefill and Decode, Locked by Bandwidth

    Large model inference has long suffered from a structural mismatch: the prefill stage is compute-intensive and consumes compute capacity, while the decode stage is memory-intensive and consumes memory bandwidth. The two have completely different resource profiles and should be deployed separately to improve overall utilization. This is what the industry commonly calls PD disaggregation. But separation depends on moving KVCache across nodes, and that transfer capability is exactly the weakest link in the architecture.

    KVCache can be understood as the “intermediate ledger” that prefill writes for every token at every attention layer. Each time decode generates a new token, it has to go back and read that ledger. The longer the context, the more layers, and the wider the attention heads, the thicker the ledger becomes. When the rate at which the ledger is produced exceeds what the network can move, PD disaggregation becomes physically impossible: the link between two datacenters turns into a serial bottleneck for the whole system.

    Public industry figures give a sense of the scale. For a certain class of dense attention models at a 32K input length, a single instance can produce KVCache at roughly 60 Gbps, which already exceeds the usable capacity of typical cross-datacenter Ethernet. The “tens of Gbps” mentioned in the original text is not an exaggeration but the norm for dense attention.

    One common misunderstanding needs clearing up: the bottleneck is not that “the bandwidth is not fast enough,” but that bandwidth and compute are not in the same order of magnitude. In-rack RDMA networks can provide interconnect at hundreds of Gbps to the Tbps level, while cross-metro links are constrained by physical distance, fiber resources, and cost, and often offer only a fraction of that. Splitting PD across two datacenters is therefore equivalent to stretching a tightly coupled system into a loosely coupled environment, where any jitter gets amplified into tail latency.

    The second-order effects are worse. Once heterogeneous hardware is forced into the same tightly coupled cluster, the ratio of prefill cards to decode cards becomes fixed. Business traffic differs enormously between day and night: long-context requests dominate during the day, short requests at night, but the hardware ratio cannot follow. The result is one side idling for long stretches while the other queues up. Elastic scaling becomes impossible to talk about.

    2. The Window Opened by Hybrid Attention Architectures

    What really changes the game is a structural shift on the model side. The current mainstream approach is hybrid attention: stacking a small number of full attention layers alternately with a large number of linear-complexity layers. Full attention layers handle precise long-range retrieval, while linear layers carry historical information in a constant-size state. Combined, they still retain usable accuracy in long-context scenarios.

    Models differ in what “a small number” means. Publicly available layer ratios include a 3:1 combination of gated delta attention and latent attention; a 5:1 combination of sliding window attention and grouped query attention; and a 7:1 combination of linear attention and latent attention. The more the ratio tilts toward linear layers, the closer KVCache growth gets to constant, and the smaller the memory and bandwidth pressure in long context.

    The result is that KVCache volume shrinks by roughly an order of magnitude. A production rate once in the 60 Gbps range is compressed to single-digit Gbps, and cross-datacenter transfer goes from “impossible” to “worth designing seriously.” This is the physical basis for every conclusion in this article: the network did not get faster; what has to be moved got smaller.

    It is worth stressing that hybrid attention is not free. State compression in linear layers is lossy, and its impact on precise retrieval tasks such as “needle in a haystack” needs to be validated with evaluation sets. Meanwhile, linear layers depend on specific operators, so kernel maturity and hardware support on the engineering side directly affect real throughput. The architectural dividend does not cash itself automatically.

    3. Prefill-as-a-Service: Offloading Long Context

    On this foundation, an architectural idea known as Prefill-as-a-Service has emerged: selectively offload long-context prefill to a separate high-compute cluster, then send the resulting KVCache back over ordinary Ethernet to the local PD cluster to perform decode.

    “Selective” is the keyword of this approach and the easiest thing to get wrong. Not every request is worth moving across domains:

    • Short requests (within 4K, for example) are faster computed locally; the cross-domain network round trip eats the benefit directly.
    • Requests that hit the prefix cache should be reused locally, with no need to repeat prefill.
    • Extremely long contexts, multi-turn long documents, and repository-level code inputs are the real targets for offloading.

    A simplified routing decision can be expressed in pseudocode:

    1. def should_offload(req, local_cluster, remote_cluster):
    2. # 1. Prefix cache hits stay local first
    3. if req.prefix_cache_hit_ratio > 0.5:
    4. return False
    5. # 2. Short inputs are not worth crossing domains: round-trip cost dominates
    6. if req.input_tokens < LOCAL_PREFILL_THRESHOLD:
    7. return False
    8. # 3. When local queueing is deep, cross-domain waiting may be shorter
    9. local_wait = local_cluster.estimated_wait(req.input_tokens)
    10. remote_wait = remote_cluster.estimated_wait(req.input_tokens)
    11. transfer_cost = estimate_kv_bytes(req) / LINK_BW + RTT
    12. return remote_wait + transfer_cost < local_wait

    The core of this logic is modeling transfer cost explicitly in the scheduling decision instead of ignoring it as a constant. estimate_kv_bytes has to be estimated per model structure; under hybrid attention that term grows noticeably more slowly with length, which is precisely the quantitative basis for cross-domain feasibility.

    4. Bandwidth-Aware Scheduling and Engineering Essentials

    Shrinking the model side is far from enough. The original text states clearly that what makes cross-datacenter deployment work is a combination: architectural optimization + selective offloading + bandwidth-aware scheduling. In engineering terms, several problems must be handled.

    First, overlap transfer with computation. KVCache transfer back should not block decode from starting; ideally it is a layered pipeline where earlier layers join computation first. This requires the transfer layer to support chunking and out-of-order reassembly.

    Second, observability of link quality. Jitter, packet loss, and bandwidth contention on cross-domain links must enter the monitoring and alerting system and serve as scheduling input. It is advisable to build dashboards for KV throughput Φkv (the volume of KV data produced by prefill per unit time), bucketed by model and by input length, and trigger a degradation policy once the link budget is exceeded.

    Third, design the fallback path in advance. When the cross-domain link is unavailable, the system should automatically fall back to local prefill rather than queueing until timeout. Degradation should be lossless in semantics and invisible to users.

    Fourth, decouple capacity ratios. The biggest operational value of the cross-domain approach is that prefill and decode can each scale independently according to load, and hardware generation differences are isolated on the two sides instead of holding each other back.

    As for the gains, public measurements show that on an internal 1T-parameter hybrid model, this approach improved throughput by about 54% and reduced P90 TTFT by about 64% compared with a homogeneous PD deployment. These numbers deserve a rational reading: they come from a specific model structure, a specific input length distribution, and specific link conditions, and should not be treated as a general conclusion. There is only one transferable criterion: whether your KV throughput is already below your cross-domain link budget, with headroom to spare.

    5. Conclusion

    Cross-datacenter KVCache transfer is not a networking problem but a joint design problem spanning model structure and scheduling strategy. Hybrid attention compresses the data volume, selective offloading sends requests to the right place, and bandwidth-aware scheduling keeps uncertainty under control. Miss any one of the three and the 54% throughput gain is out of reach. To assess your own feasibility, first work out the two numbers Φkv and the link budget, then talk architecture.