BERT Learns to Teach: Knowledge Distillation with Meta Learning

Wangchunshu Zhou, Canwen Xu, Julian McAuley
6/8/2021
cs.LGcs.AIcs.CL
distillation

Official code: JetRunner/MetaDistil (87 stars, Python, MIT, last commit 2022-08-04).

Abstract

We present Knowledge Distillation with Meta Learning (MetaDistil), a simple yet effective alternative to traditional knowledge distillation (KD) methods where the teacher model is fixed during training. We show the teacher network can learn to better transfer knowledge to the student network (i.e., learning to teach) with the feedback from the performance of the distilled student network in a meta learning framework.

Show full abstract

Moreover, we introduce a pilot update mechanism to improve the alignment between the inner-learner and meta-learner in meta learning algorithms that focus on an improved inner-learner. Experiments on various benchmarks show that MetaDistil can yield significant improvements compared with traditional KD algorithms and is less sensitive to the choice of different student capacity and hyperparameters, facilitating the use of KD on different tasks and models.

View on arXivView PDF

Code Implementations(1)

MIT

Code for ACL 2022 paper "BERT Learns to Teach: Knowledge Distillation with Meta Learning".

8717Python, ShellJun 6, 20214 years agoMIT
knowledge-distillationtransfer-learning

Similar Papers

Cite this paper

@article{zhou2021bert,
  title  = {BERT Learns to Teach: Knowledge Distillation with Meta Learning},
  author = {Wangchunshu Zhou and Canwen Xu and Julian McAuley},
  year   = {2021},
  eprint = {2106.04570},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.04570}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.04570.svg)](https://codeofpaper.com/paper/2106.04570)

Discussion