Introduction
Deep neural networks have revolutionized computer vision, yet their massive computational requirements often preclude deployment on edge devices like smartphones. Knowledge Distillation (KD) has emerged as a primary technique to address this, where a compact "student" model is trained to mimic a larger, pre-trained "expert teacher." However, traditional KD methods often focus solely on the teacher's final outputs (logits), neglecting the complex optimization process.
The authors of "Highlight Every Step" argue that a student trying to jump directly to an expert's final conclusion often becomes "lost" in the high-dimensional optimization landscape. To bridge this gap, they propose Collaborative Teaching Knowledge Distillation (CTKD), a framework that guides the student through both the training process and the identification of critical features.
The Collaborative Teaching Framework
CTKD utilizes a two-teacher system to provide comprehensive guidance to the student network throughout the training lifecycle.
1. The Scratch Teacher ($T_2$)
Unlike a static pre-trained model, the Scratch Teacher is initialized randomly and trained concurrently with the student. At each iteration, it provides "temporary logits" that represent its current state of learning. This acts as a peer tutor, providing a realistic and reachable optimization path for the student to follow.
2. The Expert Teacher ($T_1$)
The Expert Teacher is a high-performance, pre-trained model. Rather than just providing final answers, it contributes intermediate-level attention maps. These maps serve as spatial "hints," highlighting which regions of an image (e.g., the specific features of an object versus the background) are most relevant for classification.
Multi-Part Loss Function
The training objective combines three distinct signals to optimize the student:
- Cross-Entropy Loss: Standard supervision using ground-truth labels.
- Logit Mimicry (L2 Loss): Aligns the student's evolving outputs with those of the Scratch Teacher.
- Attention Loss: Ensures the student's internal feature activations match the Expert Teacher's attention maps.
Optimization and Pathfinding
A key insight of CTKD is that the "path" to convergence is as vital as the "destination." By mimicking a teacher that is also navigating the optimization landscape, the student experiences a smoother gradient and avoids the pitfalls of trying to replicate a highly complex, static expert state immediately.
This collaborative approach prevents the student from taking inefficient "detours" in weight space. Furthermore, using attention maps as a soft constraint is more effective than direct weight copying, especially when the student and teacher architectures differ significantly.
Experimental Results
The researchers evaluated CTKD across several standard benchmarks, including CIFAR-10/100, SVHN, and Tiny ImageNet. The method consistently outperformed both independent training and established distillation techniques like Attention Transfer (ATKD) and Rocket Launching (RLKD).
- CIFAR-100: A student model achieved 74.70% accuracy, a 2.43% improvement over the baseline.
- Tiny ImageNet: CTKD reached 53.59% accuracy, nearly 3% higher than the baseline.
- Convergence: Beyond final accuracy, CTKD demonstrated faster convergence, allowing students to reach peak performance in fewer training epochs.
Conclusion and Future Directions
CTKD demonstrates that collaborative teaching—combining process-oriented guidance with feature-level hints—significantly enhances knowledge transfer. While the training phase requires more resources due to the simultaneous operation of three networks, the resulting student models are highly efficient and ready for deployment. Future research may extend this strategy to more complex tasks such as object detection and semantic segmentation, or combine it with network quantization for even greater compression on edge hardware.
Summary updated