QuIP: 2-Bit Quantization of Large Language Models With Guarantees
Jerry Chee, Yaohui Cai, Volodymyr Kuleshov, Christopher De Sa
摘要
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
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 173 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models 引用了 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
- OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models 引用了 Language Models are Few-Shot Learners
- OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models 引用了 SqueezeLLM: Dense-and-Sparse Quantization
- OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models 引用了 Up or Down? Adaptive Rounding for Post-Training Quantization
- QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMs 引用了 OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models
- QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMs 引用了 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
- QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMs 引用了 QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks
- ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformers 引用了 Language Models are Few-Shot Learners
- ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformers 引用了 HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
- ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformers 引用了 Up or Down? Adaptive Rounding for Post-Training Quantization
- SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models 引用了 Language Models are Few-Shot Learners
- QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks 引用了 Up or Down? Adaptive Rounding for Post-Training Quantization
- FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision 引用了 QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks
- SqueezeLLM: Dense-and-Sparse Quantization 引用了 Language Models are Few-Shot Learners
- Up or Down? Adaptive Rounding for Post-Training Quantization 引用了 HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
引用它的顶会 Paper173
- FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisionJay Shah, Ganesh Bikshandi, Ying Zhang, Vijay Thakkar 等NeurIPS 2024 · 727 次引用
- QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMsSaleh Ashkboos, Amirkeivan Mohtashami, Maximilian L. Croci, Bo Li 等NeurIPS 2024 · 723 次引用
- OmniQuant: Omnidirectionally Calibrated Quantization for Large Language ModelsWenqi Shao, Mengzhao Chen, Zhaoyang Zhang, Peng Xu 等ICLR 2024 · 395 次引用
- SqueezeLLM: Dense-and-Sparse QuantizationSehoon Kim, Coleman Hooper, Amir Gholami, Zhen Dong 等ICML 2024 · 306 次引用
- QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice CodebooksAlbert Tseng, Jerry Chee, Qingyao Sun, Volodymyr Kuleshov 等ICML 2024 · 295 次引用
它引用的 Paper18
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language ModelsGuangxuan Xiao, Ji Lin, Mickaël Seznec, Hao Wu 等ICML 2023 · 1,493 次引用
- ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale TransformersZhewei Yao, Reza Yazdani Aminabadi, Minjia Zhang, Xiaoxia Wu 等NeurIPS 2022 · 816 次引用
- Up or Down? Adaptive Rounding for Post-Training QuantizationMarkus Nagel, Rana Ali Amjad, Mart van Baalen, Christos Louizos 等ICML 2020 · 816 次引用
- HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-PrecisionZhen Dong, Zhewei Yao, Amir Gholami, Michael W. Mahoney 等ICCV 2019 · 645 次引用
相关 Paper
- MagR: Weight Magnitude Reduction for Enhancing Post-Training QuantizationAozhong Zhang, Naigang Wang, Yanxia Deng, Xin Li 等NeurIPS 2024 · 33 次引用
- Qronos: Correcting the Past by Shaping the Future... in Post-Training QuantizationShihao Zhang, Haoyu Zhang, Ian Colbert, Rayan SaabICLR 2026 · 27 次引用
- OSAQ: Outlier Self-Absorption for Accurate Low-bit LLM QuantizationZhikai Li, Zhen Dong, Xuewen Liu, Jing Zhang 等ICML 2026 · 1 次引用
- NestQuant: nested lattice quantization for matrix products and LLMsSemyon Savkin, Eitan Porat, Or Ordentlich, Yury PolyanskiyICML 2025
- Optimize Weight Rounding via Signed Gradient Descent for the Quantization of LLMsWenhua Cheng, Weiwei Zhang, Haihao Shen, Yiyang Cai 等EMNLP Findings 2024 · 10 次引用
