arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.12073cs.CVcs.AI
收藏

关系表示蒸馏

Relational Representation Distillation

Imperial College London(伦敦帝国学院)

Nikos Giakoumoglou, Tania Stathaki

AI总结:

针对现有基于对比学习的知识蒸馏存在的类别碰撞问题,提出保留实例相对关系的双温度关系表示蒸馏(RRD)方法,理论上证明InfoNCE为其极限情况,实验显示在分类、检测任务上关系对齐和泛化性更优。

摘要:

知识蒸馏将大型教师模型中的知识迁移到更紧凑的学生网络中。标准方法通过最小化教师模型与学生模型概率输出之间的Kullback-Leibler(KL)散度来对齐预测结果,但忽略了教师内部表示中编码的结构关系。近期研究采用对比学习目标来解决这一局限,但这类基于实例区分的方法会引发“类别碰撞问题”,即语义相关的样本尽管属于相似类别,却被不适当地推远。为克服该问题,我们提出关系表示蒸馏(Relational Representation Distillation,RRD),该方法保留实例间的相对关系,而非强制实现绝对分离。我们的方法为教师分布和学生分布引入了独立的温度参数:更锐利的教师分布(低$τ_t$)用于强调主要关系,更平滑的学生分布(高$τ_s$)用于维持次要相似性。这种双温度构建方式形成了一个隐式信息瓶颈,既能保留细粒度的关系结构,又能避免对比损失特有的过度分离问题。我们建立了理论关联,证明当$τ_t \rightarrow 0$时,InfoNCE是我们所提目标的一种极限情况;实验结果表明,这种松弛的公式在分类和检测任务上实现了更优的关系对齐效果与泛化性能。

英文摘要:

Knowledge distillation transfers knowledge from large teacher models to more compact student networks. The standard approach minimizes the Kullback-Leibler (KL) divergence between the probabilistic outputs of the teacher and student, aligning predictions but neglecting the structural relationships encoded within the teacher's internal representations. Recent advances have adopted contrastive learning objectives to address this limitation; however, such instance-discrimination-based methods induce a "class collision problem", in which semantically related samples are inappropriately pushed apart despite belonging to similar classes. To overcome this, we propose Relational Representation Distillation (RRD) that preserves the relative relationships among instances rather than enforcing absolute separation. Our method introduces separate temperature parameters for teacher and student distributions, with a sharper teacher (low $τ_t$) emphasizing primary relationships and a softer student (high $τ_s$) maintaining secondary similarities. This dual-temperature formulation creates an implicit information bottleneck that preserves fine-grained relational structure while avoiding the over-separation characteristic of contrastive losses. We establish theoretical connections showing that InfoNCE emerges as a limiting case of our objective when $τ_t \rightarrow 0$, and empirically demonstrate that this relaxed formulation yields superior relational alignment and generalization across classification and detection tasks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑