SOTAVerified

Sharpness-Aware Minimization for Efficiently Improving Generalization

2020-10-03ICLR 2021Code Available2· sign in to hype

Pierre Foret, Ariel Kleiner, Hossein Mobahi, Behnam Neyshabur

Code Available — Be the first to reproduce this paper.

Reproduce

Code

Abstract

In today's heavily overparameterized models, the value of the training loss provides few guarantees on model generalization ability. Indeed, optimizing only the training loss value, as is commonly done, can easily lead to suboptimal model quality. Motivated by prior work connecting the geometry of the loss landscape and generalization, we introduce a novel, effective procedure for instead simultaneously minimizing loss value and loss sharpness. In particular, our procedure, Sharpness-Aware Minimization (SAM), seeks parameters that lie in neighborhoods having uniformly low loss; this formulation results in a min-max optimization problem on which gradient descent can be performed efficiently. We present empirical results showing that SAM improves model generalization across a variety of benchmark datasets (e.g., CIFAR-10, CIFAR-100, ImageNet, finetuning tasks) and models, yielding novel state-of-the-art performance for several. Additionally, we find that SAM natively provides robustness to label noise on par with that provided by state-of-the-art procedures that specifically target learning with noisy labels. We open source our code at https://github.com/google-research/sam.

Tasks

Benchmark Results

DatasetModelMetricClaimedVerifiedStatus
BirdsnapEffNet-L2 (SAM)Accuracy90.07Unverified
FGVC-AircraftEffNet-L2 (SAM)Top-1 Error Rate4.82Unverified
Food-101EffNet-L2 (SAM)Accuracy96.18Unverified
Oxford-IIIT PetsEffNet-L2 (SAM)Accuracy97.1Unverified
Stanford CarsEffNet-L2 (SAM)Accuracy95.96Unverified

Reproductions