Does Knowledge Distillation Really Work?

Samuel Stanton, Pavel Izmailov, Polina Kirichenko, Alexander A. Alemi, Andrew Gordon Wilson
6/10/2021
341 citations
cs.LGstat.ML
distillation

Official code: samuelstanton/gnosis (36 stars, Python, MIT, last commit 2023-09-27).

Abstract

Knowledge distillation is a popular technique for training a small student network to emulate a larger teacher model, such as an ensemble of networks. We show that while knowledge distillation can improve student generalization, it does not typically work as it is commonly understood: there often remains a surprisingly large discrepancy between the predictive distributions of the teacher and the student, even in cases when the student has the capacity to perfectly match the teacher.

Show full abstract

We identify difficulties in optimization as a key reason for why the student is unable to match the teacher. We also show how the details of the dataset used for distillation play a role in how closely the student matches the teacher -- and that more closely matching the teacher paradoxically does not always lead to better student generalization.

View on arXivView PDF

Code Implementations(1)

MIT

Code to reproduce experiments from 'Does Knowledge Distillation Really Work' a paper which appeared in the 2021 NeurIPS proceedings.

365Python, Jupyter NotebookOct 21, 20203 years agoMIT
deep-learningdistillation

Similar Papers

Cite this paper

@article{stanton2021does,
  title  = {Does Knowledge Distillation Really Work?},
  author = {Samuel Stanton and Pavel Izmailov and Polina Kirichenko and Alexander A. Alemi and Andrew Gordon Wilson},
  year   = {2021},
  eprint = {2106.05945},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.05945}
}

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

Discussion