arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.19249cs.CLcs.LG
收藏

保留预训练特征有助于校准微调语言模型

Preserving Pre-trained Features Helps Calibrate Fine-tuned Language Models

Tsinghua University(清华大学);Pazhou Lab(琶洲实验室)

Guande He, Jianfei Chen, Jun Zhu

AI总结:

本文研究微调语言模型的校准问题,发现灾难性遗忘损害校准性,并提出通过辅助语言建模保留预训练特征的方法,在多个NLU任务上取得最低期望校准误差。

摘要:

大型预训练语言模型(PLMs)通过微调在自然语言理解(NLU)任务上展现了强大的性能。然而,微调后的模型仍然存在过度自信的预测问题,尤其是在分布外(out-of-domain)场景下。本文针对微调语言模型的校准问题展开研究。我们证明,PLMs 在掩码语言建模任务上具有良好的校准性,并且在领域偏移下具有稳健的预测置信度,但微调后的模型由于灾难性遗忘而无法保留这一特性,从而影响了下游分类任务的校准。基于这些观察,我们评估了多种保留预训练特征方法的校准效果,并表明保留预训练特征可以改善微调语言模型的校准性能。在这些方法中,我们提出的方法通过辅助语言建模目标鼓励微调模型学习生成式表示,在三个下游 NLU 任务的域内和分布外设置下,与多个强基线相比,取得了有竞争力的准确率和最低的期望校准误差。

英文摘要:

Large pre-trained language models (PLMs) have demonstrated strong performance on natural language understanding (NLU) tasks through fine-tuning. However, fine-tuned models still suffer from overconfident predictions, especially in out-of-domain settings. In this paper, we tackle the problem of calibrating fine-tuned language models. We demonstrate that the PLMs are well-calibrated on the masked language modeling task with robust predictive confidence under domain shift, yet the fine-tuned models fail to retain such property due to catastrophic forgetting, which impacts the calibration on the downstream classification task. In light of these observations, we evaluate the calibration of several methods that preserve pre-trained features and show that preserving pre-trained features can improve the calibration of fine-tuned language models. Among these methods, our proposed method that encourages the fine-tuned model to learn generative representations with auxiliary language modeling objective achieves competitive accuracy and the lowest expected calibration error compared to several strong baselines under both in-domain and out-of-domain settings on three downstream NLU tasks.

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

↑