Continuous Approximations for Improving Quantization Aware Training of LLMs

He Li, Jianhang Hong, Yuanzhuo Wu, Snehal Adbol, Zonglin Li
10/6/2024
cs.LGcs.AIcs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Model compression methods are used to reduce the computation and energy requirements for Large Language Models (LLMs). Quantization Aware Training (QAT), an effective model compression method, is proposed to reduce performance degradation after quantization. To further minimize this degradation, we introduce two continuous approximations to the QAT process on the rounding function, traditionally approximated by the Straight-Through Estimator (STE), and the clamping function. By applying both methods, the perplexity (PPL) on the WikiText-v2 dataset of the quantized model reaches 9.0815, outperforming 9.9621 by the baseline. Also, we achieve a 2.76% improvement on BoolQ, and a 5.47% improvement on MMLU, proving that the step sizes and weights can be learned more accurately with our approach. Our method achieves better performance with the same precision, model size, and training setup, contributing to the development of more energy-efficient LLMs technology that aligns with global sustainability goals.

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. 1 weaker match is 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{li2024continuous,
  title  = {Continuous Approximations for Improving Quantization Aware Training of LLMs},
  author = {He Li and Jianhang Hong and Yuanzhuo Wu and Snehal Adbol and Zonglin Li},
  year   = {2024},
  eprint = {2410.10849},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.10849v1}
}

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.10849.svg)](https://codeofpaper.com/paper/2410.10849)

Discussion