Abstract
Deploying deep neural networks on resource-constrained devices often requires quantization, a process typically dependent on original training data for fine-tuning. This paper introduces a data-free approach using adversarial knowledge distillation. By employing a generator to synthesize samples that exploit the student model's weaknesses while adhering to the teacher's internal Batch Normalization statistics, the proposed method achieves state-of-the-art performance across various benchmarks without requiring any original data.
Introduction
The deployment of high-performance models on mobile or edge hardware necessitates techniques like quantization, which reduces weight precision (e.g., from 32-bit float to 8-bit integer). However, original training datasets are frequently unavailable due to privacy concerns (e.g., medical data), legal regulations like GDPR, or the sheer scale of modern datasets. This work addresses the challenge of compressing a model using only a pre-trained "Teacher" model and zero original training samples.
Methodology
The core of the proposed approach is a Data-Free Adversarial Knowledge Distillation framework, structured as a minimax game between a Generator and a Student model.
Adversarial Sample Generation
Unlike standard GANs that aim for visual realism, this generator focuses on "adversarial" utility. It searches for the Student's "weak spots" by creating synthetic samples that maximize the KL divergence between the Teacher’s and Student’s outputs.
Statistical and Entropy Constraints
To ensure synthetic data remains relevant to the original distribution, the authors utilize the mean and variance stored in the Teacher’s Batch Normalization (BN) layers. These layers act as statistical "fingerprints" of the training data. The framework matches these statistics using KL divergence of Gaussian distributions. Additionally, two entropy constraints are applied:
- Instance Entropy: Ensures the Teacher is confident about each synthetic image, forcing it to look like something the teacher recognizes.
- Batch Entropy: Promotes class diversity within a batch to prevent mode collapse, where the generator only produces one type of image.
Experimental Results
The method was evaluated on benchmarks including SVHN, CIFAR-10/100, and Tiny-ImageNet using architectures like ResNet and MobileNet.
Performance Highlights
- Knowledge Distillation: On CIFAR-10, distilling a WRN40-2 into a WRN16-1 reached 86.14% accuracy, outperforming previous data-free methods which hovered around 83%.
- Quantization: When reducing models to 8-bit or 4-bit precision, the accuracy drop was less than 2% compared to models fine-tuned with actual data.
- Data Proxy Efficiency: The results demonstrate that BN layers effectively store the "essence" of data. Synthetic samples, while abstract to human eyes, provide the necessary mathematical features for effective learning.
Conclusion
This adversarial approach proves that explicit data access is not a prerequisite for high-quality model compression. By treating BN layers as data proxies and using a minimax objective, the framework bridges the gap between data-driven and data-free quantization. Future work may address the computational overhead of training generators and extending these constraints to non-classification tasks.
Summary updated