Skip to main content
QUICK REVIEW

[Paper Review] Diverse Sample Generation: Pushing the Limit of Generative Data-free Quantization

Haotong Qin, Yifu Ding|arXiv (Cornell University)|Sep 1, 2021
Advanced Neural Network ApplicationsComputer Science56 references6 citations
TL;DR

This paper proposes Diverse Sample Generation (DSG), a novel scheme to improve generative data-free quantization by enhancing synthetic data diversity, mitigating homogenization caused by strict batch normalization (BN) statistics alignment. DSG improves performance across various networks and bit-widths—especially in ultra-low-bit settings—achieving state-of-the-art results, including a 34.33% accuracy gain over ZeroQ on MobileNetV2 at W3A3.

ABSTRACT

Generative data-free quantization emerges as a practical compression approach that quantizes deep neural networks to low bit-width without accessing the real data. This approach generates data utilizing batch normalization (BN) statistics of the full-precision networks to quantize the networks. However, it always faces the serious challenges of accuracy degradation in practice. We first give a theoretical analysis that the diversity of synthetic samples is crucial for the data-free quantization, while in existing approaches, the synthetic data completely constrained by BN statistics experimentally exhibit severe homogenization at distribution and sample levels. This paper presents a generic Diverse Sample Generation (DSG) scheme for the generative data-free quantization, to mitigate detrimental homogenization. We first slack the statistics alignment for features in the BN layer to relax the distribution constraint. Then, we strengthen the loss impact of the specific BN layers for different samples and inhibit the correlation among samples in the generation process, to diversify samples from the statistical and spatial perspectives, respectively. Comprehensive experiments show that for large-scale image classification tasks, our DSG can consistently quantization performance on different neural architectures, especially under ultra-low bit-width. And data diversification caused by our DSG brings a general gain to various quantization-aware training and post-training quantization approaches, demonstrating its generality and effectiveness.

Motivation & Objective

  • Address the critical issue of synthetic data homogenization in generative data-free quantization, which degrades model accuracy.
  • Theoretically and empirically demonstrate that sample diversity is essential for effective quantization without real data.
  • Propose a generic DSG framework to improve diversity in synthetic data generation while preserving BN statistics alignment.
  • Achieve consistent performance gains across diverse architectures and bit-widths, especially in ultra-low bit-width regimes.
  • Ensure compatibility and synergy with existing data-free quantization methods, including both post-training and quantization-aware training approaches.

Proposed method

  • Relax the strict alignment of BN statistics in feature maps to reduce distributional overfitting and improve input space diversity.
  • Introduce sample-specific loss weighting to amplify the impact of individual samples during generation, enhancing spatial diversity.
  • Apply a correlation-reduction mechanism to minimize inter-sample similarity, further promoting diversity in the generated data distribution.
  • Maintain compatibility with existing data-free quantization pipelines by integrating DSG as a plug-in module.
  • Leverage the framework with additional data generation techniques such as label priors and image priors to further boost performance.
  • Optimize synthetic data generation through iterative refinement, guided by BN statistics and diversity-promoting objectives.

Experimental results

Research questions

  • RQ1Why do existing generative data-free quantization methods suffer from performance degradation due to synthetic data homogenization?
  • RQ2How can synthetic data diversity be theoretically and practically enhanced in data-free quantization without accessing real data?
  • RQ3To what extent does improved data diversity improve quantization accuracy across different network architectures and bit-widths?
  • RQ4Can the proposed DSG scheme be universally applied to both post-training and quantization-aware training settings?
  • RQ5How does DSG compare to state-of-the-art data-free quantization methods under ultra-low bit-width constraints?

Key findings

  • DSG significantly reduces synthetic data homogenization at both distributional and sample levels, as confirmed by activation distribution and PCA visualization.
  • On ImageNet with ResNet18, DSG improves top-1 accuracy by 6.46% over ZeroQ in the W4A4 setting, demonstrating strong gains in ultra-low bit-width regimes.
  • For MobileNetV2 at W3A3, DSG achieves a 34.33% accuracy gain over ZeroQ, highlighting its effectiveness in extreme low-bit scenarios.
  • When combined with label priors and image priors, DSG achieves 69.16% top-1 accuracy on ResNet18 with W5A32, approaching real-data performance (69.21%).
  • DSG consistently improves performance across multiple quantization methods, including AdaRound, proving its generalization and compatibility.
  • The method maintains strong performance even when quantizing both weights and activations to 8-bit, outperforming ZeroQ by 6.06% on ResNet18.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.