arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2411.00075cs.LGstat.ML
收藏

μP²: 有效的锐度感知最小化需要分层扰动缩放

μP$^2$: Effective Sharpness Aware Minimization Requires Layerwise Perturbation Scaling

University of Tübingen(蒂宾根大学);Tübingen AI Center(蒂宾根人工智能中心);University of Oxford(牛津大学);LIONS, EPFL(洛桑联邦理工学院 LIONS 实验室);AGI Foundations, Amazon(亚马逊 AGI 基金会)

Moritz Haas, Jin Xu, Volkan Cevher, Leena Chennuru Vankadara

AI总结:

为解决标准SAM在宽神经网络中仅在最后一层有效扰动的问题,提出μP²分层扰动缩放参数化方法,通过张量程序框架验证其在无限宽度极限下的稳定性,实验证明其实现超参数跨模型规模迁移,并可扩展至其他SAM变体。

摘要:

锐度感知最小化(SAM)在各种神经架构和数据集上提升了性能。随着模型持续扩大规模以提高性能,对SAM缩放行为的严谨理解至关重要。为此,我们使用张量程序框架研究了用SAM训练的神经网络的无限宽度极限。我们的发现表明,即使使用最优超参数,标准SAM的动态在宽神经网络中实际上简化为仅在最后一层应用SAM。相比之下,我们确定了一种具有分层扰动缩放的稳定参数化方法,称为最大更新和扰动参数化(μP²),它确保所有层在极限情况下既能学习特征又能有效扰动。通过在MLP、ResNet和Vision Transformer上的实验,我们实证证明μP²实现了学习率和扰动半径的联合最优值在模型规模间的迁移。此外,我们提供了一个直观条件,可针对Adaptive SAM和SAM-ON等其他扰动规则推导μP²,同时确保所有层的扰动效果平衡。

英文摘要:

Sharpness Aware Minimization (SAM) enhances performance across various neural architectures and datasets. As models are continually scaled up to improve performance, a rigorous understanding of SAM's scaling behaviour is paramount. To this end, we study the infinite-width limit of neural networks trained with SAM, using the Tensor Programs framework. Our findings reveal that the dynamics of standard SAM effectively reduce to applying SAM solely in the last layer in wide neural networks, even with optimal hyperparameters. In contrast, we identify a stable parameterization with layerwise perturbation scaling, which we call $\textit{Maximal Update and Perturbation Parameterization}$ ($μ$P$^2$), that ensures all layers are both feature learning and effectively perturbed in the limit. Through experiments with MLPs, ResNets and Vision Transformers, we empirically demonstrate that $μ$P$^2$ achieves hyperparameter transfer of the joint optimum of learning rate and perturbation radius across model scales. Moreover, we provide an intuitive condition to derive $μ$P$^2$ for other perturbation rules like Adaptive SAM and SAM-ON, also ensuring balanced perturbation effects across all layers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑