Learning from a Lightweight Teacher for Efficient Knowledge Distillation
arXiv:2005.09163
Abstract
Knowledge Distillation (KD) is an effective framework for compressing deep learning models, realized by a student-teacher paradigm requiring small student networks to mimic the soft target generated by well-trained teachers. However, the teachers are commonly assumed to be complex and need to be trained on the same datasets as students. This leads to a time-consuming training process. The recent study shows vanilla KD plays a similar role as label smoothing and develops teacher-free KD, being efficient and mitigating the issue of learning from heavy teachers. But because teacher-free KD relies on manually-crafted output distributions kept the same for all data instances belonging to the same class, its flexibility and performance are relatively limited. To address the above issues, this paper proposes en efficient knowledge distillation learning framework LW-KD, short for lightweight knowledge distillation. It firstly trains a lightweight teacher network on a synthesized simple dataset, with an adjustable class number equal to that of a target dataset. The teacher then generates soft target whereby an enhanced KD loss could guide student learning, which is a combination of KD loss and adversarial loss for making student output indistinguishable from the output of the teacher. Experiments on several public datasets with different modalities demonstrate LWKD is effective and efficient, showing the rationality of its main design principles.
11 pages, 3 figures, 9 tables
References in corpus (8)
- Distilling the Knowledge in a Neural Network
- UCF101: A Dataset of 101 Human Actions Classes From Videos in The Wild
- Paying More Attention to Attention: Improving the Performance of Convolutional Neural Networks via Attention Transfer
- Pruning Filters for Efficient ConvNets
- Like What You Like: Knowledge Distill via Neuron Selectivity Transfer
- Multilingual Neural Machine Translation with Knowledge Distillation
- Towards better decoding and language model integration in sequence to sequence models
- Variational Information Distillation for Knowledge Transfer