Cross-Data-Center Disaggregated Inference: Solving KV Transfer Under Hybrid Attention
This article examines how hybrid attention architectures make cross-data-center prefill-decode (PD) disaggregation practical by reducing KV cache transfer rates from tens of Gbps to a few Gbps or lower. It covers the bandwidth bottleneck of traditional PD disaggregation, how hybrid attention changes the KV throughput equation, a Prefill-as-a-Service design with reported throughput and TTFT gains, and the system-side pieces required to make it work: selective offloading, bandwidth-aware scheduling, and layered KV compression. It also outlines the trade-offs and a practical evaluation checklist for deciding whether to adopt this approach.
1. Two Stages Locked by Bandwidth
Large language model inference is typically split into two stages. Prefill consumes the entire input context in one pass; it is compute-intensive and highly parallel. Decode generates tokens autoregressively, one at a time; it is memory-intensive and sensitive to VRAM bandwidth and batch organization. The two stages have completely different resource profiles, so running them on separate node pools and scaling each independently is the most direct way to improve overall utilization. This is what the industry commonly calls PD disaggregation.
But splitting is not free. The KV cache produced by Prefill must be handed over to the Decode side in full, which turns “how much data to transfer, and over what kind of network” into a hard architectural boundary.
The key metric for this can be defined as KV throughput Φkv: the volume of KV cache data produced by the Prefill side per unit time (Gbps). It can be roughly written as:
Φkv ≈ (layers × KV heads × head dim × 2 (K and V) × bytes per precision × concurrent token rate)
For full-attention (dense attention) models, Φkv grows linearly with context length. A publicly known engineering rule of thumb is that at around 32K input length, a single instance’s KV production rate can reach the tens-of-Gbps range. This already exceeds the usable bandwidth of a typical cross-data-center Ethernet link (after accounting for congestion, multiplexing, and failure redundancy, the actual available bandwidth is often far below the nominal value).
There are two consequences, and both are critical:
- Prefill and Decode are forced into the same high-speed RDMA network domain, making cross-facility and cross-region deployment impossible.
- Once Prefill and Decode hardware are fixed inside the same tightly coupled cluster, their ratio is locked in. When traffic patterns change (more long-text requests, higher concurrency), the only option is to scale the whole cluster, and elasticity is gone.
2. What Hybrid Attention Changes
The mainstream efficient architectures that have emerged over the past year share a common idea: keep only a small number of full-attention layers to aggregate global information, and replace most of the remaining layers with mechanisms of linear or sub-linear complexity, alternating the two layer types. Common layer ratios include 3:1, 5:1, and 7:1, meaning one full-attention layer for every 3 to 7 efficient layers.
Its significance for inference systems is not “faster,” but that it pushes Φkv down by an order of magnitude: there are fewer full-attention layers, and efficient layers typically only need to maintain a fixed-size state (a sliding-window local cache, the recurrent state of linear attention, or a low-rank representation after latent compression) that does not grow linearly with context length. As a result, the KV production rate drops from “tens of Gbps” to “a few Gbps or even lower,” and cross-data-center transfer goes from “impossible” to “worth designing seriously” for the first time.
It is worth emphasizing that this only opens a window; it does not mean the solution is complete. The KV is smaller, but the problems of transfer, scheduling, consistency, and fault tolerance are all still there. They have simply changed from “physically infeasible” to “an engineering problem that can be optimized.”
3. Prefill-as-a-Service: Offloading Long Contexts
On top of this, you can design a Prefill-offloaded architecture (referred to here as Prefill-as-a-Service): keep a local PD cluster to handle regular requests; when an extra-long context is detected, or the local Prefill queue backs up, selectively forward that request to a remote high-compute cluster to complete prefill, return the KV cache to the local site over ordinary Ethernet, and let the local Decode continue generation.
In internal testing on a hundred-billion-parameter hybrid architecture model, this type of scheme achieved roughly a 54% throughput improvement over an equivalent homogeneous PD deployment, with P90 TTFT (time to first token) dropping by about 64%. The sources of the gain are not mysterious:
- The compute spike from long-context requests is moved away, so the local Decode’s batch organization is no longer slowed down by a few extra-long requests.
- The remote cluster only does Prefill, so hardware selection can favor high compute and lower VRAM capacity, giving a better cost structure.
- Queueing time for short requests improves significantly, with the biggest benefit to tail latency.
But the optimistic, paper-style conclusion needs one qualification: the gains hold only when both the model-side KV reduction and the system-side mechanisms are in place.
4. Three Pieces of the System-Side Puzzle
4.1 Selective Offloading: Not Every Request Should Go Remote
The decision should weigh “local compute saved” against “transfer cost and round-trip latency paid.” A minimal decision rule can be expressed as:
def should_offload(input_len, local_prefill_queue, link_gbps, rtt_ms):kv_gb = estimate_kv_bytes(input_len) / 1e9transfer_ms = kv_gb * 8 / link_gbps * 1000# Remote queueing + transfer + return must clearly beat local queueingreturn (local_prefill_queue * est_prefill_ms) > (rtt_ms * 2 + transfer_ms + remote_queue_ms)
In practice you also need guardrails: never offload short requests; automatically disable offloading when the link is congested; preserve affinity for incremental Prefill within the same session to avoid redundant computation.
4.2 Bandwidth-Aware Scheduling: Treat Transfer as a First-Class Resource
The scheduler needs to see three types of signals at once: the link’s real-time available bandwidth, the remote cluster’s queue depth, and the local Decode’s remaining VRAM. Practical points include admission control based on KV volume, prioritization and rate limiting for return traffic, falling back to local Prefill when the link degrades, and pipelining KV in chunks so Decode can start as soon as the first chunk arrives, using computation to hide transfer.
4.3 Layered KV and Compression: Pushing Φkv Down Further
Beyond the model side, the system side can still apply low-rank compression, quantized storage, and pruning of historical tokens by attention importance, and hold cold KV in a tiered manner across object storage or a distributed cache. These techniques stack with hybrid attention and do not conflict with it.
5. The Costs You Must Face
- The tail-latency structure changes: cross-domain round trips introduce extra jitter, so P50 may improve while P99 gets worse, and you must recalibrate against your business SLA.
- Consistency and idempotency: request retries and interrupted KV returns require resumable checkpointing and idempotent semantics.
- Observability: you need end-to-end instrumentation that separates queueing, transfer, prefill, and return into four segments, along with monitoring, alerting, and capacity dashboards.
- A larger fault domain: when the remote side is unavailable, there must be a deterministic fallback path rather than a silent timeout.
6. Deployment Evaluation Checklist
- Measure your own model’s Φkv curve (Gbps at different input lengths); this is the first go/no-go gate.
- Analyze the length distribution and concurrency structure of real traffic to confirm whether there are long-context spikes worth offloading.
- Calculate the actual available bandwidth and P99 jitter of the cross-domain link, not the nominal value.
- Validate the scheduling policy with shadow traffic first, then ramp up gradually.
- Use a container platform to handle elastic scaling on both sides, and align metrics with a unified logging and monitoring system.
The conclusion is not ambiguous: hybrid attention architectures have indeed pulled cross-data-center PD disaggregation out of the physical no-go zone and into the realm of engineering feasibility. But the throughput and tail-latency gains are actually delivered by the combination of model architecture, selective offloading, and bandwidth-aware scheduling, not by any single-point optimization.
