[Paper Review] Reducing the Teacher-Student Gap via Spherical Knowledge Disitllation
This paper proposes Spherical Knowledge Distillation (SKD), which normalizes logits of both teacher and student models to lie on a unit sphere, eliminating the confidence gap caused by overconfident predictions in large teachers. By focusing solely on directional knowledge rather than magnitude, SKD significantly reduces underfitting, achieves 73.0% top-1 accuracy on ImageNet with ResNet18 distilled from ResNet50—on par with a larger ResNet34—and shows robustness to temperature hyperparameters.
Knowledge distillation aims at obtaining a compact and effective model by learning the mapping function from a much larger one. Due to the limited capacity of the student, the student would underfit the teacher. Therefore, student performance would unexpectedly drop when distilling from an oversized teacher, termed the capacity gap problem. We investigate this problem by study the gap of confidence between teacher and student. We find that the magnitude of confidence is not necessary for knowledge distillation and could harm the student performance if the student are forced to learn confidence. We propose Spherical Knowledge Distillation to eliminate this gap explicitly, which eases the underfitting problem. We find this novel knowledge representation can improve compact models with much larger teachers and is robust to temperature. We conducted experiments on both CIFAR100 and ImageNet, and achieve significant improvement. Specifically, we train ResNet18 to 73.0 accuracy, which is a substantial improvement over previous SOTA and is on par with resnet34 almost twice the student size. The implementation has been shared at https://github.com/forjiuzhou/Spherical-Knowledge-Distillation.
Motivation & Objective
- To address the capacity gap problem in knowledge distillation, where student models underfit oversized teachers due to overconfident predictions.
- To investigate whether the magnitude of confidence (logits norm) in large teachers harms student performance during distillation.
- To propose a method that decouples knowledge distillation from confidence magnitude, focusing only on directional similarity of logits.
- To improve generalization and training stability of compact student models when distilling from very large teachers.
- To reduce dependency on temperature hyperparameter tuning in knowledge distillation.
Proposed method
- Spherical Knowledge Distillation (SKD) normalizes the logits of both teacher and student models to unit length, projecting them onto a common sphere.
- The method removes the need for the student to learn the magnitude of the teacher's confidence, focusing only on the direction of the logits.
- SKD uses cross-entropy loss between the normalized logits (unit vectors), which represent class probability directions.
- The approach is compatible with standard knowledge distillation frameworks and can be applied with minimal architectural changes.
- By eliminating norm learning, SKD frees model capacity to better fit the directional knowledge, improving generalization.
- The method is robust to temperature scaling, as normalization inherently controls softness without relying on temperature.
Experimental results
Research questions
- RQ1Does the magnitude of confidence in large teachers negatively impact student performance during knowledge distillation?
- RQ2Can removing the need to learn confidence magnitude reduce the capacity gap between teacher and student?
- RQ3Is knowledge distillation more effective when focusing on the direction of logits rather than their magnitude?
- RQ4How does SKD perform compared to standard KD when distilling from very large teachers like ResNet152?
- RQ5Is SKD robust to temperature hyperparameter tuning, unlike standard KD?
Key findings
- SKD achieves 73.0% top-1 accuracy on ImageNet using ResNet18 distilled from ResNet50, matching the performance of a larger ResNet34.
- With ResNet152 as teacher, SKD achieves 72.70% top-1 accuracy, significantly outperforming baseline methods.
- SKD reduces training and test loss more effectively than KD when using oversized teachers, indicating better optimization and generalization.
- The normalized logits difference (MSE loss) between teacher and student is substantially lower under SKD than under KD, especially with large teachers.
- SKD is robust across a wide range of temperature values, while standard KD performance degrades sharply outside a narrow optimal range.
- SKD eliminates norm fitting error, allowing the student to focus exclusively on learning the directional structure of knowledge, which improves performance.
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.