English

Relational Representation Distillation

Computer Vision and Pattern Recognition 2025-05-14 v5 Artificial Intelligence

Abstract

Knowledge distillation involves transferring knowledge from large, cumbersome teacher models to more compact student models. The standard approach minimizes the Kullback-Leibler (KL) divergence between the probabilistic outputs of a teacher and student network. However, this approach fails to capture important structural relationships in the teacher's internal representations. Recent advances have turned to contrastive learning objectives, but these methods impose overly strict constraints through instance-discrimination, forcing apart semantically similar samples even when they should maintain similarity. This motivates an alternative objective by which we preserve relative relationships between instances. Our method employs separate temperature parameters for teacher and student distributions, with sharper student outputs, enabling precise learning of primary relationships while preserving secondary similarities. We show theoretical connections between our objective and both InfoNCE loss and KL divergence. Experiments demonstrate that our method significantly outperforms existing knowledge distillation methods across diverse knowledge transfer tasks, achieving better alignment with teacher models, and sometimes even outperforms the teacher network.

Keywords

Cite

@article{arxiv.2407.12073,
  title  = {Relational Representation Distillation},
  author = {Nikolaos Giakoumoglou and Tania Stathaki},
  journal= {arXiv preprint arXiv:2407.12073},
  year   = {2025}
}

Comments

Preprint. Code: https://github.com/giakoumoglou/distillers, Supplementary: https://giakoumoglou.com/src/rrd_suppl.pdf

R2 v1 2026-06-28T17:43:37.797Z