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, Fei Wu
摘要
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 demonstrate permutation invariance and concatenation-summation equivalence properties, enabling flexible combinations to create new LoRAs. Building on these insights, we propose the LoRA-LEGO framework. This framework conducts rank-wise parameter clustering by grouping MSUs from different LoRAs into k clusters. The centroid of each cluster serves as a representative MSU, enabling the assembly of a merged LoRA with an adjusted rank of k. Additionally, we apply a dual reweighting strategy to optimize the scale of the merged LoRA. Experiments across various benchmarks demonstrate that our method outperforms existing approaches in LoRA merging.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 22 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- TIES-Merging: Resolving Interference When Merging Models 引用了 The Role of Permutation Invariance in Linear Mode Connectivity of Neural Networks
- TIES-Merging: Resolving Interference When Merging Models 引用了 Merging Models with Fisher-Weighted Averaging
- TIES-Merging: Resolving Interference When Merging Models 引用了 Git Re-Basin: Merging Models modulo Permutation Symmetries
- Merge before Forget: A Single LoRA Continual Learning via Continual Merging 引用了 TIES-Merging: Resolving Interference When Merging Models
- Permissioned LLMs: Enforcing Access Control in Large Language Models 引用了 TIES-Merging: Resolving Interference When Merging Models
- MINGLE: Mixture of Null-Space Gated Low-Rank Experts for Test-Time Continual Model Merging 引用了 TIES-Merging: Resolving Interference When Merging Models
- MINGLE: Mixture of Null-Space Gated Low-Rank Experts for Test-Time Continual Model Merging 引用了 The Role of Permutation Invariance in Linear Mode Connectivity of Neural Networks
- MINGLE: Mixture of Null-Space Gated Low-Rank Experts for Test-Time Continual Model Merging 引用了 AdaMerging: Adaptive Model Merging for Multi-Task Learning
- MINGLE: Mixture of Null-Space Gated Low-Rank Experts for Test-Time Continual Model Merging 引用了 Git Re-Basin: Merging Models modulo Permutation Symmetries
- AdaMerging: Adaptive Model Merging for Multi-Task Learning 引用了 Merging Models with Fisher-Weighted Averaging
- AdaMerging: Adaptive Model Merging for Multi-Task Learning 引用了 Git Re-Basin: Merging Models modulo Permutation Symmetries
- Git Re-Basin: Merging Models modulo Permutation Symmetries 引用了 The Role of Permutation Invariance in Linear Mode Connectivity of Neural Networks
- Git Re-Basin: Merging Models modulo Permutation Symmetries 引用了 Merging Models with Fisher-Weighted Averaging
引用它的顶会 Paper22
- Cartridges: Lightweight and general-purpose long context representations via self-studySabri Eyuboglu, Ryan Ehrlich, Simran Arora, Neel Guha 等ICLR 2026 · 74 次引用
- LoRA-Mixer: Coordinate Modular LoRA Experts Through Serial Attention RoutingWenbing Li, Zikai Song, Hang Zhou, Junqing Yu 等ICLR 2026 · 20 次引用
- MINGLE: Mixture of Null-Space Gated Low-Rank Experts for Test-Time Continual Model MergingZihuan Qiu, Yi Xu, Chiyuan He, Fanman Meng 等NeurIPS 2025 · 16 次引用
- Permissioned LLMs: Enforcing Access Control in Large Language ModelsBargav Jayaraman, Virendra J. Marathe, Hamid Mozaffari, William F. Shen 等NeurIPS 2025 · 13 次引用
- Merge before Forget: A Single LoRA Continual Learning via Continual MergingFuli Qiao, Mehrdad MahdaviICLR 2026 · 11 次引用
它引用的 Paper10
- TIES-Merging: Resolving Interference When Merging ModelsPrateek Yadav, Derek Tam, Leshem Choshen, Colin A. Raffel 等NeurIPS 2023 · 999 次引用
- Merging Models with Fisher-Weighted AveragingMichael Matena, Colin RaffelNeurIPS 2022 · 741 次引用
- The Role of Permutation Invariance in Linear Mode Connectivity of Neural NetworksRahim Entezari, Hanie Sedghi, Olga Saukh, Behnam NeyshaburICLR 2022 · 301 次引用
- AdaMerging: Adaptive Model Merging for Multi-Task LearningEnneng Yang, Zhenyi Wang, Li Shen, Shiwei Liu 等ICLR 2024 · 230 次引用
- Git Re-Basin: Merging Models modulo Permutation SymmetriesSamuel K. Ainsworth, Jonathan Hayase, Siddhartha S. SrinivasaICLR 2023 · 32 次引用
相关 Paper
- Each Rank Could be an Expert: Single-Ranked Mixture of Experts LoRA for Multi-task LearningZiyu Zhao, Yixiao Zhou, Xin Yu, Zhi Zhang 等KDD 2026 · 13 次引用
- Unraveling LoRA Interference: Orthogonal Subspaces for Robust Model MergingHaobo Zhang, Jiayu ZhouACL 2025
- LoraRetriever: Input-Aware LoRA Retrieval and Composition for Mixed Tasks in the WildZiyu Zhao, Leilei Gan, Guoyin Wang, Wangchunshu Zhou 等ACL Findings 2024 · 10 次引用
- When Gradient Boosting Meets Adapter: Exploring Weak Learners for Parameter-Efficient Fine-tuning of LLMsYifei Zhang, Hao Zhu, Haoran Shi, Junhao Dong 等KDD 2026
- MELoRA: Mini-Ensemble Low-Rank Adapters for Parameter-Efficient Fine-TuningPengjie Ren, Chengshun Shi, Shiguang Wu, Mengqi Zhang 等ACL 2024
