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

LoraHub:通过动态LoRA组合实现高效的跨任务泛化

LoraHub: Efficient Cross-Task Generalization via Dynamic LoRA Composition

Sea AI Lab(Sea AI实验室);Washington University in St. Louis(圣路易斯华盛顿大学);Allen Institute for AI(艾伦人工智能研究所)

Chengsong Huang, Qian Liu, Bill Yuchen Lin, Tianyu Pang, Chao Du, Min Lin

AI总结:

该研究提出LoraHub框架,通过动态组合不同任务上训练的LoRA模块实现跨任务泛化,无需额外参数与梯度,在少样本场景下实现了更优的性能-效率权衡,旨在构建协作式LoRA模块生态。

摘要:

低秩适配(LoRA)常被用于针对新任务微调大语言模型(LLM)。本文研究了用于跨任务泛化的LoRA可组合性,并提出了LoraHub——一个专为有目的地组装在各类给定任务上训练的LoRA模块而设计的简单框架,目标是在未见过的任务上取得适配性的性能。仅需来自新任务的少量示例,LoraHub就能灵活组合多个LoRA模块,无需人类专业知识与假设。值得注意的是,该组合过程既不需要额外的模型参数,也不需要梯度。在Big-Bench Hard基准上的实验结果表明,LoraHub虽然性能未超过上下文学习,但在少样本场景下,推理时每个示例使用的token数量大幅减少,实现了显著的性能-效率权衡。值得关注的是,当搭配不同的演示示例时,LoraHub相比上下文学习建立了更优的性能上限,展现出其未来发展潜力。我们的愿景是搭建一个LoRA模块平台,让用户能够分享自己训练的LoRA模块。这种协作方式有助于将LoRA模块无缝应用到新任务中,助力构建一个自适应的生态系统。我们的代码可在https://github.com/sail-sg/lorahub获取,所有预训练LoRA模块已在https://huggingface.co/lorahub发布。

英文摘要:

Low-rank adaptations (LoRA) are often employed to fine-tune large language models (LLMs) for new tasks. This paper investigates LoRA composability for cross-task generalization and introduces LoraHub, a simple framework devised for the purposive assembly of LoRA modules trained on diverse given tasks, with the objective of achieving adaptable performance on unseen tasks. With just a few examples from a new task, LoraHub can fluidly combine multiple LoRA modules, eliminating the need for human expertise and assumptions. Notably, the composition requires neither additional model parameters nor gradients. Empirical results on the Big-Bench Hard benchmark suggest that LoraHub, while not surpassing the performance of in-context learning, offers a notable performance-efficiency trade-off in few-shot scenarios by employing a significantly reduced number of tokens per example during inference. Notably, LoraHub establishes a better upper bound compared to in-context learning when paired with different demonstration examples, demonstrating its potential for future development. Our vision is to establish a platform for LoRA modules, empowering users to share their trained LoRA modules. This collaborative approach facilitates the seamless application of LoRA modules to novel tasks, contributing to an adaptive ecosystem. Our code is available at https://github.com/sail-sg/lorahub, and all the pre-trained LoRA modules are released at https://huggingface.co/lorahub.

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

↑