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

面向大语言模型低秩适配的无导数优化

Derivative-Free Optimization for Low-Rank Adaptation in Large Language Models

School of Intelligence Science and Technology, Peking University(北京大学智能科学与技术学院);Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院);Key Laboratory of Machine Perceptron (MOE), Peking University(北京大学教育部机器感知重点实验室)

Feihu Jin, Yin Liu, Ying Tan

AI总结:

针对LoRA微调仍需梯度与反向传播的问题,本文在各自注意力层前置低秩模块,并用两种无导数优化方法交替优化,在少样本任务中显著提升性能、降低内存并加快收敛。

摘要:

LoRA等参数高效微调方法可通过调整一小部分参数,取得与模型微调相当的性能。然而,由于该过程需要在整个模型中计算梯度并执行反向传播,因此仍需大量计算资源。近期,许多研究致力于利用无导数优化方法来规避梯度计算,并在少样本设置中展现出更强的鲁棒性。本文将低秩模块前置到模型的每个自注意力层中,并采用两种无导数优化方法,交替优化每一层的这些低秩模块。在多种任务和语言模型上的大量结果表明,在少样本设置下,与现有基于梯度的参数高效微调和无导数优化方法相比,本文提出的方法取得了显著提升,并在内存使用和收敛速度方面表现出明显优势。

英文摘要:

Parameter-efficient tuning methods such as LoRA could achieve comparable performance to model tuning by tuning a small portion of the parameters. However, substantial computational resources are still required, as this process involves calculating gradients and performing back-propagation throughout the model. Much effort has recently been devoted to utilizing the derivative-free optimization method to eschew the computation of gradients and showcase an augmented level of robustness in few-shot settings. In this paper, we prepend the low-rank modules into each self-attention layer of the model and employ two derivative-free optimization methods to optimize these low-rank modules at each layer alternately. Extensive results on various tasks and language models demonstrate that our proposed method achieves substantial improvement and exhibits clear advantages in memory usage and convergence speed compared to existing gradient-based parameter-efficient tuning and derivative-free optimization methods in few-shot settings.

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

↑