Lune

CVPR2021Top-tier venue

Diversifying Sample Generation for Accurate Data-Free Quantization

Xiangguo Zhang, Haotong Qin, Yifu Ding, Ruihao Gong, Qinghua Yan, Renshuai Tao, Yuhang Li, Fengwei Yu, Xianglong Liu

Abstract

Quantization has emerged as one of the most prevalent approaches to compress and accelerate neural networks. Recently, data-free quantization has been widely studied as a practical and promising solution. It synthesizes data for calibrating the quantized model according to the batch normalization (BN) statistics of FP32 ones and significantly relieves the heavy dependency on real training data in traditional quantization methods. Unfortunately, we find that in practice, the synthetic data identically constrained by BN statistics suffers serious homogenization at both distribution level and sample level and further causes a significant performance drop of the quantized model. We propose Diverse Sample Generation (DSG) scheme to mitigate the adverse effects caused by homogenization. Specifically, we slack the alignment of feature statistics in the BN layer to relax the constraint at the distribution level and design a layerwise enhancement to reinforce specific layers for different data samples. Our DSG scheme is versatile and even able to be applied to the state-of-the-art post-training quantization method like AdaRound. We evaluate the DSG scheme on the large-scale image classification task and consistently obtain significant improvements over various network architectures and quantization methods, especially when quantized to lower bits (e.g., up to 22% improvement on W4A4). Moreover, benefiting from the enhanced diversity, models calibrated with synthetic data perform close to those calibrated with real data and even outperform them on W4A4.

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.

31 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

  • SQuant: On-the-Fly Data-Free Quantization via Diagonal Hessian Approximation cites BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstruction
  • SQuant: On-the-Fly Data-Free Quantization via Diagonal Hessian Approximation cites Data-Free Quantization Through Weight Equalization and Bias Correction
  • SQuant: On-the-Fly Data-Free Quantization via Diagonal Hessian Approximation cites Up or Down? Adaptive Rounding for Post-Training Quantization
  • 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
  • QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training 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 Up or Down? Adaptive Rounding for Post-Training Quantization
  • Qimera: Data-free Quantization with Synthetic Boundary Supporting Samples cites Data-Free Quantization Through Weight Equalization and Bias Correction
  • Outlier Suppression: Pushing the Limit of Low-bit Transformer Language Models cites QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantization
  • Outlier Suppression: Pushing the Limit of Low-bit Transformer Language Models cites BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstruction
  • Outlier Suppression: Pushing the Limit of Low-bit Transformer Language Models 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
  • IntraQ: Learning Synthetic Images with Intra-Class Heterogeneity for Zero-Shot Network Quantization cites BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstruction
  • IntraQ: Learning Synthetic Images with Intra-Class Heterogeneity for Zero-Shot Network Quantization cites Qimera: Data-free Quantization with Synthetic Boundary Supporting Samples
  • IntraQ: Learning Synthetic Images with Intra-Class Heterogeneity for Zero-Shot Network Quantization cites Data-Free Quantization Through Weight Equalization and Bias Correction
  • IntraQ: Learning Synthetic Images with Intra-Class Heterogeneity for Zero-Shot Network Quantization 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 papers31

  1. QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training QuantizationXiuying Wei, Ruihao Gong, Yuhang Li, Xianglong Liu et al.ICLR 2022 · 248 citations
  2. Outlier Suppression: Pushing the Limit of Low-bit Transformer Language ModelsXiuying Wei, Yunchen Zhang, Xiangguo Zhang, Ruihao Gong et al.NeurIPS 2022 · 238 citations
  3. SQuant: On-the-Fly Data-Free Quantization via Diagonal Hessian ApproximationCong Guo, Yuxian Qiu, Jingwen Leng, Xiaotian Gao et al.ICLR 2022 · 92 citations
  4. Qimera: Data-free Quantization with Synthetic Boundary Supporting SamplesKanghyun Choi, Deokki Hong, Noseong Park, Youngsok Kim et al.NeurIPS 2021 · 87 citations
  5. IntraQ: Learning Synthetic Images with Intra-Class Heterogeneity for Zero-Shot Network QuantizationYunshan Zhong, Mingbao Lin, Gongrui Nan, Jianzhuang Liu et al.CVPR 2022 · 79 citations

Builds on14

  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. BRECQ: Pushing the Limit of Post-Training Quantization by Block ReconstructionYuhang Li, Ruihao Gong, Xu Tan, Yang Yang et al.ICLR 2021 · 619 citations
  4. Occluded Prohibited Items Detection: An X-ray Security Inspection Benchmark and De-occlusion Attention ModuleYanlu Wei, Renshuai Tao, Zhangjie Wu, Yuqing Ma et al.ACM MM 2020 · 264 citations
  5. Dynamic Curriculum Learning for Imbalanced Data ClassificationYiru Wang, Weihao Gan, Jie Yang, Wei Wu et al.ICCV 2019 · 263 citations

Related papers

  1. The Knowledge Within: Methods for Data-Free Model CompressionMatan Haroush, Itay Hubara, Elad Hoffer, Daniel SoudryCVPR 2020
  2. Robustness-Guided Image Synthesis for Data-Free QuantizationJianhong Bai, Yuchen Yang, Huanpeng Chu, Hualiang Wang et al.AAAI 2024 · 7 citations
  3. Hard Sample Matters a Lot in Zero-Shot QuantizationHuantong Li, Xiangmiao Wu, Fanbing Lv, Daihai Liao et al.CVPR 2023
  4. Adaptive Data-Free QuantizationBiao Qian, Yang Wang, Richang Hong, Meng WangCVPR 2023
  5. Zero-Shot Adversarial QuantizationYuang Liu, Wei Zhang, Jun WangCVPR 2021
Dusk over the sea between two cliffs drawn in fine vertical lines