Knowledge Distillation as Semiparametric Inference

Tri Dao, Govinda M Kamath, Vasilis Syrgkanis, Lester Mackey
4/20/2021
stat.MLcs.LG
distillation

Official code: microsoft/semiparametric-distillation (10 stars, Python, MIT, last commit 2026-11-17).

Abstract

A popular approach to model compression is to train an inexpensive student model to mimic the class probabilities of a highly accurate but cumbersome teacher model. Surprisingly, this two-step knowledge distillation process often leads to higher accuracy than training the student directly on labeled data.

Show full abstract

To explain and enhance this phenomenon, we cast knowledge distillation as a semiparametric inference problem with the optimal student model as the target, the unknown Bayes class probabilities as nuisance, and the teacher probabilities as a plug-in nuisance estimate. By adapting modern semiparametric tools, we derive new guarantees for the prediction error of standard distillation and develop two enhancements -- cross-fitting and loss correction -- to mitigate the impact of teacher overfitting and underfitting on student performance. We validate our findings empirically on both tabular and image data and observe consistent improvements from our knowledge distillation enhancements.

View on arXivView PDF

Code Implementations(1)

MIT

Knowledge Distillation as Semiparametric Inference

107Python, ShellMar 18, 20212 weeks agoMIT

Similar Papers

Cite this paper

@article{dao2021knowledge,
  title  = {Knowledge Distillation as Semiparametric Inference},
  author = {Tri Dao and Govinda M Kamath and Vasilis Syrgkanis and Lester Mackey},
  year   = {2021},
  eprint = {2104.09732},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.09732}
}

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

Discussion