Abstract
Knowledge Distillation (KD) is frequently characterized as a sophisticated variant of Label Smoothing (LS) regularization. This paper investigates this claim by examining predictive uncertainty across various NLP tasks. We demonstrate that KD and LS exhibit fundamentally different behaviors: while LS consistently increases model entropy, KD enables students to inherit specific confidence levels from their teachers—often resulting in higher certainty than standard Empirical Risk Minimization (ERM). These findings suggest that KD facilitates genuine knowledge transfer rather than simple regularization.
Introduction
Knowledge Distillation (KD) involves training a compact "student" model to replicate the output distribution of a larger "teacher" model. Conversely, Label Smoothing (LS) is a regularization technique that prevents overconfidence by softening hard targets with a uniform distribution. Recent literature has suggested that KD is essentially a "learned" version of LS, implying that the specific "dark knowledge" of the teacher is secondary to the act of softening labels. This study re-evaluates this hypothesis to determine if KD and LS are functionally equivalent.
Methodology
The study utilizes predictive uncertainty, measured via entropy, to compare three training regimes:
- Empirical Risk Minimization (ERM): Standard training with one-hot labels.
- Label Smoothing (LS): Training with labels mixed with a uniform distribution.
- Knowledge Distillation (KD): Mimicking a teacher's distribution.
Experiments cover four GLUE benchmark tasks: MRPC, QNLI, SST-2, and MNLI. Three KD scenarios are explored: Standard KD (large teacher to small student), Self-KD (same-sized models), and Reverse KD (small, uncertain teacher to large student).
Divergent Confidence Trends
A critical finding is that KD and LS drive model confidence in opposite directions. LS, by design, increases entropy to prevent overconfidence. In contrast, standard KD typically decreases entropy compared to the ERM baseline.
As shown in the figure above, KD variants consistently maintain lower entropy levels throughout training compared to LS. On the SST-2 task, for instance, LS increased entropy by approximately 4x, while standard KD reduced it by nearly half.
The Reverse KD Proof
The "Reverse KD" experiments provide the most compelling evidence against the KD ≈ LS hypothesis. When a smaller, less certain teacher (DistilBERT) distills into a larger student (BERT-base), the student’s entropy increases to match the teacher’s higher uncertainty.
This behavior confirms that the student is actively mimicking the teacher’s specific distribution—including its uncertainty—rather than being blindly regularized. If KD were merely LS, the student would not specifically track the teacher's fluctuating confidence levels.
Conclusion
The results reinforce the classical view of KD as true knowledge transfer. Unlike LS, which uses a fixed uniform prior, KD utilizes a teacher's distribution containing task-specific structural information. While the study is limited to NLP text classification and single-seed experiments, it provides a robust counter-argument to the regularization-only view of distillation. Future work should extend this entropy-based analysis to computer vision and speech recognition to confirm these findings across domains.
Reference: Sultan, M. A. (2023). Knowledge Distillation ≈ Label Smoothing: Fact or Fallacy? Proceedings of EMNLP 2023.
Summary updated