Enriching Knowledge Distillation with Intra-Class Contrastive Learning

Hua Yuan, Ning Xu, Xin Geng, Yong Rui · Submission to ICLR 2025 · Withdrawn

Its authors withdrew this paper, so there is no full text to read or summarize.

Abstract

Since the advent of knowledge distillation, much research has focused on how the soft labels generated by the teacher model can be utilized effectively. A study points out that the implicit knowledge within soft labels originates from the multi-view structure present in the data. Feature variations within samples of the same class allow the student model to generalize better by learning diverse representations. However, in existing distillation methods, teacher models predominantly adhere to ground-truth labels as targets, without considering the diverse representations within the same class. Therefore, we propose incorporating an intra-class contrastive loss during teacher training to enrich the intra-class information contained in soft labels. In practice, we find that intra-class loss causes instability in training and slows convergence. To mitigate these issues, margin loss is integrated into intra-class contrastive learning to improve the training stability and convergence speed. Simultaneously, we theoretically analyze the impact of this loss on the intra-class distances and inter-class distances. It has been proved that the intra-class contrastive loss can enrich the intra-class diversity. Experimental results demonstrate the effectiveness of the proposed method.
BibTeX
@misc{yuan2025enriching,
  author = {Hua Yuan and Ning Xu and Xin Geng and Yong Rui},
  title = {{Enriching Knowledge Distillation with Intra-Class Contrastive Learning}},
  year = {2025},
  eprint = {2509.22053},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.22053},
}
Figure