arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2409.17823cs.CV
收藏

通过即插即用的Kendall's $τ$排序损失增强Logits蒸馏

Enhancing Logits Distillation with Plug\&Play Kendall's $τ$ Ranking Loss

Tsinghua Shenzhen International Graduate School, Tsinghua University, Shenzhen, China(清华大学深圳国际研究生院,清华大学,深圳,中国)

Yuchen Guan, Runxi Cheng, Kang Liu, Chun Yuan

AI总结:

针对知识蒸馏中KL散度梯度不平衡限制学生性能的问题,提出基于Kendall's $τ$的即插即用排序损失,可补充类别关系信息、平衡低概率通道梯度,在多数据集和架构上稳定提升蒸馏基线性能。

摘要:

知识蒸馏通常会最小化教师与学生logits之间的Kullback-Leibler(KL)散度。然而,优化KL散度对学生模型而言颇具挑战性,且往往会得到次优解。我们进一步表明,由KL散度产生的梯度会随教师logits的幅值大小成比例缩放,从而削弱了低概率通道上的参数更新。这种梯度不平衡性会弱化类别间信息的迁移,进而限制学生模型可实现的性能提升。为缓解这一问题,我们提出了一种基于Kendall's $τ$系数的即插即用辅助排序损失,该损失可无缝集成到任何基于logit的蒸馏框架中。它在提供类别间关系信息的同时,能重新平衡梯度,使其向低概率通道倾斜。我们证明,所提出的排序损失对通道缩放基本保持不变,且优化的目标与KL散度的目标一致,因此它是天然的补充而非替代方案。我们在CIFAR-100、ImageNet和COCO数据集上,以及多种CNN和ViT师生架构组合上开展了大量实验,结果表明我们的即插即用排序损失能持续提升多种蒸馏基线方法的性能。代码可在https://github.com/OvernighTea/RankingLoss-KD 获取。

英文摘要:

Knowledge distillation typically minimizes the Kullback-Leibler (KL) divergence between teacher and student logits. However, optimizing the KL divergence can be challenging for the student and often leads to sub-optimal solutions. We further show that gradients induced by KL divergence scale with the magnitude of the teacher logits, thereby diminishing updates on low-probability channels. This imbalance weakens the transfer of inter-class information and in turn limits the performance improvements achievable by the student. To mitigate this issue, we propose a plug-and-play auxiliary ranking loss based on Kendall's $τ$ coefficient that can be seamlessly integrated into any logit-based distillation framework. It supplies inter-class relational information while rebalancing gradients toward low-probability channels. We demonstrate that the proposed ranking loss is largely invariant to channel scaling and optimizes an objective aligned with that of KL divergence, making it a natural complement rather than a replacement. Extensive experiments on CIFAR-100, ImageNet, and COCO datasets, as well as various CNN and ViT teacher-student architecture combinations, demonstrate that our plug-and-play ranking loss consistently boosts the performance of multiple distillation baselines. Code is available at https://github.com/OvernighTea/RankingLoss-KD

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

↑