Prefill-Decode Aggregation or Disaggregation? Unifying Both for Goodput-Optimized LLM Serving

Chao Wang, Pengfei Zuo, Zhangyu Chen, Yunkai Liang, Zhou Yu, Ming-Chang YangarXiv 2025 · DOI

Introduction

Serving Large Language Models (LLMs) involves two distinct phases: prefill (processing the input prompt to generate the first token) and decode (generating subsequent tokens one by one). These phases have different computational profiles and Service Level Objectives (SLOs). TTFT (Time-to-First-Token) measures responsiveness, while TPOT (Time-per-Output-Token) measures the perceived "reading speed."

Currently, the industry is split between two serving strategies. PD Aggregation co-locates both phases on the same GPU, which is great for responsiveness but suffers from "interference" where heavy prefill tasks stall ongoing decodes. PD Disaggregation separates these phases onto different GPUs to eliminate interference, but this often leads to "prefill bottlenecks" where a few GPUs are overwhelmed by prompts while others sit idle. Neither approach handles "balanced" SLOs well: aggregation violates TPOT targets due to interference, while disaggregation violates TTFT targets due to queuing.

The trade-off between TTFT and TPOT in traditional serving strategies vs. TaiChi's balanced approach.

The TaiChi Architecture

TaiChi is a new LLM serving system that ends this debate by unifying both strategies into a single hybrid architecture. It utilizes "differentiated-capability" GPU instances:

  1. P-heavy Instances: Optimized for fast prefill using large "chunk" sizes.
  2. D-heavy Instances: Optimized for low-interference decode using small chunk sizes.

The core innovation is Latency Shifting, managed through two primary scheduling mechanisms:

  • Flowing Decode Scheduling: Decode requests initially start on D-heavy instances. If the system becomes congested, the scheduler "flows" the longest-running decode tasks—which have the most "slack" in their TPOT budget—to P-heavy instances. This intentionally degrades their speed slightly to free up high-quality resources for newer requests.
  • Length-Aware Prefill Scheduling: The system estimates the TTFT for incoming prompts. Short prompts are routed to the "slower" D-heavy instances, reserving high-speed P-heavy instances for long, computationally expensive prompts that would otherwise cause massive queuing delays.

Key Insights: Harvesting Slack

The authors discovered that in traditional systems, over 75% of requests often beat their SLOs by a wide margin (e.g., achieving a TTFT 60% faster than required). TaiChi "harvests" this unnecessary performance and redistributes it to requests at risk of violation. This is supported by a quantified "linear interference" model, showing a strong linear relationship between concurrent prefill tokens and decode slowdown.

When choosing which decode task to move to a high-interference node, TaiChi employs a Longest-First Degradation heuristic. Requests with the longest current output have already "banked" many fast iterations, making them more resilient to temporary slowdowns without violating their overall average TPOT target.

Evaluation and Results

TaiChi was evaluated using real-world workloads like ShareGPT (short prompts) and Arxiv Summarization (long-context tasks) on Qwen2.5 models.

Performance comparison of aggregation, disaggregation, and the balanced state across different query-per-second (QPS) levels.

As shown in the performance analysis, TaiChi significantly improves "goodput"—the throughput achieved while strictly meeting SLOs. Key results include:

  • Goodput Improvement: TaiChi improved goodput by 20–47% over PD aggregation and 30–77% over PD disaggregation.
  • Latency Reduction: It achieved up to a 13.2× reduction in P90 TTFT compared to disaggregation and a 1.69× reduction in P90 TPOT compared to aggregation.
  • Minimal Overhead: Scheduling logic and KV-cache transfers accounted for less than 1% of total request time.

Conclusion

TaiChi demonstrates that the choice between aggregation and disaggregation is a false dichotomy. By strategically shifting latency and differentiating GPU roles, systems can achieve significantly higher goodput. Future work includes dynamic adjustment of instance ratios and integrating output length prediction to further refine scheduling precision.

Summary updated

BibTeX
@misc{wang2025prefill,
  author = {Chao Wang and Pengfei Zuo and Zhangyu Chen and Yunkai Liang and Zhou Yu and Ming-Chang Yang},
  title = {{Prefill-Decode Aggregation or Disaggregation? Unifying Both for Goodput-Optimized LLM Serving}},
  year = {2025},
  eprint = {2508.01989},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.01989},
}
Figure