Understanding the Role of the Projector in Knowledge Distillation
Open Access
- 24 March 2024
- journal article
- research article
- Published by Association for the Advancement of Artificial Intelligence (AAAI) in Proceedings of the AAAI Conference on Artificial Intelligence
- Vol. 38 (5) , 4233-4241
Abstract
In this paper we revisit the efficacy of knowledge distillation as a function matching and metric learning problem. In doing so we verify three important design decisions, namely the normalisation, soft maximum function, and projection layers as key ingredients. We theoretically show that the projector implicitly encodes information on past examples, enabling relational gradients for the student. We then show that the normalisation of representations is tightly coupled with the training dynamics of this projector, which can have a large impact on the students performance. Finally, we show that a simple soft maximum function can be used to address any significant capacity gap problems. Experimental results on various benchmark datasets demonstrate that using these insights can lead to superior or comparable performance to state-of-the-art knowledge distillation techniques, despite being much more computationally efficient. In particular, we obtain these results across image classification (CIFAR100 and ImageNet), object detection (COCO2017), and on more difficult distillation objectives, such as training data efficient transformers, whereby we attain a 77.2% top-1 accuracy with DeiT-Ti on ImageNet. Code and models are publicly available.Keywords
All Related Versions
This publication has 21 references indexed in Scilit:
- torchdistill: A Modular, Configuration-Driven Framework for Knowledge Distillation2021
- Prime-Aware Adaptive Distillation2020
- Knowledge Distillation Meets Self-supervision2020
- Domain Generalization by Solving Jigsaw Puzzles2019
- Distilling Object Detectors With Fine-Grained Feature Imitation2019
- Structured Knowledge Distillation for Semantic Segmentation2019
- A Gift from Knowledge Distillation: Fast Optimization, Network Minimization and Transfer Learning2017
- Colorful Image Colorization2016
- Microsoft COCO: Common Objects in Context2014
- The Pascal Visual Object Classes (VOC) ChallengeInternational Journal of Computer Vision, 2009