Show, Attend and Distill:Knowledge Distillation via Attention-based Feature Matching

Mingi Ji, Byeongho Heo, Sungrae Park
2/5/2021
cs.LG
distillation

Official code: clovaai/attention-feature-distillation (122 stars, Python, Apache-2.0, last commit 2021-02-09).

Abstract

Knowledge distillation extracts general knowledge from a pre-trained teacher network and provides guidance to a target student network. Most studies manually tie intermediate features of the teacher and student, and transfer knowledge through pre-defined links.

Show full abstract

However, manual selection often constructs ineffective links that limit the improvement from the distillation. There has been an attempt to address the problem, but it is still challenging to identify effective links under practical scenarios. In this paper, we introduce an effective and efficient feature distillation method utilizing all the feature levels of the teacher without manually selecting the links. Specifically, our method utilizes an attention-based meta-network that learns relative similarities between features, and applies identified similarities to control distillation intensities of all possible pairs. As a result, our method determines competent links more efficiently than the previous approach and provides better performance on model compression and transfer learning tasks. Further qualitative analyses and ablative studies describe how our method contributes to better distillation. The implementation code is available at github.com/clovaai/attention-feature-distillation.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Official implementation for (Show, Attend and Distill: Knowledge Distillation via Attention-based Feature Matching, AAAI-2021)

12221PythonFeb 9, 20215 years agoApache-2.0

Similar Papers

Cite this paper

@article{ji2021show,
  title  = {Show, Attend and Distill:Knowledge Distillation via Attention-based Feature Matching},
  author = {Mingi Ji and Byeongho Heo and Sungrae Park},
  year   = {2021},
  eprint = {2102.02973},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.02973}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2102.02973.svg)](https://codeofpaper.com/paper/2102.02973)

Discussion