Swapped Logit Distillation via Bi-level Teacher Alignment

Stephen Ekaputra Limantoro, Jhe-Hao Lin, Chih-Yu Wang, Yi-Lung Tsai, Hong-Han Shuai +2 more
4/27/2025
2 citations
cs.LGeess.IVeess.SP
distillation

Official code: StephenEkaputra/Swapped-Logit-Distillation (1 star, Python, PyTorch, last commit 2025-09-30).

Abstract

Knowledge distillation (KD) compresses the network capacity by transferring knowledge from a large (teacher) network to a smaller one (student). It has been mainstream that the teacher directly transfers knowledge to the student with its original distribution, which can possibly lead to incorrect predictions.

Show full abstract

In this article, we propose a logit-based distillation via swapped logit processing, namely Swapped Logit Distillation (SLD). SLD is proposed under two assumptions: (1) the wrong prediction occurs when the prediction label confidence is not the maximum; (2) the "natural" limit of probability remains uncertain as the best value addition to the target cannot be determined. To address these issues, we propose a swapped logit processing scheme. Through this approach, we find that the swap method can be effectively extended to teacher and student outputs, transforming into two teachers. We further introduce loss scheduling to boost the performance of two teachers' alignment. Extensive experiments on image classification tasks demonstrate that SLD consistently performs best among previous state-of-the-art methods.

View on arXivView PDF

Code Implementations(1)

PyTorch

Swapped Logit Distillation via Bi-Level Teachers Alignment

10PythonApr 17, 20251 years ago
computer-visiondeep-learningimagenetknowledge-distillationmodel-compression+2 more

Similar Papers

Cite this paper

@article{limantoro2025swapped,
  title  = {Swapped Logit Distillation via Bi-level Teacher Alignment},
  author = {Stephen Ekaputra Limantoro and Jhe-Hao Lin and Chih-Yu Wang and Yi-Lung Tsai and Hong-Han Shuai and Ching-Chun Huang and Wen-Huang Cheng},
  year   = {2025},
  eprint = {2504.20108},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.20108v1}
}

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

Discussion