Abstract
Model merging has shown that multitask models can be created by directly combining the parameters of different models that are each specialized on tasks of interest. However, models trained independently on distinct tasks often exhibit interference that degrades the merged model's performance. To solve this problem, we formally define the notion of Cross-Task Interference as the drift in the representation of the merged model relative to its constituent models. Reducing cross-task interference is key to improving merging performance. To address this issue, we propose our method, Resolving Interference (RI), a light-weight adaptation framework which disentangles expert models to be functionally orthogonal to the space of other tasks, thereby reducing cross-task interference. RI does this whilst using only unlabeled auxiliary data as input (i.e., no task-data is needed), allowing it to be applied in data-scarce scenarios. RI consistently improves the performance of state-of-the-art merging methods by up to 3.8% and generalization to unseen domains by up to 2.3%. We also find RI to be robust to the source of auxiliary input while being significantly less sensitive to tuning of merging hyperparameters.
Introduction
In the era of foundation models, model merging has emerged as a powerful paradigm for creating multitask systems without the prohibitive costs of joint training. By mathematically combining the weights of specialized "expert" models, researchers can synthesize a single model capable of diverse tasks. However, a significant barrier remains: Cross-Task Interference. When merging weights, features learned for one task often distort or overwrite those required for another, leading to a "drift" in internal representations. Existing solutions often require access to original training data or rely on weight-level heuristics like pruning, which may not capture the functional behavior of the model.
The Resolving Interference (RI) Framework
To address these challenges, we introduce Resolving Interference (RI), a lightweight adaptation step performed prior to merging. RI aims to make expert models "functionally orthogonal," ensuring that task-specific updates do not interfere with other tasks' domains.
The framework utilizes a two-part loss function optimized using unlabeled auxiliary data:
- Task-Preservation Loss ($\mathcal{L}_1$): This ensures the expert retains its original performance by minimizing the output discrepancy between the original and adapted expert on its specific task head.
- Interference-Reduction Loss ($\mathcal{L}_2$): This "disentangles" the model by forcing task-specific updates to have minimal impact when processed through the heads of other tasks.
By optimizing these objectives, RI produces task vectors that are easier to merge using standard techniques like Task Arithmetic (TA) or TIES.
Experimental Evaluation
We evaluated RI across a 20-task vision benchmark using CLIP-based vision encoders (ViT-B/32, ViT-B/16, and ViT-L/14). Tasks included diverse datasets such as EuroSAT (satellite imagery), GTSRB (traffic signs), and Oxford-IIIT Pets.
Performance and Interference Reduction
RI consistently enhances the performance of state-of-the-art merging methods. As shown in the figure below, RI significantly reduces cross-task interference while simultaneously boosting merging accuracy across all tested methods.
Key findings include:
- Accuracy Gains: RI improved Task Arithmetic (TA) by up to 9.6% and the top-tier TSVM method by 3.8%.
- Generalization: On the DomainNet benchmark, RI-merged models showed a 2.3% average improvement in out-of-distribution accuracy, indicating more robust feature retention.
- Efficiency: Adaptation is highly efficient; a ViT-B/32 expert can be adapted in approximately 7 minutes on a single GPU.
Robustness and Stability
A critical advantage of RI is its data-agnostic nature. The method performs well using generic auxiliary data (e.g., ImageNet-1k, MSCOCO) or even synthetic noise, provided the data is visually diverse. Furthermore, RI-adapted models exhibit greater hyperparameter stability, making the selection of scaling coefficients during merging less sensitive and more "plug-and-play."
Conclusion
Resolving Interference (RI) provides a scalable, data-efficient solution to the interference problem in model merging. By focusing on functional orthogonality rather than just weight-level changes, RI enables more effective multitask synthesis. Future work includes extending RI to Large Language Models (LLMs) and exploring automated methods for optimal auxiliary data selection.
Summary updated