Source-linked AI summary
Quantization Error Propagation: Revisiting Layer-Wise Post-Training Quantization
Yamato Arai, Yuma Ichikawa
TL;DR
Layer-wise PTQ is efficient but suffers from error accumulation across layers, especially at low bitwidths. QEP propagates and compensates for accumulated errors with tunable strength, and experiments show substantial improvements, particularly in extreme low-bit regimes.
Problem
Existing layer-wise PTQ methods do not adequately account for quantization-error propagation, causing accumulated errors and degraded performance in low-bit settings.
Source: §4 · p. 4Method
Results
QEP substantially improves layer-wise PTQ across LLMs and methods, with gains especially pronounced for INT2 quantization.
Source: §1 · p. 2, §6.1 · pp. 7–8, §7 · p. 9Takeaways & Limitations
QEP provides a general, computationally efficient enhancement that can integrate with existing layer-wise PTQ pipelines and adapt propagation strength to computational constraints.
Source: §1 · p. 2, §5.3 · p. 6QEP remains sensitive to calibration-data quality and leaves automatic learning of the per-layer propagation strengths for future work.
Source: §5.3 · p. 6, §7 · p. 9
Abstract
from arXiv · showhide
Layer-wise PTQ is a promising technique for compressing large language models (LLMs), due to its simplicity and effectiveness without requiring retraining. However, recent progress in this area is saturating, underscoring the need to revisit its core limitations and explore further improvements. We address this challenge by identifying a key limitation of existing layer-wise PTQ methods: the growth of quantization errors across layers significantly degrades performance, particularly in low-bit regimes. To address this fundamental issue, we propose Quantization Error Propagation (QEP), a general, lightweight, and scalable framework that enhances layer-wise PTQ by explicitly propagating quantization errors and compensating for accumulated errors. QEP also offers a tunable propagation mechanism that prevents overfitting and controls computational overhead, enabling the framework to adapt to various architectures and resource budgets. Extensive experiments on several LLMs demonstrate that QEP-enhanced layer-wise PTQ achieves substantially higher accuracy than existing methods. Notably, the gains are most pronounced in the extremely low-bit quantization regime.
1 Introduction
Layer-wise PTQ compresses LLMs without retraining, but accumulated quantization errors limit performance, especially at low bitwidths. QEP addresses this bottleneck by propagating and compensating for errors while remaining efficient and broadly compatible.
- Layer-wise PTQ is practical because it quantizes parameters layer-by-layer without retraining or backpropagation.Source: §1 · p. 1
- Quantization errors accumulate across layers and degrade layer-wise PTQ performance, particularly in low-bit settings.Source: §1 · p. 2
- QEP modifies the layer-wise objective to propagate and compensate for accumulated errors with comparable computational complexity.Source: §1 · p. 2
- QEP is orthogonal to existing PTQ methods and integrates with any layer-wise PTQ pipeline.Source: §1 · p. 2
- QEP significantly improves GPTQ [Frantar et al., 2022], AWQ, and QuIP [Chee et al., 2023], especially at 2-bit quantization.Source: §1 · p. 2, Figure 1 · p. 2
2 Related Work
Layer-wise PTQ research includes compensation-, rotation-, and salience-based strategies, while recent work has emphasized nonlinear quantization and block-wise or global extensions. This paper revisits the largely unchanged foundational optimization and proposes an orthogonal improvement.
Compensation-based layer-wise PTQ
- Compensation-based methods quantize weights sequentially using calibration-derived Hessians while compensating for subsequent unquantized weights.Source: §2 · p. 2
Rotation-based layer-wise PTQ
- Rotation-based methods preprocess weights with structured rotations to redistribute weight magnitudes more uniformly.Source: §2 · p. 3
Salience-based layer-wise PTQ
- Salience-based methods preserve important weights through mixed precision, while AWQ uses global scaling to simplify deployment and maintain accuracy.Source: §2 · p. 3
- Recent advances emphasize nonlinear quantization and block-wise or global fine-tuning, while the foundational layer-wise optimization remains largely unchanged since GPTQ [Frantar et al., 2022].Source: §2 · p. 3
- QEP complements and remains orthogonal to nonlinear quantization and structured extensions.Source: §2 · p. 3
3 Background
PTQ replaces pretrained parameters with discrete quantized representations using calibration data to preserve model behavior. Layer-wise PTQ solves sequential, layer-independent reconstruction problems, with methods differing in activation choices and optimization strategies.
Post-training quantization
Layer-wise PTQ
- Layer-wise PTQ processes layers sequentially from input to output while solving independent optimization problems for each layer.Source: §3 · p. 3
- The layer-wise reconstruction objective uses X_l as input activations and a Hessian H_l := X_lX_l^T that can be precomputed and cached.Source: §3 · p. 3
- Existing methods use either quantized or full-precision activations, with no consensus on which produces better quantization outcomes.Source: §3 · p. 3
- GPTQ [Frantar et al., 2022] uses quantized activations and sequential residual correction, whereas other methods use distinct strategies within the same framework.Source: §3 · p. 4
4 Bottleneck: Quantization Error Accumulation and Growth
A partial-quantization experiment shows that quantization errors accumulate in quantized layers and continue growing through later full-precision layers. This exposes a limitation of independent layer-wise optimization, which neither propagates nor corrects prior errors.
- The experiment compares original and quantized Transformer-block compositions using the squared output discrepancy defined for each block.Source: §4 · p. 4
- Only the first 10 Transformer blocks are quantized while later blocks remain full precision, isolating error propagation beyond the quantized region.Source: §4 · p. 4
- Quantization errors show approximately exponential accumulation within quantized layers and continued growth through subsequent unquantized layers.Source: §4 · p. 4
- Independent layer-wise optimization ignores propagated errors from earlier layers and fails to correct accumulated errors, exacerbating later growth.Source: §4 · p. 4
5 QEP: Quantization Error Propagation
QEP reformulates layer-wise PTQ to propagate and compensate for accumulated quantization errors, while restoring efficient optimization through corrected weights and Hessian-based structure. A tunable propagation strength controls overfitting and computational cost, with theoretical guarantees of reduced output quantization error.
5 QEP: Quantization Error Propagation
- QEP propagates quantization errors across layers and compensates for their accumulation, addressing a core limitation of independent layer-wise PTQ.The framework is designed as a general, lightweight, and scalable enhancement to existing layer-wise methods.Source: §5 · pp. 4–5
5.1 Problem Reformulation
- The reformulated objective compares full-precision and quantized outputs using their respective upstream inputs, enabling each layer’s weights to correct preceding errors.Unlike independent reconstruction, the optimal quantized weights generally differ from direct approximations of the original weights when upstream errors are nonzero.Source: §5.1 · p. 5, §5.2 · p. 5
5.2 Weight Correction
- QEP’s corrected-weight reformulation restores the quadratic structure needed for Hessian-based optimization and integrates with existing layer-wise PTQ methods.The correction term uses accumulated error and an empirical Hessian from quantized activations, while the discrete optimization retains the structure of the baseline objective.Source: §5.2 · p. 5
- Theorem 5.2 bounds QEP’s output quantization error by that of existing layer-wise PTQ under the stated Lipschitz-continuity assumptions.The parameter sets compared are those optimized by the QEP and baseline objectives, respectively.Source: §5.2 · p. 6
5.3 Controlling Propagation Strength
- The tunable propagation strength α_l ∈[0, 1] balances error correction against overfitting, with α_l = 1 fully correcting and α_l = 0 recovering the baseline setting.The parameter acts analogously to regularization and is especially important for preventing overfitting in large MLP blocks.Source: §5.3 · p. 6
- Setting α_l = 0 selectively can eliminate correction costs for expensive layers, reducing correction time by approximately one-third to one-half while acting as implicit regularization.The paper highlights high-dimensional MLP activations as a source of expensive correction terms and identifies adaptive α_l tuning as future work.Source: §5.3 · p. 6
6 Experiments
Experiments evaluate QEP-enhanced layer-wise PTQ across representative methods, Llama-family models, bit-widths, perplexity, zero-shot accuracy, runtime, and calibration robustness. QEP consistently improves quality, especially at INT2, while adding relatively low computational cost and reducing calibration sensitivity.
Experimental setup
- Experiments cover RTN, GPTQ, AWQ, and QuIP on Llama-2, Llama-3, and Mistral models using INT4, INT3, and INT2 weight-only quantization.Evaluations use perplexity on WikiText2, PTB, and C4 plus zero-shot accuracy on ARC Easy, PiQA, and StoryCloze.Source: §6 · p. 7
Perplexity
- QEP substantially reduces perplexity across nearly all tested layer-wise PTQ methods and quantization levels, with QEP-enhanced QuIP achieving the best tested perplexity.At INT2, QEP makes practical perplexity achievable where linear-quantization baselines often degrade severely.Source: §6.1 · p. 7, Table 1 · p. 8
Zero-shot tasks
- QEP improves zero-shot accuracy consistently, with the largest gains at INT2; QEP-enhanced QuIP at INT2 matches RTN and GPTQ at INT3 on Llama-2-70B.Source: §6.1 · p. 8, Table 2 · p. 9
Runtime
- QEP correction requires significantly less computation time than other layer-wise PTQ quantization processes, with QEP+RTN time dominated by correction-term preprocessing.Using the same calibration dataset for correction and quantization further reduces preprocessing overhead.Source: §6.1 · p. 8, Table 3 · p. 8
Robustness
- QEP-enhanced RTN improves performance across C4, PTB, and WikiText2 calibration sets, unlike GPTQ, whose performance varies substantially with the calibration distribution.This supports the propagation-control mechanism as a way to reduce calibration overfitting.Source: Table 4 · p. 8, §6.1 · p. 9
7 Conclusion
The paper concludes that layer-wise PTQ is limited by accumulated quantization errors and that QEP addresses this problem by propagating and compensating for them. QEP improves low-bit performance, while its calibration dependence and propagation-strength parameter remain practical limitations.
Conclusion
- QEP explicitly propagates and compensates for accumulated quantization errors, substantially improving layer-wise PTQ performance, especially at low bit-widths.The conclusion frames this as progress from revisiting layer-wise PTQ fundamentals rather than relying only on non-linear or block-wise quantization.Source: §7 · p. 9
Limitations
- QEP relies on a small calibration set, so its performance remains sensitive to calibration-data quality despite less overfitting than GPTQ and AWQ.Source: §7 · p. 9
- QEP introduces a tunable per-layer propagation-strength parameter α_l, but automatic learning of α_l is left for future work.A fixed α_l = 1/2 works well in most cases.Source: §7 · p. 9
Theoretical scope
- The theoretical analysis uses calibration activations, quantized weights, quantized activations, and empirical Hessians, with invertibility assumptions stabilized by adding ρI when needed.Source: B Additional Theoretical Results · pp. 14–15
B.1 Derivation of Proposition 5.1
The derivation rewrites the layer objective using the quantization-error relation, differentiates the resulting quadratic with respect to quantized weights, and solves the stationary condition. Under invertibility of the quantized Hessian, the resulting closed form is the unique minimizer.
Objective reformulation
- The proof rewrites W_lX_l as W_l X̂_l + W_lδ_l, expressing the objective in terms of quantized activations and the layer quantization error.Source: §B.1 · p. 15
Optimization
- Because the objective is strictly convex in the quantized weights when the quantized Hessian is invertible, its stationary point is the unique minimizer.Source: §B.1 · p. 15
Closed-form solution
- The stationary condition is rearranged and multiplied by the inverse quantized Hessian to obtain the closed-form solution.Source: §B.1 · p. 15
Conclusion
- The resulting closed-form expression completes the proof as the unique minimizer of the Frobenius-norm objective.Source: §B.1 · p. 15
B.2 Quantization Error Accumulation
Layer-wise quantization errors accumulate across depth, causing activation mismatches to grow rapidly, especially when layer gains exceed unity. The derivation expresses this mismatch recursively and establishes explicit exponential lower and upper bounds.
- Activation differences at the output layer grow exponentially with depth under standard layer-wise PTQ, to first order in quantization noise.This follows when layers are quantized independently without accounting for downstream effects.Source: §B.2 · p. 15
- The activation error is recursively decomposed into contributions from each layer’s weight quantization error and propagated through subsequent layers.The expansion starts from δ1 = 0 and uses the layerwise activation recurrence.Source: §B.2 · pp. 15–16
- Bounding relative layer errors produces the recurrence a_{l+1} ≤ r + (1 + r)a_l, which also grows geometrically with depth.Here r bounds the relative weight quantization error.Source: Then the final activation mismatch… · p. 17
- Under Lipschitz activations, the normalized error satisfies a recurrence that yields exponential growth when γl∥Wl∥2 ≤ 1 + ε.The resulting bound scales with (1 + ε)^(L−1).Source: Then the final activation mismatch… · pp. 17–18
- A one-dimensional linear network gives the exact lower bound |δL| ≥ (L −1)cE(1 + ε)^(L−2)C for uniformly perturbed weights.This construction demonstrates that the depth dependence is not merely an artifact of loose analysis.Source: Then the final activation mismatch… · p. 18
B.3 Derivation of Theorem 5.2 and Corollary 5.4
The theorem analysis compares baseline and QEP propagation under Lipschitz assumptions and shows that QEP does not increase the global output-mismatch bound. Increasing propagation strength monotonically reduces the final quantization error, while its parameter is inversely related to ridge regularization.
- QEP achieves a global Lipschitz upper bound on output mismatch no larger than the baseline bound.The proof establishes a stronger per-layer inequality before iterating it through the remaining layers.Source: Define the per-layer pre-activation… · pp. 19–20
- The analysis compares QEP and baseline residuals at the same quantized activation, allowing the per-layer QEP advantage to propagate through later layers.The comparison is made before applying the remaining layerwise Lipschitz factors.Source: Define the per-layer pre-activation… · pp. 19–20
- QEP constructs corrected weights by adding a projected correction proportional to the activation mismatch and propagation strength.The correction uses the orthogonal projection Pl and the factor αl.Source: Define the per-layer pre-activation… · pp. 19–21
- The final quantization error decreases monotonically as each propagation-strength parameter αl approaches 1.This result follows from the projection structure of the correction and the monotonic residual bound.Source: Define the per-layer pre-activation… · p. 20
- The QEP correction parameter αl is strictly decreasing in ridge regularization λ, so reducing λ corresponds to increasing propagation strength.The mapping decreases from 1 to 0 as λ ranges from 0 to infinity.Source: §B.4 · p. 21, The unique minimizer of the ridge… · pp. 21–22
C Additional Implementation Details
The implementation stabilizes Hessian inversion by damping the calibration Hessian before computing layerwise updates.
- A diagonal damping term is added to the Hessian when it is ill-conditioned or singular, ensuring positive definiteness for inversion.The damping value is set to the mean of the Hessian’s diagonal elements.Source: §C.1 · p. 22
D.1 Additional Perplexity Results
Supplementary experiments confirm that QEP’s gains persist across datasets, tasks, random seeds, and low-bit settings. QuIP+QEP also compares favorably with the block-wise OmniQuant baseline, which diverges at INT2 in the reported comparison.
- QEP consistently improves PTQ performance in supplementary perplexity and accuracy evaluations, particularly under low-bit quantization.Additional results cover PTB, C4, WikiText-2, PIQA, StoryCloze, and ARC-Easy.Source: §D.1 · p. 22, §D.2 · p. 23
- Figure 3 compares INT4, INT3, and INT2 across 7B, 13B, and 70B models using WikiText-2 perplexity and averaged normalized zero-shot accuracy.Error bars show the standard error of the mean.Source: Figure 3 · p. 23
- QEP-QuIP retains its advantage across five-seed averages, with especially clear gains at INT3 and INT2.Small seed-to-seed variation does not alter the main conclusions.Source: §D.3 · p. 23
- QuIP+QEP achieves the lowest reported perplexity at INT4 and INT3 against OmniQuant and remains stable at INT2, where OmniQuant diverges.The comparison is on LLaMA-2-7B using WikiText-2 perplexity.Source: §D.4 · p. 23, Table 11 · p. 23
Related papers
This paper cites
Cited by
- Layerwise Error Attribution for Fast and Robust Mixed-Precision Post-Training Quantization2026
- Align, Then Correct: Training-Free Two-Stage Low-Rank Compensation for Extremely Quantized Large Language Models2026
- Activation Denoising: A Robustness View on Parallel vs Sequential LLM Quantization2026
- Why Does Post-Training Quantization Work?2026
- Scalable Kronecker-Fisher Approximation: Efficient Hessian Analysis for Billion-Parameter Language Models Compression2026
- SandwichQuant: Which Parameters Matter Before and After Quantization?2026