[Paper Review] Why distillation helps: a statistical perspective
This paper provides a statistical perspective on knowledge distillation, showing that distilling Bayes class-probabilities from a teacher model reduces bias and variance in student generalization. It introduces double-distillation for multiclass retrieval, which improves ranking performance by weighting negative labels via softened teacher logits, outperforming standard distillation and one-hot training.
Knowledge distillation is a technique for improving the performance of a simple "student" model by replacing its one-hot training labels with a distribution over labels obtained from a complex "teacher" model. While this simple approach has proven widely effective, a basic question remains unresolved: why does distillation help? In this paper, we present a statistical perspective on distillation which addresses this question, and provides a novel connection to extreme multiclass retrieval techniques. Our core observation is that the teacher seeks to estimate the underlying (Bayes) class-probability function. Building on this, we establish a fundamental bias-variance tradeoff in the student's objective: this quantifies how approximate knowledge of these class-probabilities can significantly aid learning. Finally, we show how distillation complements existing negative mining techniques for extreme multiclass retrieval, and propose a unified objective which combines these ideas.
Motivation & Objective
- To understand why knowledge distillation improves model generalization beyond empirical accuracy.
- To formalize the role of teacher-estimated Bayes class-probabilities in reducing student prediction error.
- To extend distillation to multiclass retrieval by introducing a double-distillation objective that improves label ranking.
- To validate the statistical theory through empirical evaluation on image classification and multilabel retrieval benchmarks.
Proposed method
- The authors model the teacher as an estimator of the true Bayes class-probability function, quantifying its approximation error in terms of bias and variance.
- They derive a bias-variance tradeoff that links the quality of teacher probability estimates to student generalization error.
- For multiclass retrieval, they propose double-distillation: using teacher logits to smooth negative logits in the student's softmax loss, enabling better ranking.
- The double-distillation objective modifies the standard distillation loss by applying temperature scaling and softening negative logits, improving ranking metrics.
- Empirical validation uses ResNets on CIFAR-100 and feedforward networks on AmazonCat-13K and Amazon-670K, comparing one-hot, standard distillation, and double-distillation.
- The method evaluates performance using precision@k, log-loss, and calibration error to assess generalization and probability estimation quality.
Experimental results
Research questions
- RQ1How does distillation improve generalization beyond accuracy, and what statistical mechanism underlies this improvement?
- RQ2What is the relationship between the quality of teacher-estimated class-probabilities and student generalization error?
- RQ3Can distillation be effectively extended to multiclass retrieval, where ranking over labels is the goal?
- RQ4Does double-distillation, which weights negative labels via softened logits, lead to better retrieval performance than standard distillation?
Key findings
- On CIFAR-100, student accuracy degrades when teacher depth exceeds 14, despite increasing teacher accuracy, due to worsening probability calibration and higher log-loss.
- The optimal teacher model achieves the best approximation of the Bayes class-probability distribution at depth 14, where MSE of probability estimates is minimized and student generalization is maximized.
- On the synthetic dataset, the teacher with depth 8 achieves the lowest MSE in estimating $p^*$, and this corresponds to the student with the highest AUC, validating the bias-variance tradeoff.
- On AmazonCat-13K, double-distillation improves P@1 to 0.8560, surpassing the teacher’s P@1 of 0.8495, demonstrating that distilled students can outperform teachers.
- On Amazon-670K, double-distillation achieves P@1 of 0.3480, a 0.0173 improvement over the student baseline (0.3307), showing consistent gains in large-scale retrieval.
- The double-distillation objective significantly improves P@1 and P@3 over standard distillation, confirming that softening negative logits enhances ranking quality.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.