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
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 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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
22 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- TIES-Merging: Resolving Interference When Merging Models cites The Role of Permutation Invariance in Linear Mode Connectivity of Neural Networks
- TIES-Merging: Resolving Interference When Merging Models cites Merging Models with Fisher-Weighted Averaging
- TIES-Merging: Resolving Interference When Merging Models cites Git Re-Basin: Merging Models modulo Permutation Symmetries
- Merge before Forget: A Single LoRA Continual Learning via Continual Merging cites TIES-Merging: Resolving Interference When Merging Models
- Permissioned LLMs: Enforcing Access Control in Large Language Models cites TIES-Merging: Resolving Interference When Merging Models
- MINGLE: Mixture of Null-Space Gated Low-Rank Experts for Test-Time Continual Model Merging cites TIES-Merging: Resolving Interference When Merging Models
- MINGLE: Mixture of Null-Space Gated Low-Rank Experts for Test-Time Continual Model Merging cites 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 cites AdaMerging: Adaptive Model Merging for Multi-Task Learning
- MINGLE: Mixture of Null-Space Gated Low-Rank Experts for Test-Time Continual Model Merging cites Git Re-Basin: Merging Models modulo Permutation Symmetries
- AdaMerging: Adaptive Model Merging for Multi-Task Learning cites Merging Models with Fisher-Weighted Averaging
- AdaMerging: Adaptive Model Merging for Multi-Task Learning cites Git Re-Basin: Merging Models modulo Permutation Symmetries
- Git Re-Basin: Merging Models modulo Permutation Symmetries cites The Role of Permutation Invariance in Linear Mode Connectivity of Neural Networks
- Git Re-Basin: Merging Models modulo Permutation Symmetries cites Merging Models with Fisher-Weighted Averaging
Cited by top-tier papers22
- Cartridges: Lightweight and general-purpose long context representations via self-studySabri Eyuboglu, Ryan Ehrlich, Simran Arora, Neel Guha et al.ICLR 2026 · 74 citations
- LoRA-Mixer: Coordinate Modular LoRA Experts Through Serial Attention RoutingWenbing Li, Zikai Song, Hang Zhou, Junqing Yu et al.ICLR 2026 · 20 citations
- MINGLE: Mixture of Null-Space Gated Low-Rank Experts for Test-Time Continual Model MergingZihuan Qiu, Yi Xu, Chiyuan He, Fanman Meng et al.NeurIPS 2025 · 16 citations
- Permissioned LLMs: Enforcing Access Control in Large Language ModelsBargav Jayaraman, Virendra J. Marathe, Hamid Mozaffari, William F. Shen et al.NeurIPS 2025 · 13 citations
- Merge before Forget: A Single LoRA Continual Learning via Continual MergingFuli Qiao, Mehrdad MahdaviICLR 2026 · 11 citations
Builds on10
- TIES-Merging: Resolving Interference When Merging ModelsPrateek Yadav, Derek Tam, Leshem Choshen, Colin A. Raffel et al.NeurIPS 2023 · 999 citations
- Merging Models with Fisher-Weighted AveragingMichael Matena, Colin RaffelNeurIPS 2022 · 741 citations
- The Role of Permutation Invariance in Linear Mode Connectivity of Neural NetworksRahim Entezari, Hanie Sedghi, Olga Saukh, Behnam NeyshaburICLR 2022 · 301 citations
- AdaMerging: Adaptive Model Merging for Multi-Task LearningEnneng Yang, Zhenyi Wang, Li Shen, Shiwei Liu et al.ICLR 2024 · 230 citations
- Git Re-Basin: Merging Models modulo Permutation SymmetriesSamuel K. Ainsworth, Jonathan Hayase, Siddhartha S. SrinivasaICLR 2023 · 32 citations
Related papers
- Each Rank Could be an Expert: Single-Ranked Mixture of Experts LoRA for Multi-task LearningZiyu Zhao, Yixiao Zhou, Xin Yu, Zhi Zhang et al.KDD 2026 · 13 citations
- 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 et al.ACL Findings 2024 · 10 citations
- When Gradient Boosting Meets Adapter: Exploring Weak Learners for Parameter-Efficient Fine-tuning of LLMsYifei Zhang, Hao Zhu, Haoran Shi, Junhao Dong et al.KDD 2026
- MELoRA: Mini-Ensemble Low-Rank Adapters for Parameter-Efficient Fine-TuningPengjie Ren, Chengshun Shi, Shiguang Wu, Mengqi Zhang et al.ACL 2024
