Skip to main content
QUICK REVIEW

[Paper Review] Generative Zero-shot Network Quantization

Xiangyu He, Qinghao Hu|arXiv (Cornell University)|Jan 21, 2021
Generative Adversarial Networks and Image SynthesisComputer Science65 references5 citations
TL;DR

This paper proposes Generative Zero-shot Network Quantization (GZNQ), a method that generates high-fidelity synthetic images using Batch Normalization statistics to calibrate quantized neural networks without real training data. By framing image synthesis as generative modeling to match BN statistics, GZNQ achieves state-of-the-art performance in data-free 4-bit quantization on CIFAR-10/100 and ImageNet.

ABSTRACT

Convolutional neural networks are able to learn realistic image priors from numerous training samples in low-level image generation and restoration. We show that, for high-level image recognition tasks, we can further reconstruct "realistic" images of each category by leveraging intrinsic Batch Normalization (BN) statistics without any training data. Inspired by the popular VAE/GAN methods, we regard the zero-shot optimization process of synthetic images as generative modeling to match the distribution of BN statistics. The generated images serve as a calibration set for the following zero-shot network quantizations. Our method meets the needs for quantizing models based on sensitive information, extit{e.g.,} due to privacy concerns, no data is available. Extensive experiments on benchmark datasets show that, with the help of generated data, our approach consistently outperforms existing data-free quantization methods.

Motivation & Objective

  • Address the challenge of model quantization when original training data is unavailable due to privacy or security constraints.
  • Improve zero-shot quantization performance by generating realistic calibration data without access to real images.
  • Provide a generative modeling interpretation for existing Batch Normalization matching losses used in data-free quantization.
  • Enable high-quality activation calibration for low-bit quantization using synthetic images that match real data distributions.

Proposed method

  • Leverage pre-trained network's Batch Normalization (BN) statistics (mean μ and variance σ²) as target distributions for image generation.
  • Formulate the image synthesis process as a generative modeling task to match the distribution of BN statistics across layers.
  • Use a noise-based optimization process with data augmentations to sample from μ and σ² distributions, treating synthesized images as model parameters.
  • Introduce a prior regularization term to constrain the parameter space and improve sampling stability during optimization.
  • Generate a synthetic calibration set from the optimized images to calibrate quantized network activations.
  • Apply standard quantization schemes (e.g., MSE quantizer) with full-precision batch normalization and bias terms preserved.

Experimental results

Research questions

  • RQ1Can we generate high-fidelity synthetic images that effectively calibrate quantized networks in the absence of real data?
  • RQ2How does generative modeling of BN statistics improve zero-shot quantization performance compared to heuristic optimization methods?
  • RQ3Why do BN statistics serve as effective priors for data-free image generation and calibration?
  • RQ4To what extent does the quality of generated images correlate with quantization accuracy in low-bit settings?
  • RQ5Can the proposed method provide a more interpretable and principled alternative to existing data-free quantization losses?

Key findings

  • GZNQ consistently outperforms existing data-free quantization methods on 4-bit CIFAR-10/100 and ImageNet benchmarks.
  • The method achieves state-of-the-art accuracy on 4-bit quantized ResNet-34 and ResNet-50 models, with notable improvements over ZeroQ, Knowledge Within, and Deep Inversion.
  • Generated images from GZNQ exhibit higher visual fidelity and realism compared to baselines, as confirmed by qualitative comparisons and Inception Score (IS) metrics.
  • The Inception Score of GZNQ-generated images exceeds that of prior methods, indicating better image quality and diversity.
  • The approach demonstrates robustness on large-scale ImageNet with only 100 synthetic images per class, maintaining high performance.
  • The use of BN statistics as generative targets provides a principled interpretation of existing optimization losses in zero-shot quantization.

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.