Introduction
Knowledge Distillation (KD) is a widely used technique for model compression, where a compact "student" network is trained to replicate the behavior of a larger, pre-trained "teacher" network. Despite its empirical success, fundamental questions remain: Why do soft labels (probability distributions) often outperform hard labels (ground truth)? And why does the standard KD objective typically combine both? This paper investigates these questions through the lens of wide neural networks, utilizing the Neural Tangent Kernel (NTK) framework to provide a rigorous theoretical foundation for distillation dynamics.
Theoretical Framework: The NTK Regime
To analyze the complex training dynamics of deep networks, the authors employ the NTK framework, which linearizes the student network in the infinite-width limit. This simplification allows for the derivation of "effective student logits"—the target values toward which the student's outputs converge under specific distillation losses.
As shown in the figure above, the soft ratio $\rho$ and temperature $T$ significantly influence the student's target function. Higher soft ratios and temperatures result in smoother target functions, which are theoretically easier for the student to learn, especially when the teacher is "early-stopped."
Transfer Risk and Data Efficiency
The authors introduce two key metrics to quantify distillation performance:
- Transfer Risk Bound: A bound on the probability that a student's prediction deviates from the teacher's, determined by the distribution of angles in the network's feature space.
- Data Inefficiency Metric ($I(n)$): A measure of task difficulty based on how the norm of the network weights evolves with increasing sample size.
The analysis reveals that soft labels promote "smoothness," leading to a faster convergence rate of the transfer risk. However, this smoothness comes at a cost: if the teacher is imperfect, soft labels alone will propagate the teacher's errors.
The Corrective Role of Hard Labels
A central insight of this work is the "teacher correction" effect. While soft labels accelerate learning, hard labels act as a corrective force. By incorporating ground truth, the distillation process pointwisely pulls the student's predictions back toward the "oracle" (the true underlying function), reducing the alignment error between the student and the ground truth. This explains why the most effective KD setups utilize a mixture of both label types.
Key Results and Empirical Validation
The theoretical predictions are validated using synthetic Gaussian Mixture Models and CIFAR-10 experiments with ResNet architectures.
As illustrated in the composite figure above, the transfer risk follows a power-law relationship with the sample size $n$. Pure soft distillation shows a significantly faster decay rate than training with hard labels. Furthermore, the data inefficiency metric successfully captures the increased complexity introduced by hard labels or noisy data, supporting the theory that soft labels provide a more efficient learning signal.
Conclusion
This research provides a mathematical explanation for the "dark knowledge" transferred during distillation. It demonstrates that soft labels provide a smooth, efficient learning signal, while hard labels are essential for correcting teacher fallibility. These findings suggest that future distillation strategies could be optimized by balancing the efficiency of soft targets with the corrective precision of hard labels, potentially through adaptive loss functions that maintain smoothness without sacrificing accuracy.
Summary updated