Fine-Grained Model Merging via Modular Expert Recombination
Haiyun Qiu, Xingyu Wu, Liang Feng, Kay Chen Tan
TL;DR
MERGE tackles the inefficiency and limited reuse of instance-specific model merging by introducing a fine-grained, component-wise merging framework. It offline-optimizes a diverse set of Pareto-optimal merging configurations using a surrogate-assisted bi-objective evolutionary search to build a reusable modular-expert library, and then enables input-aware on-demand recombination at inference via a lightweight routing network. The approach reveals systematic component heterogeneity and provides practical gains across vision, language, and PEFT settings, including substantial storage reductions while preserving or improving task performance. By decoupling offline optimization from online deployment and leveraging modular experts, MERGE enables scalable, batch-friendly, and resource-aware multi-task deployment with broad applicability and robust generalization.
Abstract
Model merging constructs versatile models by integrating task-specific models without requiring labeled data or expensive joint retraining. Although recent methods improve adaptability to heterogeneous tasks by generating customized merged models for each instance, they face two critical limitations. First, the instance-specific merged models lack reusability, restricting the exploitation of high-quality merging configurations and efficient batch inference. Second, these methods treat each task-specific model as a monolithic whole, overlooking the diverse mergeability of homologous components such as attention and multilayer perceptron layers, and the differing merging sensitivities across components. To address these limitations, we propose MERGE (\underline{M}odular \underline{E}xpert \underline{R}ecombination for fine-\underline{G}rained m\underline{E}rging), a method that enables component-wise model merging and input-aware, on-demand module recombination at inference. MERGE formulates component-wise merging as a bi-objective optimization problem that balances cross-task performance and storage efficiency, and develops a surrogate-assisted evolutionary algorithm to efficiently identify Pareto-optimal merging configurations. These high-quality configurations underpin a reusable modular expert library, from which a lightweight routing network dynamically activates and recombines modular experts to assemble input-specific models and enable efficient inference under storage constraints. Extensive experiments across various model scales, task types, and fine-tuning strategies demonstrate that MERGE consistently outperforms strong baselines and generalizes effectively.
