atlas

Research map / Architectures and efficiency / Quantization

SqueezeLLM: Dense-and-Sparse Quantization

ICML 2024 · Architectures and efficiency › Quantization · approach: Post-training quantization of LLMs · 23 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 SqueezeLLM, a post-training weight-only quantization framework combining Fisher-weighted (sensitivity-based) non-uniform k-means quantization with a dense-and-sparse decomposition that keeps outliers and sensitive weights in FP16 sparse format, enabling near-lossless 3/4-bit LLaMA inference with up to 2.4x speedup on A6000.

Problem

LLM generative inference is memory-bandwidth bound, and existing low-bit post-training quantization (uniform, e.g. GPTQ/AWQ) degrades perplexity notably at 3 bits and for smaller models.

Approach

Use non-uniform LUT quantization whose k-means centroids are weighted by a diagonal Fisher information approximation of the final loss, and offload the top-sensitivity and outlier weights (0.45% total) into a full-precision CSR sparse matrix so the dense part has a much narrower range.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace uniform quantization with sensitivity-based non-uniform quantizationSqueezeLLM on LLaMA-7B · C4, 3-bitperplexity: 28.26 -> 7.75Helped
add 0.45% sparse extraction of sensitive values and outliers (ablation)SqueezeLLM on LLaMA-7B · C4, 3-bitperplexity: 7.75 -> 7.56Helped
remove sensitivity weighting from k-means clustering (ablation)SqueezeLLM on LLaMA-7B · C4, 3-bitperplexity: 7.75 -> 18.08Hurt
add sensitivity-based clustering instead of sensitivity-agnostic clustering (ablation)SqueezeLLM on LLaMA-7B · C4, 3-bit, 0.05% sparsityperplexity: 8.10 -> 7.67Helped
add sensitivity-based clustering instead of sensitivity-agnostic clustering (ablation)SqueezeLLM on LLaMA-7B · C4, 3-bit, 0.45% sparsityperplexity: 7.61 -> 7.56Helped
extract sensitive values as well as outliers into the sparse matrix (ablation)SqueezeLLM on LLaMA-7B · C4, 3-bitperplexityHelped
use grouping or grouping plus sparsity instead of Dense-and-Sparse decomposition (ablation)SqueezeLLM on LLaMA-7B · C4, 3-bitperplexityHurt
minimize layer-wise perturbation instead of final-output perturbation (ablation)SqueezeLLM on LLaMA-7B · C4, 3-bitperplexity: around 0.3 perplexity pointsHurt
increase sparse extraction beyond 0.05% for sensitive values (ablation)SqueezeLLM on LLaMA-7B · C4, 3-bitperplexityNo clear effect
increase the overall sparse decomposition level (ablation)SqueezeLLM on LLaMA-2 7B · WikiText2, 4-bitperplexity: 5.62 -> 5.53Helped
increase dense-component precision from 3-bit to 4-bit instead of increasing sparsity (ablation)SqueezeLLM on LLaMA-2 7B · C4perplexity: 7.12 vs 7.35Helped
use a balanced sparse kernel rather than a standard CSR sparse kernel (ablation)SqueezeLLM on LLaMA-7B · A6000, generating 128 tokenslatency: 3.9 -> 1.7Helped

Surprising findings

Limitations

Experimental setup

Datasets: C4 WikiText2 MMLU Vicuna training set

Benchmarks: C4 WikiText2 MMLU Vicuna benchmark

Metrics: perplexity zero-shot accuracy latency (s) peak memory (GB) GPT-4 win/tie/loss

Baselines: RTN GPTQ AWQ SpQR QuIP OmniQuant

Builds on: GPTQ GOBO OBD

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