arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.12711cs.LGcs.AIcs.CV
收藏

动态温度知识蒸馏

Dynamic Temperature Knowledge Distillation

HEBUST(河北科技大学)

Yukang Wei, Yu Bai

AI总结:

提出动态温度知识蒸馏(DTKD),通过最小化师生模型输出分布的锐度差异,动态调整温度,提升知识蒸馏效果,在CIFAR-100和ImageNet-2012上表现优异。

摘要:

温度在知识蒸馏(KD)领域中起着调节标签软度的关键作用。传统方法通常在KD过程中采用静态温度,这无法应对不同难度样本的细微复杂性,并忽视了不同师生配对的不同能力,导致知识迁移效果不佳。为了改进知识传播过程,我们提出了动态温度知识蒸馏(DTKD),它在每次训练迭代中同时为教师和学生模型引入动态、协同的温度控制。具体而言,我们提出了“sharpness”(锐度)作为量化模型输出分布平滑度的指标。通过最小化教师和学生之间的锐度差异,我们可以分别为它们推导出样本特定的温度。在CIFAR-100和ImageNet-2012上的大量实验表明,DTKD在性能上与领先的KD技术相当,并在目标类KD和非目标类KD场景中具有更强的鲁棒性。代码可在https://github.com/JinYu1998/DTKD获取。

英文摘要:

Temperature plays a pivotal role in moderating label softness in the realm of knowledge distillation (KD). Traditional approaches often employ a static temperature throughout the KD process, which fails to address the nuanced complexities of samples with varying levels of difficulty and overlooks the distinct capabilities of different teacher-student pairings. This leads to a less-than-ideal transfer of knowledge. To improve the process of knowledge propagation, we proposed Dynamic Temperature Knowledge Distillation (DTKD) which introduces a dynamic, cooperative temperature control for both teacher and student models simultaneously within each training iterafion. In particular, we proposed "\textbf{sharpness}" as a metric to quantify the smoothness of a model's output distribution. By minimizing the sharpness difference between the teacher and the student, we can derive sample-specific temperatures for them respectively. Extensive experiments on CIFAR-100 and ImageNet-2012 demonstrate that DTKD performs comparably to leading KD techniques, with added robustness in Target Class KD and None-target Class KD scenarios.The code is available at https://github.com/JinYu1998/DTKD.

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

↑