Discriminative and Consistent Representation Distillation

Nikolaos Giakoumoglou, Tania Stathaki
7/16/2024
2 citations
cs.CVcs.AI
contrastive-ssldistillation

No official code found. Best implementation: giakoumoglou/rrd (14 stars, Python, MIT, PyTorch, last commit 2025-12-02).

Abstract

Knowledge Distillation (KD) aims to transfer knowledge from a large teacher model to a smaller student model. While contrastive learning has shown promise in self-supervised learning by creating discriminative representations, its application in knowledge distillation remains limited and focuses primarily on discrimination, neglecting the structural relationships captured by the teacher model.

Show full abstract

To address this limitation, we propose Discriminative and Consistent Distillation (DCD), which employs a contrastive loss along with a consistency regularization to minimize the discrepancy between the distributions of teacher and student representations. Our method introduces learnable temperature and bias parameters that adapt during training to balance these complementary objectives, replacing the fixed hyperparameters commonly used in contrastive learning approaches. Through extensive experiments on CIFAR-100 and ImageNet ILSVRC-2012, we demonstrate that DCD achieves state-of-the-art performance, with the student model sometimes surpassing the teacher's accuracy. Furthermore, we show that DCD's learned representations exhibit superior cross-dataset generalization when transferred to Tiny ImageNet and STL-10.

View on arXivView PDF

Code Implementations(1)

giakoumoglou/rrdCommunity100%
PyTorchMIT

PyTorch implementation of RRD: https://arxiv.org/abs/2407.12073

141Python, ShellJun 30, 202412 months agoMIT
knowledge-distillationknowledge-transferpytorchrepresentation-learning

Similar Papers

Cite this paper

@article{giakoumoglou2024discriminative,
  title  = {Discriminative and Consistent Representation Distillation},
  author = {Nikolaos Giakoumoglou and Tania Stathaki},
  year   = {2024},
  eprint = {2407.11802},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.11802v5}
}

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

Discussion