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

预训练语言模型的动态知识蒸馏

Dynamic Knowledge Distillation for Pre-trained Language Models

Peking University(北京大学);Tencent Inc.(腾讯公司)

Lei Li, Yankai Lin, Shuhuai Ren, Peng Li, Jie Zhou, Xu Sun

摘要:

知识蒸馏KD被证明是压缩大规模预训练语言模型的有效方法。然而,现有方法静态地进行KD,例如,学生模型将其输出分布与预定义训练数据集上的所选教师模型的输出分布对齐。在本文中,我们探讨是否有一个动态的知识蒸馏,使学生能够调整学习过程,根据其能力,考虑到学生的表现和学习效率。本文从教师模型的采用、数据的选择和知识库目标的适应三个方面探讨了知识库的动态调整。实验结果表明:(1)教师模型的合理选择可以提高学生模型的性能;(2)使用10%信息量的实例进行KD可以获得相当的性能,同时大大加快了训练速度;(3)通过调整不同对齐目标的监督贡献,可以提高学生模型的性能。我们发现动态知识蒸馏是有前途的,并提供讨论更有效的KD方法的潜在的未来方向。我们的代码可在https://github.com/lancopku/DynamicKD上获得。

英文摘要:

Knowledge distillation~(KD) has been proved effective for compressing large-scale pre-trained language models. However, existing methods conduct KD statically, e.g., the student model aligns its output distribution to that of a selected teacher model on the pre-defined training dataset. In this paper, we explore whether a dynamic knowledge distillation that empowers the student to adjust the learning procedure according to its competency, regarding the student performance and learning efficiency. We explore the dynamical adjustments on three aspects: teacher model adoption, data selection, and KD objective adaptation. Experimental results show that (1) proper selection of teacher model can boost the performance of student model; (2) conducting KD with 10% informative instances achieves comparable performance while greatly accelerates the training; (3) the student performance can be boosted by adjusting the supervision contribution of different alignment objective. We find dynamic knowledge distillation is promising and provide discussions on potential future directions towards more efficient KD methods. Our code is available at https://github.com/lancopku/DynamicKD.

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

↑