Cross-Layer Distillation with Semantic Calibration

Defang Chen, Jian-Ping Mei, Yuan Zhang, Can Wang, Yan Feng +1 more
12/6/2020
407 citations
cs.CVcs.AIcs.LG
distillation

Official code: DefangChen/SemCKD (78 stars, Jupyter Notebook, last commit 2024-07-29).

Abstract

Knowledge distillation is a technique to enhance the generalization ability of a student model by exploiting outputs from a teacher model. Recently, feature-map based variants explore knowledge transfer between manually assigned teacher-student pairs in intermediate layers for further improvement.

Show full abstract

However, layer semantics may vary in different neural networks and semantic mismatch in manual layer associations will lead to performance degeneration due to negative regularization. To address this issue, we propose Semantic Calibration for cross-layer Knowledge Distillation (SemCKD), which automatically assigns proper target layers of the teacher model for each student layer with an attention mechanism. With a learned attention distribution, each student layer distills knowledge contained in multiple teacher layers rather than a specific intermediate layer for appropriate cross-layer supervision. We further provide theoretical analysis of the association weights and conduct extensive experiments to demonstrate the effectiveness of our approach. Code is avaliable at \url{https://github.com/DefangChen/SemCKD}.

View on arXivView PDF

Code Implementations(1)

DefangChen/SemCKDOfficial100%

[AAAI-2021, TKDE-2023] Official implementation for "Cross-Layer Distillation with Semantic Calibration".

7815Jupyter Notebook, PythonJul 4, 20202 years ago
aaai2021deep-learningknowledge-distillationmachine-learning

Similar Papers

Cite this paper

@article{chen2020crosslayer,
  title  = {Cross-Layer Distillation with Semantic Calibration},
  author = {Defang Chen and Jian-Ping Mei and Yuan Zhang and Can Wang and Yan Feng and Chun Chen},
  year   = {2020},
  eprint = {2012.03236},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.03236}
}

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/2012.03236.svg)](https://codeofpaper.com/paper/2012.03236)

Discussion