Skip to main content
QUICK REVIEW

[论文解读] Git Re-Basin: Merging Models modulo Permutation Symmetries

Samuel Ainsworth, Jonathan Hayase|arXiv (Cornell University)|Sep 11, 2022
Advanced Neural Network ApplicationsComputer Science被引用 32
一句话总结

本文介绍三种基于置换的方法,通过重新排列隐藏单元来对齐并合并独立训练的神经网络,在各类架构和数据集的权重空间中模除置换对称性实现线性模式连通性(LMC)

ABSTRACT

The success of deep learning is due in large part to our ability to solve certain massive non-convex optimization problems with relative ease. Though non-convex optimization is NP-hard, simple algorithms -- often variants of stochastic gradient descent -- exhibit surprising effectiveness in fitting large neural networks in practice. We argue that neural network loss landscapes often contain (nearly) a single basin after accounting for all possible permutation symmetries of hidden units a la Entezari et al. 2021. We introduce three algorithms to permute the units of one model to bring them into alignment with a reference model in order to merge the two models in weight space. This transformation produces a functionally equivalent set of weights that lie in an approximately convex basin near the reference model. Experimentally, we demonstrate the single basin phenomenon across a variety of model architectures and datasets, including the first (to our knowledge) demonstration of zero-barrier linear mode connectivity between independently trained ResNet models on CIFAR-10. Additionally, we identify intriguing phenomena relating model width and training time to mode connectivity. Finally, we discuss shortcomings of the linear mode connectivity hypothesis, including a counterexample to the single basin theory.

研究动机与目标

  • Investigate why SGD solves high-dimensional non-convex neural network loss landscapes and whether independent training runs inhabit a single basin modulo permutation symmetries.
  • Develop algorithms to permute units and align two independently trained models so their weights can be merged in weight space.
  • Empirically verify the single-basin phenomenon and zero-barrier LMC across multiple architectures and datasets.

提出的方法

  • 提出三种基于置换的匹配方法,用以在模型之间对齐单元:通过线性分配问题对层激活值进行激活–激活匹配;通过一个双线性分配之和的问题(SOBLAP)进行权重匹配;以及使用直通估计器学习置换以优化置换对齐。
  • 为 SOBLAP 提供一个多项式时间近似方法,利用对层的协调坐标下降收敛到每一步的线性分配问题。
  • 证明激活匹配能够实现数据感知的对齐,权重匹配忽略数据但速度快,基于 STE 的端到端置换学习在更高的计算成本下可以优化置换。
  • 讨论理论方面的内容,包括 SOBLAP 的 NP-hardness 和所提出算法的收敛性。)

实验结果

研究问题

  • RQ1隐藏单元的置换是否能将独立训练的模型对齐,使它们之间的线性插值保持性能?
  • RQ2置换感知的对齐是否揭示了神经网络损失景观中的单一凸盆(模 modulo 置换)?
  • RQ3模型架构、宽度和训练时间如何影响线性模式连通性存在与质量?
  • RQ4通过对齐权重空间插值形成的合并模型在联合数据上是否能超越输入模型?
  • RQ5是否存在将对分布数据集训练的模型在不重新在完整数据上训练的情况下合并的实际方法,且符合隐私约束?

主要发现

  • 激活和基于权重的匹配可以显著降低独立训练模型之间的插值障碍。
  • 对于 CIFAR-10 上的 ResNets,展示了零障碍的线性模式连通性(LMC)。
  • 更宽的模型表现出更好的线性模式连通性,随着宽度的增加,损失障碍减小。
  • 通过权重匹配合并在分离数据集上训练的模型,可以获得在插值方面优于输入模型的中间模型,同时比集成使用的内存和计算要少。
  • 基于 STE 的置换学习可以取得有竞争力的结果,尽管计算成本高于无数据方法。
  • 一个反例表明普遍的 LMC 并不对所有 SGD 解成立,强调优化过程偏向 LMC 而不是所有解的普遍性质。

阅读本论文

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

在 Nubint 中阅读本论文

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