QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMs
Saleh Ashkboos, Amirkeivan Mohtashami, Maximilian L. Croci, Bo Li, Pashmina Cameron, Martin Jaggi, Dan Alistarh, Torsten Hoefler, James Hensman
摘要
We introduce QuaRot, a new Quantization scheme based on Rotations, which is able to quantize LLMs end-to-end, including all weights, activations, and KV cache in 4 bits. QuaRot rotates LLMs in a way that removes outliers from the hidden state without changing the output, making quantization easier. This computational invariance is applied to the hidden state (residual) of the LLM, as well as to the activations of the feed-forward components, aspects of the attention mechanism, and to the KV cache. The result is a quantized model where all matrix multiplications are performed in 4 bits, without any channels identified for retention in higher precision. Our 4-bit quantized LLaMa2-70B model has losses of at most 0.47 WikiText-2 perplexity and retains 99% of the zero-shot performance. We also show that QuaRot can provide lossless 6 and 8 bit LLaMa2 models without any calibration data using round-to-nearest quantization. Code is available at: https://github.com/spcl/QuaRot.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 191 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- PIQA: Reasoning about Physical Commonsense in Natural Language 引用了 WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- Quantization Error Propagation: Revisiting Layer-Wise Post-Training Quantization 引用了 PIQA: Reasoning about Physical Commonsense in Natural Language
- Quantization Error Propagation: Revisiting Layer-Wise Post-Training Quantization 引用了 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
- DuQuant: Distributing Outliers via Dual Transformation Makes Stronger Quantized LLMs 引用了 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
- DuQuant: Distributing Outliers via Dual Transformation Makes Stronger Quantized LLMs 引用了 WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- Bridging the Gap Between Promise and Performance for Microscaling FP4 Quantization 引用了 QTIP: Quantization with Trellises and Incoherence Processing
- Bridging the Gap Between Promise and Performance for Microscaling FP4 Quantization 引用了 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
- Bridging the Gap Between Promise and Performance for Microscaling FP4 Quantization 引用了 WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- ParetoQ: Improving Scaling Laws in Extremely Low-bit LLM Quantization 引用了 PIQA: Reasoning about Physical Commonsense in Natural Language
- ParetoQ: Improving Scaling Laws in Extremely Low-bit LLM Quantization 引用了 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
- ParetoQ: Improving Scaling Laws in Extremely Low-bit LLM Quantization 引用了 WinoGrande: An Adversarial Winograd Schema Challenge at Scale
引用它的顶会 Paper191
- DuQuant: Distributing Outliers via Dual Transformation Makes Stronger Quantized LLMsHaokun Lin, Haobo Xu, Yichen Wu, Jingzhi Cui 等NeurIPS 2024 · 206 次引用
- QTIP: Quantization with Trellises and Incoherence ProcessingAlbert Tseng, Qingyao Sun, David Hou, Christopher De SaNeurIPS 2024 · 101 次引用
- ParetoQ: Improving Scaling Laws in Extremely Low-bit LLM QuantizationZechun Liu, Changsheng Zhao, Hanxian Huang, Sijia Chen 等NeurIPS 2025 · 50 次引用
- Quantization Error Propagation: Revisiting Layer-Wise Post-Training QuantizationYamato Arai, Yuma IchikawaNeurIPS 2025 · 46 次引用
- Bridging the Gap Between Promise and Performance for Microscaling FP4 QuantizationVage Egiazarian, Roberto L. Castro, Denis Kuznedelev, Andrei Panferov 等ICLR 2026 · 38 次引用
它引用的 Paper12
- FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra 等NeurIPS 2022 · 5,493 次引用
- WinoGrande: An Adversarial Winograd Schema Challenge at ScaleKeisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, Yejin ChoiAAAI 2020 · 3,037 次引用
- PIQA: Reasoning about Physical Commonsense in Natural LanguageYonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao 等AAAI 2020 · 2,916 次引用
- SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language ModelsGuangxuan Xiao, Ji Lin, Mickaël Seznec, Hao Wu 等ICML 2023 · 1,493 次引用
- FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUYing Sheng, Lianmin Zheng, Binhang Yuan, Zhuohan Li 等ICML 2023 · 683 次引用
相关 Paper
- SpinQuant: LLM Quantization with Learned RotationsZechun Liu, Changsheng Zhao, Igor Fedorov, Bilge Soran 等ICLR 2025
- KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache QuantizationColeman Hooper, Sehoon Kim, Hiva Mohammadzadeh, Michael W. Mahoney 等NeurIPS 2024 · 738 次引用
- KurTail : Kurtosis-based LLM QuantizationMohammad Sadegh Akhondzadeh, Aleksandar Bojchevski, Evangelos Eleftheriou, Martino DazziEMNLP Findings 2025
- LLM-QAT: Data-Free Quantization Aware Training for Large Language ModelsZechun Liu, Barlas Oguz, Changsheng Zhao, Ernie Chang 等ACL Findings 2024 · 135 次引用
- NestQuant: nested lattice quantization for matrix products and LLMsSemyon Savkin, Eitan Porat, Or Ordentlich, Yury PolyanskiyICML 2025
