Abstract
Knowledge Distillation (KD) typically relies on the availability of the original training dataset to transfer knowledge from a complex teacher model to a compact student model. However, in many real-world applications, the original data is inaccessible due to privacy concerns or storage limitations. This paper introduces EEIKD (Efficient Explicit and Implicit Knowledge Distillation), a framework designed for Data-Free Knowledge Distillation (DFKD) using unlabeled "wild" data. By implementing an adaptive threshold selection mechanism and a novel class-dropping noise suppression technique, EEIKD achieves state-of-the-art accuracy and superior convergence speeds without the computational burden of generative models.
Introduction
Knowledge Distillation has become a cornerstone of model compression, enabling the deployment of high-performance neural networks on edge devices. The standard paradigm assumes the student model can access the same data used to train the teacher. When this data is missing, researchers turn to Data-Free Knowledge Distillation (DFKD).
Existing DFKD methods generally follow two paths: generative methods that use Generative Adversarial Networks (GANs) to synthesize data, and substitute data methods that utilize unrelated, unlabeled datasets. While generative methods are effective, they are computationally expensive and difficult to stabilize. Conversely, substitute data methods are faster but struggle with domain shift—where the wild data differs significantly from the original distribution—and label noise, where the teacher provides unreliable pseudo-labels for irrelevant images. EEIKD addresses these challenges by filtering substitute data more effectively and refining the distillation objective.
The EEIKD Framework
The authors propose a three-component pipeline to optimize the use of substitute data for distillation:
1. Adaptive Threshold Selection
A common pitfall in substitute-data distillation is selecting samples based solely on high teacher confidence. The authors argue that "Confidence ≠ Utility." Samples where the teacher is extremely confident often have very low entropy, providing minimal new information for the student. EEIKD employs an adaptive threshold ($\delta$) that balances teacher confidence with the information content of the sample, ensuring the student learns from data that is both relevant and informative.
2. Class-Dropping Noise Suppression
When a teacher model trained on a specific domain (e.g., CIFAR-10) is presented with an image from a different domain (e.g., ImageNet), it may produce high-probability predictions for classes that are not actually present. To prevent the student from learning these "noisy" relationships, the authors introduce class-dropping. This mechanism masks out low-confidence class predictions in the teacher's output, setting them to zero. This forces the student to focus only on the most prominent features and reduces the impact of the domain gap.
3. Explicit and Implicit Distillation
EEIKD utilizes two distinct loss functions to maximize knowledge transfer:
- Explicit Distillation: The student is trained to mimic the teacher's internal feature representations at specific layers, specifically after the first Batch Normalization and before the final linear layer.
- Implicit Distillation: Rather than treating images in isolation, the student learns the structured relations between different images within a mini-batch. If the teacher perceives a specific similarity between Image A and Image B, the student is incentivized to replicate that relational structure, leading to faster convergence.
Experimental Results
The framework was evaluated using a ResNet-34 teacher and a ResNet-18 student. The target datasets were CIFAR-10 and CIFAR-100, while a downsampled version of ImageNet (32x32) served as the unlabeled substitute data.
Performance and Efficiency
EEIKD demonstrated significant improvements over existing benchmarks:
- Accuracy: EEIKD-Large achieved 94.94% on CIFAR-10 and 77.67% on CIFAR-100, outperforming previous state-of-the-art data-free methods, including both GAN-based and non-generative approaches.
- Computational Overhead: By avoiding the use of a generator, EEIKD maintains zero extra parameter costs and avoids the iterative overhead associated with GAN training.
- Convergence Speed: Ablation studies indicated that the combination of explicit and implicit losses allows the model to reach higher accuracy in 20 epochs than baseline methods (such as DFND) achieve in 50 epochs.
Conclusion and Future Work
EEIKD provides a robust and efficient alternative to generative DFKD methods. By intelligently selecting and filtering unlabeled substitute data, the framework mitigates the issues of domain shift and label noise. While the method currently depends on the availability of a diverse substitute dataset like ImageNet, it sets a new standard for efficiency in data-free environments. Future research may explore refining the selection mechanisms for more extreme domain shifts or integrating lightweight generators to create a hybrid distillation approach.
Summary updated