DOT: A Distillation-Oriented Trainer
Preprint
Abstract
Knowledge distillation transfers knowledge from a large model to a small one via task and distillation losses. In this paper, we observe a trade-off between task and distillation losses, i.e., introducing distillation loss limits the convergence of task loss. We believe that the trade-off results from the insufficient optimization of distillation loss. The reason is: The teacher has a lower task loss than the student, and a lower distillation loss drives the student more similar to the teacher, then a better-converged task loss could be obtained. To break the trade-off, we propose the Distillation-Oriented Trainer (DOT). DOT separately considers gradients of task and distillation losses, then applies a larger momentum to distillation loss to accelerate its optimization. We empirically prove that DOT breaks the trade-off, i.e., both losses are sufficiently optimized. Extensive experiments validate the superiority of DOT. Notably, DOT achieves a +2.59% accuracy improvement on ImageNet-1k for the ResNet50-MobileNetV1 pair. Conclusively, DOT greatly benefits the student's optimization properties in terms of loss convergence and model generalization. Code will be made publicly available.Keywords
All Related Versions
This publication has 11 references indexed in Scilit:
- Decoupled Knowledge Distillation2022
- Knowledge Distillation and Student-Teacher Learning for Visual Intelligence: A Review and New OutlooksIEEE Transactions on Pattern Analysis and Machine Intelligence, 2021
- Revisiting Knowledge Distillation via Label Smoothing Regularization2020
- Knowledge Transfer via Distillation of Activation Boundaries Formed by Hidden NeuronsProceedings of the AAAI Conference on Artificial Intelligence, 2019
- Relational Knowledge Distillation2019
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding2019
- ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design2018
- MobileNetV2: Inverted Residuals and Linear Bottlenecks2018
- Deep Residual Learning for Image Recognition2016
- ImageNet Large Scale Visual Recognition Challenge