@inproceedings{
haas2024boldsymbolmumathbfp,
title={\${\textbackslash}boldsymbol\{{\textbackslash}mu\}{\textbackslash}mathbf\{P{\textasciicircum}2\}\$: Effective Sharpness Aware Minimization Requires Layerwise Perturbation Scaling},
author={Moritz Haas and Jin Xu and Volkan Cevher and Leena Chennuru Vankadara},
booktitle={The Thirty-eighth Annual Conference on Neural Information Processing Systems},
year={2024},
url={https://openreview.net/forum?id=pR5g1bBqoV}
}
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 *Maximal Update and Perturbation Parameterization* ($\mu$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 $\mu$P$^2$ is the first parameterization to achieve hyperparameter transfer of the joint optimum of learning rate and perturbation radius across model scales. Moreover, we provide an intuitive condition to derive $\mu$P$^2$ for other perturbation rules like Adaptive SAM and SAM-ON, also ensuring balanced perturbation effects across all layers.
μ𝐏^2: Effective Sharpness Aware Minimization Requires Layerwise Perturbation Scaling
Moritz Haas Jin Xu Volkan Cevher Leena Chennuru Vankadara