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

Mix-Quant: Quantized Prefilling, Precise Decoding for Agentic LLMs

Haiquan Lu, Zigeng Chen, Gongfan Fang, Xinyin Ma, Xinchao WangarXiv 2026

TL;DR

Mix-Quant is a phase-aware quantization framework designed to accelerate LLM agents by decoupling the prefilling and decoding stages of inference. By applying aggressive 4-bit quantization (NVFP4) exclusively to the compute-bound prefilling phase and keeping the autoregressive decoding phase in high-precision BF16, it achieves up to a 3× prefill speedup on modern hardware while avoiding the catastrophic accuracy drops typical of uniform quantization.

What Problem Does This Paper Address?

LLM agents are highly effective at solving complex, multi-step tasks by interacting with environments, utilizing tools, and retrieving memories. However, these agentic workflows introduce a massive system bottleneck: they are incredibly input-heavy. As an agent interacts across multiple turns, it repeatedly appends tool outputs, system prompts, and execution histories to its context. This causes the input context to grow exponentially, often making it tens to hundreds of times longer than the generated output.

Consequently, the compute-intensive prefilling phase (processing the prompt and building the KV cache) dominates the inference cost. Traditional model-efficiency techniques fall short here:

  1. Weight-only quantization (e.g., INT4 weights) speeds up decoding by reducing memory bandwidth but does little for prefilling, which is compute-bound.
  2. Uniform weight-and-activation quantization (e.g., W4A4 across the board) accelerates prefilling but severely degrades agent performance because small numerical errors accumulate and snowball during autoregressive decoding, leading to broken tool calls or corrupted logic.

Methods

Mix-Quant solves this dilemma with a phase-aware quantization strategy that treats prefilling and decoding as distinct workloads.

Figure 2: Overview of Mix-Quant for efficient agentic LLM inference. Agentic workflows re- peatedly incorporate tool outputs, memory retrievals, and intermediate results into the input context, making the prefilling stage increasingly compute-intensive. Mix-Quant adopts a phase-aware quanti- zation strategy: the context prefilling phase is accelerated with high-throughput NVFP4 computation, while autoregressive token-by-token decoding remains in BF16 to avoid error accumulation and preserve generation quality.
  • Quantized Prefilling (NVFP4 W4A4): During the prefilling phase, Mix-Quant applies ultra-low-bit weight-and-activation quantization using the NVFP4 format (a microscaling FP4 format natively supported by NVIDIA Blackwell architectures). It utilizes a two-level scaling approach (tensor-level and fine-grained block-level scales with a group size of 16) alongside simple Round-to-Nearest (RTN) quantization to maximize hardware throughput.
  • Precise Decoding (BF16): To prevent error propagation over long agent trajectories, the autoregressive decoding phase is kept entirely within the original high-precision BF16 format.
  • Prefill-Decode Disaggregation Deployment: To avoid low-level kernel switching overhead or KV-cache misalignment on a single GPU, the authors deploy Mix-Quant in a disaggregated architecture. Dedicated prefill workers execute the NVFP4 pipeline, generate the initial KV cache, and transfer it via a high-speed network layer (NIXL) to decode workers operating in BF16.

Datasets

The authors evaluated Mix-Quant across a diverse suite of open-weight models (including Qwen3-8B, Qwen3.5-9B, Gemma-4-26B, and Gemma-4-31B) using several demanding benchmarks:

  • Agentic Workflows: BFCL v4 (Berkeley Function Calling Leaderboard) for tool use, LongMemEval for long-term interactive memory, and $\tau^2$-bench for stateful interactive conversations.
  • Long-Context Reasoning: LongBench-V2 and AA-LCR for understanding and synthesizing long documents.
  • Mathematical Reasoning: Math500, AIME24, and AIME25.

Key Insights and Ideas

  • The Asymmetry of Quantization Error: Prefilling processes a fixed input sequence in parallel, meaning quantization errors act as a representation-level perturbation rather than a recursive error loop. Decoding, however, is a sequential decision process where a single altered token completely derails the future generation trajectory.
  • Attention Mass Concentration: Why is long-context prefilling so robust to aggressive 4-bit quantization? The authors discovered that in a 128K context, an average of 95.8% of the total attention mass is concentrated on just the top 3.125% of tokens (the "heavy hitters"). Quantization errors on the remaining low-attention tokens are naturally attenuated by their tiny attention weights, preventing explosive error growth during prefilling.
Figure 3: Attention mass concen- tration in a 128K-token context. The top 4,096 tokens, representing only 3.125% of the full 128K-token context, account for an average of 95.8% of the total attention mass. This suggests that long-context at- tention is highly concentrated on a small subset of tokens.

Key Results

  • Substantial Speedups: Mix-Quant achieves a 2–3× end-to-end prefill latency speedup over the standard BF16 baseline across varying sequence lengths and batch sizes on NVIDIA RTX 5090 and B200 GPUs.
  • Performance Recovery: Compared to uniform NVFP4 quantization, which severely damages model accuracy, Mix-Quant recovers the vast majority of lost performance. For instance, on the agentic benchmarks, uniform NVFP4 drops Qwen3.5-9B's average score from 77.31% to 70.37%, whereas Mix-Quant brings it back up to 74.68%. On Gemma-4-31B-it, Mix-Quant nearly matches the unquantized BF16 baseline (77.14% vs 77.63%).
Figure 1: Agentic workflows are highly input-heavy, introducing substantial prefilling overhead. NVFP4 quantization can greatly accelerate computation, but applying it to both prefilling and decod- ing causes notable accuracy degradation. Mix-Quant instead uses NVFP4 for prefilling and precise BF16 for decoding, achieving substantial speedup while largely preserving agentic performance.

Limitations and Future Work

While Mix-Quant significantly mitigates accuracy loss, prefill quantization can still slightly perturb hidden states and the initial KV cache, leading to minor performance drops on highly sensitive tasks. Additionally, the current implementation relies heavily on native hardware support for NVFP4 (NVIDIA Blackwell architecture).

For future work, the authors suggest combining Mix-Quant with algorithmic optimizations like dynamic sparse attention to further alleviate the long-context prefilling bottleneck.

Summary updated

BibTeX
@misc{lu2026mix,
  author = {Haiquan Lu and Zigeng Chen and Gongfan Fang and Xinyin Ma and Xinchao Wang},
  title = {{Mix-Quant: Quantized Prefilling, Precise Decoding for Agentic LLMs}},
  year = {2026},
  eprint = {2605.20315},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.20315},
}
Figure