Disaggregated Quantization: Specializing LLM Prefill and Decode

Andrei Panferov, Maximilian Kleinegger, Sweta Priyadarshi, Tijmen Blankevoort, Dan AlistarharXiv 2026

TL;DR

LLM inference consists of two fundamentally different phases: a compute-bound "prefill" phase and a memory-bound "decode" phase. This paper introduces Disaggregated Quantization (DQ), a strategy that splits the quantization formats, weights, and storage placement independently for each phase. By tailoring precision to the unique hardware bottlenecks of prefill and decode, DQ delivers massive accuracy recoveries for low-bit models and accelerates prompt processing without increasing the GPU memory footprint.

What Problem Does This Paper Address?

Standard Large Language Model (LLM) quantization applies a uniform compression format across the entire inference lifecycle. However, LLM inference is a tale of two distinct phases:

  1. Prefill: The model processes the input prompt all at once. This phase is highly parallel and compute-bound, meaning performance is limited by raw math throughput. It benefits from aggressive weight-and-activation quantization (like 4-bit floating point, NVFP4) to speed up matrix multiplications.
  2. Decode: The model generates text token-by-token. This phase is memory-bound, meaning performance is throttled by how fast weights can be loaded from memory into the processor. It benefits from ultra-compact weight-only quantization, while activation quantization only serves to degrade accuracy.

Forcing both phases to share the same quantization scheme creates a harsh trade-off between prompt processing speed and generation quality, particularly at ultra-low bitwidths (1 to 3 bits).

Methods

The authors propose Disaggregated Quantization (DQ) to decouple the quantization strategies for prefill and decode. They introduce three main configurations:

  • Format Disaggregation: Uses low-precision weight-and-activation quantization (NVFP4) to keep prefill fast, but disables activation quantization during decode to preserve generation quality.
  • Full Disaggregation: The model maintains entirely separate weight checkpoints for prefill and decode. They are trained jointly using a novel method called Quantization-Aware Distillation with Disaggregation (QADD). QADD leverages the supervised fine-tuning (SFT) label mask to route tokens through either the prefill or decode computational pathway within a single training pass.
  • Offloaded Disaggregated Prefill (ODP): Storing two sets of weights normally doubles the memory footprint. To fix this for single-device deployment, ODP streams the prefill weights from an SSD block-by-block only during the prefill phase. It temporarily "carves out" an equivalent chunk of memory from the idle decode weights, restoring them before generation begins.

Additionally, the authors show that you can freeze an arbitrary, off-the-shelf weight-only quantized decoder (like a GGUF checkpoint) and train a standalone NVFP4 "prefiller" network specifically adapted to it.

Storage and computation schemes for disaggregated quantization

Datasets

  • Training & Distillation: The core models were trained on 100 million tokens from the Tulu 3 SFT corpus. The 27B model prefillers were distilled using faunix/Qwen3.8-27B-Distillation-40K, a dataset containing 40,000 high-quality reasoning traces.
  • Evaluation: The authors evaluated decode-heavy reasoning via GSM8K, MATH-500, and MMLU-Pro (text) alongside MMMU-Pro (multimodal). Prefill-heavy, long-context capabilities were evaluated using the RULER benchmark at context lengths ranging from 4K to 32K tokens.

Key Insights and Ideas

  • Phase Sensitivity is Workload-Dependent: Quantizing the decode phase hurts performance on reasoning tasks 2–4× more than quantizing the prefill phase. Conversely, on long-prompt tasks, prefill quantization is the primary driver of accuracy loss. Decoupling them allows targeted optimization where it matters most.
  • SSD Latency is Amortized by Context Length: While streaming weights from an SSD sounds slow, prefill compute scales with prompt length, whereas the SSD loading cost per block is fixed. For long prompts (≥4K–8K tokens), the compute time completely hides or dominates the SSD loading latency.
  • Prefillers exhibit Interoperability: A prefiller trained for a 1-bit decoder can successfully pair with and improve a 2-bit decoder, demonstrating that the prefill network learns generalized representations aligned with the base model's architecture.

Key Results

  • Massive Accuracy Gains: For an off-the-shelf 1-bit Qwen3.8-27B GGUF decoder, adding a trained NVFP4 prefiller more than doubled accuracy—boosting MMLU-Pro by 32.5 percentage points and MMMU-Pro by 35.3 points without modifying the decode checkpoint.
  • Real-World Speedups: Integrated into llama.cpp, ODP achieved a 1.78× time-to-first-token (TTFT) speedup over a weight-only baseline at an 8K prompt length on the 27B model.
  • Trillion-Parameter Scale Validation: Post-training format disaggregation (simply turning off activation quantization during decode) was validated on production-grade models up to 2.8 Trillion parameters (including Gemma 4 and Kimi-K3), showing consistent, statistically significant accuracy improvements without any retraining.
Performance and latency benefits of NVFP4 prefillers

Limitations and Future Work

  • Batching and Multi-turn Dynamics: The evaluations primarily focused on batch-one inference. Highly batched scenarios or complex multi-turn agentic behaviors were not explored.
  • Cache-Policy Dependence: In multi-turn conversations, rebuilding the KV cache during prefill might yield slightly different representations than those produced during decode, raising unexamined robustness questions.
  • Incompatibility with MoEs: ODP does not transfer well to Mixture-of-Experts (MoE) models because their sparse activation pattern lowers the compute-to-memory-load ratio, making SSD streaming prohibitively slow relative to compute.

Summary updated

BibTeX
@misc{panferov2026disaggregated,
  author = {Andrei Panferov and Maximilian Kleinegger and Sweta Priyadarshi and Tijmen Blankevoort and Dan Alistarh},
  title = {{Disaggregated Quantization: Specializing LLM Prefill and Decode}},
  year = {2026},
  eprint = {2609.26333},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.26333},
}
Figure