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

微调预训练模型的稳定性分析

A Stability Analysis of Fine-Tuning a Pre-Trained Model

University of Cambridge(剑桥大学);The Chinese University of Hong Kong(香港中文大学)

Zihao Fu, Anthony Man-Cho So, Nigel Collier

AI总结:

本文针对预训练模型微调不稳定的问题,建立全量微调和头部微调的稳定性界,并据此提出 MMR、MHLoss 和 SURT 三种策略,实验验证其稳定效果。

摘要:

微调预训练模型(例如 BERT、ALBERT、RoBERTa、T5、GPT 等)已被证明是近年来 NLP 研究中最有前景的范式之一。然而,许多近期工作表明,微调存在不稳定性问题,即在相同设置下调整同一模型会产生显著不同的性能。许多近期工作提出了不同方法来解决这一问题,但对于这些方法为何有效以及如何有效,仍缺乏理论理解。在本文中,我们提出了一种新颖的微调理论稳定性分析,聚焦于两种常用设置,即全量微调和头部微调(head tuning)。我们定义了每种设置下的稳定性,并证明了相应的稳定性界。这些理论界解释了若干现有方法为何以及如何能够稳定微调过程。除了能够解释大多数已观察到的经验发现之外,我们提出的理论分析框架还可以帮助设计有效且可证明的方法。基于我们的理论,我们提出了三种稳定微调过程的新颖策略,即 Maximal Margin Regularizer(MMR,最大间隔正则化器)、Multi-Head Loss(MHLoss,多头损失)和 Self Unsupervised Re-Training(SURT,自监督再训练)。我们在 11 个广泛使用的真实世界基准数据集以及数百个合成分类数据集上对所提出的方法进行了广泛评估。实验结果表明,我们提出的方法显著稳定了微调过程,并且也印证了我们的理论分析。

英文摘要:

Fine-tuning a pre-trained model (such as BERT, ALBERT, RoBERTa, T5, GPT, etc.) has proven to be one of the most promising paradigms in recent NLP research. However, numerous recent works indicate that fine-tuning suffers from the instability problem, i.e., tuning the same model under the same setting results in significantly different performance. Many recent works have proposed different methods to solve this problem, but there is no theoretical understanding of why and how these methods work. In this paper, we propose a novel theoretical stability analysis of fine-tuning that focuses on two commonly used settings, namely, full fine-tuning and head tuning. We define the stability under each setting and prove the corresponding stability bounds. The theoretical bounds explain why and how several existing methods can stabilize the fine-tuning procedure. In addition to being able to explain most of the observed empirical discoveries, our proposed theoretical analysis framework can also help in the design of effective and provable methods. Based on our theory, we propose three novel strategies to stabilize the fine-tuning procedure, namely, Maximal Margin Regularizer (MMR), Multi-Head Loss (MHLoss), and Self Unsupervised Re-Training (SURT). We extensively evaluate our proposed approaches on 11 widely used real-world benchmark datasets, as well as hundreds of synthetic classification datasets. The experiment results show that our proposed methods significantly stabilize the fine-tuning procedure and also corroborate our theoretical analysis.

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

↑