TL;DR
This paper argues that pretrained model weights are already near-optimal in a specific "core subspace" and that model merging should focus on adapting weights outside this core subspace to preserve generalization. They introduce a simple, effective method called Core Subspace Preservation (CSP) that achieves state-of-the-art results by projecting merged task vectors onto this orthogonal complement.
What Problem Does This Paper Address?
Fine-tuning large pretrained models for various downstream tasks is common, but managing many specialized models can be inefficient. Model merging aims to combine these specialized models into a single, unified model without costly retraining. Existing methods often focus on the "task vectors" (the difference between fine-tuned and pretrained weights), treating the pretrained weights as a static baseline. However, the authors observe that the inherent generalization capabilities of these pretrained weights are often overlooked. They question how much these pretrained weights are already optimized for downstream tasks and how to best preserve this generalization during merging.
Methods
The core of the paper's contribution lies in its analysis and the proposed method, Core Subspace Preservation (CSP).
- Core Subspace Analysis: The authors define a "core subspace" of the pretrained weights based on their dominant singular vectors (obtained via SVD). They hypothesize that pretrained weights are "near-optimal" within this core subspace for multi-task objectives. They provide theoretical and empirical evidence for this, showing that gradients tend to be orthogonal to this subspace and that the curvature is predominantly non-negative.
- Core Subspace Preservation (CSP): Based on the near-optimality finding, CSP is a training-free, plug-and-play module. It takes a merged task vector (obtained from existing merging methods like Task Arithmetic, LOT Merging, ISO, or TSV) and projects it onto the orthogonal complement of the pretrained model's core subspace. This effectively "discards" task-specific adaptations that would fall within the core subspace, preserving the pretrained generalization. The final merged model is then
W_csp = W_pre + λ * CSP(T*), whereT*is the merged task vector andλis a scalar coefficient.
Datasets
The paper evaluates its method on a variety of standard vision and vision-language datasets:
- Vision Tasks (Image Classification): SUN397, Stanford Cars, RESISC45, EuroSAT, SVHN, GTSRB, MNIST, DTD.
- Vision-Language Tasks (Captioning & VQA): COCO Caption, Flickr30k Caption, Textcaps, OKVQA, TextVQA, ScienceQA.
- Large Language Models (LLMs): The authors also test on LLM merging using Qwen3-0.6B and Qwen3-8B models, evaluating on ranking (ArguAna, HotpotQA) and embedding tasks (BIOSSES, Banking77).
Key Insights and Ideas
- Pretrained Weights are "Good Enough" in the Core: The most significant insight is that the dominant components of pretrained weights (the "core subspace") are already remarkably well-suited for a broad range of downstream tasks. They are nearly optimal in terms of first-order and second-order conditions for multi-task objectives.
- Task-Specific Adaptations Should Go Elsewhere: This near-optimality implies that attempts to modify weights within the core subspace during merging are likely to disrupt generalization rather than improve it. The key is to inject new task-specific knowledge into the orthogonal complement of this core subspace.
- Subspace-Aware Merging is Key: Existing merging methods often treat all parameter updates equally. CSP demonstrates that being aware of the pretrained model's internal structure (specifically, its core subspace) leads to more effective and robust merging.
- Simplicity is Powerful: CSP is a simple projection operation, adding minimal computational overhead, yet it consistently improves performance across various state-of-the-art merging techniques.
Key Results
- Consistent Improvements: CSP consistently improved the performance of baseline merging methods (Task Arithmetic, LOT Merging, ISO, TSV) across vision and vision-language tasks. For example, on ViT-B/32 for vision tasks, CSP boosted the average accuracy of TSV from 84.1 to 85.1.
- Robustness: CSP made merged models less sensitive to the merging coefficient
λ, leading to more stable performance across a wider range of values. - Scalability: The benefits of CSP were observed even when merging a larger number of tasks (up to 20), where task interference is more pronounced.
- LLM Merging: CSP also showed improvements in LLM merging, particularly on ranking and embedding tasks.
- Minimal Overhead: CSP adds negligible computational cost, primarily involving an SVD computation of the pretrained weights.
Limitations and Future Work
- Hyperparameter Sensitivity (Rank
r): The performance of CSP depends on selecting an appropriate rankrfor the core subspace. While the method is relatively robust, the optimalrcan vary across models, tasks, and merging settings. The paper suggests exploring more automated ways to select this rank. - Computational Cost of SVD: For extremely large models, computing the SVD can become computationally expensive.
- Misaligned Pretraining and Downstream Tasks: The benefits of preserving the core subspace might be reduced if the pretraining distribution is significantly misaligned with the downstream tasks.
- Future Work: The authors suggest exploring fine-grained control of model merging within different subspaces (singular-value, left-singular, right-singular) and investigating how to automatically determine the optimal rank
r. They also note that the asymmetry in task vector alignment withUvs.Vsubspaces could be further explored.
Summary updated