atlas

Research map / Architectures and efficiency / Quantization

SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compression

ICLR 2024 · Architectures and efficiency › Quantization · approach: Post-training quantization of LLMs · 26 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.

Introduces SpQR, a hybrid sparse-quantized weight format and GPTQ-based post-training quantization that isolates ~1% outlier weights in fp16 and uses tiny groups with bilevel-quantized statistics, achieving near-lossless (<1% perplexity increase) 3-4 bit LLM compression.

Problem

Standard 3-4 bit weight quantization of LLMs causes significant accuracy degradation, especially for small (1-10B) models suited to edge deployment, and existing formats do not isolate the sensitive weights that cause large errors.

Approach

Identify weights whose quantization induces large layer-output error (via a GPTQ-derived sensitivity criterion) and store them in 16-bit in a CSR-like sparse format, while quantizing the rest with very small groups (16 weights) whose scales and zero-points are themselves quantized to 3 bits in a second level.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use SpQR instead of GPTQ or round-to-nearest at similar model sizeLLM weight quantization · LLaMA WikiText2 and zero-shot tasksperplexity and accuracyHelped
Use 4-bit SpQR instead of 4-bit GPTQLLM weight quantization · LLaMA and Falcon perplexity benchmarksperplexity error relative to 16-bitHelped
Use the optimized sparse matrix multiplication algorithm instead of PyTorch sparse multiplicationSpQR inference · LLaMA token generationtokens/s: about 20-30%Helped
Use small weight groups with quantized statistics instead of larger groups with 16-bit statistics (ablation)3-bit SpQR without outliers · Language modeling benchmarkslanguage modeling lossHelped
Use unstructured outliers instead of row outliers or column outliers (ablation)3-bit SpQR · LLaMA-65B perplexityperplexityHelped
Round zero-points to 3-bit integers (ablation)SpQR · Quantization evaluationperplexityHurt
Remove the activation-order heuristic (ablation)SpQR · Quantization evaluationlanguage modeling lossHurt

Surprising findings

Limitations

Experimental setup

Datasets: RedPajama RefinedWeb C4 WikiText2 Penn Treebank

Benchmarks: WikiText2 Penn Treebank C4 WinoGrande PiQA HellaSwag ARC-easy ARC-challenge

Metrics: perplexity zero-shot accuracy tokens per second average bits per parameter

Baselines: GPTQ round-to-nearest (RTN) LLM.int8() outlier criterion

Builds on: GPTQ Optimal Brain Surgeon LLM.int8() SparseGPT

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