Abstract
Model merging offers a resource-efficient path to multi-tasking by combining specialized models. However, standard merging techniques often fail when applied to Low-Rank Adaptation (LoRA) modules due to significant parameter magnitude discrepancies. We introduce DO-Merging (Decouple and Orthogonalize), a data-free framework that addresses this performance degradation by separating parameter magnitudes from directions and minimizing task interference through layer-wise orthogonalization. Our approach achieves significant performance gains across vision, language, and multi-modal benchmarks with negligible computational overhead.
Introduction: The LoRA Merging Challenge
Model merging typically involves averaging the weights of specialized models to create a unified multi-task system. While effective for fully fine-tuned models, this approach performs poorly for LoRA modules. The authors identify a critical discrepancy: LoRA modules exhibit significantly higher parameter magnitude variance compared to full models.
As shown in the figure above, high-magnitude tasks tend to dominate the merged model, leading to a "performance dip" for tasks with smaller weight scales. There is a clear negative correlation between magnitude distribution variance and normalized average accuracy, suggesting that the "loudest" tasks drown out the others during standard averaging.
Methodology: DO-Merging
To mitigate these issues, the DO-Merging framework employs two primary stages designed to handle the geometric properties of LoRA weights without requiring original training data.
1. Decoupling Magnitude and Direction
Instead of treating weight matrices as monolithic blocks, DO-Merging decomposes them into Magnitude (scale) and Direction (orientation).
- Magnitude Merging: Magnitudes are extracted via column normalization and merged through simple averaging. This ensures the relative scale of each task is preserved.
- Directional Merging: Directions are merged independently. This prevents high-magnitude tasks from physically shifting the logical "direction" of quieter tasks, preserving the unique features of each specialized module.
2. Data-Free Orthogonalization
Task interference occurs when different LoRA modules compete for the same parameter space. DO-Merging introduces a data-free, layer-wise gradient descent to nudge the direction components of different modules toward orthogonality. By making task directions more perpendicular, the framework reduces interference. Crucially, this optimization is performed directly on the weight matrices, making it highly efficient for end-users.
Experimental Evaluation
The framework was validated across diverse architectures and tasks, including vision classification (ViT), medium language models (T5), and large-scale models (LLaMA-3, Qwen2-VL).
Key Results
- Vision Models: On ViT-B/32, DO-Merging reached 77.88% average accuracy, significantly surpassing Task Arithmetic (74.06%) and Ties-Merging (73.11%).
- Large Language Models: LLaMA-3-8B saw a ~2% performance improvement over baselines, whereas other popular methods showed negligible gains.
- Multi-modal Superiority: On Qwen2-VL, the method achieved 78.50% average accuracy, even outperforming individual fine-tuned models on specific benchmarks like MMStar.
Discussion and Conclusion
The core insight of this work is that the low-rank nature of LoRA induces extreme scale discrepancies that break standard weight-averaging assumptions. By decoupling these components and orthogonalizing task directions, DO-Merging preserves task logic regardless of intensity. Furthermore, the method is highly modular; its components can be integrated into existing merging methods like Ties-Merging or Breadcrumbs for an immediate performance boost. Future work aims to automate the selection of compatible LoRA modules to streamline the merging pipeline.
Summary updated