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

A Comprehensive Study on Post-Training Quantization for Large Language Models

Zhewei Yao, Cheng Li, Xiaoxia Wu, Stephen Youn, Yuxiong HearXiv 2023 · DOI

Abstract

Large Language Models (LLMs) face significant deployment challenges due to their immense memory requirements. Post-training quantization (PTQ) offers a cost-effective solution for model compression, yet its impact on model quality varies significantly across bit-widths and architectures. This paper presents a systematic study of PTQ on the OPT and BLOOM model families, identifying a "4-bit wall" where standard methods fail to maintain performance. We propose Low-Rank Compensation (LoRC), which utilizes Singular Value Decomposition (SVD) to recover lost information with negligible overhead. Our findings establish a new state-of-the-art Pareto frontier for the quality-size tradeoff in LLM compression.

Introduction

The deployment of massive LLMs like GPT-4 or BLOOM-176B is often bottlenecked by memory capacity. While Quantization-Aware Training (QAT) can mitigate accuracy loss at low precisions, its computational cost is prohibitive for models of this scale. Post-Training Quantization (PTQ) serves as a more practical alternative, converting high-precision FP16 weights into INT8 or INT4 formats without full retraining. However, as models are pushed toward 4-bit precision, they often encounter a sharp decline in linguistic fluency, measured by perplexity (PPL). This study investigates these failure modes and introduces a novel compensation mechanism to bridge the performance gap.

Methodology and Innovation

The research evaluates several PTQ baselines, including Round-to-Nearest (RTN), GPTQ (which utilizes second-order information), and ZeroQuant (a distillation-based layer-wise optimization).

Low-Rank Compensation (LoRC)

The core innovation, LoRC, addresses the error matrix $E = W - \hat{W}$ resulting from quantization. By applying Singular Value Decomposition (SVD) to $E$, the most significant error components are captured in a low-rank approximation $\hat{E} = \hat{U}\hat{V}$. During inference, the operation $xW$ is approximated as $x\hat{W} + x(\hat{U}\hat{V})$. This "mopping up" of quantization noise requires storing only a small fraction of additional parameters (typically <1.6%), yet it significantly restores model quality.

Experimental Results and Analysis

The study evaluates models on zero-shot validation perplexity across standard datasets like Wikitext-2, PTB, and C4.

The 4-Bit Challenge

A key finding is the consistent difficulty in achieving "Class-1" status (PPL degradation $\le 0.1$) for 4-bit weights in models smaller than 13B parameters using standard PTQ methods.

Comparison of PTQ methods across various model sizes and precisions, showing the performance gap in 4-bit configurations.

As shown in the table above, while GPTQ and ZeroQuant (ZQ) improve upon the RTN baseline, significant degradation persists in the W4A8 configuration, particularly for the OPT family.

Quality-Size Tradeoff

By combining Fine-Grained Quantization (FGQ) with LoRC, the authors achieve a superior Pareto frontier.

Quality and size tradeoff for OPT and BLOOM model families, highlighting how LoRC (red squares) pushes the frontier.

The figure illustrates that LoRC consistently pushes the frontier toward the upper-left (higher quality, smaller size), effectively making 4-bit weight quantization viable for models larger than 13B.

Key Insights

  • Activation Sensitivity Paradox: Larger models generally tolerate weight quantization better but can be more sensitive to activation quantization. Notably, the OPT family exhibits higher sensitivity than BLOOM, likely due to architectural differences in Layer Norm implementation.
  • Efficiency of LoRC: LoRC's low-rank dimension can be as small as 4 or 8. These auxiliary matrices can be stored in INT8, ensuring that the memory overhead remains practically negligible.

Conclusion and Future Work

ZeroQuant-V2 and LoRC provide a robust framework for compressing LLMs to 4-bit precision without sacrificing intelligence. While mathematically effective, future work must focus on maturing hardware-optimized kernels for fine-grained quantization patterns. Additionally, exploring the synergy between PTQ, LoRC, and post-training pruning could lead to even more aggressive compression ratios for the next generation of large-scale models.

Summary updated

BibTeX
@misc{yao2023comprehensive,
  author = {Zhewei Yao and Cheng Li and Xiaoxia Wu and Stephen Youn and Yuxiong He},
  title = {{A Comprehensive Study on Post-Training Quantization for Large Language Models}},
  year = {2023},
  eprint = {2303.08302},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.08302},
}
Figure