arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.08203cs.LGmath.OC
收藏

用于建模 SAM 的 SDE:理论与洞见

An SDE for Modeling SAM: Theory and Insights

University of Basel(巴塞尔大学);ETH Zürich(苏黎世联邦理工学院);University of Oslo(奥斯陆大学);Inria(法国国家信息与自动化研究所);Ecole Normale Supérieure PSL Research University(巴黎高等师范学院-PSL研究大学)

Enea Monzio Compagnoni, Luca Biggio, Antonio Orvieto, Frank Norbert Proske, Hans Kersting, Aurelien Lucchi

AI总结:

本文为 SAM 及其两种变体在全批量与小批量设置下建立 SDE 连续时间模型,解释其偏好平坦极小值的机制,并证明其在现实条件下会被鞍点吸引。

摘要:

我们研究了 SAM(Sharpness-Aware Minimization,锐度感知最小化)优化器,该优化器近期因其相较于更经典的随机梯度下降变体具有更优性能而备受关注。我们的主要贡献是在全批量和小批量设置下,为 SAM 及其两个变体推导了连续时间模型(以 SDE 形式呈现)。我们证明这些 SDE 是实际离散时间算法的严格近似(在弱意义下,误差随学习率线性缩放)。随后,利用这些模型,我们解释了 SAM 为何偏好平坦极小值而非尖锐极小值——通过表明它最小化了一种具有依赖 Hessian 的噪声结构的隐式正则化损失。最后,我们证明在某些现实条件下,SAM 会被鞍点吸引。我们的理论结果得到了详细实验的支持。

英文摘要:

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.

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

↑