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

关于参数高效微调的有效性

On the Effectiveness of Parameter-Efficient Fine-Tuning

University of Cambridge(剑桥大学);The Chinese University of Hong Kong(香港中文大学);DAMO Academy, Alibaba Group(阿里巴巴集团达摩院)

Zihao Fu, Haoran Yang, Anthony Man-Cho So, Wai Lam, Lidong Bing, Nigel Collier

摘要:

微调预训练模型已被广泛证明在各种NLP任务中是有效的。然而,微调整个模型的参数效率低下,因为它总是为每个任务产生一个全新的模型。目前,许多研究工作建议只微调一小部分参数,同时保持大部分参数在不同任务之间共享。这些方法实现了令人惊讶的良好性能,并显示出比其相应的完全微调的同行更稳定。然而,这种方法仍然没有得到很好的理解。一些自然的问题出现了:参数稀疏性如何导致有希望的性能?为什么模型比完全微调的模型更稳定?如何选择可调参数?在本文中,我们首先将现有的方法分为随机方法,基于规则的方法,和基于投影的方法,根据他们如何选择哪些参数调整。然后,我们表明,所有的方法实际上是稀疏微调模型,并进行了新的理论分析。我们指出,稀疏性实际上是通过控制稳定性的上界对原始模型施加正则化。这种稳定性导致了更好的泛化能力,这在最近的许多研究工作中已经被经验地观察到。尽管我们的理论支持稀疏性的有效性,但如何选择可调参数仍然是一个悬而未决的问题。为了更好地选择可调参数,我们提出了一种新的二阶近似方法(SAM),它近似的解析可解的优化函数的原始问题。通过直接优化逼近函数来确定可调参数。实验结果表明,我们提出的SAM模型优于许多强基线模型,这也验证了我们的理论分析。

英文摘要:

Fine-tuning pre-trained models has been ubiquitously proven to be effective in a wide range of NLP tasks. However, fine-tuning the whole model is parameter inefficient as it always yields an entirely new model for each task. Currently, many research works propose to only fine-tune a small portion of the parameters while keeping most of the parameters shared across different tasks. These methods achieve surprisingly good performance and are shown to be more stable than their corresponding fully fine-tuned counterparts. However, such kind of methods is still not well understood. Some natural questions arise: How does the parameter sparsity lead to promising performance? Why is the model more stable than the fully fine-tuned models? How to choose the tunable parameters? In this paper, we first categorize the existing methods into random approaches, rule-based approaches, and projection-based approaches based on how they choose which parameters to tune. Then, we show that all of the methods are actually sparse fine-tuned models and conduct a novel theoretical analysis of them. We indicate that the sparsity is actually imposing a regularization on the original model by controlling the upper bound of the stability. Such stability leads to better generalization capability which has been empirically observed in a lot of recent research works. Despite the effectiveness of sparsity grounded by our theory, it still remains an open problem of how to choose the tunable parameters. To better choose the tunable parameters, we propose a novel Second-order Approximation Method (SAM) which approximates the original problem with an analytically solvable optimization function. The tunable parameters are determined by directly optimizing the approximation function. The experimental results show that our proposed SAM model outperforms many strong baseline models and it also verifies our theoretical analysis.

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

↑