arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.07163cs.CLcs.LG
收藏

退火知识蒸馏

Annealing Knowledge Distillation

David R. Cheriton School of Computer Science, University of Waterloo(滑铁卢大学大卫·切里顿计算机科学学院);Huawei Noah’s Ark Lab(华为诺亚方舟实验室);Department of Statistics and Actuarial Science, University of Waterloo(滑铁卢大学统计与精算科学系)

Aref Jafari, Mehdi Rezagholizadeh, Pranav Sharma, Ali Ghodsi

摘要:

大型深度神经网络对内存和计算的巨大需求限制了其在边缘设备上的应用。知识蒸馏(KD)是一种用于深度神经网络的突出的模型压缩技术,其中训练的大型教师模型的知识被转移到较小的学生模型。知识蒸馏的成功主要归功于它的训练目标函数,它利用了训练集中除了给定的规则硬标签之外的软目标信息(也称为“暗知识”)。然而,在文献中显示,教师和学生网络之间的差距越大,使用知识蒸馏进行训练就越困难。为了解决这个缺点,我们提出了一种改进的知识蒸馏方法(称为退火KD),通过不断增加和更有效地提供丰富的信息,教师的软目标。我们的退火KD技术基于教师在迭代过程中在不同温度下生成的退火软目标上的逐渐过渡,因此,学生被训练以逐步的方式跟随退火教师输出。本文包括理论和经验证据以及实际实验来支持我们的退火KD方法的有效性。我们对不同的任务进行了一系列全面的实验,例如图像分类(CIFAR-10和100)和基于BERT模型的NLP语言推理,并在GLUE基准测试中获得了优异的结果。

英文摘要:

Significant memory and computational requirements of large deep neural networks restrict their application on edge devices. Knowledge distillation (KD) is a prominent model compression technique for deep neural networks in which the knowledge of a trained large teacher model is transferred to a smaller student model. The success of knowledge distillation is mainly attributed to its training objective function, which exploits the soft-target information (also known as "dark knowledge") besides the given regular hard labels in a training set. However, it is shown in the literature that the larger the gap between the teacher and the student networks, the more difficult is their training using knowledge distillation. To address this shortcoming, we propose an improved knowledge distillation method (called Annealing-KD) by feeding the rich information provided by the teacher's soft-targets incrementally and more efficiently. Our Annealing-KD technique is based on a gradual transition over annealed soft-targets generated by the teacher at different temperatures in an iterative process, and therefore, the student is trained to follow the annealed teacher output in a step-by-step manner. This paper includes theoretical and empirical evidence as well as practical experiments to support the effectiveness of our Annealing-KD method. We did a comprehensive set of experiments on different tasks such as image classification (CIFAR-10 and 100) and NLP language inference with BERT-based models on the GLUE benchmark and consistently got superior results.

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

↑