# Knowledge Distillation: A Survey

Survey reviews how knowledge distillation trains small models from large teachers

Jianping Gou, Baosheng Yu, Stephen John Maybank, Dacheng Tao · arXiv · 2020-6-9

- **Problem** Deep networks are too heavy to run on phones and embedded devices, because of their computation and storage needs. Compression methods exist, but small models often fall short when trained alone.
- **Method** This survey organizes knowledge distillation, which trains a small student model under a large teacher. It sorts methods by knowledge type, offline or online training, teacher-student architecture, and application area.
- **Results** The survey shows that distillation can lift a student model's accuracy on CIFAR10. For the FT method, a ResNet20 student rose from 92.22 to 93.15 percent accuracy.

## Why a large teacher needs a small student

Deep networks with very many layers have become easy to train on large GPU or TPU clusters, but their computational load and storage needs make them hard to run on video surveillance systems or autonomous driving cars. Compression research therefore covers several routes, including parameter pruning and sharing, low-rank factorization, compact convolutional filters and knowledge distillation.

Knowledge distillation trains a small student model under the supervision of a large teacher model, with the aim that the student comes close to the teacher's behaviour. The authors split the framework into three parts: the knowledge being transferred, the distillation algorithm, and the teacher-student architecture, and the central question is how knowledge moves from the teacher to the student.

## What the teacher passes on

Response-based knowledge is taken from the teacher's output layer, feature-based knowledge from its hint layers, and relation-based knowledge from the relations among feature maps or data samples. Figure 3 of the survey illustrates where each type is read from in a deep teacher network.

Relation-based knowledge covers structured knowledge of the data and privileged information about input features, and it is summarized in a table of relation-based categories. How to model relation information from feature maps or data samples as knowledge is still an open question, since some relation types have only been proposed recently.

## Offline, online and self-distillation

The schemes are separated by whether the teacher is updated together with the student. In offline distillation the teacher is trained first on the training samples and then fixed, and its logits or intermediate features guide the student in a second stage. Offline methods mostly focus on the design of the knowledge and of the loss functions, and the teacher's structure receives little attention.

The offline approach is simple to implement, for example when the teacher is an ensemble trained with different software packages and its knowledge is cached. Its cost is that the large teacher takes a long time to train, and a capacity gap between teacher and student usually exists, with the student relying heavily on the teacher.

In online distillation the teacher and student are updated at the same time in an end-to-end trainable framework, which was introduced to help when no high-performance large teacher is available. Deep mutual learning is the reference case, in which several networks learn collaboratively and any one of them can act as student or teacher. Existing online methods such as mutual learning often do not handle a high-capacity teacher, which the authors identify as a topic to study further.

In self-distillation the same network serves as teacher and student, and the authors treat it as a special case of online distillation. One example distils knowledge from the deeper sections of a network into its shallower sections, and another transfers knowledge from earlier epochs into later epochs of the same network.

## CIFAR10 gains for two offline methods

The CIFAR10 table compares each distillation method with a student baseline and reports the accuracy after distillation together with the gain over that baseline. For FSP, distilling RelK knowledge from a ResNet26 teacher (91.91) into a ResNet8 student, whose baseline is 87.91, gives 88.70 (0.79 ↑).

For FT, distilling FeaK knowledge from a ResNet56 teacher (93.61) into a ResNet20 student, whose baseline is 92.22, gives 93.15 (0.93 ↑). Both rows are offline methods on a single CIFAR10 setting, so they show gains for these teacher-student pairs and not for the other schemes or datasets.

## Where the teacher-student idea has been carried

In visual recognition, a lightweight student can be trained under a high-capacity teacher, and cross-modal action recognition uses teacher networks that hold knowledge from several modalities.

In natural language processing, BERT is a heavy model, and distillation has produced lighter variants such as BERT-PKD, which transfers feature representations of the \[CLS\] token from hint layers. TinyBERT uses two-stage transformer distillation with general-domain and task-specific stages, and DistilBERT keeps the generic structure of BERT in a smaller model.

In speech recognition, distillation is used to build lightweight acoustic models for embedded platforms, for example by transferring an RNN teacher's knowledge into a small DNN student. In recommender systems, ranking distillation applies the idea to a ranking problem, and privacy-motivated variants use teachers on sensitive data while the student is applied to public data.

## Open problems

The theoretical and empirical understanding of distillation is still insufficient, and it is hard to measure the quality of the knowledge or of a teacher-student architecture. Most work proposes new knowledge types or loss functions, while the design of teacher and student architectures is less studied, even though a capacity gap can limit what the student learns.

How to combine response-based, feature-based and relation-based knowledge in one framework that is complementary is still a challenge. Combining distillation with other compression techniques is needed for portable platforms, but few works study it, and the order in which compression methods are applied is an open question. Data-free distillation remains difficult because the synthesized training data must be high quality and diverse.

## Paper info

- **Authors**: Jianping Gou, Baosheng Yu, Stephen John Maybank, Dacheng Tao
- **Venue**: arXiv · Preprint
- **First published**: 2020-6-9
- **Added**: 2026-11-12
- **Updated**: 2021-5-20
- **Version**: v7
- **arXiv**: 2006.05525
- **DOI**: 10.1007/s11263-021-01453-z
- **Category**: cs.LG · stat.ML
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2006.05525v7) · [PDF ↗](https://arxiv.org/pdf/2006.05525v7)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Jianping Gou, Baosheng Yu, Stephen John Maybank, Dacheng Tao (2020). Knowledge Distillation: A Survey. arXiv:2006.05525v7. https://doi.org/10.1007/s11263-021-01453-z

**BibTeX**

```
@article{gou2020knowledge,
  title = {{Knowledge Distillation: A Survey}},
  author = {Jianping Gou and Baosheng Yu and Stephen John Maybank and Dacheng Tao},
  year = {2020},
  eprint = {2006.05525},
  archivePrefix = {arXiv},
  doi = {10.1007/s11263-021-01453-z},
  url = {https://arxiv.org/abs/2006.05525v7}
}
```

## Other paper commentary

- [Efficient Processing of Deep Neural Networks: A Tutorial and Survey](https://refivu.com/en/papers/587cab8c-6795-4edf-94db-5f485a9b553b-efficient-processing-of-deep-neural-networks-a-tutorial.md)
- [Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference](https://refivu.com/en/papers/07bb92b6-cd63-4ab5-ab99-88473c074df7-quantization-and-training-of-neural-networks-for-efficient.md)
- [Federated Learning: Strategies for Improving Communication Efficiency](https://refivu.com/en/papers/f21e9a4b-b86a-4954-8c8a-ed4ff256e5d6-federated-learning-strategies-for-improving-communication.md)
- [Federated Learning: Challenges, Methods, and Future Directions](https://refivu.com/en/papers/85104455-c32d-4181-89ff-29d70a64be44-federated-learning-challenges-methods-and-future-directions.md)
- [ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design](https://refivu.com/en/papers/d1e3c93e-79dc-4e3d-a949-2f726da0b409-shufflenet-v2-practical-guidelines-for-efficient-cnn.md)
- [Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Coding](https://refivu.com/en/papers/7b8d214e-c983-4cf0-910e-176f0c996770-deep-compression-compressing-deep-neural-networks-with.md)
- [Concrete Problems in AI Safety](https://refivu.com/en/papers/a0a18b13-f86b-4c61-807b-da6798f08495-concrete-problems-in-ai-safety.md)
- [Fast Graph Representation Learning with PyTorch Geometric](https://refivu.com/en/papers/52635461-7e10-4f67-b534-f791859538e1-fast-graph-representation-learning-with-pytorch-geometric.md)
- [Exploring Simple Siamese Representation Learning](https://refivu.com/en/papers/d32975a6-8149-4095-86b6-ad11d1642a75-exploring-simple-siamese-representation-learning.md)
- [Variational Graph Auto-Encoders](https://refivu.com/en/papers/68c3cbf9-0251-40aa-bdb7-85593b91a6b5-variational-graph-auto-encoders.md)
- [Generating Sequences With Recurrent Neural Networks](https://refivu.com/en/papers/020e79e6-6670-4128-89ca-087f5c0a8dc9-generating-sequences-with-recurrent-neural-networks.md)
- [Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results](https://refivu.com/en/papers/db4b57dd-c8b9-4380-b088-3186a676efaf-mean-teachers-are-better-role-models-weight-averaged.md)

## Terms in this paper

- [BERT](https://refivu.com/en/terms/45b639a1d317-bert)
- [knowledge distillation](https://refivu.com/en/terms/b8544f4ba83e-knowledge-distillation)
- [self-distillation](https://refivu.com/en/terms/674370ad51c9-self-distillation)
- [Online Distillation](https://refivu.com/en/terms/fed5347e39c6-online-distillation)
- [student model](https://refivu.com/en/terms/07239f921368-student-model)
- [teacher model](https://refivu.com/en/terms/4378abddd34f-teacher-model)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/20b6ef99-85b3-42b7-9c02-384c6383f2ff-knowledge-distillation-a-survey)
