Accurate Post Training Quantization With Small Calibration Sets
Itay Hubara, Yury Nahshan, Yair Hanani, Ron Banner, Daniel Soudry
摘要
Lately, post-training quantization methods have gained considerable attention, as they are simple to use, and require only a small unlabeled calibration set. This small dataset cannot be used to fine-tune the model without significant overfitting. Instead, these methods only use the calibration set to set the activations' dynamic ranges. However, such methods always resulted in significant accuracy degradation, when used below 8-bits (except on small datasets). Here we aim to break the 8-bit barrier. To this end, we minimize the quantization errors of each layer or block separately by optimizing its parameters over the calibration set. We empirically demonstrate that this approach is: (1) much less susceptible to overfitting than the standard fine-tuning approaches, and can be used even on a very small calibration set; and (2) more powerful than previous methods, which only set the activations' dynamic ranges. We suggest two flavors for our method, parallel and sequential aim for a fixed and flexible bitwidth allocation. For the latter, we demonstrate how to optimally allocate the bit-widths for each layer, while constraining accuracy degradation or model compression by proposing a novel integer programming formulation. Finally, we suggest model global statistics tuning, to correct biases introduced during quantization. Together, these methods yield state-of-the-art results for both vision and text models. For instance, on ResNet50, we obtain less than 1% accuracy degradationwith 4-bit weights and activations in all layers, but first and last. The suggested methods are two orders of magnitude faster than the traditional Quantize Aware Training approach used for lower than 8-bit quantization. We open-sourced our code https://github.com/papers-submission/CalibTIP .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 73 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compression 引用了 Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
- SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compression 引用了 Up or Down? Adaptive Rounding for Post-Training Quantization
- QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantization 引用了 Data-Free Quantization Through Weight Equalization and Bias Correction
- QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantization 引用了 Up or Down? Adaptive Rounding for Post-Training Quantization
- QuIP: 2-Bit Quantization of Large Language Models With Guarantees 引用了 Data-Free Quantization Through Weight Equalization and Bias Correction
- QuIP: 2-Bit Quantization of Large Language Models With Guarantees 引用了 Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
- QuIP: 2-Bit Quantization of Large Language Models With Guarantees 引用了 Up or Down? Adaptive Rounding for Post-Training Quantization
- Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning 引用了 Data-Free Quantization Through Weight Equalization and Bias Correction
- Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning 引用了 Up or Down? Adaptive Rounding for Post-Training Quantization
- Up or Down? Adaptive Rounding for Post-Training Quantization 引用了 Data-Free Quantization Through Weight Equalization and Bias Correction
- SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot 引用了 Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
- SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot 引用了 Up or Down? Adaptive Rounding for Post-Training Quantization
引用它的顶会 Paper73
- SparseGPT: Massive Language Models Can be Accurately Pruned in One-ShotElias Frantar, Dan AlistarhICML 2023 · 1,240 次引用
- QuIP: 2-Bit Quantization of Large Language Models With GuaranteesJerry Chee, Yaohui Cai, Volodymyr Kuleshov, Christopher De SaNeurIPS 2023 · 503 次引用
- Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and PruningElias Frantar, Dan AlistarhNeurIPS 2022 · 440 次引用
- SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight CompressionTim Dettmers, Ruslan Svirschevski, Vage Egiazarian, Denis Kuznedelev 等ICLR 2024 · 392 次引用
- QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training QuantizationXiuying Wei, Ruihao Gong, Yuhang Li, Xianglong Liu 等ICLR 2022 · 248 次引用
它引用的 Paper3
- Up or Down? Adaptive Rounding for Post-Training QuantizationMarkus Nagel, Rana Ali Amjad, Mart van Baalen, Christos Louizos 等ICML 2020 · 816 次引用
- Data-Free Quantization Through Weight Equalization and Bias CorrectionMarkus Nagel, Mart van Baalen, Tijmen Blankevoort, Max WellingICCV 2019 · 622 次引用
- The Knowledge Within: Methods for Data-Free Model CompressionMatan Haroush, Itay Hubara, Elad Hoffer, Daniel SoudryCVPR 2020
相关 Paper
- Mr.BiQ: Post-Training Non-Uniform Quantization based on Minimizing the Reconstruction ErrorYongkweon Jeon, Chungman Lee, Eulrang Cho, Yeonju RoCVPR 2022 · 28 次引用
- PD-Quant: Post-Training Quantization Based on Prediction Difference MetricJiawei Liu, Lin Niu, Zhihang Yuan, Dawei Yang 等CVPR 2023
- MLWQ: Efficient Small Language Model Deployment via Multi-Level Weight QuantizationChun Hu, Junhui He, Shangyu Wu, Yuxin He 等EMNLP 2025 · 1 次引用
- SINQ: Sinkhorn-Normalized Quantization for Calibration-Free Low-Precision LLM WeightsLorenz K. Muller, Philippe Bich, Jiawei Zhuang, Ahmet Çelik 等ICML 2026 · 5 次引用
- Leveraging Inter-Layer Dependency for Post -Training QuantizationChangbao Wang, Dandan Zheng, Yuanliu Liu, Liang LiNeurIPS 2022 · 27 次引用
