[Paper Review] Revisiting Self-Distillation
This paper investigates self-distillation in deep learning, demonstrating that even with a highly accurate teacher model, self-distillation enables the student to surpass the teacher in test accuracy. The authors show that self-distillation leads to flatter minima in the loss landscape, providing a geometric explanation for improved generalization, and challenge existing theoretical explanations by identifying contradictions in the multi-view hypothesis.
Knowledge distillation is the procedure of transferring "knowledge" from a large model (the teacher) to a more compact one (the student), often being used in the context of model compression. When both models have the same architecture, this procedure is called self-distillation. Several works have anecdotally shown that a self-distilled student can outperform the teacher on held-out data. In this work, we systematically study self-distillation in a number of settings. We first show that even with a highly accurate teacher, self-distillation allows a student to surpass the teacher in all cases. Secondly, we revisit existing theoretical explanations of (self) distillation and identify contradicting examples, revealing possible drawbacks of these explanations. Finally, we provide an alternative explanation for the dynamics of self-distillation through the lens of loss landscape geometry. We conduct extensive experiments to show that self-distillation leads to flatter minima, thereby resulting in better generalization.
Motivation & Objective
- To systematically study self-distillation across multiple benchmarks and settings to understand its consistent performance gains.
- To evaluate and challenge existing theoretical explanations of knowledge distillation, particularly the multi-view hypothesis, by identifying contradictory empirical evidence.
- To propose and validate an alternative explanation for self-distillation's success based on loss landscape geometry, focusing on the flatness of minima.
- To investigate whether self-distillation leads to improved generalization through regularization effects linked to flatter minima.
Proposed method
- Conducting extensive experiments on standard image classification benchmarks (e.g., CIFAR-10, CIFAR-100, SVHN) using ResNet and VGG architectures to compare teacher and self-distilled student performance.
- Measuring the trace and top eigenvalue of the Hessian matrix to quantify the flatness of minima in the loss landscape for both teacher and student models.
- Using contour visualization of the loss surface to qualitatively compare the geometry of minima between teacher and self-distilled student models.
- Applying knowledge distillation with a temperature-scaled cross-entropy loss, where the student is trained to match the soft labels of the teacher model in each distillation round.
- Performing ablation studies to analyze the impact of distillation rounds and hyperparameters (e.g., temperature τ and distillation weight α) on model performance and loss landscape properties.
- Comparing self-distilled models with baseline ensembling and BAN (Bag of distilled models) to assess the role of diversity and model similarity in performance gains.
Experimental results
Research questions
- RQ1Can self-distillation consistently improve test accuracy even when the teacher model is highly accurate?
- RQ2Do existing theoretical explanations such as the multi-view hypothesis fully account for the success of self-distillation?
- RQ3Is there a geometric property of the loss landscape—specifically, flatness of minima—that explains why self-distilled models generalize better?
- RQ4How does the loss landscape change across distillation rounds, and does it become flatter compared to the teacher?
- RQ5What is the relationship between model similarity (logit discrepancy) and performance gains in self-distillation?
Key findings
- Even with a highly accurate teacher model (e.g., 95.23% accuracy on SVHN), self-distillation enables the student to achieve 95.94% test accuracy, surpassing the teacher.
- The self-distilled student model exhibits flatter minima in the loss landscape, as evidenced by lower trace and top eigenvalue of the Hessian matrix compared to the teacher.
- Contour visualization of the loss surface confirms that the student’s minima are flatter and more generalized than the teacher’s, especially after multiple distillation rounds.
- The multi-view hypothesis is contradicted by empirical results: self-distillation does not consistently lead to learning new views or facets of the data, challenging its validity as a primary explanation.
- The discrepancy between student and teacher logits decreases over distillation rounds, indicating increasing model similarity, yet performance still improves, suggesting that similarity is not the driver of success.
- The results support the hypothesis that distillation acts as a regularizer by flattening the loss landscape, which aligns with theoretical findings in shallow models and explains improved generalization.
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.