Revisiting Knowledge Distillation via Label Smoothing Regularization

Li Yuan, Francis E. H. Tay, Guilin Li, Tao Wang, Jiashi Feng
9/25/2019
101 citations
cs.CVcs.LG
distillation

Official code: yuanli2333/Teacher-free-Knowledge-Distillation (582 stars, Python, MIT, PyTorch, last commit 2023-02-15).

Abstract

Knowledge Distillation (KD) aims to distill the knowledge of a cumbersome teacher model into a lightweight student model. Its success is generally attributed to the privileged information on similarities among categories provided by the teacher model, and in this sense, only strong teacher models are deployed to teach weaker students in practice.

Show full abstract

In this work, we challenge this common belief by following experimental observations: 1) beyond the acknowledgment that the teacher can improve the student, the student can also enhance the teacher significantly by reversing the KD procedure; 2) a poorly-trained teacher with much lower accuracy than the student can still improve the latter significantly. To explain these observations, we provide a theoretical analysis of the relationships between KD and label smoothing regularization. We prove that 1) KD is a type of learned label smoothing regularization and 2) label smoothing regularization provides a virtual teacher model for KD. From these results, we argue that the success of KD is not fully due to the similarity information between categories from teachers, but also to the regularization of soft targets, which is equally or even more important. Based on these analyses, we further propose a novel Teacher-free Knowledge Distillation (Tf-KD) framework, where a student model learns from itself or manuallydesigned regularization distribution. The Tf-KD achieves comparable performance with normal KD from a superior teacher, which is well applied when a stronger teacher model is unavailable. Meanwhile, Tf-KD is generic and can be directly deployed for training deep neural networks. Without any extra computation cost, Tf-KD achieves up to 0.65\% improvement on ImageNet over well-established baseline models, which is superior to label smoothing regularization.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Knowledge Distillation: CVPR2020 Oral, Revisiting Knowledge Distillation via Label Smoothing Regularization

58266PythonSep 25, 20193 years agoMIT
knowledge-distillationlabel-smoothingpaper-implementationspytorchteacher-free

Similar Papers

Cite this paper

@article{yuan2019revisiting,
  title  = {Revisiting Knowledge Distillation via Label Smoothing Regularization},
  author = {Li Yuan and Francis E. H. Tay and Guilin Li and Tao Wang and Jiashi Feng},
  year   = {2019},
  eprint = {1909.11723},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.11723}
}

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/1909.11723.svg)](https://codeofpaper.com/paper/1909.11723)

Discussion