Rethinking Soft Labels for Knowledge Distillation: A Bias-Variance Tradeoff Perspective

Helong Zhou, Liangchen Song, Jiajie Chen, Ye Zhou, Guoli Wang +2 more
2/1/2021
235 citations
cs.LGcs.CV
distillation

Official code: bellymonster/Weighted-Soft-Label-Distillation (59 stars, Python, last commit 2021-06-18).

Abstract

Knowledge distillation is an effective approach to leverage a well-trained network or an ensemble of them, named as the teacher, to guide the training of a student network. The outputs from the teacher network are used as soft labels for supervising the training of a new network.

Show full abstract

Recent studies \citep{muller2019does,yuan2020revisiting} revealed an intriguing property of the soft labels that making labels soft serves as a good regularization to the student network. From the perspective of statistical learning, regularization aims to reduce the variance, however how bias and variance change is not clear for training with soft labels. In this paper, we investigate the bias-variance tradeoff brought by distillation with soft labels. Specifically, we observe that during training the bias-variance tradeoff varies sample-wisely. Further, under the same distillation temperature setting, we observe that the distillation performance is negatively associated with the number of some specific samples, which are named as regularization samples since these samples lead to bias increasing and variance decreasing. Nevertheless, we empirically find that completely filtering out regularization samples also deteriorates distillation performance. Our discoveries inspired us to propose the novel weighted soft labels to help the network adaptively handle the sample-wise bias-variance tradeoff. Experiments on standard evaluation benchmarks validate the effectiveness of our method. Our code is available at \url{https://github.com/bellymonster/Weighted-Soft-Label-Distillation}.

View on arXivView PDF

Code Implementations(1)

597PythonFeb 1, 20215 years ago

Similar Papers

Cite this paper

@article{zhou2021rethinking,
  title  = {Rethinking Soft Labels for Knowledge Distillation: A Bias-Variance Tradeoff Perspective},
  author = {Helong Zhou and Liangchen Song and Jiajie Chen and Ye Zhou and Guoli Wang and Junsong Yuan and Qian Zhang},
  year   = {2021},
  eprint = {2102.00650},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.00650}
}

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

Discussion