Revisiting Error Feedback for Model Quantization
Organizations: The Chinese University of Hong Kong, Hong Kong SAR of China · Universidad Carlos III de Madrid, Spain · Aarhus University, Denmark
Abstract
We study causal error-feedback coefficients as design variables for model quantization. Modeling instantaneous quantization errors as independent, zero-mean variables with a common fixed variance, we formulated a metric-dependent trace problem for designing feedback coefficients. The formulation resembles fixed-order GPTQ/LDLQ feedback and supports Jacobian-aware designs that account for downstream error propagation. For a positive-definite metric , we prove that the joint rotation-feedback trace minimum is and present an attaining pair using the geometric mean decomposition. Experiments on synthetic networks, trained MLPs, and language models show benefits from downstream-sensitive feedback, but also reveal that trace optimality need not improve finite-level performance. Small QAT experiments further illustrate direct loss-driven feedback tuning with fixed or trainable network weights.
Figures & tables
| Fixed : mean test distortion | Per-network selection | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Mean distortion | Reduction | Win/Tie/Loss | ||||||||||
| 2 | 1.985016 | 1.978903 | 2.024264 | 2.032677 | 2.045072 | 2.038097 | 2.036754 | 2.032965 | 2.046547 | 1.691480 | 14.79% | 75/20/5 |
| 4 | 0.136493 | 0.137417 | 0.133098 | 0.133740 | 0.134332 | 0.133041 | 0.131872 | 0.130650 | 0.131327 | 0.112534 | 17.55% | 75/21/4 |
| 8 | 0.022783 | 0.022621 | 0.022686 | 0.022051 | 0.021853 | 0.022372 | 0.022070 | 0.021908 | 0.022043 | 0.018986 | 16.67% | 72/24/4 |
| 12 | 0.008864 | 0.008892 | 0.008792 | 0.008754 | 0.008883 | 0.008964 | 0.009062 | 0.008925 | 0.008988 | 0.007633 | 13.88% | 73/20/7 |
| 16 | 0.004611 | 0.004536 | 0.004499 | 0.004568 | 0.004534 | 0.004555 | 0.004587 | 0.004654 | 0.004631 | 0.003855 | 16.39% | 72/27/1 |
| Dataset | Method | ||||
|---|---|---|---|---|---|
| MNIST | RTN | ||||
| Local EFQ | |||||
| Local EFQ + RHT | |||||
| Obj. EFQ | |||||
| Obj. EFQ + RHT | |||||
| Obj. joint |
| Model | Local EFQ | Local EFQ+RHT | Local joint | Obj.-EFQ | Obj.-EFQ+RHT | Obj. joint | |
|---|---|---|---|---|---|---|---|
| GPT-2 | 8 | 118.54 / 24.21 / 257.89 | 105.41 / 24.60 / 221.42 | 112.66 / 24.26 / 186.16 | 119.03 / 24.45 / 222.64 | 105.38 / 24.40 / 206.28 | 106.94 / 24.65 / 182.59 |
| 16 | 99.65 / 25.50 / 85.48 | 100.69 / 25.30 / 34.73 | 98.41 / 26.14 / 31.10 | 99.60 / 25.40 / 72.64 | 99.95 / 25.50 / 28.13 | 98.25 / 26.09 / 57.73 | |
| Llama-2-7B | 8 | 11.312 / 50.22 / 3.989 | 9.120 / 53.15 / 2.077 | 9.893 / 51.70 / 2.794 | 11.002 / 50.81 / 3.745 | 8.704 / 53.73 / 1.739 | 9.338 / 52.55 / 2.253 |
| 16 | 7.808 / 55.69 / 0.791 | 7.450 / 56.34 / 0.347 | 7.563 / 56.06 / 0.498 | 7.736 / 55.84 / 0.685 | 7.431 / 56.44 / 0.309 | 7.521 / 56.18 / 0.453 | |
| Llama-2-13B | 8 | 8.209 / 54.56 / 0.842 | 7.585 / 55.73 / 0.619 | 8.238 / 54.52 / 0.806 | 7.929 / 55.13 / 0.765 | 7.501 / 55.97 / 0.579 | 7.989 / 54.86 / 0.733 |
| 16 | 6.714 / 58.00 / 0.201 | 6.611 / 58.25 / 0.137 | 6.671 / 58.03 / 0.182 | 6.630 / 58.15 / 0.168 | 6.593 / 58.27 / 0.126 | 6.675 / 58.04 / 0.168 |
| Method | |||
|---|---|---|---|
| Full precision | 0.01391 | 0.01391 | 0.01391 |
| RTN | 0.63739 | 0.06576 | 0.02395 |
| Local PTQ | 0.48603 | 0.05473 | 0.02078 |
| Feedback QAT(G) | 0.28594 | 0.04055 | 0.01899 |
| Weight-only QAT; fixed | 0.25458 | 0.04118 | 0.01914 |
| Joint QAT; | 0.24524 | 0.04013 | 0.01784 |
| Method | ||||
|---|---|---|---|---|
| Init. Full precision | 12.967 | 12.967 | 12.967 | 12.967 |
| Cont. Full precision | 12.374 | 12.374 | 12.374 | 12.374 |
| RTN | 18.282 | 13.046 | 12.986 | 12.970 |
| Local PTQ | 13.629 | 12.999 | 12.969 | 12.970 |
| Feedback QAT ( ) | 13.074 | 12.842 | 12.865 | 12.910 |
| Weight QAT ( ) | 12.561 | 12.404 | 12.390 | 12.382 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Compensation criterion | Relationship to our feedback design |
|---|---|---|
| GPTQ / QuIP-LDLQ [ 10 , 6 ] | Layer-output quadratic . | The closest linear-feedback precedent. With the input covariance as metric, our fixed-isotropic-error design surrogate is proportional to . |
| GuidedQuant [ 16 ] | End-loss-gradient-weighted row quadratics, . | The criterion can be evaluated on . Its weighting uses end-loss gradients rather than our output-Jacobian metric; this objective-level connection does not identify the two quantization algorithms. |
| YAQA [ 31 ] | A structured quadratic approximation to full-model output-distribution KL. | Its criterion can be restricted to . Its adaptive rounding also uses output-side feedback, beyond a single shared input-coordinate . |
| QEP [ 1 ] | Compensation for quantization errors propagated from preceding layers. | Upstream-quantized states can be included in , permitting an upstream-error-aware objective for . This is a restriction to our quantizer, not an equivalence with QEP’s procedure. |
| Qronos [ 34 ] | Mismatched-input layer reconstruction, . | Taking gives above. Qronos uses causal diffusion to future coordinates, but its full procedure also corrects for the upstream-input mismatch. |
| Method | Trace ratio | Realized metric error | Test logit MSE | |
|---|---|---|---|---|
| 2 | Covariance feedback | 1.98079 | 98.60880 | 1.69577 |
| Joint rotation-feedback | 1.00000 | 347.72978 | 9.21850 | |
| 4 | Covariance feedback | 1.98079 | 9.73280 | 0.08490 |
| Joint rotation-feedback | 1.00000 | 22.36973 | 0.15830 | |
| 8 | Covariance feedback | 1.98079 | 1.76087 | 0.01370 |
| Joint rotation-feedback | 1.00000 | 1.79542 | 0.01529 |
| Method | Trace ratio | Realized metric error | Test logit MSE | |
|---|---|---|---|---|
| 2 | Covariance feedback | 1.13685 | 107.21706 | 1.83842 |
| Joint rotation-feedback | 1.00000 | 191.77801 | 3.52017 | |
| 4 | Covariance feedback | 1.13685 | 10.39471 | 0.10596 |
| Joint rotation-feedback | 1.00000 | 12.26181 | 0.12758 | |
| 8 | Covariance feedback | 1.13685 | 1.89431 | 0.01863 |
| Joint rotation-feedback | 1.00000 | 2.20850 | 0.02126 |
| Method | |||
|---|---|---|---|
| Full precision | 0.01391 | 0.01391 | 0.01391 |
| RTN | 0.63739 | 0.06576 | 0.02395 |
| Covariance-feedback PTQ | 0.48603 | 0.05473 | 0.02078 |
| Feedback-only tuning; network fixed | 0.28594 | 0.04055 | 0.01899 |
| Weight-only QAT; fixed | 0.25458 | 0.04118 | 0.01914 |
| Joint QAT; | 0.24524 | 0.04013 | 0.01784 |
| WikiText-2 | C4 | ||||||
|---|---|---|---|---|---|---|---|
| Method | Bits | PPL | Acc. (%) | Logit MSE | PPL | Acc. (%) | Logit MSE |
| Local EFQ | 2 | 12077.99 | 0.420 | 8.550 | |||
| Local EFQ+RHT | 2 | 3212.88 | 4.467 | 6.938 | |||
| Local joint | 2 | 18447.59 | 0.442 | 10.308 | |||
| Obj.-EFQ | 2 | 7538.99 | 1.294 | 7.388 | |||
| Obj.-EFQ+RHT | 2 | 486.20 | 12.647 | 4.854 | |||
Neural Network Quantization
Neural network quantization represents weights, activations, and states with fewer bits to reduce memory use, computation, and deployment costs.
See all 403 papers