Secure Systems Group
Menu×

Wiki Home

Knowledge distillation

Definition

Knowledge distillation transfers the behavior of a trained “teacher” model into a second “student” model by training the student to match the teacher’s outputs rather than the ground-truth labels alone (Hinton et al., 2015). The teacher’s full output distribution, the “soft labels,” carries more information per example than a one-hot label, because it exposes the relative probabilities the teacher assigns to the non-top classes. A temperature parameter softens that distribution to make those relative probabilities more visible during training. The idea predates deep learning as model compression, where the goal was to shrink an ensemble into a single fast model (Buciluǎ et al., 2006).

Training the student to imitate the teacher’s predictive distribution is equivalent, up to a constant, to minimizing the KL divergence between the two distributions over the set of examples used for transfer. Classic distillation assumes white-box access to the teacher and a shared task and data distribution. Relaxing those assumptions, so that the teacher is only a queryable black box and the transfer inputs need not match the teacher’s training data, turns distillation into a tool for model extraction.

Papers that use this concept

See also

References

  • Buciluǎ, C., Caruana, R., and Niculescu-Mizil, A. “Model Compression.” ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD), 2006.
  • Hinton, G., Vinyals, O., and Dean, J. “Distilling the Knowledge in a Neural Network.” arXiv:1503.02531, 2015.