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
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 19 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- ANT: Exploiting Adaptive Numerical Data Type for Low-bit Deep Neural Network Quantization 引用了 Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
- ANT: Exploiting Adaptive Numerical Data Type for Low-bit Deep Neural Network Quantization 引用了 Block-Skim: Efficient Question Answering for Transformer
- ANT: Exploiting Adaptive Numerical Data Type for Low-bit Deep Neural Network Quantization 引用了 HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
- ANT: Exploiting Adaptive Numerical Data Type for Low-bit Deep Neural Network Quantization 引用了 Up or Down? Adaptive Rounding for Post-Training Quantization
- BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstruction 引用了 Data-Free Quantization Through Weight Equalization and Bias Correction
- BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstruction 引用了 HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
- BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstruction 引用了 Up or Down? Adaptive Rounding for Post-Training Quantization
- Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT 引用了 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 引用了 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 引用了 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 引用了 Data-Free Quantization Through Weight Equalization and Bias Correction
- Outlier Suppression+: Accurate quantization of large language models by equivalent and effective shifting and scaling 引用了 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 引用了 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 引用了 Up or Down? Adaptive Rounding for Post-Training Quantization
- OliVe: Accelerating Large Language Models via Hardware-friendly Outlier-Victim Pair Quantization 引用了 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 引用了 Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
- OliVe: Accelerating Large Language Models via Hardware-friendly Outlier-Victim Pair Quantization 引用了 Block-Skim: Efficient Question Answering for Transformer
- OliVe: Accelerating Large Language Models via Hardware-friendly Outlier-Victim Pair Quantization 引用了 HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
- Up or Down? Adaptive Rounding for Post-Training Quantization 引用了 Data-Free Quantization Through Weight Equalization and Bias Correction
- Up or Down? Adaptive Rounding for Post-Training Quantization 引用了 HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
- M-ANT: Efficient Low-bit Group Quantization for LLMs via Mathematically Adaptive Numerical Type 引用了 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 引用了 Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
- M-ANT: Efficient Low-bit Group Quantization for LLMs via Mathematically Adaptive Numerical Type 引用了 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 引用了 Block-Skim: Efficient Question Answering for Transformer
引用它的顶会 Paper19
- OliVe: Accelerating Large Language Models via Hardware-friendly Outlier-Victim Pair QuantizationCong Guo, Jiaming Tang, Weiming Hu, Jingwen Leng 等ISCA 2023 · 151 次引用
- ANT: Exploiting Adaptive Numerical Data Type for Low-bit Deep Neural Network QuantizationCong Guo, Chen Zhang, Jingwen Leng, Zihan Liu 等MICRO 2022 · 109 次引用
- Outlier Suppression+: Accurate quantization of large language models by equivalent and effective shifting and scalingXiuying Wei, Yunchen Zhang, Yuhang Li, Xiangguo Zhang 等EMNLP 2023 · 40 次引用
- Block-Skim: Efficient Question Answering for TransformerYue Guan, Zhengyi Li, Zhouhan Lin, Yuhao Zhu 等AAAI 2022 · 33 次引用
- M-ANT: Efficient Low-bit Group Quantization for LLMs via Mathematically Adaptive Numerical TypeWeiming Hu, Haoyan Zhang, Cong Guo, Yu Feng 等HPCA 2025 · 19 次引用
它引用的 Paper16
- Up or Down? Adaptive Rounding for Post-Training QuantizationMarkus Nagel, Rana Ali Amjad, Mart van Baalen, Christos Louizos 等ICML 2020 · 816 次引用
- Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTSheng Shen, Zhen Dong, Jiayu Ye, Linjian Ma 等AAAI 2020 · 656 次引用
- HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-PrecisionZhen Dong, Zhewei Yao, Amir Gholami, Michael W. Mahoney 等ICCV 2019 · 645 次引用
- Data-Free Quantization Through Weight Equalization and Bias CorrectionMarkus Nagel, Mart van Baalen, Tijmen Blankevoort, Max WellingICCV 2019 · 622 次引用
- BRECQ: Pushing the Limit of Post-Training Quantization by Block ReconstructionYuhang Li, Ruihao Gong, Xu Tan, Yang Yang 等ICLR 2021 · 619 次引用
相关 Paper
- PowerQuant: Automorphism Search for Non-Uniform QuantizationEdouard Yvinec, Arnaud Dapogny, Matthieu Cord, Kevin BaillyICLR 2023 · 1 次引用
- Unified Data-Free Compression: Pruning and Quantization without Fine-TuningShipeng Bai, Jun Chen, Xintian Shen, Yixuan Qian 等ICCV 2023 · 31 次引用
- Causal-DFQ: Causality Guided Data-free Network QuantizationYuzhang Shang, Bingxin Xu, Gaowen Liu, Ramana Rao Kompella 等ICCV 2023 · 8 次引用
- Data-Free Network Compression via Parametric Non-uniform Mixed Precision QuantizationVladimir Chikin, Mikhail AntiukhCVPR 2022 · 17 次引用
- The Knowledge Within: Methods for Data-Free Model CompressionMatan Haroush, Itay Hubara, Elad Hoffer, Daniel SoudryCVPR 2020
