[Paper Review] Generative Low-bitwidth Data Free Quantization
This paper proposes Generative Low-bitwidth Data Free Quantization (GDFQ), a novel method for 4-bit neural network quantization without requiring real training data. By leveraging classification boundary and activation distribution knowledge from batch normalization statistics in a pre-trained model, GDFQ trains a knowledge-matching generator to synthesize high-quality fake data, enabling effective quantization and fine-tuning. The method achieves state-of-the-art accuracy on 4-bit quantization, significantly outperforming existing data-free approaches like ZeroQ and DFQ.
Neural network quantization is an effective way to compress deep models and improve their execution latency and energy efficiency, so that they can be deployed on mobile or embedded devices. Existing quantization methods require original data for calibration or fine-tuning to get better performance. However, in many real-world scenarios, the data may not be available due to confidential or private issues, thereby making existing quantization methods not applicable. Moreover, due to the absence of original data, the recently developed generative adversarial networks (GANs) cannot be applied to generate data. Although the full-precision model may contain rich data information, such information alone is hard to exploit for recovering the original data or generating new meaningful data. In this paper, we investigate a simple-yet-effective method called Generative Low-bitwidth Data Free Quantization (GDFQ) to remove the data dependence burden. Specifically, we propose a knowledge matching generator to produce meaningful fake data by exploiting classification boundary knowledge and distribution information in the pre-trained model. With the help of generated data, we can quantize a model by learning knowledge from the pre-trained model. Extensive experiments on three data sets demonstrate the effectiveness of our method. More critically, our method achieves much higher accuracy on 4-bit quantization than the existing data free quantization method. Code is available at https://github.com/xushoukai/GDFQ.
Motivation & Objective
- To address the challenge of low-bitwidth model quantization in data-scarce or privacy-constrained environments where real training data is unavailable.
- To develop a method that eliminates dependency on real data for calibration or fine-tuning in post-training quantization.
- To exploit hidden knowledge in pre-trained models—specifically classification boundaries and activation distributions—for generating meaningful synthetic data.
- To achieve superior quantization accuracy at 4-bit precision compared to existing data-free quantization methods.
Proposed method
- A knowledge matching generator is trained to produce fake data by aligning with the classification boundary and activation distribution information extracted from batch normalization statistics (BNS) of the full-precision model.
- The generator is optimized to maximize the classification accuracy of the full-precision model on generated samples, ensuring semantic relevance and distributional fidelity.
- The quantized model is fine-tuned using the generated fake data, with alternating training of generator and quantized model to improve data diversity and model performance.
- A stopping condition based on classification accuracy threshold is used to control generator training duration, with ablation showing that longer training improves results.
- The method uses a two-stage loss: one for knowledge matching (aligning fake data with BNS), and another for model fine-tuning via cross-entropy loss on generated data.
- The approach is applied end-to-end: generate fake data → quantize model → fine-tune using fake data, all without accessing real data.
Experimental results
Research questions
- RQ1Can a generator be trained to produce high-quality, semantically meaningful data for model quantization without access to real training data?
- RQ2Can classification boundary and activation distribution knowledge from batch normalization statistics be effectively leveraged to guide data generation in data-free quantization?
- RQ3Does alternating training of the generator and quantized model improve quantization accuracy compared to separate training?
- RQ4How does the performance of data-free quantization scale with decreasing bit-width, especially at 4-bit?
- RQ5Can the proposed method outperform existing data-free quantization baselines like ZeroQ and DFQ in low-bitwidth settings?
Key findings
- On ImageNet, GDFQ achieves 55.65% top-1 accuracy for W4A4 quantization of ResNet-50, significantly outperforming ZeroQ’s 0.12% and DFQ’s 0.11%.
- For MobileNetV2, GDFQ achieves 51.30% top-1 accuracy at 4-bit, compared to ZeroQ’s 3.31% and DFQ’s 0.11%, demonstrating a substantial performance gain.
- Alternating training of generator and quantized model yields 63.91% accuracy, outperforming separate training (61.81%), indicating the benefit of joint optimization.
- Stopping the generator training early (e.g., at 99% threshold) leads to suboptimal results; the best performance is achieved when training continues until convergence.
- The method achieves state-of-the-art performance in 4-bit quantization, establishing a new SOTA for data-free low-bitwidth quantization.
- The performance gain is most pronounced at lower bit-widths, with GDFQ showing larger improvements over baselines at 4-bit than at 6-bit or 8-bit.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.