arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.09997cs.AIcs.CLcs.LG
收藏

LoraRetriever:面向真实混合任务的输入感知LoRA检索与组合

LoraRetriever: Input-Aware LoRA Retrieval and Composition for Mixed Tasks in the Wild

Zhejiang University(浙江大学);ByteDance Inc.(字节跳动公司);AIWaves Inc.(AIWaves公司)

Ziyu Zhao, Leilei Gan, Guoyin Wang, Wangchunshu Zhou, Hongxia Yang, Kun Kuang, Fei Wu

AI总结:

提出LoraRetriever框架,根据输入提示自适应检索并组合多个LoRA,通过识别检索、整合策略和高效批处理推理,有效应对真实场景中动态更新的LoRA池与多样化任务,持续优于基线。

摘要:

低秩微调(LoRA)为微调大型语言模型(LLM)提供了一种有效且高效的解决方案。LoRA的模块化即插即用特性使得能够集成多样化的特定领域LoRA,以增强LLM的能力。先前关于利用多个LoRA的研究要么专注于特定的孤立下游任务,要么在训练期间固定LoRA的选择。然而,在真实场景中,LLM会接收到涵盖不同任务的多样化提示,且候选LoRA池经常被动态更新。为了弥补这一差距,我们提出了LoraRetriever,这是一个根据输入提示自适应地检索并组合多个LoRA的“检索后组合”框架。LoraRetriever包含三个主要组件:首先,识别并检索与给定输入相关的LoRA;其次,制定有效整合所检索LoRA的策略;第三,开发高效的批处理推理以适应异构请求。实验结果表明,LoraRetriever持续优于基线,突显了其实用有效性和多功能性。

英文摘要:

Low-Rank Adaptation (LoRA) provides an effective yet efficient solution for fine-tuning large language models (LLM). The modular and plug-and-play nature of LoRA enables the integration of diverse domain-specific LoRAs to enhance the capabilities of LLMs. Previous research on exploiting multiple LoRAs either focuses on specific isolated downstream tasks or fixes the selection of LoRAs during training. However, in real-world scenarios, LLMs receive diverse prompts covering different tasks, and the pool of candidate LoRAs is often dynamically updated. To bridge this gap, we propose LoraRetriever, a retrieve-then-compose framework that adaptively retrieves and composes multiple LoRAs according to the input prompts. LoraRetriever contains three main components: firstly, identifying and retrieving LoRAs relevant to the given input; secondly, formulating strategies for effectively integrating the retrieved LoRAs; and thirdly, developing efficient batch inference to accommodate heterogeneous requests. Experimental results indicate that LoraRetriever consistently outperforms the baselines, highlighting its practical effectiveness and versatility.

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

↑