atlas

Research map / Architectures and efficiency / Quantization

Extreme Compression of Large Language Models via Additive Quantization

ICML 2024 · Architectures and efficiency › Quantization · approach: KV cache quantization · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes AQLM, which adapts multi-codebook additive quantization to post-training LLM weight compression with input-aware codebook learning and block-wise fine-tuning, achieving Pareto-optimal 2-3 bit compression of Llama 2 and Mixtral.

Problem

Extreme (2-3 bits per parameter) post-training compression of LLM weights, where existing scalar or lattice quantizers lose substantial accuracy and are not Pareto-optimal against smaller models at the same memory size.

Approach

Extends classic Additive Quantization from nearest-neighbor search to LLM weights by making the objective input-aware (using calibration activations via XX^T), learning codebooks and codes via beam search and Adam, and jointly fine-tuning codebooks and norm parameters per transformer block against the original block outputs.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use AQLM instead of QuIP# at approximately 2 bitsLlama 2 7B · Llama 2 7B, 2-bit quantizationWikiText-2 perplexity: 8.22 -> 6.59Helped
use AQLM instead of QuIP# at approximately 2 bitsLlama 2 13B · Llama 2 13B, 2-bit quantizationWikiText-2 perplexity: 6.06 -> 5.60Helped
use AQLM instead of QuIP# at approximately 2 bitsLlama 2 70B · Llama 2 70B, 2-bit quantizationWikiText-2 perplexity: 4.16 -> 3.94Helped
use AQLM instead of QuIP# at approximately 2 bitsMixtral 8x7B · Mixtral 8x7B, 2-bit quantizationAverage accuracy: 66.34 -> 67.68Helped
increase calibration data from 128 to 4096 samples (ablation)AQLM on Llama 2 7B · WikiText-2perplexity: 6.994 -> 6.267Helped
use residual K-means initialization rather than random initialization (ablation)AQLM on Llama 2 70B q_proj · single linear layer, 3-bit quantizationtraining iterations to desired lossHelped
fine-tune the whole model end-to-end (ablation)AQLM · 2-bit quantizationmodel accuracyHelped
fine-tune only AQ parameters instead of no fine-tuning (ablation)AQLM · quantized modelsmodel accuracyHelped
fine-tune only RMSNorm scales instead of no fine-tuning (ablation)AQLM · quantized modelsmodel accuracyNo clear effect
vary codebook count and group size at approximately 2 bits (ablation)AQLM on Llama 2 7B · WikiText-2perplexity: 7.6107; 8.1394; 7.3755; 7.8459Mixed

Surprising findings

Limitations

Experimental setup

Datasets: RedPajama-v1 WikiText-2 C4 WinoGrande PiQA HellaSwag ARC-easy ARC-challenge

Benchmarks: WikiText-2 C4 WinoGrande PiQA HellaSwag ARC-easy ARC-challenge

Metrics: perplexity zero-shot accuracy average accuracy tokens per second speedup

Baselines: GPTQ SpQR QuIP QuIP# AWQ SqueezeLLM

Builds on: Additive Quantization GPTQ QuIP# Product Quantization

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy