KVCache Transfer Across Data Centers: How Hybrid Attention Unlocked 54% Higher Inference Throughput
Prefill-Decode (PD) disaggregation is the standard paradigm for large-scale LLM inference, but it has long been constrained by the massive KVCache transfers between Prefill and Decode nodes. This article explains how hybrid attention architectures shrink KVCache by an order of magnitude, enabling cross-data-center KVCache transfer, and how a "Prefill-as-a-Service" architecture with selective offloading and bandwidth-aware scheduling delivers roughly 54% higher throughput and 64% lower P90 time-to-first-token in real-world deployments.
1. The Starting Point: PD Disaggregation Chained to a Single Network
LLM inference is typically divided into two phases: the Prefill phase, which processes user input and is compute-intensive, and the Decode phase, which generates tokens one at a time and is memory-bandwidth-intensive. Because the two phases have very different resource profiles, PD disaggregation—deploying Prefill and Decode on separate nodes—has become the standard paradigm for large-scale inference services. Splitting them allows independent scaling and hardware selection for each phase, significantly improving overall utilization.
But this paradigm carries a long-overlooked implicit constraint: once Prefill and Decode run on different nodes or even different clusters, the KVCache produced during Prefill must be transferred across the network. For traditional dense attention models, this transfer volume is enormous. Publicly available benchmarks show that a mainstream large model can produce KVCache at roughly 60 Gbps when processing a 32K-token input in a single instance—far beyond the capacity of typical cross-data-center Ethernet links.
In other words, although Prefill and Decode are logically “disaggregated,” they remain chained to the same data center by an invisible tether: they must share the same RDMA high-speed network. This has two direct consequences:
- Heterogeneous deployment is nearly impossible. Prefill and Decode must use identical hardware within the same network domain, so neither can be independently matched to its workload characteristics.
- Elastic scaling is constrained. The hardware ratio between Prefill and Decode is locked in by network topology and cannot be adjusted dynamically as traffic fluctuates—for example, more long-context requests during the day and shorter ones at night.
2. The Key Metric: KV Throughput
To quantify this bottleneck, define a metric called KV throughput: the amount of KVCache data produced per unit of time during Prefill. For traditional dense attention models, KVCache size scales with sequence length, number of layers, and number of attention heads, growing linearly with context length—which makes this metric unreasonably large.
KV throughput effectively determines the deployment radius of PD disaggregation:
- If KV throughput far exceeds intra-data-center RDMA bandwidth, Prefill and Decode must be deployed in the same data center.
- If KV throughput is comparable to or lower than cross-data-center Ethernet bandwidth, transferring KVCache across data centers becomes an engineering problem worth designing for.
3. The Turning Point: Hybrid Attention Shrinks KVCache by an Order of Magnitude
In recent years, new-generation models have widely adopted hybrid attention architectures: a small number of full attention layers preserve global context memory, interleaved with a large number of linear-complexity attention layers. Typical configurations use linear-to-full-attention layer ratios of 3:1, 5:1, or even 7:1. Because the KVCache of linear attention layers (or sliding-window layers) is far smaller than that of full attention layers, the overall KVCache size is compressed by roughly an order of magnitude.
This brings KV throughput down from “far beyond cross-data-center bandwidth” to “comparable to ordinary Ethernet bandwidth.” Cross-data-center KVCache transfer thus shifts from “impossible” to “a problem with real engineering value.”
4. Prefill as a Service: A System-Level Solution for Cross-Data-Center Deployment
Model-side KVCache reduction alone is not enough; what makes the solution practical is a combination of system-side techniques. The core idea of the “Prefill as a Service” architecture proposed in the industry is:
- Selective offloading: Not every request should be offloaded. Only long-context requests—where Prefill is compute-heavy and the payoff is high—are scheduled to a remote, high-compute cluster for Prefill. Short requests stay local, since cross-data-center transfer overhead would outweigh the benefit.
- KVCache return transfer: After the remote cluster completes Prefill, the compressed KVCache is sent back over ordinary Ethernet to the local PD cluster for Decode. Since the volume has shrunk by an order of magnitude, a standard network can carry it.
- Bandwidth-aware scheduling: The scheduler must track inter-data-center link bandwidth and queueing in real time, dynamically deciding whether and where to offload each request, so that KVCache return traffic does not congest links and inflate time-to-first-token.
In internal testing on a trillion-parameter hybrid-architecture model, this approach delivered significant gains over homogeneous PD deployment: overall throughput improved by about 54%, and P90 time-to-first-token (TTFT) dropped by about 64%. The source of the gains is clear: once long-context Prefill is offloaded to a dedicated compute pool, the local cluster is freed from Prefill competing with Decode for resources, and the hardware ratio on each side can be tuned independently.
5. A Sober Look: Does This Path Really Work?
From an engineering perspective, the approach does prove feasibility, but several prerequisites deserve careful consideration:
- Strong dependence on hybrid architectures. The model itself must use low-KVCache designs such as linear attention; existing dense models cannot benefit directly.
- Tail-latency risk. Cross-data-center transfer introduces uncontrollable network jitter. While P90 TTFT improves, tail percentiles become more sensitive to link quality, requiring robust monitoring, alerting, and fallback strategies—for example, reverting to local Prefill when link quality degrades.
- The cost equation must be checked. The compute saved by offloading must be weighed against cross-data-center bandwidth costs and KVCache transfer latency. Tuning the thresholds of the selective offloading policy is an ongoing operational task.
Overall, the combination of model architecture optimization and system-level scheduling genuinely opens the door to decoupling inference clusters across data centers. For teams planning large-scale inference services, hybrid attention models plus bandwidth-aware, tiered scheduling are worth adding to the evaluation list on any architecture evolution roadmap.
