SQuant: On-the-Fly Data-Free Quantization via Diagonal Hessian Approximation
Cong Guo, Yuxian Qiu, Jingwen Leng, Xiaotian Gao, Chen Zhang, Yunxin Liu, Fan Yang, Yuhao Zhu, Minyi Guo
Abstract
Quantization of deep neural networks (DNN) has been proven effective for compressing and accelerating DNN models. Data-free quantization (DFQ) is a promising approach without the original datasets under privacy-sensitive and confidential scenarios. However, current DFQ solutions degrade accuracy, need synthetic data to calibrate networks, and are time-consuming and costly. This paper proposes an on-the-fly DFQ framework with sub-second quantization time, called SQuant, which can quantize networks on inference-only devices with low computation and memory requirements. With the theoretical analysis of the second-order information of DNN task loss, we decompose and approximate the Hessian-based optimization objective into three diagonal sub-items, which have different areas corresponding to three dimensions of weight tensor: element-wise, kernel-wise, and output channel-wise. Then, we progressively compose sub-items and propose a novel data-free optimization objective in the discrete domain, minimizing Constrained Absolute Sum of Error (or CASE in short), which surprisingly does not need any dataset and is even not aware of network architecture. We also design an efficient algorithm without back-propagation to further reduce the computation complexity of the objective solver. Finally, without fine-tuning and synthetic datasets, SQuant accelerates the data-free quantization process to a sub-second level with>30% accuracy improvement over the existing data-free post-training quantization works, with the evaluated models under 4-bit quantization. We have open-sourced the SQuant framework at https://github.com/clevercool/SQuant.
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.
19 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- ANT: Exploiting Adaptive Numerical Data Type for Low-bit Deep Neural Network Quantization cites Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
- ANT: Exploiting Adaptive Numerical Data Type for Low-bit Deep Neural Network Quantization cites Block-Skim: Efficient Question Answering for Transformer
- ANT: Exploiting Adaptive Numerical Data Type for Low-bit Deep Neural Network Quantization cites HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
- ANT: Exploiting Adaptive Numerical Data Type for Low-bit Deep Neural Network Quantization cites Up or Down? Adaptive Rounding for Post-Training Quantization
- BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstruction cites Data-Free Quantization Through Weight Equalization and Bias Correction
- BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstruction cites HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
- BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstruction cites Up or Down? Adaptive Rounding for Post-Training Quantization
- Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT cites HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
- Outlier Suppression+: Accurate quantization of large language models by equivalent and effective shifting and scaling cites BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstruction
- Outlier Suppression+: Accurate quantization of large language models by equivalent and effective shifting and scaling cites Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
- Outlier Suppression+: Accurate quantization of large language models by equivalent and effective shifting and scaling cites Data-Free Quantization Through Weight Equalization and Bias Correction
- Outlier Suppression+: Accurate quantization of large language models by equivalent and effective shifting and scaling cites OliVe: Accelerating Large Language Models via Hardware-friendly Outlier-Victim Pair Quantization
- Outlier Suppression+: Accurate quantization of large language models by equivalent and effective shifting and scaling cites HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
- Outlier Suppression+: Accurate quantization of large language models by equivalent and effective shifting and scaling cites Up or Down? Adaptive Rounding for Post-Training Quantization
- OliVe: Accelerating Large Language Models via Hardware-friendly Outlier-Victim Pair Quantization cites ANT: Exploiting Adaptive Numerical Data Type for Low-bit Deep Neural Network Quantization
- OliVe: Accelerating Large Language Models via Hardware-friendly Outlier-Victim Pair Quantization cites Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
- OliVe: Accelerating Large Language Models via Hardware-friendly Outlier-Victim Pair Quantization cites Block-Skim: Efficient Question Answering for Transformer
- OliVe: Accelerating Large Language Models via Hardware-friendly Outlier-Victim Pair Quantization cites HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
- Up or Down? Adaptive Rounding for Post-Training Quantization cites Data-Free Quantization Through Weight Equalization and Bias Correction
- Up or Down? Adaptive Rounding for Post-Training Quantization cites HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
- M-ANT: Efficient Low-bit Group Quantization for LLMs via Mathematically Adaptive Numerical Type cites ANT: Exploiting Adaptive Numerical Data Type for Low-bit Deep Neural Network Quantization
- M-ANT: Efficient Low-bit Group Quantization for LLMs via Mathematically Adaptive Numerical Type cites Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
- M-ANT: Efficient Low-bit Group Quantization for LLMs via Mathematically Adaptive Numerical Type cites OliVe: Accelerating Large Language Models via Hardware-friendly Outlier-Victim Pair Quantization
- M-ANT: Efficient Low-bit Group Quantization for LLMs via Mathematically Adaptive Numerical Type cites Block-Skim: Efficient Question Answering for Transformer
Cited by top-tier papers19
- OliVe: Accelerating Large Language Models via Hardware-friendly Outlier-Victim Pair QuantizationCong Guo, Jiaming Tang, Weiming Hu, Jingwen Leng et al.ISCA 2023 · 151 citations
- ANT: Exploiting Adaptive Numerical Data Type for Low-bit Deep Neural Network QuantizationCong Guo, Chen Zhang, Jingwen Leng, Zihan Liu et al.MICRO 2022 · 109 citations
- Outlier Suppression+: Accurate quantization of large language models by equivalent and effective shifting and scalingXiuying Wei, Yunchen Zhang, Yuhang Li, Xiangguo Zhang et al.EMNLP 2023 · 40 citations
- Block-Skim: Efficient Question Answering for TransformerYue Guan, Zhengyi Li, Zhouhan Lin, Yuhao Zhu et al.AAAI 2022 · 33 citations
- M-ANT: Efficient Low-bit Group Quantization for LLMs via Mathematically Adaptive Numerical TypeWeiming Hu, Haoyan Zhang, Cong Guo, Yu Feng et al.HPCA 2025 · 19 citations
Builds on16
- Up or Down? Adaptive Rounding for Post-Training QuantizationMarkus Nagel, Rana Ali Amjad, Mart van Baalen, Christos Louizos et al.ICML 2020 · 816 citations
- Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTSheng Shen, Zhen Dong, Jiayu Ye, Linjian Ma et al.AAAI 2020 · 656 citations
- HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-PrecisionZhen Dong, Zhewei Yao, Amir Gholami, Michael W. Mahoney et al.ICCV 2019 · 645 citations
- Data-Free Quantization Through Weight Equalization and Bias CorrectionMarkus Nagel, Mart van Baalen, Tijmen Blankevoort, Max WellingICCV 2019 · 622 citations
- BRECQ: Pushing the Limit of Post-Training Quantization by Block ReconstructionYuhang Li, Ruihao Gong, Xu Tan, Yang Yang et al.ICLR 2021 · 619 citations
Related papers
- PowerQuant: Automorphism Search for Non-Uniform QuantizationEdouard Yvinec, Arnaud Dapogny, Matthieu Cord, Kevin BaillyICLR 2023 · 1 citation
- Unified Data-Free Compression: Pruning and Quantization without Fine-TuningShipeng Bai, Jun Chen, Xintian Shen, Yixuan Qian et al.ICCV 2023 · 31 citations
- Causal-DFQ: Causality Guided Data-free Network QuantizationYuzhang Shang, Bingxin Xu, Gaowen Liu, Ramana Rao Kompella et al.ICCV 2023 · 8 citations
- Data-Free Network Compression via Parametric Non-uniform Mixed Precision QuantizationVladimir Chikin, Mikhail AntiukhCVPR 2022 · 17 citations
- The Knowledge Within: Methods for Data-Free Model CompressionMatan Haroush, Itay Hubara, Elad Hoffer, Daniel SoudryCVPR 2020
