Lifting the Curse of Capacity Gap in Distilling Language Models
Zhang, Chen, Yang, Yang, Liu, Jiahao, Wang, Jingang, Xian, Yunsen, Wang, Benyou, Song, Dawei
–arXiv.org Artificial Intelligence
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.
arXiv.org Artificial Intelligence
May-20-2023
- Country:
- North America
- Dominican Republic (0.04)
- United States
- Texas (0.04)
- Washington > King County
- Seattle (0.14)
- Pennsylvania > Philadelphia County
- Philadelphia (0.04)
- New York > New York County
- New York City (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- Maryland
- Montgomery County > Gaithersburg (0.04)
- Baltimore (0.04)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- California > Los Angeles County
- Long Beach (0.04)
- Puerto Rico > San Juan
- San Juan (0.04)
- Canada
- Europe
- Asia
- South Korea > Seoul
- Seoul (0.04)
- Myanmar > Tanintharyi Region
- Dawei (0.04)
- China
- Beijing > Beijing (0.04)
- Hong Kong (0.04)
- Guangdong Province > Shenzhen (0.04)
- South Korea > Seoul
- North America
- Genre:
- Research Report (0.50)
- Industry:
- Education (0.93)
- Technology: