A language model processing a prompt has many known positions available at once. Once it starts generating, it repeatedly needs the next position. The authors of the disaggregated quantization study test different numerical choices for these two phases using Qwen 3 and Gemma 3. Their comparison makes a single label such as four-bit inference less informative unless it identifies what was quantized and when.
Timing the wait for the first token
For a 27B model at an 8K prompt length in llama.cpp, the authors report a 1.78-fold time-to-first-token speedup for an approach that streams prefill weights from SSD, relative to their weight-only baseline. The timing ends when the first token becomes available. It does not measure the time required to produce a long continuation. A reader evaluating a chat interface would also want the output length and subsequent decoding rate, while someone classifying many long documents into short labels might care much more about that first interval.
The Hardware Divide Between Prefill and Decode
In prefill, the model processes user input and builds a key–value cache that will be reused during decoding. At this stage, each weight is loaded only once per prompt, meaning the cost of transferring weights from memory into compute units dominates. As the prompt length increases, computation becomes more efficient due to reuse, but the initial load remains costly. In contrast, decode involves repeated matrix multiplications using cached representations. Here, the bottleneck shifts to memory bandwidth and access latency, not weight transfer. Because activation values are reused across tokens, reducing activation precision can save significant memory traffic without sacrificing much accuracy. This divergence in cost structure means that a single quantization strategy cannot efficiently serve both phases.
The researchers designed their evaluation around these distinct load profiles. They measured inference time, memory bandwidth usage, and accuracy on benchmark tasks like MMLU-Pro and MMMU-Pro—tasks known to be sensitive to model precision during response generation. By isolating prefill and decode phases in training and testing, they could assess how different quantization formats affect each stage independently. For instance, they tested whether low-precision compute (like NVFP4) could accelerate prefill without degrading accuracy, or whether compact weight encodings (such as LUT2A16 or LUT3A16) could reduce decode memory traffic while maintaining response quality.
Prefill and decode phases of language model inference operate under distinct hardware constraints. During prefill—when the model processes a prompt—the computation is intensive and time-sensitive, requiring fast arithmetic to handle large context lengths efficiently. In contrast, during decode, which generates token-by-token output, memory bandwidth and precision efficiency dominate, as the model repeats the same operations with smaller, more predictable workloads. This divergence means that optimizing for one phase can degrade performance in the other if a uniform quantization strategy is applied. For instance, low-precision arithmetic like NVFP4 accelerates prefill by enabling hardware-native computation paths, while compact decode weights reduce memory traffic during generation. These differing demands justify separating quantization strategies: prefill benefits from high-precision, compute-efficient formats, whereas decode can use lower-bit representations that prioritize storage and bandwidth savings.
The distinction between prefill and decode is rooted in how memory access and compute load evolve across inference phases. During prefill, the model processes a prompt of variable length, requiring full weight loading for each token. This phase is dominated by memory bandwidth as weights are fetched from DRAM into compute units—especially at batch one, where no token reuse occurs. In contrast, decode operates with repeated use of key-value (KV) cache entries, making it more compute-intensive per token due to cross-attention and linear layer operations. The hardware cost profile shifts: prefill is memory-bound early in the sequence, while decode becomes compute-bound as tokens accumulate. This divergence means that optimizing for one phase may degrade performance in another unless their computational demands are decoupled. Evidence from timing measurements on DGX Spark shows that activation quantization during decode adds measurable overhead—specifically, an FP4-quantized activation call before each linear layer operation—without contributing to accuracy gains. These data confirm that decode’s arithmetic is not just a passive computation but involves active memory and processing costs that can be isolated and evaluated independently.
Specializing Quantization for Each Phase
The core innovation was to decouple quantization decisions between prefill and decode—what they call disaggregated quantization (DQ). In conventional setups, both phases use the same weight precision and activation format. DQ instead allows each phase to adopt its own optimal configuration: prefill can leverage hardware-native low-precision arithmetic for faster computation, while decode uses compact weight encodings that minimize memory traffic without requiring full activation quantization.
For example, during prefill, weights are trained using native NVFP4 compute formats, which allow efficient matrix operations. This improves the speed of prompt processing—especially critical in real-time applications where time-to-first-token matters. Meanwhile, during decode, weights are stored in a compact format (like 2-bit or 3-bit LUTs), and activation quantization is omitted entirely. This reduces memory pressure during generation while preserving accuracy.
Crucially, this approach does not require modifying the decoder checkpoint. Instead, a specialized prefill model—trained with native compute formats and optimized for prompt processing—is paired with an existing, frozen decode model. The training process uses a quantization-aware distillation mask that signals when input tokens are being processed (prefill) versus when output is being generated (decode). This ensures both pathways learn to produce consistent responses under the same objective.
The evaluation showed that removing activation quantization specifically during decode improved accuracy on tasks where response quality was paramount—without increasing inference cost.
To support this architecture on devices with limited memory, the team introduced offloaded disaggregated prefill (ODP), which streams prefill weights from an SSD between requests. This amortizes the cost of loading large models over multiple prompt tokens, enabling faster startup times and better resource utilization. On a 27B model at 8K prompt length, ODP achieved a 1.78x speedup in time-to-first-token compared to standard weight-only inference.
Despite these advances, limitations remain. The training process requires careful design of the distillation mask and loss function to ensure that both prefill and decode paths converge toward consistent outputs. Additionally, while accuracy gains are clear on benchmark tasks, real-world performance under diverse input types—such as long-form reasoning or complex instruction-following—remains under active investigation. Still, the work establishes a practical framework where hardware constraints and inference phases can be meaningfully aligned through targeted quantization choices.
Training a Specialized Prefiller for Existing Decoders
The method proposed involves training a dedicated prefill model—called a “prefiller”—on top of a pre-existing, quantized decoder checkpoint. This prefiller is trained using only the frozen weights of the decoder, which remain unmodified throughout training. The gradients flow solely through the prefill pathway, allowing the prefill weights to adapt to the internal representations used by the decoder during generation. This approach does not require access to the decoder’s training data or optimization details; it only needs the final quantized checkpoint as input. By doing so, the prefiller learns how to process inputs in a way that aligns with the decoder’s expected intermediate states, even when the decoder itself is compressed using low-bit quantization. The resulting model retains the original decoder’s compact weights and execution path while introducing hardware-native precision in the prefill stage. This enables faster prompt processing without sacrificing decode accuracy or requiring changes to the existing decoder.
Observed Accuracy Gains on Key Reasoning Benchmarks
When evaluated on reasoning-heavy benchmarks such as MMLU-Pro and MMMU-Pro, training an NVFP4 prefiller on a Qwen 3.8-27B model significantly improves decode performance at low bitwidths. On MMLU-Pro, the accuracy of a 1-bit decoder increases by 32.5 points compared to a weight-only baseline, and similarly by 35.3 points on MMMU-Pro. These gains are most pronounced at 1-bit decode, where the prefiller’s learned representations better match the decoder’s internal state than generic low-precision arithmetic could achieve. Notably, these gains are observed without any changes to the decoder checkpoint itself; the improvement stems entirely from the specialized prefiller’s training. The results hold across both text and visual reasoning tasks, suggesting that the learned prefiller generalizes well beyond its training data. Importantly, this performance boost occurs while maintaining the same inference cost in terms of compute time—no additional hardware or memory is required beyond what is already present in standard serving pipelines.
Accuracy Gains Are Not Universally Transferable
The study evaluates only decode-heavy reasoning and single-turn prefill-heavy prompts, with no analysis of multi-turn conversations or agentic workflows where the same token history is reused over time. In such scenarios, cached KV entries from prior decode steps are re-entered during new prefill phases, potentially leading to inconsistent representations. Furthermore, while disaggregated prefill improves 1-bit decode accuracy by up to 35 points on MMMU-Pro, this benefit is measured only against baseline weight-only models with identical decode checkpoints. No evaluation exists for how such gains hold when the prefill and decode phases are mixed in a dynamic, multi-turn setting—where both phases may use different quantization paths and memory access patterns.
How Cache Reuse Affects Phase-Specific Weights
A central open question is whether the reuse of cached KV entries during multi-turn inference undermines the benefits of phase-specialized weights. In standard serving, when a model generates a response, it stores KV pairs in memory for future use. When the same prompt is reprocessed with new context (e.g., in a follow-up query), the decoder may reconstruct the cache using prior tokens—effectively treating the prefill phase as part of the decode process. This creates a feedback loop where the representation used during prefill influences how the model interprets later tokens, even if those tokens were generated from a different phase. For instance, a prompt processed with high-precision prefill might generate a response that relies on fine-grained attention patterns incompatible with low-bit decode weights. No experiment has tested this scenario: there is no data showing how cache reuse affects the fidelity of phase-specialized models when both phases are involved in a single session. Without such evaluation, it remains unclear whether disaggregated quantization provides robustness under real-world use patterns involving repeated interactions and context retention.
The current evidence supports that prefill and decode can be optimized independently for accuracy and efficiency—especially on single-turn tasks with clear phase boundaries. However, the absence of multi-turn testing means these gains cannot be assumed to hold in more complex, dynamic workflows. Similarly, although training specialized prefill weights improves decode accuracy on benchmarks, the mechanism by which this occurs—whether through better context modeling or reduced noise in early tokens—is not fully explained. The lack of ablation studies on cache policy dependence leaves a gap in understanding how phase-aware models behave when their inputs are reused across time. Until such scenarios are tested, the full potential and limitations of disaggregated quantization remain uncertain.
A Hypothetical Scenario: Who Cares About the First Token?
Imagine a small business using an AI assistant to process incoming customer inquiries. Each day, they receive hundreds of short messages—some simple, like “What’s your return policy?”—and must respond within seconds to avoid losing customers. A delay in that moment can trigger frustration or abandonment.
Now consider two different configurations of the same 27B model running on a local machine via llama.cpp. In the other, the prefill phase uses a specially trained 3-bit NVFP4 prefiller stored in SSD, while decoding continues with standard 1-bit weights. The timing is measured from when the prompt is received until the first token appears—this is the time-to-first-token (TTF).
In contrast, a data analyst reviewing thousands of documents for classification would care deeply about the total inference time. They need the model to process long prompts and produce accurate short labels efficiently.
Two Possible Outcomes and Their Implications
In this case, the customer service team sees a clear win—users get answers sooner—but the data analyst observes no gain in throughput or accuracy during full document processing.
Here, both the service team and the data analyst benefit—responses are faster, and answers are more reliable. This would imply that disaggregated quantization isn’t just about speed; it can simultaneously improve performance across different use cases by tailoring precision to each phase.
Crucially, these outcomes remain conditional. The real-world impact depends on what the user is measuring, and who is making that measurement. A prompt-processing interface prioritizes response time; a document classification pipeline prioritizes consistency and completeness.
The 1.78x speedup is real, but its value depends entirely on the user’s goals. Without knowing whether the final output quality or total processing time improves, we cannot claim that disaggregated quantization delivers overall better performance.
In practice, a system designer must ask: Who is using this model, and what does success look like? If users expect instant replies, prefill optimization makes sense. If tasks require long reasoning chains, decoding precision becomes more important.


