MAP: Low-compute Model Merging with Amortized Pareto Fronts via Quadratic Approximation
Lu Li, Tianyu Zhang, Zhiqi Bu, Suyuchen Wang, Huan He, Jie Fu, Yonghui Wu, Jiang Bian, Yong Chen, Yoshua Bengio
TL;DR
MAP offers a low-cost framework for multi-task merging by replacing expensive evaluations with a quadratic surrogate per task: $ ilde{M}_n(oldsymbol{c}) = rac{1}{2}oldsymbol{c}^ opoldsymbol{A}_noldsymbol{c} + oldsymbol{b}_n^ opoldsymbol{c} + e_n$, where $oldsymbol{A}_n = oldsymbol{V}^ opoldsymbol{H}_n(m{ heta}_{ ext{pre}})oldsymbol{V}$ and $oldsymbol{b}_n = oldsymbol{V}^ op abla M_n(m{ heta}_{ ext{pre}})$. By evaluating a small set of scaling vectors $oldsymbol{c}$, MAP fits these surrogates and then uses a MOOP algorithm such as NSGA-III to approximate amortized Pareto fronts without gradient-based retraining. To handle many tasks and limited resources, the paper introduces Nested MAP (NMMAP) with $O(N\\log N)$ evaluations and Bayesian MAP (BMAP) with adaptive sampling. The method is validated across vision and language tasks (ViT/CLIP, ResNet, Llama) and is shown to produce diverse, well-distributed Pareto fronts that can outperform direct search and plug into other task-vector merging methods. The authors provide code and demonstrate practical impact for deploying trade-off-aware, private-data merging at scale, enabling flexible, user-preferred balancing of task objectives with minimal computational overhead.
Abstract
Model merging has emerged as an effective approach to combine multiple single-task models into a multitask model. This process typically involves computing a weighted average of the model parameters without any additional training. Existing model-merging methods focus on enhancing average task accuracy. However, interference and conflicts between the objectives of different tasks can lead to trade-offs during the merging process. In real-world applications, a set of solutions with various trade-offs can be more informative, helping practitioners make decisions based on diverse preferences. In this paper, we introduce a novel and low-compute algorithm, Model Merging with Amortized Pareto Front (MAP). MAP efficiently identifies a Pareto set of scaling coefficients for merging multiple models, reflecting the trade-offs involved. It amortizes the substantial computational cost of evaluations needed to estimate the Pareto front by using quadratic approximation surrogate models derived from a pre-selected set of scaling coefficients. Experimental results on vision and natural language processing tasks demonstrate that MAP can accurately identify the Pareto front, providing practitioners with flexible solutions to balance competing task objectives. We also introduce Bayesian MAP for scenarios with a relatively low number of tasks and Nested MAP for situations with a high number of tasks, further reducing the computational cost of evaluation.
