Norm Tweaking: High-Performance Low-Bit Quantization of Large Language Models
Liang Li, Qingyuan Li, Bo Zhang, Xiangxiang Chu
摘要
As the size of large language models (LLMs) continues to grow, model compression without sacrificing accuracy has become a crucial challenge for deployment. While some quantization methods, such as GPTQ, have made progress in achieving acceptable 4-bit weight-only quantization, attempts at lower-bit quantization often result in severe performance degradation. In this paper, we introduce a technique called norm tweaking, which can be used as a plugin in current PTQ methods to achieve high precision while being cost-efficient. Our approach is inspired by the observation that rectifying the quantized activation distribution to match its float counterpart can readily restore accuracy for LLMs. To achieve this, we carefully design a tweaking strategy that includes calibration data generation and channel-wise distance constraint to update the weights of normalization layers for better generalization. We conduct extensive experiments on various datasets using several open-sourced LLMs. Our method demonstrates significant improvements in both weight-only quantization and joint quantization of weights and activations, surpassing existing PTQ methods. On GLM-130B and OPT-66B, our method even achieves the same level of accuracy at 2-bit quantization as their float ones. Our simple and effective approach makes it more practical for real-world applications.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- LLM in a flash: Efficient Large Language Model Inference with Limited Memory 引用了 Language Models are Few-Shot Learners
- PIQA: Reasoning about Physical Commonsense in Natural Language 引用了 WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- Anda: Unlocking Efficient LLM Inference with a Variable-Length Grouped Activation Data Format 引用了 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
- FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness 引用了 Language Models are Few-Shot Learners
- SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models 引用了 Language Models are Few-Shot Learners
- 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
- DuQuant: Distributing Outliers via Dual Transformation Makes Stronger Quantized LLMs 引用了 Language Models are Few-Shot Learners
- DuQuant: Distributing Outliers via Dual Transformation Makes Stronger Quantized LLMs 引用了 PB-LLM: Partially Binarized Large Language Models
- Oaken: Fast and Efficient LLM Serving with Online-Offline Hybrid KV Cache Quantization 引用了 PIQA: Reasoning about Physical Commonsense in Natural Language
- Oaken: Fast and Efficient LLM Serving with Online-Offline Hybrid KV Cache Quantization 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- Oaken: Fast and Efficient LLM Serving with Online-Offline Hybrid KV Cache Quantization 引用了 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
- Oaken: Fast and Efficient LLM Serving with Online-Offline Hybrid KV Cache Quantization 引用了 DuQuant: Distributing Outliers via Dual Transformation Makes Stronger Quantized LLMs
- Oaken: Fast and Efficient LLM Serving with Online-Offline Hybrid KV Cache Quantization 引用了 WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- Oaken: Fast and Efficient LLM Serving with Online-Offline Hybrid KV Cache Quantization 引用了 Language Models are Few-Shot Learners
- Language Models are Few-Shot Learners 引用了 WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- PB-LLM: Partially Binarized Large Language Models 引用了 PIQA: Reasoning about Physical Commonsense in Natural Language
- PB-LLM: Partially Binarized Large Language Models 引用了 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
- PB-LLM: Partially Binarized Large Language Models 引用了 WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- PB-LLM: Partially Binarized Large Language Models 引用了 Language Models are Few-Shot Learners
引用它的顶会 Paper9
- DuQuant: Distributing Outliers via Dual Transformation Makes Stronger Quantized LLMsHaokun Lin, Haobo Xu, Yichen Wu, Jingzhi Cui 等NeurIPS 2024 · 206 次引用
- PB-LLM: Partially Binarized Large Language ModelsZhihang Yuan, Yuzhang Shang, Zhen DongICLR 2024 · 91 次引用
- LLM in a flash: Efficient Large Language Model Inference with Limited MemoryKeivan Alizadeh, Iman Mirzadeh, Dmitry Belenko, S. Khatamifard 等ACL 2024 · 73 次引用
- Oaken: Fast and Efficient LLM Serving with Online-Offline Hybrid KV Cache QuantizationMinsu Kim, Seongmin Hong, Ryeowook Ko, Soongyu Choi 等ISCA 2025 · 17 次引用
- Anda: Unlocking Efficient LLM Inference with a Variable-Length Grouped Activation Data FormatChao Fang, Man Shi, Robin Geens, Arne Symons 等HPCA 2025 · 15 次引用
它引用的 Paper13
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- 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 次引用
相关 Paper
- QLLM: Accurate and Efficient Low-Bitwidth Quantization for Large Language ModelsJing Liu, Ruihao Gong, Xiuying Wei, Zhiwei Dong 等ICLR 2024 · 75 次引用
- Exploring Post-training Quantization in LLMs from Comprehensive Study to Low Rank CompensationZhewei Yao, Xiaoxia Wu, Cheng Li, Stephen Youn 等AAAI 2024 · 50 次引用
- ASER: Activation Smoothing and Error Reconstruction for Large Language Model QuantizationWeibo Zhao, Yubin Shi, Xinyu Lyu, Wanchen Sui 等AAAI 2025 · 7 次引用
- PTQ1.61: Push the Real Limit of Extremely Low-Bit Post-Training Quantization Methods for Large Language ModelsJiaqi Zhao, Miao Zhang, Ming Wang, Yuzhang Shang 等ACL 2025 · 7 次引用
- LBLLM: Lightweight Binarization of Large Language Models via Three-Stage DistillationSiqing Song, Chuang Wang, Yong Lang, Yi Yang 等ACL 2026
