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

MiLoRA:面向大语言模型微调的高效低秩适配混合体

MiLoRA: Efficient Mixture of Low-Rank Adaptation for Large Language Models Fine-tuning

iFLYTEK Co., Ltd(科大讯飞股份有限公司);University of Pennsylvania(宾夕法尼亚大学);Lenovo Connect Co., Ltd(联想智联有限公司);Niuxin Network Technology Co., Ltd(牛信网络科技有限公司);East China Normal University(华东师范大学)

Jingfan Zhang, Yi Zhao, Dan Chen, Xing Tian, Huanran Zheng, Wei Zhu

AI总结:

本文提出 MiLoRA,通过将 LoRA 模块作为专家并复用提示感知的一次性路由结果,在保持参数预算和性能优势的同时显著降低多租户微调延迟。

摘要:

低秩适配(LoRA)及其混合专家(MOE)变体是非常有效的参数高效微调(PEFT)方法。然而,由于在 Transformer 层的多个线性模块中加入了 LoRA 模块和 MOE 路由器,它们在多租户场景下会带来显著的延迟。为解决这一问题,我们提出了低秩适配混合体(Mixture of Low-Rank Adaptation,MiLoRA),这是一种新颖且高效的 LoRA 变体。MiLoRA 不同于以往的 MOE 风格 LoRA 方法:它将每个 LoRA 模块视为一个专家,并采用提示感知路由机制。该机制在生成第一个新 token 之前计算一次专家路由结果,并在后续 token 中复用这些结果,从而降低延迟。在常识推理任务、数学推理任务以及广泛使用的 LLM 评估基准上进行的大量实验和分析表明,在可调参数预算相当的情况下,MiLoRA 始终优于强大的 PEFT 基线。此外,与以往基于 LoRA 的方法相比,MiLoRA 显著降低了多租户场景下的延迟。

英文摘要:

Low-rank adaptation (LoRA) and its mixture-of-experts (MOE) variants are highly effective parameter-efficient fine-tuning (PEFT) methods. However, they introduce significant latency in multi-tenant settings due to the LoRA modules and MOE routers added to multiple linear modules in the Transformer layer. To address this issue, we propose Mixture of Low-Rank Adaptation (MiLoRA), a novel and efficient LoRA variant. MiLoRA differs from previous MOE-style LoRA methods by considering each LoRA module as an expert and employing a prompt-aware routing mechanism. This mechanism calculates expert routing results once before generating the first new token and reuses these results for subsequent tokens, reducing latency. Extensive experiments and analysis on commonsense reasoning tasks, math reasoning tasks, and widely used LLM evaluation benchmarks demonstrate that MiLoRA consistently outperforms strong PEFT baselines with comparable tunable parameter budgets. Additionally, MiLoRA significantly reduces latency in multi-tenant settings compared to previous LoRA-based methods.

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

↑