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

检索增强的LoRA专家混合用于可上传机器学习

Retrieval-Augmented Mixture of LoRA Experts for Uploadable Machine Learning

College of Computer Science and Technology, Zhejiang University(浙江大学计算机科学与技术学院);ByteDance Inc.(字节跳动公司)

Ziyu Zhao, Leilei Gan, Guoyin Wang, Yuwei Hu, Tao Shen, Hongxia Yang, Kun Kuang, Fei Wu

AI总结:

针对可上传机器学习中动态LoRA池和混合任务请求,提出检索增强的LoRA专家混合框架RAMoLE,通过自适应检索与组合多个LoRA,实现个性化服务并优于基线。

摘要:

低秩适配(LoRA)为大语言模型(LLMs)的高效微调提供了一种有效途径。其模块化和即插即用的特性允许集成各种领域特定的LoRA,从而增强LLM的能力。像Huggingface和Modelscope这样的开源平台引入了一种新的计算范式,即可上传机器学习(UML)。在UML中,贡献者使用分散的数据训练专门的适配器,然后将其上传到中央平台以改进LLM。该平台使用这些领域特定的适配器来处理需要个性化服务的混合任务请求。以往关于LoRA组合的研究要么专注于特定任务,要么在训练期间固定LoRA的选择。然而,在UML中,LoRA池会随着新上传而动态更新,这需要一种对未见过的LoRA具有泛化能力的选择机制。此外,下游请求的混合任务性质需要个性化服务。为了应对这些挑战,我们提出了检索增强的LoRA专家混合(RAMoLE),这是一个基于输入提示自适应检索并组合多个LoRA的框架。RAMoLE包含三个主要组件:LoraRetriever用于识别和检索相关的LoRA,一个动态的MoLE机制用于协调检索到的LoRA,以及用于处理异构请求的高效批量推理。实验结果表明,RAMoLE始终优于基线方法,突显了其有效性和可扩展性。

英文摘要:

Low-Rank Adaptation (LoRA) offers an efficient way to fine-tune large language models (LLMs). Its modular and plug-and-play nature allows the integration of various domain-specific LoRAs, enhancing LLM capabilities. Open-source platforms like Huggingface and Modelscope have introduced a new computational paradigm, Uploadable Machine Learning (UML). In UML, contributors use decentralized data to train specialized adapters, which are then uploaded to a central platform to improve LLMs. This platform uses these domain-specific adapters to handle mixed-task requests requiring personalized service. Previous research on LoRA composition either focuses on specific tasks or fixes the LoRA selection during training. However, in UML, the pool of LoRAs is dynamically updated with new uploads, requiring a generalizable selection mechanism for unseen LoRAs. Additionally, the mixed-task nature of downstream requests necessitates personalized services. To address these challenges, we propose Retrieval-Augmented Mixture of LoRA Experts (RAMoLE), a framework that adaptively retrieves and composes multiple LoRAs based on input prompts. RAMoLE has three main components: LoraRetriever for identifying and retrieving relevant LoRAs, an on-the-fly MoLE mechanism for coordinating the retrieved LoRAs, and efficient batch inference for handling heterogeneous requests. Experimental results show that RAMoLE consistently outperforms baselines, highlighting its effectiveness and scalability.

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

↑