KVCache Cross-Datacenter Transfer: Prefill Offloading for Hybrid Attention Architectures
This article explains why PD disaggregation is constrained by KVCache bandwidth, how hybrid attention architectures reduce cross-node transfer volume by an order of magnitude, and how a selective Prefill-as-a-Service design can route long-context requests to remote compute clusters. It also covers routing logic, reported throughput and latency gains, and deployment trade-offs including fault tolerance, latency sensitivity, data compliance, and WAN cost.
1. Starting Point: Why PD Disaggregation Is Bound by Bandwidth
Large model inference is typically divided into two stages: Prefill processes user input and is compute-intensive, while Decode generates tokens one by one and is memory-bandwidth-intensive. Because their resource profiles differ significantly, PD disaggregation—deploying Prefill and Decode on separate node pools—has become a standard pattern for large-scale inference serving. Once separated, each hardware pool can scale independently according to load, and utilization improves markedly.
However, separation has a direct consequence: the KVCache produced after Prefill must be transferred to Decode nodes. For traditional dense attention models, this data volume is extremely large. The industry commonly uses KV throughput (Φkv), the amount of KVCache data produced by Prefill per unit time, to describe the scale of the problem. For common large dense models with input lengths of tens of thousands of tokens, a single instance can produce KVCache at a rate of tens of Gbps, while typical cross-datacenter Ethernet link capacity is far lower.
This creates an invisible chain: Prefill and Decode are forced to share the same RDMA high-speed network and are locked into the same datacenter and network domain. Once heterogeneous hardware is placed in the same tightly coupled cluster, the hardware ratio between Prefill and Decode also becomes fixed. When Decode is under pressure during traffic peaks, it cannot temporarily borrow resources from another pool, making elastic scaling and heterogeneous co-location difficult.
2. Hybrid Attention Architectures: Compressing Data Volume by an Order of Magnitude
The turning point comes from the model architecture itself. Recent hybrid attention models alternate a small number of full-attention layers with many linear-complexity layers. Full-attention layers handle precise long-range dependency modeling, while linear attention or sliding-window attention layers handle most sequence processing, and their KV state does not grow linearly with context length.
Different models choose different layer ratios, such as 3:1 linear attention to latent compressed attention, 5:1 sliding-window attention to grouped-query attention, and 7:1 linear variants to compressed attention. The ratios vary, but the effect is consistent: for long-context inputs, the total KV data that must be transferred across nodes drops by an order of magnitude compared with dense attention. For the same 32K input, a hybrid architecture’s KV output rate may be about one-tenth that of a traditional model, moving the problem from “far beyond Ethernet capacity” to “the same order of magnitude as ordinary Ethernet bandwidth.”
This compression creates a qualitative change: cross-datacenter KVCache transfer goes from being physically impossible to being an engineering problem worth serious system design.
3. Prefill Offloading Service: Architecture Design
Based on this window, the industry has begun exploring a Prefill-as-a-Service architecture. The core idea can be broken down into three layers:
1. Cluster tiering. Deploy an independent high-compute Prefill cluster, which can be concentrated in a datacenter with better power and network costs, separate from the local PD cluster near users. Long-context requests are selectively routed to the remote Prefill cluster for prefill execution.
2. Cross-domain KVCache return. After Prefill completes, the KVCache is sent back over ordinary Ethernet to the local cluster for Decode. Thanks to the volume reduction enabled by hybrid architectures, return latency is kept within an acceptable range.
3. Selective offloading. Not all requests are worth offloading. Short inputs can be prefilled locally, and the cross-domain round-trip latency becomes a net loss. Only long-context requests, whose Prefill compute time is much greater than network transfer time, are routed to the remote cluster. This “selective” judgment is itself a scheduling policy.
A simplified decision logic example is shown below:
def route_request(input_len, cluster_state):local_prefill_time = estimate_compute_time(input_len, local_pool)remote_prefill_time = estimate_compute_time(input_len, remote_pool)transfer_time = estimate_kv_transfer(input_len, wan_bandwidth)# Remote total latency vs local total latencyif (remote_prefill_time + transfer_time < local_prefill_timeand not cluster_state.local_overloaded):return "OFFLOAD_REMOTE"return "LOCAL_PREFILL"
4. Results and Key Conditions
In tests with trillion-parameter hybrid architecture models, this type of approach achieved considerable gains over homogeneous PD deployment: about 50% higher throughput and about 60% lower P90 time to first token (TTFT). The gains come from two parts: the remote high-compute cluster accelerates long-context Prefill, and the local cluster is freed to handle more Decode load, improving overall resource utilization.
It must be emphasized, however, that research studies also acknowledge that KVCache reduction on the model side alone is far from sufficient. What truly makes cross-datacenter deployment viable is a combination of model architecture optimization, system-side selective offloading, and bandwidth-aware scheduling. Bandwidth-aware scheduling means the scheduler needs to monitor WAN link utilization in real time and proactively delay KV return for non-urgent requests when bandwidth is congested, avoiding KV transfer competing with user traffic for links. Selective offloading requires joint modeling of request length, cluster occupancy, and network RTT.
5. Deployment Considerations and Limitations
In practical deployment, this architecture still has several trade-offs worth considering:
- Consistency risk: cross-domain transfer failure or interruption requires fault-tolerance design, such as chunked verification and retransmission mechanisms for KVCache;
- Latency-sensitive traffic: for interactive scenarios extremely sensitive to TTFT, offloading decisions need more conservative thresholds;
- Data compliance: cross-datacenter transfer involves user context data, so residency regions and encryption in transit need to be considered;
- Cost model: WAN bandwidth costs more than intra-datacenter networking, so transfer cost should be included in the overall scheduling objective function.
Conclusion
The order-of-magnitude reduction in KVCache volume from hybrid attention architectures is upgrading PD disaggregation from an intra-datacenter technique to a cross-datacenter architecture. The significance of this direction lies not in a single trick, but in the co-design mindset across the model and system layers: architecture changes open a window, and system design turns that window into practical gains. For teams building large-scale inference services, understanding the trade-off logic behind this combination is more valuable than memorizing any specific number.
