Knowledge Distillation with the Reused Teacher Classifier

Defang Chen, Jian-Ping Mei, Hailin Zhang, Can Wang, Yan Feng +1 more
3/26/2022
cs.CV
distillation

Official code: DefangChen/SimKD (102 stars, Python, last commit 2022-06-16).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

DefangChen/SimKDOfficial100%

[CVPR-2022] Official implementation for "Knowledge Distillation with the Reused Teacher Classifier".

10219Python, ShellMar 29, 20224 years ago
deep-learningknowledge-distillation

Similar Papers

Cite this paper

@article{chen2022knowledge,
  title  = {Knowledge Distillation with the Reused Teacher Classifier},
  author = {Defang Chen and Jian-Ping Mei and Hailin Zhang and Can Wang and Yan Feng and Chun Chen},
  year   = {2022},
  eprint = {2203.14001},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.14001}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.14001.svg)](https://codeofpaper.com/paper/2203.14001)

Discussion