Abstract
Knowledge Distillation (KD) is a powerful technique for training compact, efficient neural networks by leveraging a high-performing "teacher" model. However, the computational cost of training the teacher often outweighs the benefits. This paper introduces Self-Referenced Deep Learning (SRDL), a teacher-free distillation framework. SRDL enables a model to learn from its own discovered knowledge through a two-stage training process involving a random restart and imitation of its own class-probability predictions. Experimental results across various datasets, including CIFAR and ImageNet, demonstrate that SRDL significantly improves generalization with negligible computational overhead compared to traditional KD.
Introduction
Deep neural networks are notoriously power-hungry and memory-intensive, necessitating compact models for deployment on mobile and edge devices. While Knowledge Distillation effectively guides small "student" models using the "soft targets" (probability distributions) of a larger "teacher," the process is computationally expensive. Training a teacher can be 10x to 100x more costly than training the student itself.
SRDL addresses this efficiency gap by asking: Can we get the benefits of distillation without the burden of a teacher? By allowing a model to distill knowledge back into itself, SRDL provides the benefits of dark knowledge—such as inter-class correlations—without requiring an external high-capacity model.
Methodology
The SRDL framework restructures the standard training process into two distinct stages within a single training budget:
- Stage 1: Knowledge Discovery. The target model is trained using standard cross-entropy loss for half of the total training budget. To ensure the model learns high-quality features quickly, a Stage-Complete Learning Rate Decay is employed, forcing the model to converge to a stable state within this first half-budget. At the end of this stage, the model’s "soft" predictions (class probabilities) for the training set are saved as Self-Discovered Knowledge (SK).
- Stage 2: Self-Distillation. The model undergoes a Random Model Restart, where its weights are reset. It is then retrained for the remaining budget using a joint loss function that combines standard ground-truth labels with an imitation loss (KL divergence) that forces the new model to match the SK saved from Stage 1.
The random restart is critical; it prevents the model from getting stuck in the same local minimum found in Stage 1, allowing it to use the previously discovered "map" to find a more generalizable solution.
Key Insights and Results
A central finding of this work is that models discover meaningful class relationships quite early in the training process. SRDL leverages this "aha" moment to guide the second stage of training. Analysis of the loss surface revealed that SRDL leads models to "wider" local minima, which are strongly associated with better generalization on unseen data.
Performance Gains
SRDL consistently outperformed vanilla training across multiple benchmarks:
- CIFAR-100: A ResNet-32 trained with SRDL saw a 2.61% accuracy boost over vanilla training.
- Efficiency: Compared to traditional KD using a Wide ResNet teacher, SRDL achieved similar performance while being 157x cheaper in terms of training FLOPs.
- Person Re-ID: On the Market-1501 dataset, SRDL-trained DenseNet-121 models achieved state-of-the-art results (91.7% Rank-1 accuracy), outperforming specialized architectures.
- Scalability: The method scaled effectively to the full ImageNet dataset, providing a performance boost to DenseNet-201 without any additional teacher models.
Conclusion and Future Work
Self-Referenced Deep Learning offers a highly efficient alternative to traditional Knowledge Distillation by eliminating the need for a teacher model. While it introduces a minor storage overhead for saving soft predictions between stages, the computational savings and accuracy gains make it a compelling strategy for training compact models. Future research may explore extending this self-referencing concept to more than two stages or applying it to domains beyond computer vision, such as natural language processing.
Summary updated