Enhancing Logits Distillation with Plug&Play Kendall's τ Ranking Loss

Yuchen Guan, Runxi Cheng, Kang Liu, Chun Yuan
9/1/2024
distillation

No confident code implementation found for this paper.

Abstract

Knowledge distillation typically minimizes the Kullback-Leibler (KL) divergence between teacher and student logits. However, optimizing the KL divergence can be challenging for the student and often leads to sub-optimal solutions.

Show full abstract

We further show that gradients induced by KL divergence scale with the magnitude of the teacher logits, thereby diminishing updates on low-probability channels. This imbalance weakens the transfer of inter-class information and in turn limits the performance improvements achievable by the student. To mitigate this issue, we propose a plug-and-play auxiliary ranking loss based on Kendall's $\tau$ coefficient that can be seamlessly integrated into any logit-based distillation framework. It supplies inter-class relational information while rebalancing gradients toward low-probability channels. We demonstrate that the proposed ranking loss is largely invariant to channel scaling and optimizes an objective aligned with that of KL divergence, making it a natural complement rather than a replacement. Extensive experiments on CIFAR-100, ImageNet, and COCO datasets, as well as various CNN and ViT teacher-student architecture combinations, demonstrate that our plug-and-play ranking loss consistently boosts the performance of multiple distillation baselines. Code is available at https://github.com/OvernighTea/RankingLoss-KD

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{guan2024enhancing,
  title  = {Enhancing Logits Distillation with Plug&Play Kendall's τ Ranking Loss},
  author = {Yuchen Guan and Runxi Cheng and Kang Liu and Chun Yuan},
  year   = {2024},
  eprint = {2409.17823},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2409.17823},
  journal = {ICML 2025 2025}
}

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

Discussion