消除语言模型蒸馏中的容量差距诅咒
Lifting the Curse of Capacity Gap in Distilling Language Models
AI总结:
本文针对语言模型蒸馏中因师生容量差距过大导致的性能缺陷问题,提出最小专家混合(MiniMoE)方法,通过引入稀疏激活机制在不增加推理计算的前提下扩大学生模型容量,有效消除了容量差距诅咒并实现了最先进的压缩性能。
摘要:
预训练语言模型(LMs)在各种下游任务中表现出色,但不幸的是,它们需要大量的推理计算。知识蒸馏找到了一条通过师生范式将LMs压缩为小模型的途径。然而,当教师和学生之间的容量差距很大时,就会出现容量差距诅咒,导致LMs蒸馏出现缺陷。虽然已经进行了一些研究来填补这一差距,但该诅咒尚未得到很好的解决。在本文中,我们旨在通过扩大学生的容量而不显著增加推理计算来消除容量差距诅咒。在很大程度上受到混合专家(MoE)的稀疏激活机制的启发,我们提出了一种最小专家混合(MiniMoE),它为学生引入了额外的参数,但几乎不增加推理计算。在GLUE和CoNLL上的实验结果表明,容量差距诅咒在很大程度上被MiniMoE的魔力所消除。与一系列具有竞争力的基线相比,MiniMoE在较小的FLOPs下也实现了最先进的性能。在高达约50倍的压缩率下,MiniMoE保留了教师约95%的GLUE分数。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。