arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.10164cs.CL
收藏

RAIL-KD:面向知识蒸馏的随机中间层映射

RAIL-KD: RAndom Intermediate Layer Mapping for Knowledge Distillation

Huawei Noah’s Ark Lab(华为诺亚方舟实验室);Université de Montréal(蒙特利尔大学);University of Waterloo(滑铁卢大学)

Md Akmal Haidar, Nithin Anchuri, Mehdi Rezagholizadeh, Abbas Ghaddar, Philippe Langlais, Pascal Poupart

摘要:

中间层知识蒸馏(KD)可以改进标准KD技术(其仅针对教师和学生模型的输出),特别是在大型预训练的语言模型上。然而,中间层蒸馏遭受建立适当的层映射所需的过度计算负担和工程努力。为了解决这些问题,我们提出了一个随机的中间层知识蒸馏(RAIL-KD)的方法,从教师模型的中间层被随机选择蒸馏到学生模型的中间层。这种随机化选择使得在训练过程中考虑了所有教师层,同时减少了中间层蒸馏的计算成本。此外,我们表明,它作为一个正则化提高学生模型的泛化能力。我们进行了广泛的实验,以及在域外的测试集上的GLUE任务。我们表明,我们提出的RAIL-KD方法在性能和训练时间方面都大大优于其他最先进的中间层KD方法。

英文摘要:

Intermediate layer knowledge distillation (KD) can improve the standard KD technique (which only targets the output of teacher and student models) especially over large pre-trained language models. However, intermediate layer distillation suffers from excessive computational burdens and engineering efforts required for setting up a proper layer mapping. To address these problems, we propose a RAndom Intermediate Layer Knowledge Distillation (RAIL-KD) approach in which, intermediate layers from the teacher model are selected randomly to be distilled into the intermediate layers of the student model. This randomized selection enforce that: all teacher layers are taken into account in the training process, while reducing the computational cost of intermediate layer distillation. Also, we show that it act as a regularizer for improving the generalizability of the student model. We perform extensive experiments on GLUE tasks as well as on out-of-domain test sets. We show that our proposed RAIL-KD approach outperforms other state-of-the-art intermediate layer KD methods considerably in both performance and training-time.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑