arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.19735cs.CV
收藏

使用 SVD 进行模型合并以解开 Knots

Model merging with SVD to tie the Knots

Georgia Tech(佐治亚理工学院);IBM Research(IBM研究院);MIT(麻省理工学院)

George Stoica, Pratik Ramesh, Boglarka Ecsedi, Leshem Choshen, Judy Hoffman

AI总结:

针对 LoRA 微调模型权重对齐不足导致合并效果差的问题,提出 KnOTS,利用 SVD 联合对齐权重后再合并,并引入通用模型评估基准,最高提升 4.3%。

摘要:

近期的模型合并方法表明,针对不同任务进行全量微调的模型,其参数可以在无需重新训练的情况下组合成一个能够解决所有任务的模型。然而,在合并 LoRA 微调模型时,这一成功并不能很好地迁移。我们研究了这一现象,并观察到 LoRA 微调模型的权重与其全量微调对应模型相比表现出较低的对齐程度。我们假设提升这种对齐是获得更好 LoRA 模型合并的关键,并提出 KnOTS 来解决该问题。KnOTS 使用 SVD 将不同 LoRA 模型的权重联合变换到一个对齐空间中,在该空间中可以应用现有的合并方法。此外,我们引入了一个新的基准,明确评估合并后的模型是否为通用模型。值得注意的是,在包括我们新设置在内的多个视觉和语言基准上,KnOTS 持续将 LoRA 合并效果提升最高达 4.3%。我们在 https://github.com/gstoica27/KnOTS 发布代码。

英文摘要:

Recent model merging methods demonstrate that the parameters of fully-finetuned models specializing in distinct tasks can be combined into one model capable of solving all tasks without retraining. Yet, this success does not transfer well when merging LoRA finetuned models. We study this phenomenon and observe that the weights of LoRA finetuned models showcase a lower degree of alignment compared to their fully-finetuned counterparts. We hypothesize that improving this alignment is key to obtaining better LoRA model merges, and propose KnOTS to address this problem. KnOTS uses the SVD to jointly transform the weights of different LoRA models into an aligned space, where existing merging methods can be applied. In addition, we introduce a new benchmark that explicitly evaluates whether merged models are general models. Notably, KnOTS consistently improves LoRA merging by up to 4.3% across several vision and language benchmarks, including our new setting. We release our code at: https://github.com/gstoica27/KnOTS.

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

↑