Abstract
Recent advancements in knowledge distillation (KD) have enabled the creation of compact student models that retain much of the effectiveness of their larger teacher counterparts. However, a persistent paradox in the field is that more accurate or larger teachers do not necessarily produce better students, a phenomenon often attributed to "capacity mismatch." This paper re-evaluates this issue through the lens of model calibration. We demonstrate that larger teacher models are frequently over-confident, providing poor teaching signals. By applying simple model calibration (temperature scaling) to the teacher, we restore the positive correlation between teacher model size and student performance.
The Paradox of Knowledge Distillation
Knowledge Distillation is a standard technique for model compression where a small "student" network learns to mimic the output probability distributions of a large "teacher" network. Theoretically, a better teacher should provide a richer signal, leading to a better student.
In practice, researchers have observed that when the gap between teacher and student becomes too large, student performance often degrades. While the community has historically blamed the student's lack of architectural capacity to handle complex features, this paper hypothesizes that the issue lies in the teacher's communication. Modern deep networks are notoriously poorly calibrated—they tend to be over-confident, producing "spiky" probability distributions that hide the nuanced "dark knowledge" (secondary class probabilities) essential for effective distillation.
Proposed Method: Calibrated Distillation
The authors propose a simple yet effective modification to the standard KD pipeline: integrating a calibration step before distillation begins.
Instead of using an arbitrary temperature parameter to soften probabilities, the method employs temperature scaling. The optimal temperature ($T$) is found by minimizing the Negative Log-Likelihood (NLL) on a validation set. This ensures the teacher's output probabilities accurately reflect its true predictive confidence. The student is then trained to mimic these calibrated probabilities, receiving a more reliable and informative signal.
Experimental Results
Experiments were conducted primarily on the CIFAR-10 dataset using the ResNet family of models. The results confirm that calibration significantly improves the teacher's reliability; for a ResNet-50, the Expected Calibration Error (ECE) dropped from 0.031 to 0.014 after temperature scaling.
More importantly, calibration directly addresses the distillation paradox. As shown in the results table below, uncalibrated large teachers often underperform compared to smaller ones. For instance, a ResNet-50 teacher produced a ResNet-18 student with 95.61% accuracy, while a massive ResNet-152 teacher only achieved 95.41%.
Once calibrated, the ResNet-152 teacher's student improved to 95.51%. Across various configurations, the calibrated versions of larger models consistently outperformed their uncalibrated counterparts, effectively bridging the gap and allowing larger teachers to be more useful.
Conclusion
This study reveals that the "capacity mismatch" in knowledge distillation is partly a symptom of poor teacher calibration. By ensuring that teacher models are well-calibrated through simple temperature scaling, we can mitigate the performance drop seen with large teachers. This suggests that the quality of the teaching signal is just as important as the raw accuracy of the teacher model. Future work remains to validate these findings on larger datasets like ImageNet and across diverse architectures like Vision Transformers.
Summary updated