NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Compensate Quantization Errors+: Quantized Models Are Inquisitive Learners

Yifei Gao, Jie Ou, Lei Wang, Fanhua Shang, Jaji Wu, Jun ChengarXiv 2024 · DOI

Introduction

Quantizing Large Language Models (LLMs) from 16-bit weights to low-bit formats (e.g., 4-bit or 2-bit) is a critical step for deploying these massive models on consumer-grade hardware. However, conventional "Round-to-Nearest" (RTN) methods often introduce significant errors because they fail to account for the complex interaction between weight distributions and activation outliers. While existing solutions like Learnable Singular-value Increment (LSI) attempt to mitigate this by adjusting singular values, they often lead to overfitting on small calibration datasets, sacrificing the model's general knowledge.

This paper addresses this gap by introducing two novel techniques: Singular-value Diagonal Expansion (SDE) and Cross-layer Learning (CL). These methods treat quantization as a nuanced optimization problem, distributing errors more effectively across the model architecture.

Methodology

Singular-value Diagonal Expansion (SDE)

The core of the proposed approach is SDE, a generalization of the LSI method. Standard Singular Value Decomposition (SVD) decomposes a weight matrix $W$ into $U, S,$ and $V$. While LSI only allows learning on the main diagonal of $S$, SDE expands the learnable parameters to include $n$ additional diagonals above and below the main one. This provides the model with more degrees of freedom to find a weight distribution that minimizes rounding errors without causing the excessive mean squared error (MSE) disturbance seen in previous methods.

The SDE workflow involves decomposing the weight matrix and learning an expanded diagonal matrix to minimize quantization error.

Cross-layer Learning (CL)

Complementing SDE, Cross-layer Learning shifts the optimization focus from isolated layers to inter-layer dependencies. By modifying the loss function to minimize error propagated through subsequent layers, CL allows the model to distribute the "burden" of quantization more evenly throughout its depth. This "inquisitive" approach bridges the gap between fast post-training quantization (PTQ) and computationally expensive quantization-aware training (QAT).

Experimental Evaluation

The authors evaluated their methods across a comprehensive suite of benchmarks, including:

  • Language Modeling: WikiText2 and C4 (Perplexity).
  • Common Sense Reasoning: PIQA, ARC, HellaSwag, Winogrande, and BoolQ.
  • Instruction Following: MT-Bench (evaluated via GPT-4).
  • Models: LLaMA (1, 2, and 3) and OPT families (1.3B to 70B parameters).

Key Results and Insights

The proposed method achieves state-of-the-art performance while maintaining the efficiency of PTQ. Key findings include:

  • Robustness: Successfully quantized LLaMA-3-70B in W4A4 settings where baseline methods like OmniQuant failed (producing NaNs).
  • Perplexity Reduction: In ultra-low bit settings (W2A16), perplexity on OPT-66B was reduced from 492 (LSI) to 16.51, nearing the FP16 baseline.
  • Efficiency: The training time remains highly competitive, requiring only minutes per model compared to the 24+ hours often needed for full QAT.
Comparison of quantization loss vs. training time, perplexity across OPT models, and downstream task performance.

Conclusion and Future Work

By reframing quantization as an inequality-solving problem and leveraging inter-layer dependencies, this work significantly advances the state of low-bit LLM compression. While the SVD decomposition introduces a one-time computational cost and CL increases memory requirements during calibration, the gains in accuracy and robustness are substantial. Future research will explore faster alternatives to SVD, such as Principal Component Analysis (PCA), to further streamline the quantization process.

Summary updated

BibTeX
@misc{gao2024compensate,
  author = {Yifei Gao and Jie Ou and Lei Wang and Fanhua Shang and Jaji Wu and Jun Cheng},
  title = {{Compensate Quantization Errors+: Quantized Models Are Inquisitive Learners}},
  year = {2024},
  eprint = {2407.15508},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.15508},
}
Figure