[Paper Review] Knowledge Distillation with the Reused Teacher Classifier
This paper proposes SimKD, a simple knowledge distillation method that reuses the pre-trained teacher's classifier for student inference while aligning student features to the teacher's via a single ℓ₂ loss. By adding a lightweight projector to handle dimension mismatch, SimKD achieves state-of-the-art performance with minimal compression cost, outperforming prior methods across diverse architectures and settings.
Knowledge distillation aims to compress a powerful yet cumbersome teacher model into a lightweight student model without much sacrifice of performance. For this purpose, various approaches have been proposed over the past few years, generally with elaborately designed knowledge representations, which in turn increase the difficulty of model development and interpretation. In contrast, we empirically show that a simple knowledge distillation technique is enough to significantly narrow down the teacher-student performance gap. We directly reuse the discriminative classifier from the pre-trained teacher model for student inference and train a student encoder through feature alignment with a single $\ell_2$ loss. In this way, the student model is able to achieve exactly the same performance as the teacher model provided that their extracted features are perfectly aligned. An additional projector is developed to help the student encoder match with the teacher classifier, which renders our technique applicable to various teacher and student architectures. Extensive experiments demonstrate that our technique achieves state-of-the-art results at the modest cost of compression ratio due to the added projector.
Motivation & Objective
- To close the performance gap between teacher and student models in knowledge distillation without relying on complex knowledge representations.
- To simplify knowledge distillation by eliminating the need for multi-loss optimization and elaborate knowledge transfer mechanisms.
- To enable universal applicability across diverse student-teacher architectures through a lightweight projector.
- To demonstrate that feature alignment with a single ℓ₂ loss and classifier reuse can achieve near-teacher performance.
- To evaluate the method in challenging scenarios such as multi-teacher and data-free distillation.
Proposed method
- Reuses the pre-trained teacher's classifier directly for student inference, avoiding retraining the student classifier.
- Aligns student features with teacher features in the preceding layer of the classifier using a single ℓ₂ loss.
- Introduces a lightweight projector after the student encoder to resolve dimension mismatches between student and teacher features.
- Trains only the student encoder and projector during knowledge distillation, keeping the teacher classifier frozen.
- Employs feature alignment at the final hidden layer before classification to maximize performance similarity.
- Applies the method to various student-teacher architecture combinations, including MobileNet, ShuffleNet, and ResNet variants.
Experimental results
Research questions
- RQ1Can a simple ℓ₂ loss for feature alignment, combined with classifier reuse, close the performance gap between teacher and student models?
- RQ2Does eliminating complex knowledge representations and multi-loss optimization improve training stability and interpretability in knowledge distillation?
- RQ3How does the addition of a lightweight projector affect compression efficiency and model performance across diverse architectures?
- RQ4Can the proposed method generalize to multi-teacher and data-free knowledge distillation settings?
- RQ5What is the trade-off between performance gain and parameter cost when reusing deeper teacher layers?
Key findings
- SimKD achieves 78.08% ± 0.15 test accuracy on CIFAR-100 using MobileNetV2x2 and ResNet-32x4, outperforming all compared state-of-the-art methods.
- The method achieves state-of-the-art performance with less than 3% additional parameter cost from the projector, and in some cases even improves pruning ratio compared to vanilla KD.
- On the 'ShuffleNetV2 & ResNet-32x4' setting with dimension reduction factor r=8, SimKD achieves 77.49% accuracy, second only to SemCKD (77.62%).
- Visualizations using t-SNE show that student and teacher features become nearly indistinguishable after training, confirming effective alignment.
- Extending to SimKD+ and SimKD++ by reusing deeper teacher layers improves accuracy further but reduces pruning ratio significantly, indicating a trade-off between performance and complexity.
- In data-free and multi-teacher settings, SimKD generalizes well, maintaining strong performance without requiring additional training data or complex modifications.
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.