[Paper Review] M-Loss: Quantifying Model Merging Compatibility with Limited Unlabeled Data
Introduces M-Loss, a metric to quantify how well multiple source models can be merged by parameter averaging using very limited unlabeled data, and uses it to guide a dynamic pruning-based merging method (M-TIES) that bridges model merging and ensembling.
Training of large-scale models is both computationally intensive and often constrained by the availability of labeled data. Model merging offers a compelling alternative by directly integrating the weights of multiple source models without requiring additional data or extensive training. However, conventional model merging techniques, such as parameter averaging, often suffer from the unintended combination of non-generalizable features, especially when source models exhibit significant weight disparities. Comparatively, model ensembling generally provides more stable and superior performance that aggregates multiple models by averaging outputs. However, it incurs higher inference costs and increased storage requirements. While previous studies experimentally showed the similarities between model merging and ensembling, theoretical evidence and evaluation metrics remain lacking. To address this gap, we introduce Merging-ensembling loss (M-Loss), a novel evaluation metric that quantifies the compatibility of merging source models using very limited unlabeled data. By measuring the discrepancy between parameter averaging and model ensembling at layer and node levels, M-Loss facilitates more effective merging strategies. Specifically, M-Loss serves both as a quantitative criterion of the theoretical feasibility of model merging, and a guide for parameter significance in model pruning. Our theoretical analysis and empirical evaluations demonstrate that incorporating M-Loss into the merging process significantly improves the alignment between merged models and model ensembling, providing a scalable and efficient framework for accurate model consolidation.
Motivation & Objective
- Motivate the need for theoretically grounded metrics for model merging when labeled data is scarce.
- Define M-Loss to quantify the discrepancy between parameter averaging and ensembling at layer and node levels.
- Show how M-Loss guides pruning to improve merging compatibility and efficiency.
- Provide theoretical justification for when parameter averaging yields outputs close to ensembling.
- Demonstrate practical merging with M-TIES on ViT backbones using very small unlabeled datasets.
Proposed method
- Define layer- and node-level M-Loss using intermediate representations around activations.
- Derive expected M-Loss values for ReLU, Leaky ReLU, and GELU to theoretically justify merging feasibility.
- Propose M-TIES: a dynamic pruning-based merging algorithm that uses M-Loss to allocate per-node keep rates and select parameter contributions.
- Integrate M-Loss driven pruning with existing merging backends (e.g., TIES) to improve mergeability and efficiency.
- Empirically compare M-TIES against merging baselines and ensembling on ViT-B/32 and ViT-L/14 with unlabeled data (128 samples).
- Show that M-Loss can serve as a hyperparameter indicator for parameter conflicts and budgets in merging workflows.

Experimental results
Research questions
- RQ1Can a label-free metric (M-Loss) quantify how well parameter-averaged merges approximate ensembling across layers and nodes?
- RQ2How can M-Loss guide pruning to improve merging quality without labeled data?
- RQ3Does integrating M-Loss into merging backends (M-TIES) improve accuracy and efficiency compared to existing merging methods and ensembling?
- RQ4What theoretical conditions (activation functions, parameter differences) ensure small M-Loss and thus effective model merging?
Key findings
- M-Loss provides a theoretical justification for why averaging parameters can approximate ensemble outputs when pretrained backbone diversity is limited and fine-tuning drift (sigma) is small relative to activation-scale (k).
- M-Loss values for ReLU, Leaky ReLU, and GELU are small under k >> sigma, supporting mergeability of models sharing a pretrained backbone.
- M-TIES consistently outperforms other merging baselines (Simple Avg., Task Arithmetic, TIES, DARE) and approaches ensembling in accuracy on ViT backbones, with competitive results given much lower inference costs.
- Using M-Loss to drive per-node pruning budgets leads to better merge quality and efficiency, with per-layer pruning focused on layers showing higher M-Loss (early and late layers).
- Few-Layer M-TIES (pruning only first and last few layers) achieves comparable performance with substantial cost reductions.
- M-Loss demonstrates stability with small unlabeled data (as low as 128 samples) and low sensitivity to sample size variation and random seeds.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.