Paper commentary
Knowledge Distillation: A Survey
Survey reviews how knowledge distillation trains small models from large teachers
- 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
- What we show
- Paper info and commentary
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}
}