Lune

ICML2021Top-tier venue

Accurate Post Training Quantization With Small Calibration Sets

Itay Hubara, Yury Nahshan, Yair Hanani, Ron Banner, Daniel Soudry

Abstract

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 .

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.

73 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

  • SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compression cites Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
  • SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compression cites Up or Down? Adaptive Rounding for Post-Training Quantization
  • QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantization cites Data-Free Quantization Through Weight Equalization and Bias Correction
  • QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantization cites Up or Down? Adaptive Rounding for Post-Training Quantization
  • QuIP: 2-Bit Quantization of Large Language Models With Guarantees cites Data-Free Quantization Through Weight Equalization and Bias Correction
  • QuIP: 2-Bit Quantization of Large Language Models With Guarantees cites Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
  • QuIP: 2-Bit Quantization of Large Language Models With Guarantees cites Up or Down? Adaptive Rounding for Post-Training Quantization
  • Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning cites Data-Free Quantization Through Weight Equalization and Bias Correction
  • Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning cites Up or Down? Adaptive Rounding for Post-Training Quantization
  • Up or Down? Adaptive Rounding for Post-Training Quantization cites Data-Free Quantization Through Weight Equalization and Bias Correction
  • SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot cites Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
  • SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot cites Up or Down? Adaptive Rounding for Post-Training Quantization
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers73

  1. SparseGPT: Massive Language Models Can be Accurately Pruned in One-ShotElias Frantar, Dan AlistarhICML 2023 · 1,240 citations
  2. QuIP: 2-Bit Quantization of Large Language Models With GuaranteesJerry Chee, Yaohui Cai, Volodymyr Kuleshov, Christopher De SaNeurIPS 2023 · 503 citations
  3. Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and PruningElias Frantar, Dan AlistarhNeurIPS 2022 · 440 citations
  4. SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight CompressionTim Dettmers, Ruslan Svirschevski, Vage Egiazarian, Denis Kuznedelev et al.ICLR 2024 · 392 citations
  5. QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training QuantizationXiuying Wei, Ruihao Gong, Yuhang Li, Xianglong Liu et al.ICLR 2022 · 248 citations

Builds on3

  1. Up or Down? Adaptive Rounding for Post-Training QuantizationMarkus Nagel, Rana Ali Amjad, Mart van Baalen, Christos Louizos et al.ICML 2020 · 816 citations
  2. Data-Free Quantization Through Weight Equalization and Bias CorrectionMarkus Nagel, Mart van Baalen, Tijmen Blankevoort, Max WellingICCV 2019 · 622 citations
  3. The Knowledge Within: Methods for Data-Free Model CompressionMatan Haroush, Itay Hubara, Elad Hoffer, Daniel SoudryCVPR 2020

Related papers

  1. Mr.BiQ: Post-Training Non-Uniform Quantization based on Minimizing the Reconstruction ErrorYongkweon Jeon, Chungman Lee, Eulrang Cho, Yeonju RoCVPR 2022 · 28 citations
  2. PD-Quant: Post-Training Quantization Based on Prediction Difference MetricJiawei Liu, Lin Niu, Zhihang Yuan, Dawei Yang et al.CVPR 2023
  3. MLWQ: Efficient Small Language Model Deployment via Multi-Level Weight QuantizationChun Hu, Junhui He, Shangyu Wu, Yuxin He et al.EMNLP 2025 · 1 citation
  4. SINQ: Sinkhorn-Normalized Quantization for Calibration-Free Low-Precision LLM WeightsLorenz K. Muller, Philippe Bich, Jiawei Zhuang, Ahmet Çelik et al.ICML 2026 · 5 citations
  5. Leveraging Inter-Layer Dependency for Post -Training QuantizationChangbao Wang, Dandan Zheng, Yuanliu Liu, Liang LiNeurIPS 2022 · 27 citations
Dusk over the sea between two cliffs drawn in fine vertical lines