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

微调预训练语言模型是否需要标签正则化?

Do we need Label Regularization to Fine-tune Pre-trained Language Models?

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

Ivan Kobyzev, Aref Jafari, Mehdi Rezagholizadeh, Tianda Li, Alan Do-Omri, Peng Lu, Pascal Poupart, Ali Ghodsi

AI总结:

本文通过 600 多次实验研究 BERT、RoBERTa 和 GPT 等预训练语言模型的微调,发现知识蒸馏等标签正则化技术对已预训练的学生模型并无明显增益,证明预训练本身已具备正则化作用。

摘要:

知识蒸馏(Knowledge Distillation, KD)是一种重要的神经模型压缩技术,它高度依赖教师网络的预测来指导学生模型的训练。考虑到预训练语言模型(PLMs)的规模不断扩大,KD 常被用于许多涉及 PLMs 的 NLP 任务中。然而,很明显,在 KD 中,训练期间部署教师网络会增加训练的内存和计算需求。在计算机视觉文献中,教师网络的必要性受到了审视,研究表明 KD 是一种标签正则化技术,可以用更轻量的无教师变体(如标签平滑技术)来替代。然而,据我们所知,这一问题尚未在 NLP 中得到研究。因此,本工作关注研究不同的标签正则化技术,以及我们是否真的需要它们来改进较小 PLM 网络在下游任务上的微调。为此,我们在 BERT、RoBERTa 和 GPT 等不同 PLM 上进行了全面的实验,包含 600 多次不同的试验,并对每种配置运行了五次。这项研究得出了一个令人惊讶的观察结果:当学生模型经过预训练时,KD 和其他标签正则化技术相对于常规微调并没有发挥任何有意义的作用。我们进一步在 NLP 和计算机视觉任务的不同设置中探索了这一现象,并证明预训练本身起到了一种正则化的作用,额外的标签正则化是不必要的。

英文摘要:

Knowledge Distillation (KD) is a prominent neural model compression technique that heavily relies on teacher network predictions to guide the training of a student model. Considering the ever-growing size of pre-trained language models (PLMs), KD is often adopted in many NLP tasks involving PLMs. However, it is evident that in KD, deploying the teacher network during training adds to the memory and computational requirements of training. In the computer vision literature, the necessity of the teacher network is put under scrutiny by showing that KD is a label regularization technique that can be replaced with lighter teacher-free variants such as the label-smoothing technique. However, to the best of our knowledge, this issue is not investigated in NLP. Therefore, this work concerns studying different label regularization techniques and whether we actually need them to improve the fine-tuning of smaller PLM networks on downstream tasks. In this regard, we did a comprehensive set of experiments on different PLMs such as BERT, RoBERTa, and GPT with more than 600 distinct trials and ran each configuration five times. This investigation led to a surprising observation that KD and other label regularization techniques do not play any meaningful role over regular fine-tuning when the student model is pre-trained. We further explore this phenomenon in different settings of NLP and computer vision tasks and demonstrate that pre-training itself acts as a kind of regularization, and additional label regularization is unnecessary.

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

↑