Understanding the Difficulty of Low-Precision Post-Training Quantization for LLMs

Zifei Xu, Sayeh Sharify, Wanzin Yazar, Tristan Webb, Xin Wang
10/18/2024
cs.LG

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

Large language models of high parameter counts are computationally expensive, yet can be made much more efficient by compressing their weights to very low numerical precision. This can be achieved either through post-training quantization by minimizing local, layer-wise quantization errors, or through quantization-aware fine-tuning by minimizing the global loss function. In this study, we discovered that, under the same data constraint, the former approach nearly always fared worse than the latter, a phenomenon particularly prominent when the numerical precision is very low. We further showed that this difficulty of post-training quantization arose from stark misalignment between optimization of the local and global objective functions. Our findings explains limited utility in minimization of local quantization error and the importance of direct quantization-aware fine-tuning, in the regime of large models at very low precision.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{xu2024understanding,
  title  = {Understanding the Difficulty of Low-Precision Post-Training Quantization for LLMs},
  author = {Zifei Xu and Sayeh Sharify and Wanzin Yazar and Tristan Webb and Xin Wang},
  year   = {2024},
  eprint = {2410.14570},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.14570v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.14570.svg)](https://codeofpaper.com/paper/2410.14570)

Discussion