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

SSMLoRA:利用状态空间模型增强低秩适配

SSMLoRA: Enhancing Low-Rank Adaptation with State Space Model

Northeastern University(东北大学);LMU Munich(慕尼黑大学);Munich Center for Machine Learning(慕尼黑机器学习中心)

Jiayang Yu, Yihang Zhang, Bin Wang, Peiqin Lin, Yongkang Liu, Shi Feng

AI总结:

本文提出 SSMLoRA,通过引入状态空间模型互连低秩矩阵,在仅用 LoRA 一半参数的情况下于 GLUE 基准上取得相当性能,并展现出处理长序列任务的潜力。

摘要:

微调是使语言模型适应特定下游任务的关键方法,但随着模型规模增大,更新所有模型参数变得不切实际。参数高效微调(PEFT)方法,如低秩适配(LoRA),通过在预训练权重矩阵中引入额外的适配参数来应对这一挑战。然而,LoRA 在模型内不同插入位置上的性能表现不一,这凸显了因不必要的插入而可能导致的参数低效问题。为此,我们提出 SSMLoRA(State Space Model Low-Rank Adaptation,状态空间模型低秩适配),这是 LoRA 的一种扩展,它引入状态空间模型(SSM)来互连低秩矩阵。SSMLoRA 确保即使在更稀疏的插入情况下也能保持性能。SSMLoRA 使模型不仅能够将输入映射到低秩空间以实现更好的特征提取,还能利用来自先前低秩空间的计算结果。我们的方法在通用语言理解评估(GLUE)基准上取得了与 LoRA 相当的性能,而仅使用一半的参数。此外,由于其结构特点,SSMLoRA 在处理更长输入序列的任务中展现出潜力。您可以在以下地址找到我们的代码:https://github.com/yuhkalhic/SSMLoRA。

英文摘要:

Fine-tuning is a key approach for adapting language models to specific downstream tasks, but updating all model parameters becomes impractical as model sizes increase. Parameter-Efficient Fine-Tuning (PEFT) methods, such as Low-Rank Adaptation (LoRA), address this challenge by introducing additional adaptation parameters into pre-trained weight matrices. However, LoRA's performance varies across different insertion points within the model, highlighting potential parameter inefficiency due to unnecessary insertions. To this end, we propose SSMLoRA (State Space Model Low-Rank Adaptation), an extension of LoRA that incorporates a State Space Model (SSM) to interconnect low-rank matrices. SSMLoRA ensures that performance is maintained even with sparser insertions. SSMLoRA allows the model to not only map inputs to a low-rank space for better feature extraction but also leverage the computations from the previous low-rank space. Our method achieves comparable performance to LoRA on the General Language Understanding Evaluation (GLUE) benchmark while using only half the parameters. Additionally, due to its structure, SSMLoRA shows promise in handling tasks with longer input sequences. .You can find our code here:https://github.com/yuhkalhic/SSMLoRA.

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

↑