Abstract
Model merging, which combines multiple domain-specialized experts into a single model, offers a practical path to endow Large Language Models (LLMs) and Multimodal Large Language Models (MLLMs) with broad capabilities without the cost of joint training or serving many models. However, training-free methods rely on hand-tuned coefficients, whereas training-based methods primarily align parameters rather than downstream task behavior and typically treat all layers uniformly, ignoring inter-layer heterogeneity. We introduce Expert Merging, a training-light method that learns a small set of layer-wise coefficients using only unlabeled calibration data. The coefficients are optimized to explicitly align the merged model's hidden states and logits with those of the corresponding experts, with a coefficient regularizer for stability and task-weighted losses for controllable trade-offs. To capture inter-layer variation, Expert Merging++ augments this design with importance-guided chunking: a normalized layer-importance metric, derived from learned coefficients, task-vector magnitudes, and parameter counts, allocates more chunk-wise coefficients to high-importance layers while keeping low-importance layers lightweight. The result is a label-free, parameter-efficient, and scalable approach to multi-expert model merging across LLMs and MLLMs. Across MLLM backbones (InternVL and Qwen2-VL) and the LLM backbone (Mistral), our method surpasses strong training-free and training-based merging baselines, with Expert Merging++ delivering further gains and, in some cases, even exceeding supervised Mixture Training.
Introduction
Large Language Models (LLMs) and Multimodal Large Language Models (MLLMs) are frequently fine-tuned into specialized "experts" for domains such as coding, mathematics, or visual grounding. While these experts excel in their respective niches, deploying and serving multiple specialized models is computationally expensive and storage-intensive. Model merging aims to integrate these experts into a single, multi-competent model.
Existing merging strategies generally fall into two categories: training-free methods, which rely on manually tuned coefficients and often ignore model behavior, and training-based methods, which typically focus on parameter alignment rather than functional performance. Crucially, most existing methods treat all transformer layers as equally significant, failing to account for the fact that certain layers contribute more substantially to specific task performance than others.
Expert Merging (EM)
Expert Merging (EM) addresses these limitations by shifting the focus from parameter alignment to behavioral alignment. Instead of simple weight averaging, EM learns layer-wise coefficients by utilizing a minimal "calibration set" of just 5–10 unlabeled samples.
The framework employs two primary alignment losses:
- Hidden State Alignment: Forces the merged model’s internal representations to match those of the original experts.
- Logit Alignment: Ensures the final predictions (logits) of the merged model remain consistent with the expert outputs.
To maintain stability and prevent the model from drifting away from its base capabilities, a coefficient regularizer is used to keep learned weights close to their initial values. This unsupervised alignment ensures the merged model "thinks" like the experts it replaces without requiring expensive labeled data.
Expert Merging++ (EM++)
Building upon EM, Expert Merging++ (EM++) introduces Importance-Guided Chunking to handle inter-layer heterogeneity. The authors observed that knowledge is not uniformly distributed across the transformer stack; specifically, late-stage MLP blocks often perform more "heavy lifting" for specialized tasks.
EM++ calculates a "layer-importance score" based on learned coefficients, task-vector magnitudes, and parameter counts. High-importance layers are partitioned into multiple "chunks," each receiving its own unique trainable coefficient. Conversely, low-importance layers remain lightweight with a single coefficient. This adaptive allocation allows the model to focus its tuning capacity on the most critical parts of the network.
Key Results and Insights
The researchers evaluated EM and EM++ across three major backbones: InternVL2.5-1B, Qwen2-VL-7B, and Mistral-7B.
- Superior Performance: On the InternVL backbone, EM++ achieved an average score of 58.45, surpassing the strong WUDI v2 baseline by +1.49 points.
- Surpassing Supervised Training: Remarkably, in several tests on InternVL and Qwen2-VL, the unsupervised EM++ outperformed supervised Mixture Training (training on the full combined dataset).
- Efficiency and Stability: The method proved extremely data-efficient, requiring only 5-10 unlabeled samples to capture a task's signature. The coefficient regularizer was found to be mandatory; without it, performance on complex tasks like visual grounding collapsed due to catastrophic forgetting.
- Domain Gains: On Mistral-7B, EM++ showed significant improvements in coding logic, scoring 53.66 on HumanEval—a metric where traditional merging methods often struggle.
Conclusion
Expert Merging and Expert Merging++ provide a scalable, parameter-efficient framework for unifying specialized models. By prioritizing behavioral alignment over raw parameter blending and introducing importance-guided chunking, these methods offer a robust alternative to joint training. Future work will focus on extending these techniques to merge heterogeneous models with different architectures.
Summary updated