arXiv:2410.12766cs.LG2024-10被引 7

解决跨模型合并时性能下降问题,提升多任务模型泛化能力

The Non-Local Model Merging Problem: Permutation Symmetries and Variance Collapse

  • 通过调整输出激活统计量,修正非局部合并中的方差坍缩问题
  • 在无共同基础模型的专家模型合并中,显著提升多任务表现
  • 适用于跨预训练模型、非对齐架构的融合场景

模型合并旨在将多个针对特定任务训练的专家模型权重高效整合为一个具备多任务能力的统一模型。当仅合并除最后一层外的所有权重时,现有方法(如任务算术、TIES-merging 和 TALL 掩码合并)在基于同一基础模型微调得到的专家模型上表现良好,属于“局部”合并范畴。本文研究更具挑战性的“非局部”合并场景——即专家模型在预训练阶段发生显著变化,或根本无共同基础模型。我们发现,即便考虑置换对称性,标准合并方法在此类场景下仍难以有效泛化。其失败原因部分源于“方差坍缩”现象,该现象此前已在线性模式连通性研究中被识别(Jordan et al., 2023)。为此,我们提出一种多任务重缩放与偏移策略,对合并后模型在每项任务上的输出激活进行校准,使其输出统计特性与对应任务专家模型一致。实验表明,该修正能显著提升多种合并方法在非局部设置下的性能,为未来研究提供强有力基线。

原文摘要 · Abstract (English)

Model merging aims to efficiently combine the weights of multiple expert models, each trained on a specific task, into a single multi-task model, with strong performance across all tasks. When applied to all but the last layer of weights, existing methods -- such as Task Arithmetic, TIES-merging, and TALL mask merging -- work well to combine expert models obtained by fine-tuning a common foundation model, operating within a "local" neighborhood of the foundation model. This work explores the more challenging scenario of "non-local" merging, which we find arises when an expert model changes significantly during pretraining or where the expert models do not even share a common foundation model. We observe that standard merging techniques often fail to generalize effectively in this non-local setting, even when accounting for permutation symmetries using standard techniques. We identify that this failure is, in part, due to "variance collapse", a phenomenon identified also in the setting of linear mode connectivity by Jordan et al. (2023). To address this, we propose a multi-task technique to re-scale and shift the output activations of the merged model for each task, aligning its output statistics with those of the corresponding task-specific expert models. Our experiments demonstrate that this correction significantly improves the performance of various model merging approaches in non-local settings, providing a strong baseline for future research on this problem.

模型合并多任务学习方差坍缩非局部融合

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。