When Do Flat Minima Optimizers Work?

Jean Kaddour, Linqing Liu, Ricardo Silva, Matt J. Kusner
2/1/2022
cs.LGstat.ML

Official code: JeanKaddour/WASAM (28 stars, Python, PyTorch, last commit 2023-01-13).

Abstract

Recently, flat-minima optimizers, which seek to find parameters in low-loss neighborhoods, have been shown to improve a neural network's generalization performance over stochastic and adaptive gradient-based optimizers. Two methods have received significant attention due to their scalability: 1.

Show full abstract

Stochastic Weight Averaging (SWA), and 2. Sharpness-Aware Minimization (SAM). However, there has been limited investigation into their properties and no systematic benchmarking of them across different domains. We fill this gap here by comparing the loss surfaces of the models trained with each method and through broad benchmarking across computer vision, natural language processing, and graph representation learning tasks. We discover several surprising findings from these results, which we hope will help researchers further improve deep learning optimizers, and practitioners identify the right optimizer for their problem.

View on arXivView PDF

Code Implementations(1)

JeanKaddour/WASAMOfficial100%
PyTorch

Weight-Averaged Sharpness-Aware Minimization (NeurIPS 2022)

282PythonFeb 22, 20223 years ago
deep-learningoptimizationpytorch

Similar Papers

Cite this paper

@article{kaddour2022when,
  title  = {When Do Flat Minima Optimizers Work?},
  author = {Jean Kaddour and Linqing Liu and Ricardo Silva and Matt J. Kusner},
  year   = {2022},
  eprint = {2202.00661},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.00661}
}

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

Discussion