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

DOT:一种面向蒸馏的训练器

DOT: A Distillation-Oriented Trainer

MEGVII Technology(旷视科技);Waseda University(早稻田大学)

Borui Zhao, Quan Cui, Renjie Song, Jiajun Liang

AI总结:

针对知识蒸馏中任务损失与蒸馏损失的优化权衡,本文提出DOT,通过分别处理梯度并增大蒸馏损失动量来加速其优化,在ImageNet-1k等实验中显著提升学生模型性能。

摘要:

知识蒸馏通过任务损失和蒸馏损失将知识从大型模型迁移到小型模型。在本文中,我们观察到任务损失与蒸馏损失之间存在一种权衡,即引入蒸馏损失会限制任务损失的收敛。我们认为,这种权衡源于蒸馏损失优化不足。原因在于:教师模型的任务损失低于学生模型,而更低的蒸馏损失会促使学生模型更接近教师模型,从而可能获得收敛更好的任务损失。为打破这一权衡,我们提出了面向蒸馏的训练器(Distillation-Oriented Trainer,DOT)。DOT分别考虑任务损失和蒸馏损失的梯度,然后对蒸馏损失施加更大的动量,以加速其优化。我们通过实验证明DOT打破了这一权衡,即两类损失都得到了充分优化。大量实验验证了DOT的优越性。值得注意的是,在ImageNet-1k上,对于ResNet50-MobileNetV1这一教师-学生模型对,DOT实现了2.59%的准确率提升。总之,DOT在损失收敛和模型泛化方面显著改善了学生模型的优化特性。代码将公开发布。

英文摘要:

Knowledge distillation transfers knowledge from a large model to a small one via task and distillation losses. In this paper, we observe a trade-off between task and distillation losses, i.e., introducing distillation loss limits the convergence of task loss. We believe that the trade-off results from the insufficient optimization of distillation loss. The reason is: The teacher has a lower task loss than the student, and a lower distillation loss drives the student more similar to the teacher, then a better-converged task loss could be obtained. To break the trade-off, we propose the Distillation-Oriented Trainer (DOT). DOT separately considers gradients of task and distillation losses, then applies a larger momentum to distillation loss to accelerate its optimization. We empirically prove that DOT breaks the trade-off, i.e., both losses are sufficiently optimized. Extensive experiments validate the superiority of DOT. Notably, DOT achieves a +2.59% accuracy improvement on ImageNet-1k for the ResNet50-MobileNetV1 pair. Conclusively, DOT greatly benefits the student's optimization properties in terms of loss convergence and model generalization. Code will be made publicly available.

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

↑