NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Generative Low-Bitwidth Data Free Quantization

Shoukai Xu, Haokun Li, Bohan Zhuang, Jing Liu, Jiezhang Cao, Chuangrun Liang, Mingkui Tan

Abstract

Network quantization is a critical technique for deploying deep neural networks (DNNs) on resource-constrained edge devices. However, most high-performance quantization methods require access to the original training data, which is often restricted due to privacy or security concerns. This paper introduces Generative Low-Bitwidth Data Free Quantization (GDFQ), a novel framework designed to compress models to 4-bit precision without any original data. By utilizing a knowledge matching generator to synthesize data from the internal statistics of a pre-trained model, GDFQ achieves state-of-the-art accuracy in data-restricted scenarios.

Introduction

Deep Neural Networks (DNNs) are computationally expensive, necessitating compression techniques like quantization—converting 32-bit floating-point weights and activations into low-precision integers (e.g., 4-bit). While effective, standard quantization relies on fine-tuning with original training data to recover accuracy lost during the rounding process. In fields such as healthcare or defense, this data is often unavailable. Existing "data-free" methods typically struggle at bitwidths below 8-bit because they fail to capture the complex underlying distribution of the original dataset, leading to significant performance drops.

Methodology

GDFQ addresses the data-free challenge through a two-pronged strategy involving synthetic data generation and alternating optimization.

Overview of the GDFQ framework, showing the interaction between the generator, the full-precision teacher model, and the quantized student model.

1. Knowledge Matching Generator

The framework employs a generator to synthesize "fake" data samples. Rather than generating random noise, the generator is guided by two signals extracted from the pre-trained "teacher" model:

  • Classification Boundary Matching: The generator is optimized to produce samples that the teacher model classifies with high confidence, ensuring the data aligns with the model's learned decision boundaries.
  • Distribution Information Matching: The synthetic data is forced to match the mean and variance stored in the teacher model’s Batch Normalization Statistics (BNS). This effectively "mines" the distributional memory of the original training data embedded within the model layers.

2. Fake-data Driven Quantization

The synthetic samples are used to fine-tune the quantized "student" model via Knowledge Distillation (KD). The student model is trained to mimic the output probability distributions of the full-precision teacher. To maintain stability, the authors fix the Batch Normalization statistics in the quantized model during this phase, preventing the synthetic data from drifting the model's internal state away from the real distribution.

3. Alternating Training

The generator and the quantized model are updated alternately. This adversarial-like setup ensures the generator continuously produces diverse and challenging samples, which prevents the quantized model from over-fitting to a static set of synthetic images.

Experimental Results

The researchers evaluated GDFQ on CIFAR-10/100 and the large-scale ImageNet dataset. A toy 2D binary classification task was also used to visualize the quality of the generated data.

Comparison of synthetic data distributions on a toy 2D classification task. GDFQ (d) more accurately reconstructs the decision boundaries of the real data (a) compared to prior methods like ZeroQ (c).

As shown in the visualization above, GDFQ (Ours) captures the four-quadrant decision boundary much more effectively than previous methods like ZeroQ, which tends to collapse toward the center. This superior data synthesis translates to significant gains in 4-bit quantization accuracy:

  • ImageNet (ResNet-18): GDFQ achieved 60.60% top-1 accuracy, a massive improvement over the previous state-of-the-art (ZeroQ) at 26.04%.
  • ImageNet (Inception v3): GDFQ reached 70.39% accuracy, compared to ZeroQ's 26.84%.
  • CIFAR-10: GDFQ reached 90.25%, nearing the performance of models fine-tuned on actual real data (93.11%).

Conclusion and Future Work

GDFQ demonstrates that pre-trained models act as rich data repositories, where Batch Normalization layers serve as a compressed memory of the training distribution. By exploiting this, GDFQ makes 4-bit data-free quantization practically viable for the first time.

While highly effective, the method currently depends on the presence of Batch Normalization layers, which may require adaptation for architectures like Transformers that use Layer Normalization. Additionally, while 4-bit performance is strong, extending this data-free approach to extreme 2-bit or 1-bit quantization remains an open challenge for future research.

Summary updated

BibTeX
@inproceedings{xu2020generative,
  author = {Shoukai Xu and Haokun Li and Bohan Zhuang and Jing Liu and Jiezhang Cao and Chuangrun Liang and Mingkui Tan},
  title = {{Generative Low-Bitwidth Data Free Quantization}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58610-2\_1},
}
Figure