SORSA:大语言模型的奇异值与正交正则化奇异向量适配
SORSA: Singular Values and Orthonormal Regularized Singular Vectors Adaptation of Large Language Models
AI总结:
本文提出了一种新颖的参数高效微调方法SORSA,通过SVD分解权重并结合正交正则化器提升优化效率,实验证明其收敛速度与准确率均优于LoRA和PiSSA。
摘要:
在本文中,我们提出了奇异值与正交正则化奇异向量适配,即SORSA,一种新颖的参数高效微调(PEFT)方法。每个SORSA适配器由两个主要部分组成:可训练的主奇异权重 $W_p = U_p \ ext{diag}(S_p) V^\ op_p$,以及冻结的残差权重 $W_r = U_r \ ext{diag}(S_r) V^\ op_r$。这些部分通过对预训练权重执行奇异值分解(SVD)进行初始化。此外,我们实现并分析了一个正交正则化器,我们证明它可以降低 $W_p$ 的条件数,并使优化更高效。SORSA适配器可以在推理过程中合并,从而消除任何推理延迟。我们还引入了一种通过执行SVD来分析参数变化的方法,并讨论和分析了SORSA在最小化SVD方面改变上的优越性。最终,在我们的实验中,SORSA展示了比LoRA和PiSSA更快的收敛速度。在GSM-8K基准上,使用SORSA适配的Llama 2 7B达到了56.03%的准确率,超越了LoRA(42.30%)和Full FT(49.05%)。我们得出结论,SORSA为参数高效微调提供了一个新的视角,展现出卓越的性能。
英文摘要:
In this paper, we propose Singular Values and Orthonormal Regularized Singular Vectors Adaptation, or SORSA, a novel parameter efficient fine-tuning (PEFT) method. Each SORSA adapter consists of two main parts: trainable principal singular weights $W_p = U_p \text{diag}(S_p) V^\top_p$, and frozen residual weights $W_r = U_r \text{diag}(S_r) V^\top_r$. These parts are initialized by performing singular value decomposition (SVD) on pre-trained weights. Moreover, we implement and analyze an orthonormal regularizer, which we prove could decrease the condition number of $W_p$ and make the optimization more efficient. SORSA adapters could be merged during inference, thus eliminating any inference latency. We also introduce a method to analyze the variation of the parameters by performing SVD and discuss and analyze SORSA's superiority in minimizing the alteration in the SVD aspect. After all, SORSA shows a faster convergence than LoRA and PiSSA in our experiments. On the GSM-8K benchmark, Llama 2 7B adapted using SORSA achieved 56.03\% accuracy, surpassing LoRA (42.30\%) and Full FT (49.05\%). We conclude that SORSA offers a new perspective on parameter-efficient fine-tuning, demonstrating remarkable performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。