How Far Does Second-Order Linear Response Predict Quantization Mismatch? Pre-Registered Measurements on Five Language Models

Dezhen Lu, Zixiang NiarXiv 2026

TL;DR

Quantizing Large Language Models (LLMs) is a balancing act between memory efficiency and model quality. This paper rigorously tests whether second-order Taylor expansions—the math behind most modern quantizers—can actually predict the resulting "damage" (KL divergence). The authors find that while standard implementations are prone to massive numerical errors and heavy-tailed outliers, a refined "screener" using fp32 gradients and trimmed averages can reliably predict quantization mismatch across different model families.

What Problem Does This Paper Address?

When deploying LLMs, engineers must choose a weight format (e.g., int8, fp8, or int4 with various group sizes). Ideally, you want a "screen"—a low-cost way to predict how much a specific quantization scheme will degrade the model's output without running expensive full-task evaluations.

The industry standard for this is a second-order linear response: estimating the KL divergence between the original and quantized model using Fisher information ($\frac{1}{2}\Delta^\top F\Delta$). However, the reliability of this estimate in real-world GPU serving stacks hasn't been thoroughly vetted. The authors investigate where this linear response holds, where it breaks, and how to build a prediction tool that engineers can actually trust.

Methods

The researchers employed a rigorous pre-registered experimental design, freezing their hypotheses and decision rules before running tests on new models. Their approach involved:

  1. Fisher Information Estimation: Computing per-sequence gradients to estimate the diagonal and "tensor-block" parts of the Fisher matrix.
  2. Precision Analysis: Comparing bf16 vs. fp32 for the backward pass to identify numerical instabilities.
  3. Robust Statistics: Moving from plain averages to trimmed averages (dropping the top 5% of sequences) to handle the heavy-tailed distribution of quantization errors.
  4. Alpha Scans: Scaling the quantization perturbation ($\Delta$) by a factor $\alpha$ to check if the response is truly quadratic (as the theory assumes).
  5. The Screener: They built a tool that performs a single streamed Fisher pass to predict KL divergence and allocate bit-widths per layer to meet a specific "quality budget."

Datasets

The study focused on calibration and evaluation across several model families:

  • Qwen3 Family: 4B, 8B, and 32B dense models, plus a 30B Mixture-of-Experts (MoE) model.
  • OLMo-2-7B: A model from a different architecture family to test generalization.
  • Mistral-7B-v0.3: Used as a completely "unseen" test family for the final pre-registered validation.
  • Calibration Sets: Various sets of 256 to 512 prompts sampled using different engines (HuggingFace fp32 vs. vLLM).

Key Insights and Ideas

  • The bf16 Gradient Trap: One of the most surprising findings was that computing gradients in bf16 can lead to 4x prediction errors. This isn't due to the model itself, but numerical instability in the lower layers of the backward pass. Using fp32 for just the lower half of the backward pass eliminates these "blow-ups."
Figure 1: Per-sequence ratio of the bf16 to the fp32 quadratic form (int8), sorted. Dotted: the post-hoc threshold 10.
  • Heavy Tails and the "Typical" Sequence: Quantization damage is not spread evenly. A few "difficult" sequences often dominate the average KL divergence. This makes plain averages unstable. A trimmed average provides a much more reliable estimate of how a model will perform on a "typical" input.
  • The Breakdown of the Diagonal: Most quantizers assume rounding errors are independent (the "diagonal" assumption). The authors found this fails for int4 on larger models (32B), where rounding errors can align coherently with the gradient within a single tensor, causing the diagonal estimate to under-predict damage by over 5x.
  • MoE Non-Analyticity: Mixture-of-Experts models are particularly tricky. Because small perturbations can flip routing decisions (which expert a token goes to), the response is non-quadratic and harder to predict with standard second-order tools.

Key Results

The authors' refined screener was validated on the unseen Mistral-7B-v0.3 family with impressive results:

  • Accuracy: All six pre-registered predictions fell within the target "band" ([0.75, 1.50] ratio of measured to predicted KL).
  • Reliability: On Qwen3-4B and OLMo-2, the trimmed average brought 10 of 12 test cells within 15% of the measured KL.
  • Throughput: The tool predicted vLLM throughput for mixed-format checkpoints within 0.4%.
  • Efficiency: Screening three formats and every budget for a 7B model took only ~8 GPU-minutes.
Figure 3: Measured over predicted KL (5%-trimmed) for the 17 archived dense cells at α = 1 that set the band (blue) and the six pre-registered test cells on Mistral-7B-v0.3 (orange), under the tensor-block form (filled) and the element-diagonal form (open). Shaded: the frozen band [0.75,1.50]. i4 rest: Qwen3-32B int4 without its one coherent tensor; Bk: budgets.

Limitations and Future Work

  • MoE Complexity: The second-order expansion struggled with the MoE model due to routing flips. Future work is needed to develop better "screens" for sparse architectures.
  • Hardware Specifics: Most tests were conducted on NVIDIA GH200 GPUs. While the numerical findings (like the bf16 blow-up) are likely architectural, the specific throughput predictions might vary on other hardware.
  • The "Optimizer's Curse": The authors noted that using very small calibration sets (e.g., 8 sequences) leads to over-optimistic results because the allocator "overfits" to the specific noise of those sequences. They recommend at least a few hundred sequences for stable allocation.
  • Noise Floor: There is a fundamental "noise floor" in LLM engines (~0.2 nats) caused by non-deterministic reduction orders in kernels, which limits the resolution of any quantization measurement.

Summary updated

BibTeX
@misc{lu2026how,
  author = {Dezhen Lu and Zixiang Ni},
  title = {{How Far Does Second-Order Linear Response Predict Quantization Mismatch? Pre-Registered Measurements on Five Language Models}},
  year = {2026},
  eprint = {2611.12634},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.12634},
}
Figure