再论压缩语言模型的中间层蒸馏:过拟合观点
Revisiting Intermediate Layer Distillation for Compressing Language Models: An Overfitting Perspective
摘要:
知识蒸馏(KD)是一种非常有前途的方法,用于减轻预训练语言模型(PLM)的计算问题。在各种KD方法中,中间层蒸馏(ILD)已成为NLP领域的事实标准KD方法。在本文中,我们发现现有的ILD方法容易过拟合训练数据集,尽管这些方法比原始KD传递更多的信息。接下来,我们提出了一些简单的观察来减轻ILD的过拟合:只提取最后一个Transformer层,并在补充任务上进行ILD。基于我们的两个发现,我们提出了一个简单而有效的一致性正则化ILD(CR-ILD),它可以防止学生模型过度拟合训练数据集。在GLUE基准数据集和多个合成数据集上提取BERT的大量实验表明,我们提出的ILD方法优于其他KD技术。我们的代码可在https://github.com/jongwooko/CR-ILD上获得。
英文摘要:
Knowledge distillation (KD) is a highly promising method for mitigating the computational problems of pre-trained language models (PLMs). Among various KD approaches, Intermediate Layer Distillation (ILD) has been a de facto standard KD method with its performance efficacy in the NLP field. In this paper, we find that existing ILD methods are prone to overfitting to training datasets, although these methods transfer more information than the original KD. Next, we present the simple observations to mitigate the overfitting of ILD: distilling only the last Transformer layer and conducting ILD on supplementary tasks. Based on our two findings, we propose a simple yet effective consistency-regularized ILD (CR-ILD), which prevents the student model from overfitting the training dataset. Substantial experiments on distilling BERT on the GLUE benchmark and several synthetic datasets demonstrate that our proposed ILD method outperforms other KD techniques. Our code is available at https://github.com/jongwooko/CR-ILD.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。