Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Dynamic Knowledge Distillation for Pre-trained Language Models

About

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.

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

Related benchmarks

TaskDatasetResultRank
Natural Language UnderstandingSuperGLUE (dev)
Average Score65.4
91
Instruction FollowingAlpaca
Speedup (x)2.43
63
Question AnsweringNatural Questions (NQ)
Speedup1.98
8
Averaged Performance across five downstream tasksAverage Overall
Speedup2.2
8
Multi-turn dialogueMT-Bench (MTB)
Speedup Factor2.2
8
Mathematical ReasoningGSM8K
Speedup2.43
8
SummarizationCNN/DM
Speedup1.95
8
Showing 7 of 7 rows

Other info

Follow for update