Low-Rank Correction for Quantized LLMs

Meyer Scetbon, James Hensman
12/10/2024
stat.MLcs.LG

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

Abstract

We consider the problem of model compression for Large Language Models (LLMs) at post-training time, where the task is to compress a well-trained model using only a small set of calibration input data. In this work, we introduce a new low-rank approach to correct for quantization errors of \emph{activations} in LLMs: we propose to add low-rank weight matrices in full precision that act on the \emph{unquantized} activations. We then solve a joint optimization problem over the quantized representation of the weights and additional low-rank weight matrices to quantize both weights and activations. We focus on the case of 4-bit weight-and-activation quantization (W4A4). Using ranks equivalent to 10\% of the original weight matrix size, our approach reduces the accuracy gap with the original model by more than 50\%. Using ranks equivalent to 30\% of the original weight matrix, the accuracy gap is closed completely. We demonstrate our results on four recent LLMs, namely Llama-2, Llama-3, Phi-3 and Mixtral models.

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!

Cite this paper

@article{scetbon2024lowrank,
  title  = {Low-Rank Correction for Quantized LLMs},
  author = {Meyer Scetbon and James Hensman},
  year   = {2024},
  eprint = {2412.07902},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.07902v1}
}

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

Discussion