Decouple and Orthogonalize: A Data-Free Framework for LoRA Merging
Shenghe Zheng, Hongzhi Wang, Chenyu Huang, Xiaohui Wang, Tao Chen, Jiayuan Fan, Shuyue Hu, Peng Ye
TL;DR
This paper tackles LoRA-specific model merging by identifying magnitude distribution variance as the root cause of degradation when applying full-finetuning merging techniques to LoRA. It introduces DO-Merging, a decoupled approach that separates magnitude and direction and pairs it with data-free, layer-wise orthogonalization to minimize task interference. The authors provide theoretical guarantees for both the decoupled and orthogonal components and validate the method across vision, language, and multi-modal tasks, demonstrating consistent, near-free gains with broad compatibility. The work suggests a practical, data-free pathway to robust multi-task merging, with potential for integration alongside existing merging strategies and extensions to full-finetune scenarios.
Abstract
With more open-source models available for diverse tasks, model merging has gained attention by combining models into one, reducing training, storage, and inference costs. Current research mainly focuses on model merging for full fine-tuning, overlooking the popular LoRA. However, our empirical analysis reveals that: a) existing merging methods designed for full fine-tuning perform poorly on LoRA; b) LoRA modules show much larger parameter magnitude variance than full fine-tuned weights; c) greater parameter magnitude variance correlates with worse merging performance. Considering that large magnitude variances cause deviations in the distribution of the merged parameters, resulting in information loss and performance degradation, we propose a Decoupled and Orthogonal merging approach(DO-Merging). By separating parameters into magnitude and direction components and merging them independently, we reduce the impact of magnitude differences on the directional alignment of the merged models, thereby preserving task information. Furthermore, we introduce a data-free, layer-wise gradient descent method with orthogonal constraints to mitigate interference during the merging of direction components. We provide theoretical guarantees for both the decoupling and orthogonal components. And we validate through extensive experiments across vision, language, and multi-modal domains that our proposed DO-Merging can achieve significantly higher performance than existing merging methods at a minimal cost. Notably, each component can be flexibly integrated with existing methods, offering near free-lunch improvements across tasks.
