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

LoRA Soups:合并LoRA以完成实际技能组合任务

LoRA Soups: Merging LoRAs for Practical Skill Composition Tasks

Princeton University(普林斯顿大学);Microsoft Research(微软研究院);Harvard University(哈佛大学)

Akshara Prabhakar, Yuanzhi Li, Karthik Narasimhan, Sham Kakade, Eran Malach, Samy Jelassi

AI总结:

针对难以获取目标任务训练数据但可分解为多技能的场景,研究合并不同LoRA模块实现技能组合,提出对单技能LoRA最优加权的串联(CAT)方法,其在数学文字题等任务上性能优于现有模型和数据合并技术,为组合任务提供高效解决方案。

摘要:

低秩适配(LoRA)是大语言模型(LLM)参数高效微调的流行技术。我们研究如何合并不同LoRA模块以实现技能组合——测试合并模型在目标任务上的性能,该任务涉及组合多个技能,每个技能来自单个LoRA。当难以获取目标任务的训练数据且目标任务可分解为多个技能时,这种设置较为有利。首先,我们确定了可在技能组合领域研究的实际用例,例如用代码解决复杂数学文字题、创建回答专有手册或领域专用语料库问题的机器人。我们的主要贡献是证明,对单独训练于不同技能的LoRA进行最优加权的LoRA串联(CAT)方法,优于现有的模型合并和数据合并技术;例如在数学文字题上,CAT分别比这些方法平均高出43%和12%。因此,本文主张将模型合并作为解决组合任务的高效方式,并强调CAT是一种简单、计算友好且有效的方法。据我们所知,这是首个证明在二元技能组合任务中模型合并优于数据混合的研究。代码和数据可在https://github.com/aksh555/LoRA-Soups获取。

英文摘要:

Low-Rank Adaptation (LoRA) is a popular technique for parameter-efficient fine-tuning of Large Language Models (LLMs). We study how different LoRA modules can be merged to achieve skill composition -- testing the performance of the merged model on a target task that involves combining multiple skills, each skill coming from a single LoRA. This setup is favorable when it is difficult to obtain training data for the target task and when it can be decomposed into multiple skills. First, we identify practically occurring use-cases that can be studied under the realm of skill composition, e.g. solving hard math-word problems with code, creating a bot to answer questions on proprietary manuals or about domain-specialized corpora. Our main contribution is to show that concatenation of LoRAs (CAT), which optimally weights LoRAs that were individually trained on different skills, outperforms existing model- and data- merging techniques; for instance on math-word problems, CAT beats these methods by an average of 43% and 12% respectively. Thus, this paper advocates model merging as an efficient way to solve compositional tasks and underscores CAT as a simple, compute-friendly and effective procedure. To our knowledge, this is the first work demonstrating the superiority of model merging over data mixing for binary skill composition tasks. Code and data are available at https://github.com/aksh555/LoRA-Soups

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

↑