AdpQ: A Zero-shot Calibration Free Adaptive Post Training Quantization Method for LLMs

Alireza Ghaffari, Sharareh Younesian, Vahid Partovi Nia, Boxing Chen, Masoud Asgharian
5/22/2024
cs.CL

No official code found. Best implementation: Tfloow/auto_adpq (1 star, Apache-2.0, last commit 2026-04-11).

Abstract

The ever-growing computational complexity of Large Language Models (LLMs) necessitates efficient deployment strategies. The current state-of-the-art approaches for Post-training Quantization (PTQ) often require calibration to achieve the desired accuracy. This paper presents AdpQ, a novel zero-shot adaptive PTQ method for LLMs that achieves the state-of-the-art performance in low-precision quantization (e.g. 3-bit) without requiring any calibration data. Inspired by Adaptive LASSO regression model, our proposed approach tackles the challenge of outlier activations by separating salient weights using an adaptive soft-thresholding method. Guided by Adaptive LASSO, this method ensures that the quantized weights distribution closely follows the originally trained weights and eliminates the need for calibration data entirely, setting our method apart from popular approaches such as SpQR and AWQ. Furthermore, our method offers an additional benefit in terms of privacy preservation by eliminating any calibration or training data. We also delve deeper into the information-theoretic underpinnings of the proposed method. We demonstrate that it leverages the Adaptive LASSO to minimize the Kullback-Leibler divergence between the quantized weights and the originally trained weights. This minimization ensures the quantized model retains the Shannon information content of the original model to a great extent, guaranteeing efficient deployment without sacrificing accuracy or information. Our results achieve the same accuracy as the existing methods on various LLM benchmarks while the quantization time is reduced by at least 10x, solidifying our contribution to efficient and privacy-preserving LLM deployment.

View on arXivView PDF

Code Implementations(1)

Tfloow/auto_adpqCommunity70%
Apache-2.0

This repo aims at replicating: "AdpQ: A Zero-shot Calibration Free Adaptive Post Training Quantization Method for LLMs" https://arxiv.org/abs/2405.13358

10Python, MakefileNov 23, 20256 months agoApache-2.0
calibrationllmpost-training-quantizationquantization

Similar Papers

Cite this paper

@article{ghaffari2024adpq,
  title  = {AdpQ: A Zero-shot Calibration Free Adaptive Post Training Quantization Method for LLMs},
  author = {Alireza Ghaffari and Sharareh Younesian and Vahid Partovi Nia and Boxing Chen and Masoud Asgharian},
  year   = {2024},
  eprint = {2405.13358},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.13358v1}
}

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

Discussion