Skip to main content
QUICK REVIEW

[论文解读] M-Loss: Quantifying Model Merging Compatibility with Limited Unlabeled Data

Tiantong Wang, Yiyang Duan|arXiv (Cornell University)|Feb 9, 2026
Topic ModelingComputer Science被引用 0
一句话总结

引入 M-Loss,一种通过极少量未标记数据来量化多源模型通过参数平均合并的可行性,并利用它引导一个动态剪枝合并方法(M-TIES),该方法连接模型合并与集成的桥梁。

ABSTRACT

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.

研究动机与目标

  • 在标记数据稀缺时,为模型合并的理论基础度量需求提供动机。
  • 定义 M-Loss,以量化在层级和节点层面上参数平均与集成之间的差异。
  • 展示 M-Loss 如何引导剪枝以提高合并兼容性与效率。
  • 为在参数平均输出接近集成的情况下提供理论依据。
  • 展示在 ViT 主干上使用非常小的未标记数据集(很小)实现 practical merging 与 M-TIES 的可行性。

提出的方法

  • 使用激活附近的中间表示定义分层级和节点级的 M-Loss。
  • 推导 ReLU、Leaky ReLU 和 GELU 的期望 M-Loss 值,以理论上证明合并的可行性。
  • 提出 M-TIES:一种基于动态剪枝的合并算法,利用 M-Loss 来分配每个节点的保留比率并选择参数贡献。
  • 将 M-Loss 驱动的剪枝与现有合并后端(如 TIES)整合,以提高合并可行性与效率。
  • 在 ViT-B/32 和 ViT-L/14 上,使用未标记数据(128 个样本)对 M-TIES 与合并基线及集成进行经验比较。
  • 展示 M-Loss 可作为合并工作流中参数冲突与预算的超参数指示器。
Figure 1: Conceptual overview of M-Loss and its use in M-TIES. (a) M-Loss measures the discrepancy between parameter-averaged and ensembled representations on unlabeled data, producing layer-/node-wise scores. (b) The node-wise M-Loss score map drives dynamic row-wise keep rates, which integrate wit
Figure 1: Conceptual overview of M-Loss and its use in M-TIES. (a) M-Loss measures the discrepancy between parameter-averaged and ensembled representations on unlabeled data, producing layer-/node-wise scores. (b) The node-wise M-Loss score map drives dynamic row-wise keep rates, which integrate wit

实验结果

研究问题

  • RQ1一个无标签度量(M-Loss)是否能量化在层和节点上参数平均合并与集成的近似程度?
  • RQ2M-Loss 如何在无标签数据的情况下引导剪枝以改善合并质量?
  • RQ3将 M-Loss 整合到合并后端(M-TIES)是否比现有合并方法和集成在准确性和效率上有改善?
  • RQ4哪些理论条件(激活函数、参数差异)能保证较小的 M-Loss,从而实现有效的模型合并?

主要发现

  • 当预训练骨干网的多样性有限且微调漂移(sigma)相对于激活尺度(k)较小时,M-Loss 为参数平均能够近似集成输出提供理论依据。
  • 在 k >> sigma 的情况下,ReLU、Leaky ReLU 和 GELU 的 M-Loss 值较小,支持共享预训练骨干的模型的可合并性。
  • M-TIES 在 ViT 主干上的准确性上持续优于其他合并基线(Simple Avg.、Task Arithmetic、TIES、DARE),并在推理成本显著较低的前提下接近集成效果。
  • 用 M-Loss 驱动的每节点剪枝预算能够提升合并质量和效率,按层对高 M-Loss 的层(早期和晚期层)分配剪枝。
  • 少层的 M-TIES(仅剪枝前后几层)在显著成本下降的情况下实现了可比的性能。
  • M-Loss 对较小未标记数据(低至 128 个样本)显示出稳定性,对样本量变化和随机种子的敏感性低。
Figure 2: Visualization of Linearly Correlated Parameters (LCP) in a neural network. The figure illustrates how the partial derivative $\partial h_{k,i}/\partial W_{ij}^{k}$ relates to the input from the previous layer $x_{(k-1),j}$ .
Figure 2: Visualization of Linearly Correlated Parameters (LCP) in a neural network. The figure illustrates how the partial derivative $\partial h_{k,i}/\partial W_{ij}^{k}$ relates to the input from the previous layer $x_{(k-1),j}$ .

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。