Lune

NeurIPS2023Top-tier venue

QuIP: 2-Bit Quantization of Large Language Models With Guarantees

Jerry Chee, Yaohui Cai, Volodymyr Kuleshov, Christopher De Sa

Abstract

This work studies post-training parameter quantization in large language models (LLMs). We introduce quantization with incoherence processing (QuIP), a new method based on the insight that quantization benefits from incoherent weight and Hessian matrices, i.e., from the weights being even in magnitude and the directions in which it is important to round them accurately being unaligned with the coordinate axes. QuIP consists of two steps: (1) an adaptive rounding procedure minimizing a quadratic proxy objective; (2) efficient pre-and post-processing that ensures weight and Hessian incoherence via multiplication by random orthogonal matrices. We complement QuIP with the first theoretical analysis for an LLM-scale quantization algorithm, and show that our theory also applies to an existing method, OPTQ. Empirically, we find that our incoherence preprocessing improves several existing quantization algorithms and yields the first LLM quantization methods that produce viable results using only two bits per weight. Our code can be found at https://github.com/Cornell-RelaxML/QuIP . Remarks. The number of rows being quantized is m, and each quantization method operates across the n entries of each row. For all rounding methods described by Eq. ( 2 ), and for all positive semidefinite H, Q as nearest rounding achieves the same worst-case proxy loss as stochastic rounding, but achieves better average proxy loss. Note that the worst case for comparing LDLQ against these baselines occurs when H is diagonal, see Theorem 1 and Lemma 3. Assuming incoherence as we do is a natural way to exclude such cases. Quantization With Incoherence Processing: Incoherence Processing Step Next, we leverage the above incoherence analysis to introduce incoherence processing, the second step of the QuIP algorithm. Our strategy will be to pre-process weight and Hessian matrices to ensure

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

173 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models cites SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
  • OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models cites Language Models are Few-Shot Learners
  • OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models cites SqueezeLLM: Dense-and-Sparse Quantization
  • OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models cites Up or Down? Adaptive Rounding for Post-Training Quantization
  • QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMs cites OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models
  • QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMs cites SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
  • QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMs cites QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks
  • ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformers cites Language Models are Few-Shot Learners
  • ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformers cites HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
  • ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformers cites Up or Down? Adaptive Rounding for Post-Training Quantization
  • SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models cites Language Models are Few-Shot Learners
  • QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks cites Up or Down? Adaptive Rounding for Post-Training Quantization
  • FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision cites QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks
  • SqueezeLLM: Dense-and-Sparse Quantization cites Language Models are Few-Shot Learners
  • Up or Down? Adaptive Rounding for Post-Training Quantization cites HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers173

  1. FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisionJay Shah, Ganesh Bikshandi, Ying Zhang, Vijay Thakkar et al.NeurIPS 2024 · 727 citations
  2. QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMsSaleh Ashkboos, Amirkeivan Mohtashami, Maximilian L. Croci, Bo Li et al.NeurIPS 2024 · 723 citations
  3. OmniQuant: Omnidirectionally Calibrated Quantization for Large Language ModelsWenqi Shao, Mengzhao Chen, Zhaoyang Zhang, Peng Xu et al.ICLR 2024 · 395 citations
  4. SqueezeLLM: Dense-and-Sparse QuantizationSehoon Kim, Coleman Hooper, Amir Gholami, Zhen Dong et al.ICML 2024 · 306 citations
  5. QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice CodebooksAlbert Tseng, Jerry Chee, Qingyao Sun, Volodymyr Kuleshov et al.ICML 2024 · 295 citations

Builds on18

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language ModelsGuangxuan Xiao, Ji Lin, Mickaël Seznec, Hao Wu et al.ICML 2023 · 1,493 citations
  3. ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale TransformersZhewei Yao, Reza Yazdani Aminabadi, Minjia Zhang, Xiaoxia Wu et al.NeurIPS 2022 · 816 citations
  4. Up or Down? Adaptive Rounding for Post-Training QuantizationMarkus Nagel, Rana Ali Amjad, Mart van Baalen, Christos Louizos et al.ICML 2020 · 816 citations
  5. HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-PrecisionZhen Dong, Zhewei Yao, Amir Gholami, Michael W. Mahoney et al.ICCV 2019 · 645 citations

Related papers

  1. MagR: Weight Magnitude Reduction for Enhancing Post-Training QuantizationAozhong Zhang, Naigang Wang, Yanxia Deng, Xin Li et al.NeurIPS 2024 · 33 citations
  2. Qronos: Correcting the Past by Shaping the Future... in Post-Training QuantizationShihao Zhang, Haoyu Zhang, Ian Colbert, Rayan SaabICLR 2026 · 27 citations
  3. OSAQ: Outlier Self-Absorption for Accurate Low-bit LLM QuantizationZhikai Li, Zhen Dong, Xuewen Liu, Jing Zhang et al.ICML 2026 · 1 citation
  4. NestQuant: nested lattice quantization for matrix products and LLMsSemyon Savkin, Eitan Porat, Or Ordentlich, Yury PolyanskiyICML 2025
  5. Optimize Weight Rounding via Signed Gradient Descent for the Quantization of LLMsWenhua Cheng, Weiwei Zhang, Haihao Shen, Yiyang Cai et al.EMNLP Findings 2024 · 10 citations
Dusk over the sea between two cliffs drawn in fine vertical lines