计算机科学 > 机器学习
[提交于 2023年1月19日 (v1),最后修订于 2023年1月31日 (此版本, v2)]
标题:An SDE for Modeling SAM: Theory and Insights
查看中文 PDF 查看原文 PDF EasyResearch 阅读摘要:We study the SAM (Sharpness-Aware Minimization) optimizer which has recently attracted a lot of interest due to its increased performance over more classical variants of stochastic gradient descent. Our main contribution is the derivation of continuous-time models (in the form of SDEs) for SAM and two of its variants, both for the full-batch and mini-batch settings. We demonstrate that these SDEs are rigorous approximations of the real discrete-time algorithms (in a weak sense, scaling linearly with the learning rate). Using these models, we then offer an explanation of why SAM prefers flat minima over sharp ones~--~by showing that it minimizes an implicitly regularized loss with a Hessian-dependent noise structure. Finally, we prove that SAM is attracted to saddle points under some realistic conditions. Our theoretical results are supported by detailed experiments.
提交历史
来自:Enea Monzio Compagnoni Mr.[v1] 2023年1月19日 星期四 17:54:50 UTC
[v2] 2023年1月31日 星期二 14:39:30 UTC