Editor’s introduction
The study evaluates PDD, a three-tier architecture that disaggregates prefill and decode phases across geographically separated datacenters. It compares performance and cost efficiency between a traditional intra-datacenter setup and PDD’s cross-datacenter model, focusing on agentic workloads with long contexts and high cache hit rates. The system uses RelayDecode and MainDecode instances to overlap KV cache transfers, reducing network bottlenecks. Results show up to 37.5% higher benefit-cost ratio in SLA-compliant goodput when deploying H100s for compute and H200s for memory bandwidth.
Introduction
However, this cross‑datacenter paradigm introduces severe communication bottlenecks, especially during Key‑Value (KV) cache transfer in PD‑disaggregated inference. Compared with intra‑datacenter (intra‑DC) RDMA networks, wide‑area Ethernet suffers from tens to hundreds of times higher transmission latency and substantially lower bandwidth. These limitations are particularly detrimental for agentic workloads —a critical class of LLM applications characterized by extremely long contexts, high prefix cache hit rates, and short output lengths—where multi‑second to tens‑of‑seconds transfer delays become entirely unacceptable.
Based on these insights, we propose PDD, a novel three-tier cross-datacenter architecture designed to enable economical and flexible heterogeneous inference. PDD establishes three distinct instances: Prefill (P) and RelayDecode (RLD) instances are co-located in the same datacenter, interconnected via a high-speed RDMA network; MainDecode (MD) instances, however, are situated in a geographically distant datacenter, connected to P and RLD via low-cost wide-area Ethernet (typically less than 20Gbps).
Beyond the core architectural design of PDD’s three-tier disaggregation, we introduce several supporting techniques to enhance robustness, scalability, and cost-efficiency. To manage complex interactions and maintain DRC consistency, we design a multi-stage pipeline orchestration method. To further explore scalability, we leverage a wide-area Ethernet-based interconnect topology that enables flexible cross-datacenter routing (such as many-to-many topologies), allowing for horizontal scaling across geographically dispersed clusters. Additionally, we introduce a fine-grained heterogeneous deployment strategy—combining compute-heavy chips for P instances with a minimal fraction of memory-access-efficient chips for RLD instances within the same RDMA network—to mask cross-datacenter latency at a minimal cost while maximizing hardware utilization.
Extensive evaluations on DeepSeek-V4-pro using real-world agentic workload traces demonstrate that PDD effectively masks transmission latency and achieves superior cost-efficiency. Compared to the traditional Cross-Datacenter PD baseline, PDD reduces the P90 Time-To-First-Token (TTFT) by approximately 46%. Microbenchmarks confirm that our local recomputation handoff eliminates bulky KV transfers and H2D/D2H overheads, capping maximum handoff latency at 321.4ms with minimal variance, compared to the 512.6ms peaks seen in naive Ethernet transfers. Furthermore, compared to the Intra-DC homogeneous PD baseline, PDD’s cross-datacenter mapping of compute-intensive H100s and memory-bandwidth-optimized H200s achieves a Benefit-Cost Ratio (BCR) up to 37.5% higher in SLA-compliant goodput.
Motivating Heterogeneous Prefill-Decode Disaggregation
LLM inference consists of two computationally divergent phases: Prefill, which is compute-bound, and Decode, which is memory-bound. As the AI hardware landscape rapidly diversifies, modern accelerators exhibit highly asymmetric performance profiles across these two phases. This inherent architectural disparity strongly motivates heterogeneous PD disaggregation, wherein specific hardware types are dedicated to the inference phases they are most optimized for.
A more striking example of this hardware asymmetry is observed with Vendor E (Chip E) running the GLM5 model. On a per-device basis, its optimal Prefill throughput reaches approximately 81% of the H100 baseline. However, for the memory-bound Decode phase, the same chip achieves an impressive 210% of the H100’s performance. This extreme contrast—a chip that is moderately competitive in Prefill but vastly superior in Decode—highlights the core inefficiency of homogeneous clusters. Confining such a chip to a coupled deployment wastes its exceptional Decode capabilities, while utilizing baseline hardware for Decode fails to exploit available architectural advantages.
Non-Uniform Transfer Latency under agentic Workloads
To evaluate the impact of this highly skewed distribution, we conducted micro-benchmark tests for Ethernet-based KV cache transfer upon a 20Gbps cross-datacenter dedicated line under full-capacity conditions (Requests Per Second, RPS = 80). We compared two scenarios both targeting a 90% average hit rate: (1) a Wide&Skewed-Distribution scenario reflecting real-world agentic workloads (hit rates ranging from 2% to 99% following a highly skewed Beta distribution), and (2) a Narrow&Even-Distribution scenario (hit rates ranging from 85% to 95% following a uniform distribution).
Related Works
PD disaggregation has been extensively studied to mitigate interference between the prefill and decode phases in LLM serving. Early works, such as DistServe and Splitwise, primarily focus on intra-cluster disaggregation, leveraging high-speed RDMA networks to transfer KV cache. Recently, cross-datacenter inference has emerged as a promising paradigm to leverage geographically dispersed, heterogeneous hardware resources.
The divergence in fundamental motivation highlights the contrast between PrfaaS and PDD. PrfaaS mitigates SLA interference by specially designating remote instances for long-context prefilling, using a context-length-centric scheduler to balance cluster loads and prevent Ethernet overload. Its feasibility relies on Linear models, where per-token KV cache size decreases as context length grows, making remote transmission viable. Conversely, PDD harnesses the cost-effectiveness of heterogeneous hardware across datacenters to satisfy the strict SLAs of agentic workloads. Instead of relying on specific architectures, it capitalizes on the intrinsic, highly skewed KV cache hit-rates of agentic applications (averaging 90%, with many exceeding 95%). Through latency masking and multi-level pipeline orchestration, PDD overlaps cross-datacenter KV transfers exclusively for low-hit-rate outliers to hide transfer delays.
Ultimately, PDD and PrfaaS are orthogonal in their design philosophy: PrfaaS optimizes SLA fairness through request scheduling, whereas PDD optimizes end-to-end Service Level Objectives (SLO) for cross-datacenter heterogeneous inference via latency masking. Because they address different bottlenecks, they can be naturally integrated. A unified system could employ PrfaaS’s scheduling logic to manage long/short request interference while deploying PDD’s three-tier pipeline to ensure cross-datacenter inference remains performant and SLA-compliant.
Core Mechanism: Latency Masking via Extend-Decode Handoff
While the PDD architecture leverages the RLD instance to eagerly generate initial tokens for transfer latency masking, a critical challenge arises once the MD instance completes KV cache reception: how to seamlessly hand off the decoding task from RLD to MD.
Catch-Up Handoff Mode. In this mode, the MD instance performs Extend-Decode step-by-step, gradually catching up to the RLD’s progress. Once MD’s output progress catches-up with RLD’s latest output, MD would seamlessly take over the token generation and replace RLD. The primary advantage of this mode is that it is completely transparent to the user; there are no observable fluctuations in OTPS (Output Tokens Per Second) and no temporary output stalls. However, to mask the computational time required for the MD’s Extend-Decode Handoff phase, the RLD instance must continue generating a supplementary set of Catch-Up Tokens before relinquishing control. The existence of these Catch-Up Tokens slightly increases the compute and memory load on the RLD instance.
One-Shot Handoff Mode. Alternatively, the RLD instance can transfer the entirety of its generated eager output tokens to the MD instance in a one-shot style and immediately evict the request, ceasing all further computation. The MD instance must then independently execute the Extend-Decode computation without latency overlapping. While this mode significantly reduces the load of RLD instance by minimizing its active inference duration, it introduces a trade-off: if the Extend-Decode overhead is substantial, the user may experience a temporary “frozen output” phenomenon, which also negatively impacts the overall OTPS.
Overhead Analysis. Both handoff modes replace the bulky incremental KV cache transmission with negligible Token ID transfers. The local recomputation on the memory-bound MD instance incurs minimal overhead, which is far more efficient and reliable than Ethernet-based KV transmission. PDD can dynamically alternate between these two strategies based on the real-time load of the RLD instance. For example, when RLD utilization is moderate and spare compute capacity is available, the system defaults to Catch-Up Handoff to guarantee a seamless, high-quality user experience.
Implications for Inference Infrastructure
Beyond optimizing pipeline orchestration, the PDD architecture provides novel perspectives for the construction of future inference infrastructure. Among these, the most significant and insightful shift is that PDD enables low-cost, fine-grained heterogeneous deployment within a single datacenter.
Low-Cost, Fine-Grained Heterogeneous Deployment. In a traditional intra-DC heterogeneous PD disaggregation system, accommodating both compute-bound prefill and memory-bound decode typically requires building massive, monolithic heterogeneous clusters. This approach introduces large amounts of secondary hardware (e.g., memory-access-efficient chips) alongside primary compute accelerators within a single RDMA domain. Such large-scale heterogeneity not only incurs extremely high cost but also suffers from severe inflexibility; when workload patterns shift, the fixed, rigid ratio of heterogeneous machines could easily lead to substantial resource waste.
The PDD architecture fundamentally resolves this bottleneck. Because the RLD instance only processes a small fraction of initial decoding tokens and merely works for low-hit-rate requests, it requires only moderate memory bandwidth and very little FLOPs. Consequently, providers can deploy a minimal fraction of memory-access-efficient chips for RLD instances, while allocating the vast majority of resources to compute-heavy P instances. The bulk of the decoding workload is then seamlessly offloaded to MD instances in a remote datacenter.
Flexible Cross-DC Topologies. Additionally, the decoupling of P/RLD and MD naturally extends to highly flexible cross-DC topologies. Based on the scalability of wide-area Ethernet, PDD enables a vast array of interconnection modes between P/RLD and MD clusters. Geographically dispersed primary datacenters (hosting P and fine-grained RLD) can be interconnected to centralized, large-scale MD clusters, or they can form distributed many-to-many topologies tailored to specific traffic distributions. This versatility allows MaaS providers to horizontally scale compute-bound prefill capabilities locally while flexibly centralizing or distributing memory-bound decode workloads, maximizing global resource utilization without being constrained by a single datacenter’s physical limits.
Evaluation
This section presents preliminary experimental results to validate the feasibility and core advantages of the PDD architecture. It should be noted that these results are non-exhaustive and primarily serve to demonstrate the effectiveness of PDD’s latency overlaping and cost-efficient heterogeneous deployment under Agentic workloads. Comprehensive system-level optimizations, further adaptation to other heterogeneous chips, and large-scale empirical evaluations are planned for future work.
Experimental Setup
Baselines and Metrics. To evaluate the effectiveness of latency overlaping, we compare PDD against a traditional Cross-Datacenter PD Disaggregation baseline (denoted as CDC-PD). In this setup, DRC is enabled properly but RLD latency overlaping mechanism is not employed. To evaluate the cost-efficiency of PDD, we compare PDD against intra-DC PD Disaggregation (denoted as IDC-PD). Key metrics monitored in the evaluation include TTFT, TPOT, and RPS.
Microbenchmark: RLD Load Analysis and Handoff Overhead
To evaluate the overhead of the Extend-Decode Handoff mechanism, we conducted micro-benchmarks to compare the naive approach of transmitting incremental KV caches over Ethernet against our proposed local recomputation approach (transmitting lightweight Token IDs followed by MD-side recomputation).
In contrast, our local recomputation approach transmits only a few kilobytes of Token IDs (e.g., 1.5 KB). This transmission is fully asynchronous—RLD sends each token ID to MD as it is generated—making its network overhead negligible. The local Extend-Decode recomputation for 100 tokens takes an average of 305.2ms. Although the baseline average time is slightly higher than a clear-network KV transmission, its maximum latency is capped at 321.4ms with a minimal standard deviation of 4.8ms. Crucially, it is immune to network fluctuation and queueing interference and eliminates extra H2D/D2H overheads entirely.
Cost-Efficiency and Benefit-Cost Ratio of Heterogeneity
It is worth noting that these preliminary results do not fully capture the ultimate potential of PDD-enabled, cross-datacenter heterogeneous disaggregated inference. First, due to resource constraints, our testing was limited to a medium scale, utilizing 3 H100 nodes as the RLD instance—the minimal setup required for H100 GPUs to serve the Deepseek-V4-pro model. Given the relatively low RLD load at this scale, we expect its associated cost overhead to be better amortized in larger deployments, potentially yielding an even higher BCR for PDD. Second, our experiments only evaluated heterogeneity between H100 and H200 GPUs. While their cost-performance divergence across the P and D phases of Deepseek-V4-pro is significant, this is not the optimal pairing; integrating other specialized AI chips with H100 or H200 could unlock substantially greater BCR improvements. Finally, MTP was disabled and some other system-level optimizations for both phases were not fully applied (due to DRC related compatibility issues), resulting in a performance gap compared to State-of-the-Art (SOTA) implementations. Nevertheless, this lack of tuning does not undermine our core conclusion: PDD-style heterogeneous deployment is able to achieve higher BCR in SLA-compliant goodput compared to traditional homogeneous PD disaggregation.
Discussion
Effectiveness Rooted in Workload Characteristics. The superior performance of PDD is not merely a byproduct of advanced network optimization (which we did in extensively optimizing the TCP ransfer code in MoonCake Transfer Engine), but rather the result of deeply exploiting the intrinsic characteristics of Agentic workloads. The highly skewed distribution of prefix cache hit rates (averaging 90% with over 70% exceeding 95%) fundamentally alters the network traffic profile. By routing the vast majority of high-hit-rate requests through the P-MD pipeline, the payload size is drastically minimized, circumventing TCP connection pool exhaustion and Ethernet congestion. Consequently, the system only needs to apply the latency masking mechanism to the isolated tail of low-hit-rate requests via the P-RLD-MD pipeline. By converting unreliable, bulky cross-datacenter KV cache transmissions into lightweight Token ID transfers followed by local recomputation, PDD transforms an unpredictable wide-area network bottleneck into a deterministic, compute-bound local operation.
Limitations and Future Improvements. While our preliminary evaluations demonstrate clear advantages, certain limitations exist that point to future research directions. First, due to hardware availability, our RLD deployment was constrained to a 3-node H100 setup. Given that RLD handles only 6.2% of the total token generation load, we anticipate that in larger-scale deployments, the fixed RLD overhead will be better amortized, yielding even higher BCR. Second, system-level optimizations such as MTP were disabled in our current tests due to DRC compatibility constraints. Finally, our evaluation paired H100 with H200 GPUs. Exploring the integration of highly specialized, non-GPU AI accelerators (e.g., ASICs optimized for memory-bound decoding) holds the potential to unlock substantially greater cost-efficiency.
Implications for Future MaaS Infrastructure. Beyond algorithmic optimizations, PDD offers a paradigm shift for datacenter construction. Traditional intra-DC heterogeneous deployments require massive, rigid, monolithic clusters, incurring prohibitive cost and poor adaptability to shifting model architectures. PDD validates a “minimal local heterogeneity + flexible remote disaggregation” approach. By requiring only a tiny fraction of memory-access-efficient chips for RLD instances within a primary compute-heavy datacenter, and offloading the bulk of the decoding workload to geographically dispersed MD clusters via low-cost Ethernet, MaaS providers can achieve unprecedented elasticity. This fine-grained, cross-datacenter design establishes a scalable and economically viable blueprint for next-generation inference infrastructure.
Conclusion
The rapid evolution of LLMs and their diverse hardware requirements have made heterogeneous Prefill-Decode disaggregation a necessity for cost-efficient inference. However, deploying such systems across geographically dispersed datacenters introduces severe wide-area Ethernet bottlenecks, particularly for latency-sensitive Agentic workloads characterized by ultra-long contexts and high prefix hit rates. In this technical report, we proposed PDD, a novel three-tier cross-datacenter architecture designed to enable economical and flexible heterogeneous inference. PDD introduces a co-located RelayDecode instance that eagerly generates initial tokens via high-speed RDMA to mask the slow cross-datacenter KV transfer. To seamlessly hand off decoding to the remote MainDecode instance, we designed the Extend-Decode Handoff mechanism, which transmits only lightweight Token IDs and leverages local recomputation, effectively eliminating bulky and unreliable network transfers. Supported by a multi-stage pipeline orchestration that routes traffic based on cache hit rates, PDD prevents RLD overload while maintaining cache consistency.
Extensive evaluations on DeepSeek-V4-pro using real-world Agentic workload traces demonstrated the efficacy of our approach. Compared to the traditional Cross-Datacenter PD baseline, PDD successfully masked transmission latency, reducing P90 TTFT by approximately 46% and capping maximum handoff latency at 321.4ms with minimal variance. Furthermore, compared to the Intra-DC homogeneous PD baseline, PDD’s fine-grained heterogeneous mapping of compute-intensive and memory-bandwidth-optimized hardware achieved a Benefit-Cost Ratio up to 37.5% higher in SLA-compliant goodput. Ultimately, PDD not only resolves the immediate transmission bottlenecks of cross-datacenter inference but also provides a highly scalable, adaptable, and cost-effective blueprint for future MaaS infrastructures.


