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

知识蒸馏的课程温度

Curriculum Temperature for Knowledge Distillation

Megvii(旷视科技)

Zheng Li, Xiang Li, Lingfeng Yang, Borui Zhao, Renjie Song, Lei Luo, Jun Li, Jian Yang

摘要:

大多数现有的蒸馏方法忽略了温度在损失函数中的灵活作用,并将其固定为可以通过低效的网格搜索来确定的超参数。一般来说,温度控制两个分布之间的差异,并可以忠实地确定蒸馏任务的难度水平。保持恒定的温度,即,任务难度的固定水平,通常是次优的成长中的学生在其渐进的学习阶段。在本文中,我们提出了一个简单的基于知识的技术,称为课程温度知识蒸馏(CTKD),它控制任务的难度水平,在学生的学习生涯中,通过一个动态的和可学习的温度。具体来说,遵循由易到难的课程,我们逐渐增加蒸馏损失w.r.t.温度,导致以对抗方式增加蒸馏难度。作为一种易于使用的插件技术,CTKD可以无缝集成到现有的知识蒸馏框架,并带来了一般的改进,在一个微不足道的额外的计算成本。在CIFAR-100、ImageNet-2012和MS-COCO上的大量实验证明了该方法的有效性。我们的代码可在https://github.com/zhengli97/CTKD上获得。

英文摘要:

Most existing distillation methods ignore the flexible role of the temperature in the loss function and fix it as a hyper-parameter that can be decided by an inefficient grid search. In general, the temperature controls the discrepancy between two distributions and can faithfully determine the difficulty level of the distillation task. Keeping a constant temperature, i.e., a fixed level of task difficulty, is usually sub-optimal for a growing student during its progressive learning stages. In this paper, we propose a simple curriculum-based technique, termed Curriculum Temperature for Knowledge Distillation (CTKD), which controls the task difficulty level during the student's learning career through a dynamic and learnable temperature. Specifically, following an easy-to-hard curriculum, we gradually increase the distillation loss w.r.t. the temperature, leading to increased distillation difficulty in an adversarial manner. As an easy-to-use plug-in technique, CTKD can be seamlessly integrated into existing knowledge distillation frameworks and brings general improvements at a negligible additional computation cost. Extensive experiments on CIFAR-100, ImageNet-2012, and MS-COCO demonstrate the effectiveness of our method. Our code is available at https://github.com/zhengli97/CTKD.

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

↑