arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.11909cs.LGcs.AI
收藏

低秩自适应中的子空间混合

Mixture-of-Subspaces in Low-Rank Adaptation

The University of Hong Kong(香港大学);Tencent AI Lab(腾讯AI实验室)

Taiqiang Wu, Jiahao Wang, Zhe Zhao, Ngai Wong

AI总结:

本文提出受子空间启发的MoSLoRA方法,通过联合学习混合器与原始LoRA权重以灵活融合等效分解的子空间,在多模态任务上始终优于LoRA。

摘要:

本文引入一种受子空间启发的低秩自适应(LoRA)方法,其计算高效、易于实现,且可直接应用于大语言、多模态和扩散模型。首先,我们将LoRA的权重等效分解为两个子空间,发现简单混合它们即可提升性能。为研究该现象,我们通过细粒度子空间视角重新审视,表明这种修改等效于采用固定混合器融合子空间。为提升灵活性,我们将混合器与原始LoRA权重联合学习,并称该方法为子空间混合LoRA(MoSLoRA)。在不同模态任务上,包括常识推理、视觉指令微调及主体驱动的文本到图像生成,MoSLoRA始终优于LoRA,证明了其有效性与鲁棒性。代码见 https://github.com/wutaiqiang/MoSLoRA。

英文摘要:

In this paper, we introduce a subspace-inspired Low-Rank Adaptation (LoRA) method, which is computationally efficient, easy to implement, and readily applicable to large language, multimodal, and diffusion models. Initially, we equivalently decompose the weights of LoRA into two subspaces, and find that simply mixing them can enhance performance. To study such a phenomenon, we revisit it through a fine-grained subspace lens, showing that such modification is equivalent to employing a fixed mixer to fuse the subspaces. To be more flexible, we jointly learn the mixer with the original LoRA weights, and term the method Mixture-of-Subspaces LoRA (MoSLoRA). MoSLoRA consistently outperforms LoRA on tasks in different modalities, including commonsense reasoning, visual instruction tuning, and subject-driven text-to-image generation, demonstrating its effectiveness and robustness. Codes are available at https://github.com/wutaiqiang/MoSLoRA.

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

↑