atlas

Research map / Architectures and efficiency / Quantization

QuIP$\#$: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks

ICML 2024 · Architectures and efficiency › Quantization · approach: KV cache quantization

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 QuIP#, a weight-only post-training quantization method combining randomized Hadamard incoherence processing, E8-lattice-based vector codebooks (E8P) with BlockLDLQ rounding, and inter-layer fine-tuning, reaching state-of-the-art Llama 1/2 perplexity at 2–4 bits.

Problem

Post-training weight quantization of LLMs to extreme low-bit regimes (≤4 bits per weight) while keeping quality high and decoding fast on GPUs.

Approach

Replace QuIP's Kronecker incoherence transform with a randomized Hadamard transform, round weights with block adaptive rounding (BlockLDLQ) using a structured E8 lattice codebook (E8P) that fits in L1 cache, and fine-tune the unquantized parameters layer-wise and end-to-end during quantization.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use QuIP# 2-bit instead of AQLM 2.07-bitLlama 2 70B · WikiText2 (ctx 4096)perplexity: 3.94 -> 3.91Helped
Use QuIP# 4-bit instead of AQLM 4.07-bitLlama 2 70B · WikiText2 (ctx 4096)perplexity: 3.17 -> 3.18Hurt
Add fine-tuning (ablation)QuIP# 2-bit on Llama 2 7B · WikiText2 (ctx 4096)perplexity: 8.22 -> 6.19Helped
Add E8 lattice codebooks and fine-tuning (ablation)QuIP# 2-bit on Llama 2 7B · WikiText2 (ctx 4096)perplexity: 11.2 -> 6.19Helped
Add fine-tuning (ablation)QuIP# 2-bit on Llama 2 13B · WikiText2 (ctx 4096)perplexity: 6.06 -> 5.35Helped
Add E8 lattice codebooks and fine-tuning (ablation)QuIP# 2-bit on Llama 2 13B · WikiText2 (ctx 4096)perplexity: 7.04 -> 5.35Helped
Add fine-tuning (ablation)QuIP# 2-bit on Llama 2 70B · WikiText2 (ctx 4096)perplexity: 4.16 -> 3.91Helped
Add E8 lattice codebooks and fine-tuning (ablation)QuIP# 2-bit on Llama 2 70B · WikiText2 (ctx 4096)perplexity: 4.58 -> 3.91Helped

Surprising findings

Limitations

Experimental setup

Datasets: WikiText2 C4

Benchmarks: WikiText2 C4 ArcC ArcE PiQA Winogrande BoolQ

Metrics: perplexity zero-shot accuracy tokens per second percent of peak memory bandwidth

Baselines: AWQ OmniQuant QuIP AQLM SpQR SqueezeLLM LLM-QAT

Builds on: QuIP LDLQ AQLM OPTQ

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