Outliers and Calibration Sets have Diminishing Effect on Quantization of Modern LLMs

Davide Paglieri, Saurabh Dash, Tim Rocktäschel, Jack Parker-Holder
5/31/2024
cs.LGcs.AIcs.CL

No confident code implementation found for this paper.

Abstract

Post-Training Quantization (PTQ) enhances the efficiency of Large Language Models (LLMs) by enabling faster operation and compatibility with more accessible hardware through reduced memory usage, at the cost of small performance drops. We explore the role of calibration sets in PTQ, specifically their effect on hidden activations in various notable open-source LLMs. Calibration sets are crucial for evaluating activation magnitudes and identifying outliers, which can distort the quantization range and negatively impact performance. Our analysis reveals a marked contrast in quantization effectiveness across models. The older OPT model, upon which much of the quantization literature is based, shows significant performance deterioration and high susceptibility to outliers with varying calibration sets. In contrast, newer models like Llama-2 7B, Llama-3 8B, Command-R 35B, and Mistral 7B demonstrate strong robustness, with Mistral 7B showing near-immunity to outliers and stable activations. These findings suggest a shift in PTQ strategies might be needed. As advancements in pre-training methods reduce the relevance of outliers, there is an emerging need to reassess the fundamentals of current quantization literature. The emphasis should pivot towards optimizing inference speed, rather than primarily focusing on outlier preservation, to align with the evolving characteristics of state-of-the-art LLMs.

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. Any repos shown below are weak matches — 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{paglieri2024outliers,
  title  = {Outliers and Calibration Sets have Diminishing Effect on Quantization of Modern LLMs},
  author = {Davide Paglieri and Saurabh Dash and Tim Rocktäschel and Jack Parker-Holder},
  year   = {2024},
  eprint = {2405.20835},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.20835v3}
}

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

Discussion