MeteoRA:面向大语言模型的多任务嵌入LoRA
MeteoRA: Multiple-tasks Embedded LoRA for Large Language Models
AI总结:
针对多LoRA适配器嵌入大语言模型时推理阶段任务自主感知切换难的问题,提出基于全模式MoE架构的MeteoRA框架及前向加速策略,性能与传统PEFT相当且复合任务表现更优。
摘要:
预训练+微调范式是大语言模型(LLM)部署到各类下游应用的基础。在该框架下,低秩适配(Low-Rank Adaptation, LoRA)凭借参数高效微调(PEFT)特性脱颖而出,催生了大量可复用的任务专属LoRA适配器。然而,该方法需要显式选择任务意图,给单个LLM嵌入多个现有LoRA适配器时的推理阶段自主任务感知与切换带来了挑战。本文提出MeteoRA(多任务嵌入LoRA),这是一种可扩展的高效框架,通过全模式混合专家(Mixture-of-Experts, MoE)架构将多个任务专属LoRA适配器复用到基础LLM中。该框架还包含新颖的MoE前向加速策略,以解决传统MoE实现的效率难题。我们使用LlaMA2-13B和LlaMA3-8B基础模型,通过MeteoRA搭载28个现有LoRA适配器进行评估,结果表明其性能与传统PEFT方法相当。此外,搭载MeteoRA的LLM在处理复合任务时表现更优,能在单次推理中有效解决10个连续问题,证明了该框架增强的适配器及时切换能力。
英文摘要:
The pretrain+fine-tune paradigm is foundational for deploying large language models (LLMs) across various downstream applications. Within this framework, Low-Rank Adaptation (LoRA) stands out for its parameter-efficient fine-tuning (PEFT), producing numerous reusable task-specific LoRA adapters. However, this approach requires explicit task intention selection, posing challenges for autonomous task sensing and switching during inference with multiple existing LoRA adapters embedded in a single LLM. In this work, we introduce MeteoRA (Multiple-tasks embedded LoRA), a scalable and efficient framework that reuses multiple task-specific LoRA adapters into the base LLM via a full-mode Mixture-of-Experts (MoE) architecture. This framework also includes novel MoE forward acceleration strategies to address the efficiency challenges of traditional MoE implementations. Our evaluation, using the LlaMA2-13B and LlaMA3-8B base models equipped with 28 existing LoRA adapters through MeteoRA, demonstrates equivalent performance with the traditional PEFT method. Moreover, the LLM equipped with MeteoRA achieves superior performance in handling composite tasks, effectively solving ten sequential problems in a single inference pass, thereby demonstrating the framework's enhanced capability for timely adapter switching.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。