Abstract
Model merging is a powerful technique for combining specialized neural networks into a single multi-task model without the need for original training data. However, current merging methods typically yield a single static model, forcing a compromise that may not align with specific user preferences across conflicting tasks. We propose Pareto Merging (PM), which reframes model merging as a multi-objective optimization problem. By employing a parameter-efficient low-rank tensor structure, PM learns the entire Pareto set of optimal trade-offs in a single optimization run. This approach enables the generation of an infinite variety of models tailored to diverse task priorities with minimal parameter overhead.
Introduction
Fine-tuning large-scale pre-trained models for specialized tasks has become a standard workflow. However, maintaining a separate model for every task is computationally expensive and memory-intensive. Model merging offers a solution by consolidating these specialists into a single multi-task architecture.
A significant limitation of existing methods, such as Task Arithmetic or AdaMerging, is their "one-size-fits-all" nature. In scenarios where tasks conflict—for instance, where optimizing for satellite imagery classification degrades performance on traffic sign recognition—a single merged model represents a forced trade-off. Users with different priorities are stuck with the same compromise. Pareto Merging addresses this by learning the full range of optimal trade-offs, allowing users to select the exact balance that suits their needs.
Methodology: Learning the Pareto Set
Pareto Merging treats the performance of each task as a distinct objective within a Multi-Objective Optimization (MOO) framework. The goal is to find the Pareto set—the collection of models where no task's performance can be improved without degrading another's.
Parameter-Efficient Architecture
To avoid the overhead of storing multiple models, PM introduces a preference-dependent personalized component. The model weights are decomposed into a preference-independent base model and a low-rank tensor that adapts based on a user-provided preference vector $\gamma$. Specifically, the weight adjustment is modeled as a low-rank tensor decomposition ($G \times_1 A \times_2 B \times_3 \gamma$), where $G$ is a core tensor and $A, B$ are factor matrices. This structure is remarkably lean; for a ViT-B/32 backbone, PM adds only approximately 0.5% more parameters compared to the original pre-trained model.
Optimization Strategy
PM utilizes Smooth Tchebycheff Scalarization to navigate the trade-off surface. Unlike simple linear weighting, which can only find solutions on the convex parts of a curve, this technique can identify solutions across the entire Pareto front, including non-convex regions. By sampling preference vectors from a Dirichlet distribution during a single training pass, the system learns to approximate the entire set of optimal solutions simultaneously.
Experimental Evaluation
The authors evaluated PM using ViT-B/32 and ViT-L/14 backbones across eight diverse image classification datasets, including SUN397 (scenes), EuroSAT (satellite), and GTSRB (traffic signs).
Key Results
- Superior Trade-offs: In dual-task merges (e.g., RESISC45 and GTSRB), PM consistently achieved higher accuracy on prioritized tasks compared to baselines. For instance, when prioritizing RESISC45, PM reached 94.8% accuracy, surpassing AdaMerging's 93.6%.
- Scalability: When merging eight distinct models, PM outperformed state-of-the-art methods like TIES-Merging. On the SVHN dataset, PM showed a 4.3% accuracy improvement over Task Arithmetic.
- Efficiency: Unlike methods like MAP that require storing all task vectors (doubling parameters for $K$ tasks), PM maintains a near-constant parameter count regardless of the number of tasks merged, ensuring high scalability.
Conclusion and Future Work
Pareto Merging shifts the paradigm of model merging from static compromises to dynamic, preference-aware adaptation. By learning the Pareto set once, it provides a flexible and efficient way to deploy multi-task models. While currently focused on vision transformers and requiring a small amount of unlabeled data for optimal results, future work aims to extend this framework to Large Language Models (LLMs) and further reduce data dependencies.
Summary updated