Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Model merging with SVD to tie the Knots

About

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.

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

Related benchmarks

TaskDatasetResultRank
Image ClassificationSUN397, Cars, RESISC45, EuroSAT, SVHN, GTSRB, MNIST, DTD (test)
SUN39797.9
80
Continual LearningLarge Number of Tasks
Average Performance59.9
50
Continual LearningStandard CL Benchmark
Avg Final Acc0.682
50
Continual LearningSuperNI Benchmark
Average Score32.4
14
Continual LearningLarge Number of Tasks (test)
Backward Transfer (BWT)-14.1
13
Continual LearningSuperNI Standard CL Benchmark (test)
Average Performance73
13
Continual LearningSuperNI Large Number of Tasks (test)
Average Performance66.1
13
Showing 7 of 7 rows

Other info

Follow for update