A Universal Class of Sharpness-Aware Minimization Algorithms

B. Tahmasebi, Ashkan Soleymani, Dara Bahri, S. Jegelka, P. Jaillet
6/1/2024

No official code found. Best implementation: dbahri/universal_sam (4 stars, MIT, last commit 2024-06-10).

Abstract

Recently, there has been a surge in interest in developing optimization algorithms for overparameterized models as achieving generalization is believed to require algorithms with suitable biases. This interest centers on minimizing sharpness of the original loss function; the Sharpness-Aware Minimization (SAM) algorithm has proven effective. However, most literature only considers a few sharpness measures, such as the maximum eigenvalue or trace of the training loss Hessian, which may not yield meaningful insights for non-convex optimization scenarios like neural networks. Additionally, many sharpness measures are sensitive to parameter invariances in neural networks, magnifying significantly under rescaling parameters. Motivated by these challenges, we introduce a new class of sharpness measures in this paper, leading to new sharpness-aware objective functions. We prove that these measures are \textit{universally expressive}, allowing any function of the training loss Hessian matrix to be represented by appropriate hyperparameters. Furthermore, we show that the proposed objective functions explicitly bias towards minimizing their corresponding sharpness measures, and how they allow meaningful applications to models with parameter invariances (such as scale-invariances). Finally, as instances of our proposed general framework, we present \textit{Frob-SAM} and \textit{Det-SAM}, which are specifically designed to minimize the Frobenius norm and the determinant of the Hessian of the training loss, respectively. We also demonstrate the advantages of our general framework through extensive experiments.

View on arXivView PDF

Code Implementations(1)

MIT
40Python, Jupyter NotebookJun 4, 20242 years agoMIT

Cite this paper

@article{tahmasebi2024universal,
  title  = {A Universal Class of Sharpness-Aware Minimization Algorithms},
  author = {B. Tahmasebi and Ashkan Soleymani and Dara Bahri and S. Jegelka and P. Jaillet},
  year   = {2024},
  eprint = {2406.03682},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2406.03682},
  journal = {ICML 2024 2024}
}

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/2406.03682.svg)](https://codeofpaper.com/paper/2406.03682)

Discussion