NormKD: Normalized Logits for Knowledge Distillation
Authors:
- Tu ZhengTZTu Zheng
- Boxi WuBWBoxi Wu
Preprint
Abstract
Logit based knowledge distillation gets less attention in recent years since feature based methods perform better in most cases. Nevertheless, we find it still has untapped potential when we re-investigate the temperature, which is a crucial hyper-parameter to soften the logit outputs. For most of the previous works, it was set as a fixed value for the entire distillation procedure. However, as the logits from different samples are distributed quite variously, it is not feasible to soften all of them to an equal degree by just a single temperature, which may make the previous work transfer the knowledge of each sample inadequately. In this paper, we restudy the hyper-parameter temperature and figure out its incapability to distill the knowledge from each sample sufficiently when it is a single value. To address this issue, we propose Normalized Knowledge Distillation (NormKD), with the purpose of customizing the temperature for each sample according to the characteristic of the sample's logit distribution. Compared to the vanilla KD, NormKD barely has extra computation or storage cost but performs significantly better on CIRAR-100 and ImageNet for image classification. Furthermore, NormKD can be easily applied to the other logit based methods and achieve better performance which can be closer to or even better than the feature based method.Keywords
All Related Versions
This publication has 11 references indexed in Scilit:
- Masked Generative Distillation2022
- Distilling Global and Local Logits with Densely Connected Relations2021
- Distilling Knowledge via Knowledge Review2021
- A Comprehensive Overhaul of Feature Distillation2019
- Snapshot Distillation: Teacher-Student Optimization in One Generation2019
- Relational Knowledge Distillation2019
- ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design2018
- MobileNetV2: Inverted Residuals and Linear Bottlenecks2018
- Deep Residual Learning for Image Recognition2016
- Fully Convolutional Networks for Semantic SegmentationIEEE Transactions on Pattern Analysis and Machine Intelligence, 2016