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

通过梯度范数裁剪提高微调预训练语言模型的稳定性

Improving Stability of Fine-Tuning Pretrained Language Models via Component-Wise Gradient Norm Clipping

University of Chicago(芝加哥大学);University of Southern California(南加州大学)

Chenghao Yang, Xuezhe Ma

摘要:

对大型预训练语言模型(PLM)的微调已经建立了许多最先进的结果。尽管其性能优越,但这种微调可能是不稳定的,导致性能的显著差异和实际应用的潜在风险。以前的工作归因于这种不稳定性的灾难性遗忘问题,在PLM的顶层,这表明反复微调层自上而下的方式是一个有前途的解决方案。在本文中,我们首先指出,这种方法并不总是工作,由于不同的层/模块的收敛速度不同。受此启发,我们提出了一个简单的分量方向梯度范数裁剪方法来调整不同分量的收敛速度。实验结果表明,该方法在泛化性能、收敛速度和训练稳定性等方面都取得了一致的改善。代码库可以在https://github.com/yangalan123/FineTuningStability上找到。

英文摘要:

Fine-tuning over large pretrained language models (PLMs) has established many state-of-the-art results. Despite its superior performance, such fine-tuning can be unstable, resulting in significant variance in performance and potential risks for practical applications. Previous works have attributed such instability to the catastrophic forgetting problem in the top layers of PLMs, which indicates iteratively that fine-tuning layers in a top-down manner is a promising solution. In this paper, we first point out that this method does not always work out due to the different convergence speeds of different layers/modules. Inspired by this observation, we propose a simple component-wise gradient norm clipping method to adjust the convergence speed for different components. Experiment results demonstrate that our method achieves consistent improvements in terms of generalization performance, convergence speed, and training stability. The codebase can be found at https://github.com/yangalan123/FineTuningStability.

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

↑