ZeroQ: A Novel Zero Shot Quantization Framework
Yaohui Cai, Zhewei Yao, Zhen Dong, Amir Gholami, Michael W. Mahoney, Kurt Keutzer
Abstract
Quantization is a promising approach for reducing the inference time and memory footprint of neural networks. However, most existing quantization methods require access to the original training dataset for retraining during quantization. This is often not possible for applications with sensitive or proprietary data, e.g., due to privacy and security concerns. Existing zero-shot quantization methods use different heuristics to address this, but they result in poor performance, especially when quantizing to ultralow precision. Here, we propose ZEROQ, a novel zeroshot quantization framework to address this. ZEROQ enables mixed-precision quantization without any access to the training or validation data. This is achieved by optimizing for a Distilled Dataset, which is engineered to match the statistics of batch normalization across different layers of the network. ZEROQ supports both uniform and mixedprecision quantization. For the latter, we introduce a novel Pareto frontier based method to automatically determine the mixed-precision bit setting for all layers, with no manual search involved. We extensively test our proposed method on a diverse set of models, including ResNet18/50/152, Mo-bileNetV2, ShuffleNet, SqueezeNext, and InceptionV3 on ImageNet, as well as RetinaNet-ResNet50 on the Microsoft COCO dataset. In particular, we show that ZEROQ can achieve 1.71% higher accuracy on MobileNetV2, as compared to the recently proposed DFQ [32] method. Importantly, ZEROQ has a very low computational overhead, and it can finish the entire quantization process in less than 30s (0. 5% of one epoch training time of ResNet50 on ImageNet). We have open-sourced the ZEROQ framework 1 .
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.
99 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
- Q-Diffusion: Quantizing Diffusion Models cites BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstruction
- HAWQ-V2: Hessian Aware trace-Weighted Quantization of Neural Networks cites Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
- HAWQ-V2: Hessian Aware trace-Weighted Quantization of Neural Networks cites HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
- ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformers cites Post-Training Quantization for Vision Transformer
- ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformers cites Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
- ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformers cites Data-Free Quantization Through Weight Equalization and Bias Correction
- ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformers cites HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
- Post-Training Quantization for Vision Transformer cites HAWQ-V2: Hessian Aware trace-Weighted Quantization of Neural Networks
- Post-Training Quantization for Vision Transformer cites Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
- Post-Training Quantization for Vision Transformer cites Data-Free Quantization Through Weight Equalization and Bias Correction
- QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantization cites HAWQ-V2: Hessian Aware trace-Weighted Quantization of Neural Networks
- QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantization cites BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstruction
- QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantization cites Data-Free Quantization Through Weight Equalization and Bias Correction
- 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
- Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT cites HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
Cited by top-tier papers99
- ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale TransformersZhewei Yao, Reza Yazdani Aminabadi, Minjia Zhang, Xiaoxia Wu et al.NeurIPS 2022 · 816 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
- Post-Training Quantization for Vision TransformerZhenhua Liu, Yunhe Wang, Kai Han, Wei Zhang et al.NeurIPS 2021 · 528 citations
- Q-Diffusion: Quantizing Diffusion ModelsXiuyu Li, Yijiang Liu, Long Lian, Huanrui Yang et al.ICCV 2023 · 279 citations
- 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 on5
- 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
- HAWQ-V2: Hessian Aware trace-Weighted Quantization of Neural NetworksZhen Dong, Zhewei Yao, Daiyaan Arfeen, Amir Gholami et al.NeurIPS 2020 · 434 citations
- The Knowledge Within: Methods for Data-Free Model CompressionMatan Haroush, Itay Hubara, Elad Hoffer, Daniel SoudryCVPR 2020
Related papers
- Zero-Shot Adversarial QuantizationYuang Liu, Wei Zhang, Jun WangCVPR 2021
- Genie: Show Me the Data for QuantizationYongkweon Jeon, Chungman Lee, Ho-Young KimCVPR 2023
- Task-Specific Zero-Shot Quantization-Aware Training for Object DetectionChanghao Li, Xinrui Chen, Ji Wang, Kang Zhao et al.ICCV 2025 · 2 citations
- Sharpness-Aware Data Generation for Zero-shot QuantizationHoang Anh Dung, Cuong Pham, Trung Le, Jianfei Cai et al.ICML 2024 · 8 citations
- SynQ: Accurate Zero-shot Quantization by Synthesis-aware Fine-tuningMinjun Kim, Jongjin Kim, U KangICLR 2025
