[Paper Review] Solvable Model for Inheriting the Regularization through Knowledge Distillation
This paper introduces a solvable statistical physics model to analytically study knowledge distillation (KD) in shallow neural networks, showing that the student model inherits the regularization properties of a well-regularized teacher, leading to improved generalization performance. The key result is that KD's effectiveness is fundamentally limited by the teacher's optimality, and the model reveals a double descent behavior in generalization error linked to interpolation thresholds.
In recent years the empirical success of transfer learning with neural networks has stimulated an increasing interest in obtaining a theoretical understanding of its core properties. Knowledge distillation where a smaller neural network is trained using the outputs of a larger neural network is a particularly interesting case of transfer learning. In the present work, we introduce a statistical physics framework that allows an analytic characterization of the properties of knowledge distillation (KD) in shallow neural networks. Focusing the analysis on a solvable model that exhibits a non-trivial generalization gap, we investigate the effectiveness of KD. We are able to show that, through KD, the regularization properties of the larger teacher model can be inherited by the smaller student and that the yielded generalization performance is closely linked to and limited by the optimality of the teacher. Finally, we analyze the double descent phenomenology that can arise in the considered KD setting.
Motivation & Objective
- To theoretically understand how knowledge distillation transfers regularization from a large teacher network to a smaller student network.
- To investigate whether KD can outperform standard training in generalization, especially in overparameterized regimes.
- To characterize the role of the teacher's regularization and optimality in determining student performance.
- To analyze the emergence of double descent in generalization error within the KD framework.
Proposed method
- The authors develop a solvable statistical physics framework for shallow neural networks with binary classification.
- They model the student and teacher as linear classifiers trained with ridge regularization, using a high-dimensional asymptotic limit.
- The student loss combines cross-entropy with knowledge distillation, balancing ground-truth labels and soft teacher outputs via a hyperparameter χ.
- Theoretical predictions are derived using replica method techniques to compute average generalization error and norm behavior.
- Numerical experiments with Adam optimizer validate theoretical results, though convergence issues arise near interpolation thresholds.
- The analysis distinguishes between interpolation thresholds (α_I), student separability (α_S), and teacher separability (α̃_S), linking them to error peaks.
Experimental results
Research questions
- RQ1Can knowledge distillation effectively transfer the regularization properties of a teacher network to a student network?
- RQ2How does the generalization performance of the student depend on the teacher's regularization and optimality?
- RQ3What causes the observed double descent in generalization error in the KD setting?
- RQ4Why does the generalization error peak at the student's interpolation threshold, and how does teacher regularization affect this?
- RQ5To what extent can the student generalize better than standard training, given the teacher's performance?
Key findings
- The student inherits the regularization properties of the teacher, and its generalization performance is fundamentally limited by the teacher's optimality.
- When the teacher is weakly regularized (λ̃ → 0), the student exhibits a sharp generalization error peak at the student's interpolation threshold α_S ≈ 1.75, caused by norm explosion.
- At finite teacher regularization (e.g., λ̃ = 1), the generalization error peak is suppressed due to reduced student norm growth and smoother teacher outputs.
- The double descent behavior emerges due to the interplay between the student's interpolation threshold α_S and the teacher's separability threshold α̃_S, with error peaks at both points.
- In the balanced cluster case (ρ = 0.5), higher teacher regularization improves generalization, and this improvement is directly inherited by the student, approaching Bayes-optimal performance in the limit of infinite regularization.
- Numerical results show good agreement with theory, though convergence issues arise near critical thresholds due to norm explosion, especially in unregularized settings.
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.