Manuscript Offprint

arXiv:2611.12634

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

Dezhen Lu, Zixiang Ni

Abstract

Serving systems choose a weight format for each model and deployment. A low-cost screen predicts the resulting KL divergence from the unquantized model's Fisher information using 12Δ⊤FΔ\frac{1}{2}\Delta^\top F\Delta, the expansion underlying Hessian-aware and second-order post-training quantizers. We assess the reliability of this screen in GPU batches with channel-wise int8, per-tensor fp8 and group-wise int4 on Qwen3-8B, Qwen3-4B, OLMo-2-7B, Qwen3-32B and Qwen3-30B-A3B. Relative predictions hold across a 16-fold range of perturbation scales, int4 group sizes and rounding modes, while absolute predictions are heavy-tailed. A trimmed average brings 10 of 12 cells on Qwen3-4B and OLMo-2 within 15% of measured KL. The MoE model exhibits nonquadratic response at small perturbations, with int8 KL scaling as α0.63\alpha^{0.63}. Computing per-sequence gradients in bf16 can cause fourfold prediction errors. We trace these errors to arithmetic in the lower half of the backward pass and eliminate them by using fp32 there. Batch-invariant kernels run at 0.55 times the throughput, while changes in reduction order introduce a floor of 0.17–0.22 nats per sequence. We build a screener with one streamed fp32 Fisher pass, trimmed tensor-block predictions with a band, a flag for aligned tensors and per-layer format allocation. On the unseen Mistral-7B-v0.3 family, all six predictions fall within the band, all three KL budgets are met, and vLLM throughput is predicted within 0.4%.

1 Introduction

An LLM serving stack now picks a weight format for every model and deployment: int8 or fp8 where quality matters most, int4 with a group size where memory binds, block-scaled 4-bit formats [22] and, on new GPUs, stochastic instead of nearest rounding [12]. Measuring task quality for every combination is slow, so a screen that predicts the damage from the unquantized model is attractive. The standard one is second order: the KL divergence between a model and its quantized copy is approximately 12Δ⊤FΔ\frac{1}{2}\Delta^\top F\Delta, with FF the Fisher

information and Δ\Delta the weight perturbation. It costs one forward and backward pass per calibration sequence, after which every candidate format is a dot product per tensor; Hessian-aware bit allocation [7] and second-order post-training quantizers [9,11,21] build on the same expansion.

A screen is used in two ways. It ranks candidates on a fixed calibration set, and it gives an absolute number that is compared with a quality budget. We test both, together with the implementation choices that decide whether the number can be trusted: the precision of the per-sequence gradients, the estimator over sequences, and the noise floor of the engine that measures the KL. The question is one of linear response: the quantized model is a perturbed copy, and the KL is its quadratic response in the Fisher metric (§3). Every decision rule was frozen—predictions, scorers and file checksums—before its GPU run, and the models added after Qwen3-8B played no part in developing the analysis. The ledger in the supplementary material lists every batch with its frozen prediction and outcome.

Findings. (1) Relative predictions hold: across perturbation scale, int4 group size and rounding mode (§4). (2) The absolute scale is heavy-tailed: the plain average over sequences is set by a few of them (§5); a trimmed average fixes most cells on new models (§7) but not int4 at 32B, where the diagonal estimator misses rounding error that is coherent along the gradient in one tensor (§8). (3) bf16 per-sequence gradients can be off by 4×4\times through a handful of sequences whose backward pass is numerically unstable in the lower layers; we locate where the error is made and give a recipe (§6). (4) The engine's run-to-run floor, and what removing it costs in throughput (§9). (5) §10 turns these into a checklist for a quantization screen, and §11 builds the screen: one streamed Fisher pass, a band, a flag for aligned tensors and a per-layer allocator that writes vLLM checkpoints. On an unseen model family it met its pre-registered criteria for KL, budgets and throughput.

References (29)