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

MiniDisc:面向语言模型压缩的最小蒸馏调度方案

MiniDisc: Minimal Distillation Schedule for Language Model Compression

Beijing Institute of Technology(北京理工大学);Meituan NLP(美团自然语言处理);Meta AI

Chen Zhang, Yang Yang, Qifan Wang, Jiahao Liu, Jingang Wang, Wei Wu, Dawei Song

AI总结:

针对现有教师助理式语言模型蒸馏需多次试验选最优助理的低效问题,提出基于λ-权衡指标的MiniDistil方案,可在最少一次试验内选出最优教师助理,在GLUE基准上效率优于现有基线,且具备十亿级参数模型的可扩展性。

摘要:

近期研究发现,当教师模型与学生模型之间存在较大容量差距时,语言模型蒸馏的效果会下降,因此研究者引入了基于教师助理的蒸馏方法来弥合这一差距。作为知识传递的桥梁,教师助理的规模与性能对将教师模型的知识传递给学生模型至关重要。然而,现有的基于教师助理的方法需要进行最多数量的试验,才能调度出最优的教师助理。针对这一问题,我们提出了最小蒸馏调度方案(MiniDisc),可在最少一次试验内调度出最优教师助理。具体而言,受学生模型性能与教师助理的规模-性能权衡呈正相关这一发现的启发,MiniDisc设计了λ-权衡指标,无需对学生模型进行试验蒸馏即可衡量教师助理的最优性。随后,MiniDisc可在三明治框架中调度出具备最佳λ-权衡的最优教师助理。我们在GLUE基准上开展了大量实验对MiniDisc进行评估,实验结果表明,与多个当前最优基线方法相比,我们提出的MiniDisc效率有所提升。我们进一步将MiniDisc应用于具有数十亿参数的语言模型,验证了其可扩展性。

英文摘要:

Recent studies have uncovered that language model distillation is less effective when facing a large capacity gap between the teacher and the student, and introduced teacher assistant-based distillation to bridge the gap. As a connection, the scale and the performance of the teacher assistant is of vital importance to bring the knowledge from the teacher to the student. However, existing teacher assistant-based methods require maximally many trials before scheduling an optimal teacher assistant. To this end, we propose a minimal distillation schedule (MiniDisc) for scheduling the optimal teacher assistant in minimally one trial. In particular, motivated by the finding that the performance of the student is positively correlated to the scale-performance tradeoff of the teacher assistant, MiniDisc is designed with a $λ$-tradeoff to measure the optimality of the teacher assistant without trial distillation to the student. MiniDisc then can schedule the optimal teacher assistant with the best $λ$-tradeoff in a sandwich framework. MiniDisc is evaluated with an extensive set of experiments on GLUE. Experimental results demonstrate the improved efficiency our MiniDisc compared to several state-of-the-art baselines. We further apply MiniDisc to a language model with billions of parameters and show its scalability.

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

↑