非局部模型合并问题:置换对称性与方差坍缩
The Non-Local Model Merging Problem: Permutation Symmetries and Variance Collapse
AI总结:
本文研究非局部模型合并问题,发现标准方法因“方差坍缩”而失效,提出多任务重缩放和偏移输出激活的技术,显著提升非局部设置下合并性能。
摘要:
模型合并旨在将多个分别针对特定任务训练的专家模型权重高效合并为单一多任务模型,使其在所有任务上均表现优异。当应用于除最后一层外的所有权重层时,Task Arithmetic、TIES-merging 和 TALL mask merging 等现有方法能够很好地合并通过微调共同基础模型得到的专家模型,即在基础模型的“局部”邻域内进行操作。本研究探索更具挑战性的“非局部”合并场景,该场景出现在专家模型在预训练期间发生显著变化,或专家模型甚至不共享共同基础模型时。我们观察到,即使使用标准技术考虑了置换对称性,标准合并技术在非局部设置下也往往无法有效泛化。我们发现这种失败部分归因于“方差坍缩”,Jordan 等人(2023)在线性模式连通性设置中也发现了这一现象。为解决此问题,我们提出一种多任务技术,对合并模型在每个任务上的输出激活进行重新缩放和偏移,使其输出统计量与相应任务特定专家模型对齐。实验表明,该修正显著提升了各种模型合并在非局部设置下的性能,为未来研究提供了强基线。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。