atlas

Research map / Optimization / Implicit bias and generalization

Friendly Sharpness-Aware Minimization

CVPR 2024 · Optimization › Implicit bias and generalization · approach: Sharpness-aware minimization theory · 22 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Friendly-SAM (F-SAM), which removes the EMA-estimated full-gradient component from SAM's perturbation and perturbs along the batch-specific stochastic gradient noise, improving generalization and robustness to perturbation radius.

Problem

Understanding which components of SAM's adversarial perturbation drive its generalization gains, and improving SAM's generalization and radius sensitivity.

Approach

Decompose the minibatch gradient into full-gradient and stochastic-noise components, find the full-gradient part hurts generalization, and perturb along the noise component only, estimating the full gradient with an EMA of historical minibatch gradients (with a constant sigma=1 projection).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace SAM perturbation direction with the full-gradient component (SAM-full) (ablation)SAM · CIFAR-100, ResNet-18test accuracy (%): 80.88 -> 78.02Hurt
replace SAM perturbation direction with stochastic gradient noise only (SAM-noise) (ablation)SAM · CIFAR-100, ResNet-18test accuracy (%): 80.88 -> 81.21Helped
use a different random minibatch for perturbation and minimization (SAM-db) (ablation)SAM · CIFAR-10, ResNet-18test accuracyNo clear effect
increase the perturbation-step minibatch size while keeping minimization batch size fixed (ablation)SAM, CIFAR-100 ResNet-18 · CIFAR-100test accuracyHurt
remove the full-gradient component using the F-SAM perturbationSAM · CIFAR-100, WRN-28-10test accuracy (%): 84.88 -> 85.16Helped
integrate the friendly perturbation with ASAM (ablation)ASAM · CIFAR-100, WRN-28-10test accuracy (%): 84.99±0.22 -> 85.24±0.16Helped
increase perturbation radius to twice the optimal radius (ablation)SAM · CIFAR-100, ResNet-18test accuracy (%): 80.88% -> 78.83%Hurt
increase perturbation radius to twice the optimal radius (ablation)F-SAM · CIFAR-100, ResNet-18test accuracy (%): 80.30%No clear effect
increase training batch size (ablation)F-SAM relative to SAM · CIFAR-100, ResNet-18test accuracyHelped
set projection constant σ to 1 (ablation)F-SAM · CIFAR-10 and CIFAR-100test accuracyNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: CIFAR-10 CIFAR-100 ImageNet Stanford Cars OxfordIIITPet Flowers102

Benchmarks: CIFAR-10 CIFAR-100 ImageNet Stanford Cars OxfordIIITPet Flowers102

Metrics: test accuracy

Baselines: SGD AdamW SAM ASAM FisherSAM

Builds on: Sharpness-Aware Minimization ASAM FisherSAM Entropy-SGD

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy