NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

When Does Disaggregation Pay? Simulating Prefill--Decode--Attention--FFN Specialization for Agentic LLM Inference

Przemyslaw Forys, Haoran Wu, Can Xiao, Jiayi Nie, Tony Liu, Rika Antonova, Timothy Jones, Robert Mullins, Wayne Luk, Aaron Zhao, George A. ConstantinidesarXiv 2026

TL;DR

As Large Language Models (LLMs) transition to long-context agentic workflows, traditional homogeneous GPU systems suffer from severe architectural mismatches across different inference stages. This paper introduces HeteroPanacea, a cross-stack simulation framework that explores full 4-way hardware disaggregation (Prefill, Decode, Attention, and FFN) and demonstrates up to a 2.06× throughput improvement when hardware is custom-tailored to each specific stage.

What Problem Does This Paper Address?

Modern LLM applications are moving away from simple, single-turn chatbots toward "agentic" systems—such as coding assistants and web-use agents—that interact with environments over multiple turns. In these workloads, context accumulates rapidly (often averaging 38K tokens and peaking over 100K), creating a massive computational mismatch across the inference pipeline.

Fig. 1: Motivation of HeteroPanacea, a heterogeneous NPU serving system for agentic LLM workloads.

The prefill phase (processing the prompt) is highly parallelizable and compute-bound, whereas the decode phase (generating tokens autoregressively) is memory-bandwidth-bound. Even within these phases, Attention sub-layers scale quadratically and bottleneck on Key-Value (KV) cache traffic, while Feed-Forward Network (FFN) sub-layers behave like dense matrix multiplications or sparse Mixture-of-Experts (MoE) routing. Running these wildly different workloads on a single homogeneous GPU pool leads to severe resource contention. While splitting prefill and decode (PD disaggregation) is an emerging industry trend, the optimal hardware configuration for finer-grained splits remains an open, highly complex question.

Methods

The authors present HeteroPanacea, an event-driven, system-level simulation framework designed to explore the massive design space of heterogeneous, disaggregated serving. It models five distinct axes:

  1. Parallelism Strategies: Independent configurations for tensor, pipeline, data, and expert parallelism per stage pool.
  2. Prefill-Decode (PD) Disaggregation: Separating prompt processing from token generation.
  3. Attention-FFN (AF) Disaggregation: Splitting attention blocks from feed-forward blocks.
  4. Fine-Grained NPU Configurations: Customizing matrix engine sizes, SRAM/HBM capacities, and bandwidth.
  5. Mixed-Precision Quantization: Independent block-scaled integer (MXINT) configurations per stage.

Instead of slow, cycle-accurate microarchitectural simulation, HeteroPanacea utilizes an analytically grounded roofline execution model combined with physics-based power and interconnect models (accounting for both intra-node device-to-device and inter-node network traffic). It also incorporates an empirical quantization search loop using the MASE framework to evaluate the accuracy impact of stage-wise quantization.

Datasets

The framework's underlying components were validated against real hardware measurements from an 8× NVIDIA B200 server. For evaluation, the authors simulated workloads across eight prominent LLM architectures:

  • Llama-3.1-405B
  • DeepSeek-V4 (Pro and Flash)
  • GPT-OSS
  • Llama4-Scout & Llama4-Maverick
  • Qwen3-235B-A22B
  • GLM-4.6

Workloads were parameterized by prefill-to-output (I/O) token ratios derived from real agentic benchmarks like OSWorld, the Berkeley Function Calling Leaderboard (BFCL), and GSM8K.

Key Insights and Ideas

  • Disaggregation is Highly Conditional: Disaggregation only beats a unified, non-disaggregated setup when the workload is heavily prefill-dominated (high I/O ratio). If the prefill work is small relative to decode, the networking and routing overhead completely erases any benefits.
  • GPUs Lack the Flexibility for Finer Splits: On standard commercial GPUs, compute and memory bandwidth are rigidly tied together. Because of this lack of design flexibility, a 4-way split (PDAF) provides no benefit over a standard 2-way PD split on standard GPU clusters.
  • Custom NPUs Unlock PDAF: 4-way disaggregation (PDAF) truly shines when using custom NPUs where memory and compute can be scaled independently. The optimal NPU configuration gives Decode-Attention the lowest compute tier but the highest memory bandwidth, while giving Prefill stages maximum compute and minimal memory capacity.
  • Quantization Sensitivity is Workload-Dependent: Reducing precision to 4-bit in specific stages impacts accuracy based on the task's context length rather than just the model architecture. Long-context tasks (BFCL) are highly sensitive to attention quantization, whereas short-context reasoning tasks (GSM8K) are severely damaged by FFN quantization.

Key Results

  • GPU Clusters: On current commercial GPU clusters, standard Prefill-Decode (PD) disaggregation increases serving throughput by up to 75% compared to traditional co-located serving.
  • Custom NPUs: When utilizing custom, stage-specialized NPUs, full 4-way PDAF disaggregation achieves up to a 2.06× throughput gain over traditional serving for agentic workloads.
  • The Crossover Point: The transition to a disaggregation-favoring regime is sharp, occurring abruptly as the prefill/output token ratio crosses from 1 to 10.
PDAF throughput relative to non-disaggregated serving across different prefill/output ratios.

Limitations and Future Work

  • Component vs. End-to-End Validation: While individual components (roofline model, power, communication primitives) were validated against an NVIDIA B200 node, the end-to-end serving behavior—specifically scheduling and continuous-batching effects—remains unverified on a fully deployed disaggregated production stack.
  • Quantization Search Expense: Evaluating the accuracy of the quantization search requires running full downstream tasks, making it computationally expensive. Future work will need cheaper accuracy proxies to scale this search across more models.
  • Pricing Model Dependency: The GPU cost-efficiency analysis relies on current cloud provider pricing, which fluctuates and may alter the economic viability of specific disaggregation strategies over time.

Summary updated

BibTeX
@misc{forys2026when,
  author = {Przemyslaw Forys and Haoran Wu and Can Xiao and Jiayi Nie and Tony Liu and Rika Antonova and Timothy Jones and Robert Mullins and Wayne Luk and Aaron Zhao and George A. Constantinides},
  title = {{When Does Disaggregation Pay? Simulating Prefill--Decode--Attention--FFN Specialization for Agentic LLM Inference}},
  year = {2026},
  eprint = {2608.03741},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.03741},
}
Figure