TL;DR
Most model merging techniques restrict themselves to a narrow "task-vector subspace" by only tuning the coefficients of a linear combination of task-specific updates. This paper reveals that this restriction acts as an unnecessary bottleneck; by using the same auxiliary data to directly optimize model weights—effectively "leaving the subspace"—researchers can achieve significant performance boosts across a wide range of vision and language tasks.
What Problem Does This Paper Address?
Model merging is a popular, "cheap" way to create multi-task models without full retraining. The standard recipe, often called Task Arithmetic, involves taking a pre-trained model and adding a linear combination of "task vectors" (the difference between a fine-tuned model and the pre-trained base).
To make this work well, researchers typically use a small "auxiliary" dataset to find the best coefficients ($\lambda$) for these vectors. However, the authors of this paper identify a hidden constraint: by only searching for coefficients, you are implicitly regularizing the model to stay within a specific linear subspace. This paper asks a fundamental question: Is this implicit regularization actually helping, or is it preventing us from finding much better multi-task weights just outside that subspace?
Methods
The authors compare the standard "coefficient optimization" approach against a broader "weight optimization" approach:
- Subspace Optimization (Standard): Finding the best coefficients for task vectors using methods like grid search, Bayesian Optimization, or gradient descent on the coefficients themselves.
- Weight Optimization (Proposed): Using the same auxiliary data to perform standard Gradient Descent (GD) directly on the model weights, initialized from a merged model.
- S-RandOpt: A novel, simple sampling method designed to prove that better weights exist outside the subspace. It calculates a gradient direction, adds it as a new dimension to the subspace, and randomly samples within this expanded region.
The study evaluates these across four major merging algorithms: TA (Task Arithmetic), TIES, DARE, and TSV-M.
Datasets
The authors conducted extensive experiments across two domains:
- Vision: 9 tasks including MNIST, GTSRB (traffic signs), FER2013 (emotions), Stanford Cars, DTD (textures), Food101, SUN397 (scenes), RESISC45 (satellite imagery), and EuroSAT. They used CLIP-ViT variants (B-32, B-16, L-14).
- Language: 4 tasks including DDXPlus (medical), Banking77 (intent classification), IFEval (instruction following), and Usefulness Judge. They tested Qwen3 (0.6B to 4B) and Llama-3.2-1B models.
Key Insights and Ideas
- The Subspace is a Bottleneck: The most striking finding is that the linear combination constraint is often too restrictive. Better multi-task solutions consistently exist outside the plane spanned by task vectors.
- Merging as Initialization: While direct optimization is better, merging isn't useless. Merged models provide a much better starting point for Gradient Descent than the original pre-trained model. Stronger merging methods lead to better final optimized models.
- Surprising Data Efficiency: You might expect weight-space optimization to overfit on small auxiliary datasets. Surprisingly, the authors found that even with one sample per class, weight-space GD still outperformed coefficient search.
- Geometric Departure: Analysis of the optimization trajectories shows that Gradient Descent consistently and rapidly moves away from the task-vector subspace, confirming that the "implicit regularization" of task arithmetic was holding the model back.
Key Results
- Consistent Gains: Across all tested merging methods and models, weight-space GD significantly outperformed the "subspace best" performance. For example, on ViT-B-32, GD improved accuracy by 9 to 20 percentage points compared to the merged baseline.
- Scaling with Data: As the size of the auxiliary dataset increases, the performance of coefficient optimization quickly saturates, whereas weight-space GD continues to improve, better leveraging the available data.
- S-RandOpt Success: Even the simple S-RandOpt method, which only adds one extra degree of freedom outside the subspace, frequently outperformed the best possible results within the subspace.
Limitations and Future Work
- Computational Cost: Optimizing weights requires backpropagation, which is more memory-intensive and computationally expensive than simple inference-based coefficient searches. However, the authors argue the performance trade-off is often worth it.
- Bias-Variance Tradeoff: In extremely low-data regimes with very low task diversity (e.g., only 2 tasks), the "regularization" of the subspace can sometimes prevent overfitting. The authors suggest practitioners consider this tradeoff based on their specific data availability.
- Future Directions: The work motivates the development of new merging pipelines that don't just stop at a linear combination but treat the merged model as a high-quality initialization for further refinement. There is also room to explore more efficient ways to "leave the subspace" without full-weight fine-tuning.
Summary updated