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

One Teacher is Enough? Pre-trained Language Model Distillation from Multiple Teachers

About

Pre-trained language models (PLMs) achieve great success in NLP. However, their huge model sizes hinder their applications in many practical systems. Knowledge distillation is a popular technique to compress PLMs, which learns a small student model from a large teacher PLM. However, the knowledge learned from a single teacher may be limited and even biased, resulting in low-quality student model. In this paper, we propose a multi-teacher knowledge distillation framework named MT-BERT for pre-trained language model compression, which can train high-quality student model from multiple teacher PLMs. In MT-BERT we design a multi-teacher co-finetuning method to jointly finetune multiple teacher PLMs in downstream tasks with shared pooling and prediction layers to align their output space for better collaborative teaching. In addition, we propose a multi-teacher hidden loss and a multi-teacher distillation loss to transfer the useful knowledge in both hidden states and soft labels from multiple teacher PLMs to the student model. Experiments on three benchmark datasets validate the effectiveness of MT-BERT in compressing PLMs.

Chuhan Wu, Fangzhao Wu, Yongfeng Huang• 2021

Related benchmarks

TaskDatasetResultRank
Natural Language UnderstandingSuperGLUE (dev)
Average Score59.1
91
Zero-shot Multiple Choice Question AnsweringNLP Common Sense Reasoning Suite (HS, WG, OBQA, ARC-E, ARC-C, PIQA, SIQA, Story) zero-shot
HellaSwag Accuracy (HS)43.7
45
Mathematical ReasoningMathematical Reasoning Evaluation Harness GSM8K, MATH, SVAMP, ASDiv, MAWPS, TAB, MQA, SAT (test)
GSM8K Accuracy3.3
28
Showing 3 of 3 rows

Other info

Follow for update