Abstract
Model merging enables the combination of multiple specialized models into a single multi-task system without additional training. While effective for Full-Rank Fine-Tuning (FFT), this approach typically fails when applied to Low-Rank Adaptation (LoRA) weights due to functional misalignment between task-specific subspaces. We introduce KnOTS (Knowledge Orientation Through SVD), a data-free method that utilizes Singular Value Decomposition to align disparate LoRA updates into a shared representation space. Our experiments demonstrate that KnOTS enhances merging performance by up to 4.3% across vision and language benchmarks, effectively bridging the alignment gap between LoRA and FFT.
Introduction
Model merging serves as a critical technique for "recycling" specialized AI models. By mathematically blending the weights of multiple models fine-tuned from a common base (e.g., CLIP or Llama), researchers can create a "super-model" capable of handling diverse tasks simultaneously. However, a significant performance discrepancy exists between Full-Rank Fine-Tuning (FFT) and Low-Rank Adaptation (LoRA) during the merging process.
The primary obstacle is misalignment. In FFT, weight updates are high-rank and tend to process information through similar functional pathways across tasks. Conversely, LoRA constrains updates to a narrow, low-rank subspace. Because each task independently selects a different "slice" of the weight space, the resulting models become functionally misaligned—extracting unrelated features from identical inputs. Merging these misaligned updates leads to catastrophic interference and degraded performance.
Methods: Knowledge Orientation Through SVD (KnOTS)
KnOTS is a gradient-free and data-free approach designed to project LoRA updates into a shared basis before merging. The process involves four primary stages:
- Concatenation: For a given layer, weight updates ($\Delta W$) from $n$ specialized models are concatenated column-wise into a single aggregate matrix.
- SVD Decomposition: Singular Value Decomposition is applied to the concatenated matrix: $SVD([\Delta W^{(1)}; ...; \Delta W^{(n)}]) = U\Sigma V^T$. Here, $U$ serves as an orthonormal basis for a shared representation space, $\Sigma$ represents the scale of these basis vectors, and $V^T$ contains task-specific components aligned to the common $U$.
- Merging in Aligned Space: Standard merging algorithms (e.g., Task Arithmetic, TIES, or DARE) are applied to the aligned $V^T$ matrices rather than the original $\Delta W$ updates.
- Reconstruction: The merged task vector is reconstructed by multiplying the merged $V$ component back with the shared $U$ and $\Sigma$, then added to the pretrained base model.
Experimental Setup
The efficacy of KnOTS was evaluated across vision and language domains:
- Vision: Eight classification datasets (Cars, DTD, EuroSAT, GTSRB, MNIST, RESISC45, SUN397, and SVHN) using ViT-B/32 and ViT-L/14.
- NLP: Six Natural Language Inference (NLI) datasets (e.g., SNLI, MNLI, QNLI) using the Llama3-8B model.
- Joint-Task Benchmark: A rigorous evaluation where the merged model classifies images across a unified set of 748 labels from all eight vision tasks without prior task identification.
Key Insights and Results
The Alignment Gap
Using Centered Kernel Alignment (CKA), we confirmed that standard LoRA models exhibit significantly lower feature alignment compared to FFT models. KnOTS effectively closes this gap, ensuring that LoRA updates interact with input data in a manner consistent with high-rank fine-tuning.
Performance and Scalability
- Accuracy Gains: KnOTS-TIES achieved a 4.3% improvement in average normalized accuracy for LoRA merging on vision tasks compared to the standard TIES baseline.
- LLM Performance: On Llama3-8B, KnOTS improved NLI merging results by 2.9%, demonstrating scalability to large-scale language models.
- Rank Robustness: The method consistently outperformed baselines across various LoRA ranks, from $r=4$ to full-rank ($r=768$).
- Generalization: In the "Joint-Task" setting, KnOTS-TIES outperformed standard model ensembles, which often struggle with over-confidence on out-of-distribution data.
Conclusion and Future Work
KnOTS provides a robust, data-free solution for the misalignment problem in LoRA merging. By aligning task vectors through a shared SVD basis, it enables the creation of more general and capable multi-task models. Future research should address the limitations of current merging techniques, such as the reliance on a shared pretrained initialization, and extend unified benchmarks to more complex LLM scenarios.
Summary updated