Lifting the Curse of Capacity Gap in Distilling Language Models

Chen Zhang, Yang Yang, Jiahao Liu, Jingang Wang, Yunsen Xian +2 more
5/20/2023
cs.CLcs.LG

No official code found. Best implementation: GeneZC/MiniMoE (29 stars, Apache-2.0, last commit 2023-07-14).

Abstract

Pretrained language models (LMs) have shown compelling performance on various downstream tasks, but unfortunately they require a tremendous amount of inference compute. Knowledge distillation finds a path to compress LMs to small ones with a teacher-student paradigm. However, when the capacity gap between the teacher and the student is large, a curse of capacity gap appears, invoking a deficiency in distilling LMs. While a few studies have been carried out to fill the gap, the curse is not yet well tackled. In this paper, we aim at lifting the curse of capacity gap via enlarging the capacity of the student without notably increasing the inference compute. Largely motivated by sparse activation regime of mixture of experts (MoE), we propose a mixture of minimal experts (MiniMoE), which imposes extra parameters to the student but introduces almost no additional inference compute. Experimental results on GLUE and CoNLL demonstrate the curse of capacity gap is lifted by the magic of MiniMoE to a large extent. MiniMoE also achieves the state-of-the-art performance at small FLOPs compared with a range of competitive baselines. With a compression rate as much as $\sim$50$\times$, MiniMoE preserves $\sim$95\% GLUE score of the teacher.

View on arXivView PDF

Code Implementations(1)

GeneZC/MiniMoECommunity100%
Apache-2.0

Code for ACL 2023 paper titled "Lifting the Curse of Capacity Gap in Distilling Language Models"

292Shell, PythonMay 20, 20233 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhang2023lifting,
  title  = {Lifting the Curse of Capacity Gap in Distilling Language Models},
  author = {Chen Zhang and Yang Yang and Jiahao Liu and Jingang Wang and Yunsen Xian and Benyou Wang and Dawei Song},
  year   = {2023},
  eprint = {2305.12129},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.12129v1}
}

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/2305.12129.svg)](https://codeofpaper.com/paper/2305.12129)

Discussion