Abstract
Deep Neural Networks (DNNs) often require significant computational resources, necessitating compression techniques like quantization and pruning. However, these methods typically rely on access to the original training data, which may be restricted due to privacy or proprietary concerns. This paper introduces an Adversarial Knowledge Transfer framework that enables high-accuracy model compression without requiring training data. By utilizing an auxiliary generator to synthesize "worst-case" inputs that highlight discrepancies between a teacher and student model, the proposed method achieves state-of-the-art results in data-free quantization and pruning, including the successful training of 1-bit binary networks.
Introduction
The deployment of Deep Neural Networks (DNNs) on edge devices is often hindered by their high memory and computational demands. While quantization and pruning are effective solutions, their reliance on original training data for fine-tuning creates a significant barrier in data-sensitive domains. This research addresses the "data-free" challenge: how to derive a compact, high-performing student model from a pre-trained teacher model when the original dataset is unavailable.
Methodology
Adversarial Knowledge Transfer
The core of the proposed approach is a minimax optimization framework involving three components: a pre-trained Teacher model, a compact Student model, and an auxiliary Generator. The Generator is trained to synthesize inputs that maximize the divergence between the Teacher's and Student's outputs, effectively identifying the Student's "blind spots." Simultaneously, the Student is trained to minimize this divergence, learning to mimic the Teacher's behavior even on these challenging synthetic inputs.
Quantization and Pruning
The framework is versatile, supporting both weight quantization and filter pruning:
- Quantization: The authors adapt the BinaryConnect method, allowing the student to utilize binary weights ($\{- \delta, \delta \}$) while maintaining full-precision buffers for gradient updates. This facilitates the creation of extremely efficient 1-bit networks.
- Pruning: Rather than pruning individual weights, the method targets entire convolutional filters. Trainable scaling factors are introduced for each filter, with $\ell_1$ regularization applied to encourage sparsity.
To maintain architectural consistency in modern networks like ResNets, a "scaling factor sharing" mechanism is implemented. This ensures that feature maps remain aligned across residual connections, preventing misalignment during the pruning process.
Experimental Results
The method was evaluated on the CIFAR-10 benchmark using Wide ResNet (WRN) architectures.
Performance Benchmarks
The proposed data-free approach achieves performance remarkably close to supervised counterparts:
- Binary Quantization: A 1-bit WRN-16-2 student reached 88.14% accuracy, representing only a marginal drop from a full-precision student (89.71%) in the same data-free setting.
- Structured Pruning: The method successfully pruned a WRN-16-2 model from 570K parameters to approximately 254K parameters while maintaining a high accuracy of 89.19%.
Key Insights
- Synthetic Data Quality: The generator does not need to produce visually realistic images; its effectiveness lies in its ability to differentiate the teacher and student.
- Divergence Metrics: For pruning, the symmetric Jensen-Shannon (JS) divergence was found to offer superior stability and compression ratios compared to standard KL divergence.
- Lottery Ticket Transferability: A significant finding is that "winning tickets"—specific subnetwork architectures and initializations identified in supervised settings—also exhibit superior performance in data-free environments. This suggests that these tickets are intrinsic to the network's optimization landscape.
Conclusion
This work demonstrates that accurate model compression is achievable without access to original training data through adversarial knowledge transfer. By providing both empirical success and theoretical convergence proofs, the authors offer a robust path for deploying efficient DNNs in privacy-sensitive or data-restricted scenarios. Future research will explore scaling these methods to larger, more complex datasets like ImageNet.
Summary updated