Manuscript Offprint

arXiv:2609.11716

Why Does Post-Training Quantization Work?

Yuxiang Chen, Michael Beyer, Jun Zhu, Jianfei Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Post-training quantization compresses large language models (LLMs) by storing their weights at reduced precision, and each quantized weight introduces an error into the hidden states. Naively, these errors should accumulate with depth and corrupt next-token prediction; randomly initialized models accumulate these discrepancies rapidly, whereas quantized pretrained models accumulate much less hidden-state error and largely maintain downstream task performance, even though they were never trained with quantization noise. This raises the question we address: why does post-training quantization work? Comparing full-precision and quantized forward passes, we identify two mechanisms that characterize pretrained quantization robustness. First, the error a layer newly introduces tends to oppose the error it inherits from the layer's input. The two cancel partially such that the discrepancy between full-precision and quantized passes grows slowly. This counteracting residual interaction develops during pretraining. Our quantitative analysis identifies it as a major factor slowing hidden-error growth. Second, LM-head geometry preferentially preserves the scores and probabilities of high-ranked tokens, which typically represent the model's most confident predictions. Together, these mechanisms explain why quantization error that passes through numerous layers can still produce only small output changes, and we verify the findings across models and quantization settings.

1 INTRODUCTION

Weight-only post-training quantization (PTQ) compresses large language models by storing their weights at reduced precision, and methods such as GPTQ (Frantar et al., 2023) and AWQ (Lin et al., 2024) are now widely used to serve them. Quantizing a weight makes it slightly different from its full-precision value, so at every layer, the quantized model's hidden states differ from its full-precision counterpart, and these errors should naively accumulate as they propagate through the layers. Yet in practice, even directly rounding the weights to 4-bit barely hurts: casting Qwen3-32B (Yang et al., 2025) to NVFP4 (Alvarez et al., 2025) without calibration lowers benchmark accuracy by only 0.43 percentage points on average across six zero-shot benchmarks (Sec. 4.1), even though the model was never trained with quantization noise. This raises our central question: why does post-training quantization work?

The usual answer is that quantized weights remain close to their full-precision values (cosine similarity to their NVFP4 reconstructions ∼0.996\sim 0.996), so errors should propagate slowly. Yet pretrained and randomly initialized weights have nearly identical reconstruction error (App. D.2), while the hidden-state discrepancy is 5.5×5.5 \times larger at random initialization (Fig. 1). Because the weight-level errors are closely matched, this gap in hidden-error growth should reflect properties acquired during pretraining. Prior work reduces or diagnoses quantization damage (Arai & Ichikawa, 2025; Lee et al., 2026; Lotfi et al., 2026), but leaves a mechanistic gap: it does not explain how quantization errors propagate through a pretrained model or why they produce only small output changes.

∗^{*}Corresponding author

We trace the discrepancy block by block and find two mechanisms that act in series. Throughout, we compare the quantized and full-precision models on the same inputs; the error at each layer is the difference between their hidden states, and we study how its size changes with depth. First, the new error a block introduces tends to oppose the error it inherits from earlier blocks, so the two partially cancel and the size of the error grows slowly (Sec. 3). Second, the final hidden-state error reaching the LM head is mainly a rotation whose effect is attenuated by the high-dimensional LM head, especially for top-ranked tokens (Sec. 4). Together, they explain why a large internal discrepancy translates into a small output change. Both mechanisms hold across Qwen3 models of different scales, OLMo3 (Team Olmo et al., 2025), Gemma3 (Gemma Team et al., 2025), and the OLMoE mixture-of-experts model (Muennighoff et al., 2025) (Sec. 5).

We summarize the work’s contributions as follows:

  1. Reframing quantization robustness as a mechanistic question. We ask why post-training quantization works, and use comparisons with randomly initialized models to show that the usual explanation that weights stay close to their full-precision values is not the full answer; slow hidden-error growth largely comes from the pretrained model itself.

  2. A quantitative account of slow error growth. The error added by each layer tends to oppose the error it inherits, slowing error growth. We derive an exact decomposition of this growth and confirm experimentally that this cancellation is significant for limiting hidden-error growth.

  3. A theoretical account of stable top-ranked token predictions. The scores of the tokens with the highest output probabilities change only slightly under the surviving final hidden-state error; we derive how hidden-state error induces score changes through the LM-head geometry, and connect the resulting score perturbations to log-probability changes.

References (49)