Stability Analysis of Sharpness-Aware Minimization

Hoki Kim, Jinseong Park, Yujin Choi, Jaewook Lee
1/16/2023
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Sharpness-aware minimization (SAM) is a recently proposed training method that seeks to find flat minima in deep learning, resulting in state-of-the-art performance across various domains. Instead of minimizing the loss of the current weights, SAM minimizes the worst-case loss in its neighborhood in the parameter space. In this paper, we demonstrate that SAM dynamics can have convergence instability that occurs near a saddle point. Utilizing the qualitative theory of dynamical systems, we explain how SAM becomes stuck in the saddle point and then theoretically prove that the saddle point can become an attractor under SAM dynamics. Additionally, we show that this convergence instability can also occur in stochastic dynamical systems by establishing the diffusion of SAM. We prove that SAM diffusion is worse than that of vanilla gradient descent in terms of saddle point escape. Further, we demonstrate that often overlooked training tricks, momentum and batch-size, are important to mitigate the convergence instability and achieve high generalization performance. Our theoretical and empirical results are thoroughly verified through experiments on several well-known optimization problems and benchmark tasks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{kim2023stability,
  title  = {Stability Analysis of Sharpness-Aware Minimization},
  author = {Hoki Kim and Jinseong Park and Yujin Choi and Jaewook Lee},
  year   = {2023},
  eprint = {2301.06308},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.06308v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2301.06308.svg)](https://codeofpaper.com/paper/2301.06308)

Discussion