LoCa: Logit Calibration for Knowledge Distillation

Runming Yang, Taiqiang Wu, Yujiu Yang
9/7/2024
cs.CLcs.LG

No confident code implementation found for this paper.

Abstract

Knowledge Distillation (KD), aiming to train a better student model by mimicking the teacher model, plays an important role in model compression. One typical way is to align the output logits. However, we find a common issue named mis-instruction, that the student would be misled when the predictions based on teacher logits do not follow the labels. Meanwhile, there is other useful dark knowledge in the logits such as the class discriminability, which is vital for distillation. In this paper, we propose a simple yet effective Logit Calibration (LoCa) method, which calibrates the logits from the teacher model based on the ground-truth labels. The key insight is to correct the prediction (to address the mis-instruction issue) and maintain useful dark knowledge simultaneously. Our proposed LoCa does not require any additional parameters. Empirical results on image classification and text generation tasks demonstrate that LoCa can effectively improve the performance of baselines.

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{yang2024loca,
  title  = {LoCa: Logit Calibration for Knowledge Distillation},
  author = {Runming Yang and Taiqiang Wu and Yujiu Yang},
  year   = {2024},
  eprint = {2409.04778},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.04778v1}
}

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

Discussion