Knowledge Distillation: A Survey

Jianping Gou, Baosheng Yu, Stephen J. Maybank, Dacheng Tao · DOI

Abstract

Knowledge Distillation (KD) has emerged as a pivotal technique for model compression, enabling the deployment of large-scale deep learning models on resource-constrained devices. This survey categorizes the field into three main pillars: knowledge types, distillation schemes, and distillation algorithms. By transferring "dark knowledge" from a complex teacher model to a compact student model, KD achieves significant performance gains over training from scratch. This paper provides a comprehensive roadmap of the current landscape, key insights, and future challenges in the field.

Introduction: The Challenge of Large Models

Modern deep learning has achieved remarkable success, but at the cost of massive computational requirements. Models like BERT or deep ResNets contain billions of parameters, making them difficult to deploy on "edge" devices such as smartphones, autonomous vehicles, or IoT sensors. While techniques like pruning and quantization are common, Knowledge Distillation (KD) offers a unique approach by fundamentally changing how a model learns.

Instead of training a small model from scratch on raw data, KD leverages the "wisdom" of a pre-trained, high-performance "teacher" model. The smaller "student" model learns to mimic the teacher's behavior, often achieving accuracies far beyond what it could reach through standard training.

The general framework of knowledge distillation: transferring knowledge from a complex teacher to a compact student.

Taxonomy of Knowledge Distillation

The landscape of KD can be organized into three primary dimensions: the type of knowledge transferred, the timing of the distillation process, and the specific algorithms used.

A comprehensive taxonomy of knowledge distillation, covering knowledge types, distillation schemes, and specialized algorithms.

1. Knowledge Categories (The "What")

  • Response-based Knowledge: The student mimics the final output (logits) of the teacher. This includes "soft targets," which provide a probability distribution over all classes, revealing how the teacher perceives similarities between categories.
  • Feature-based Knowledge: The student learns from the teacher’s internal representations, such as intermediate layer activations or feature maps.
  • Relation-based Knowledge: The student captures the relationships between different data samples or layers as modeled by the teacher, often represented through similarity graphs or manifolds.

2. Distillation Schemes (The "When")

  • Offline Distillation: A fixed, pre-trained teacher guides the student.
  • Online Distillation: Both models are trained simultaneously in a collaborative fashion.
  • Self-distillation: A single model acts as its own teacher, typically with deeper layers supervising shallower ones.

3. Distillation Algorithms (The "How")

Specialized approaches have been developed to handle specific constraints, including Adversarial KD (using GANs), Multi-teacher KD (ensembling knowledge), and Data-free KD (distilling without access to original training data).

Key Insights and Performance

A central concept in KD is "Dark Knowledge"—the information hidden in the relative probabilities of incorrect classes. These soft targets contain rich structural information that "hard" labels (0 or 1) ignore. However, research shows a Capacity Gap: if the teacher is significantly more complex than the student, the student may struggle to learn effectively, sometimes requiring "Teacher Assistants" to bridge the gap.

Empirical results on benchmarks like CIFAR-10/100 and ImageNet demonstrate that KD-trained students consistently outperform their from-scratch counterparts. For instance, a ResNet-14 student can see a ~5% accuracy jump on CIFAR-100 when distilled from a ResNet-32 teacher. This allows for 10x or greater reductions in model size with minimal precision loss.

Future Directions

Despite its success, several challenges remain:

  • Theoretical Grounding: A unified mathematical explanation for why KD improves generalization is still being developed.
  • Automated Design: Selecting which intermediate layers to distill is currently an empirical "art"; automated methods are needed.
  • Security: "Distillation attacks," where competitors steal proprietary model logic through distillation, are a growing concern.
  • Hardware-Aware Metrics: Future research must move beyond top-1 accuracy to include real-world metrics like latency and energy consumption.

Summary updated

BibTeX
@article{gou2021knowledge,
  author = {Jianping Gou and Baosheng Yu and Stephen J. Maybank and Dacheng Tao},
  title = {{Knowledge Distillation: A Survey}},
  journal = {Int. J. Comput. Vis.},
  year = {2021},
  doi = {10.1007/s11263-021-01453-z},
}
Figure