Cross-Data-Center KVCache Transfer: How Hybrid Attention Breaks the Bandwidth Bottleneck

    This article explains why PD (prefill/decode) disaggregation turns KVCache transfer into a hard bandwidth constraint across data centers, and how hybrid attention architectures, selective offloading, and bandwidth-aware scheduling make cross-domain deployment practical. It covers KV throughput measurements, offloading decision logic, failure modes, and a staged rollout approach for engineering teams.

    1. The Starting Problem: PD Disaggregation Makes Bandwidth a Hard Constraint

    Large-scale LLM inference is converging on a standard pattern: separating compute-intensive prefill from memory-intensive decode. Prefill consumes compute; decode consumes memory bandwidth and capacity. Splitting them lets each side pick the most suitable hardware and scale independently, yielding clearly better overall utilization than homogeneous deployment.

    The split comes with an unavoidable cost: the KVCache produced during prefill must be moved to the decode side. When both sides sit inside the same high-speed interconnect domain, this is just a memory copy. Once they are placed in different data centers, the transfer degrades into a problem bounded by physical bandwidth.

    The key metric here is KV throughput: the volume of KVCache data produced by the prefill side per unit time, usually measured in Gbps. For models using traditional dense attention, a single inference instance at 32K input tokens can produce KVCache at roughly 60 Gbps, while typical cross-data-center Ethernet capacity is only a fraction of that. The conclusion is direct: dense attention models lock PD disaggregation inside a single high-speed network domain.

    A second, hidden cost follows. To keep a tightly coupled cluster running, heterogeneous hardware is forced into the same resource pool, and the ratio of prefill cards to decode cards is fixed at deployment time. When traffic patterns shift (for example, a sudden rise in the share of long-document requests), that ratio cannot be adjusted dynamically. The only option is rebuilding the entire pool, which makes elasticity largely meaningless.

    2. Hybrid Attention: An Architectural Way to Lower the Numerator

    Recent mainstream long-context models commonly adopt hybrid attention: a small number of full-attention layers alternating with a large number of linear-complexity layers. The inference state of linear layers (various state-space/gated recurrence structures) does not grow linearly with context length, so only the few full-attention layers need to store and move cache for long contexts.

    Layer ratios differ noticeably across models. Publicly available ratios include a linear attention variant stacked with latent attention at 3:1; sliding window attention stacked with grouped query attention at 5:1; and lightweight attention stacked with latent attention at 7:1. The more the configuration favors linear layers, the lower the KV output under long contexts.

    The effect is directly quantifiable. At 32K input length, a 5:1 hybrid architecture model has a KV throughput of about 4.66 Gbps, versus about 59.93 Gbps for a dense attention model, a gap of roughly 13x. The significance of that 13x is that it turns cross-domain transfer from “physically impossible” into routine traffic that “a single ordinary NIC can carry.”

    It is worth stressing that architectural optimization only lowers the barrier to a discussable range; it does not automatically make a solution viable. What actually makes cross-data-center deployment work is the combination of model-side cache reduction, system-side selective offloading, and bandwidth-aware scheduling.

    3. Selective Offloading: Not Every Request Is Worth Crossing Domains

    Offloading long-context prefill to a separate high-compute cluster resembles “prefill as a service”: the local cluster keeps only decode resources, performs prefill remotely for long inputs, and returns the KVCache over ordinary Ethernet.

    Full offloading is not cost-effective, so selection is necessary. There are roughly three usable criteria:

    • Length criterion: offload only when the input exceeds a threshold; keep short requests closed locally so transfer overhead does not eat the gains.
    • Benefit criterion: estimate the difference between “time saved by remote prefill” and “time added by transfer plus queuing”; offload only if it is positive.
    • Reuse criterion: requests with highly overlapping prefixes (system prompts, multi-turn follow-ups on long documents) can hit cache reuse and should be handled locally or nearby first.

    An illustrative scheduling decision:

    1. def should_offload(req, cluster):
    2. if req.input_tokens < cluster.local_threshold:
    3. return False # keep short requests local
    4. kv_bytes = estimate_kv_bytes(req) # estimated from layer ratio and cache compression
    5. transfer_ms = kv_bytes / cluster.link_bps * 1000
    6. saved_ms = cluster.local_prefill_eta(req) - cluster.remote_prefill_eta(req)
    7. return saved_ms > transfer_ms + cluster.queue_margin

    Engineering must also handle three failure modes: jitter on the return path causing long-tail time-to-first-token; queue backlog at the remote cluster creating cross-domain cascading congestion; and lower cache hit rates triggering recomputation. The corresponding mitigations are timeout-based fallback to local, per-domain rate limiting with priority queues, and tiered placement of prefix caches.

    In cross-domain scenarios, the scheduler must treat “link state” as a first-class input rather than applying after-the-fact compensation. Practical measures include:

    1. Probing available bandwidth and RTT in real time, maintaining the health and remaining capacity of each peer domain.
    2. Applying admission control based on KVCache size, shifting large transfers to off-peak windows or downgrading them to compressed transfer.
    3. Compressing and quantizing transfers to reduce the number of bytes moved within an acceptable accuracy range.
    4. Scaling prefill and decode resource pools independently, with the ratio adjusting automatically to traffic patterns instead of being statically bound.
    5. Full-path observability: bringing KV throughput, transfer latency, and time-to-first-token percentiles into a unified monitoring and alerting dashboard.

    5. Benefits, Boundaries, and Rollout Advice

    Publicly shared internal measurements show that on a 1T-parameter-class hybrid model, this architecture delivers about 54% higher throughput and about 64% lower P90 time-to-first-token compared with homogeneous PD deployment. The gains come from three sources: remote high-compute clusters absorbing long prefills, the hybrid architecture cutting KV output by an order of magnitude, and independent resource pools eliminating waste from fixed ratios.

    The boundaries are equally clear: traffic dominated by short requests is not suited to cross-domain setups; poor cross-domain link quality lets long tails eat the gains; and cache reduction from the hybrid architecture is a prerequisite, not a sufficient condition.

    The suggested rollout order for teams: first quantify your own input length distribution and KV throughput, then evaluate the link budget, and only then decide offloading thresholds and resource pool ratios. Reusable general cloud capabilities include container platforms hosting elastic resource pools, object storage holding long documents and prefix caches, message queues for cross-domain peak shaving, and monitoring, alerting, and logging services for full-path observability. Data first; only then does the architecture have meaning.