Merging LoRAs like Playing LEGO: Pushing the Modularity of LoRA to Extremes Through Rank-Wise Clustering
Ziyu Zhao, Tao Shen, Didi Zhu, Zexi Li, Jing Su, Xuwu Wang, Kun Kuang,, Fei Wu

TL;DR
This paper introduces a novel modular approach to merging multiple LoRAs by disassembling them into minimal semantic units, enabling flexible, rank-wise clustering and assembly that improves performance in language model fine-tuning.
Contribution
It proposes the LoRA-LEGO framework that leverages rank-wise clustering of MSUs for more effective LoRA merging, enhancing modularity and performance.
Findings
Outperforms existing LoRA merging methods on benchmarks.
Demonstrates permutation invariance and concatenation-summation properties of MSUs.
Enables flexible assembly of LoRAs with adjusted ranks.
Abstract
Low-Rank Adaptation (LoRA) has emerged as a popular technique for fine-tuning large language models (LLMs) to various domains due to its modular design and widespread availability on platforms like Huggingface. This modularity has sparked interest in combining multiple LoRAs to enhance LLM capabilities. However, existing methods for LoRA composition primarily focus on task-specific adaptations that require additional training, and current model merging techniques often fail to fully leverage LoRA's modular nature, leading to parameter interference and performance degradation. In this paper, we investigate the feasibility of disassembling and reassembling multiple LoRAs at a finer granularity, analogous to assembling LEGO blocks. We introduce the concept of Minimal Semantic Units (MSUs), where the parameters corresponding to each rank in LoRA function as independent units. These MSUs…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsContext-Aware Activity Recognition Systems
MethodsFocus
