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

每个秩都可以是专家:面向多任务学习的单秩混合专家LoRA

Each Rank Could be an Expert: Single-Ranked Mixture of Experts LoRA for Multi-Task Learning

Zhejiang University(浙江大学);Shanghai Innovation Institute(上海创新研究院);ByteDance Inc.(字节跳动公司);Fudan University(复旦大学);The Chinese University of Hong Kong(香港中文大学)

Ziyu Zhao, Yixiao Zhou, Zhi Zhang, Didi Zhu, Tao Shen, Zexi Li, Jinluan Yang, Xuwu Wang, Jing Su, Kun Kuang, Zhongyu Wei, Fei Wu, Yu Cheng

AI总结:

本文提出SMoRA,将每个LoRA秩视为独立专家并动态激活,在统一框架下实现更细粒度知识共享,以更少参数在多任务中取得更优性能。

摘要:

低秩适配(LoRA)因其高效性和模块化特性,被广泛用于将大型语言模型(LLMs)适配到特定领域。然而,原始LoRA在多任务场景中难以应对任务冲突。近期研究采用混合专家(MoE)方法,将每个LoRA模块视为一个专家,从而通过多个专门的LoRA模块缓解任务干扰。尽管这些方法有效,但它们往往将知识隔离在单个任务内,未能充分利用相关任务间的共享知识。本文建立了单个LoRA与多LoRA MoE之间的联系,将它们整合到一个统一框架中。我们证明,多个LoRA的动态路由在功能上等价于单个LoRA内部的秩划分和块级激活。我们进一步通过实验证明,在相同的总参数和激活参数约束下,更细粒度的LoRA划分能在异构任务中带来更好的性能提升。基于这些发现,我们提出了单秩混合专家LoRA(SMoRA),通过将每个秩视为独立专家,将MoE嵌入LoRA中。借助动态的逐秩激活机制,SMoRA在缓解任务冲突的同时促进了更细粒度的知识共享。实验表明,SMoRA激活更少的参数,却在多任务场景中取得了更好的性能。

英文摘要:

Low-Rank Adaptation (LoRA) is widely used for adapting large language models (LLMs) to specific domains due to its efficiency and modularity. Meanwhile, vanilla LoRA struggles with task conflicts in multi-task scenarios. Recent works adopt Mixture of Experts (MoE) by treating each LoRA module as an expert, thereby mitigating task interference through multiple specialized LoRA modules. While effective, these methods often isolate knowledge within individual tasks, failing to fully exploit the shared knowledge across related tasks. In this paper, we establish a connection between single LoRA and multi-LoRA MoE, integrating them into a unified framework. We demonstrate that the dynamic routing of multiple LoRAs is functionally equivalent to rank partitioning and block-level activation within a single LoRA. We further empirically demonstrate that finer-grained LoRA partitioning, within the same total and activated parameter constraints, leads to better performance gains across heterogeneous tasks. Building on these findings, we propose Single-ranked Mixture of Experts LoRA (\textbf{SMoRA}), which embeds MoE into LoRA by \textit{treating each rank as an independent expert}. With a \textit{dynamic rank-wise activation} mechanism, SMoRA promotes finer-grained knowledge sharing while mitigating task conflicts. Experiments demonstrate that SMoRA activates fewer parameters yet achieves better performance in multi-task scenarios.

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

↑