atlas

Research map / Learning theory and algorithms / Prediction and decision losses

Improving SAM Requires Rethinking its Optimization Formulation

ICML 2024 · Learning theory and algorithms › Prediction and decision losses · approach: Consistency of surrogate losses · 0 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.

Reformulates Sharpness-Aware Minimization as a bilevel problem in which the perturbation player maximizes a differentiable lower bound on the 0-1 loss (BiSAM), gaining small accuracy gains over SAM at similar cost.

Problem

SAM's inner maximization uses an upper-bound surrogate (cross-entropy), so the adversarial weight perturbation may not increase misclassification error, yielding weaker perturbations.

Approach

Replace the upper-bound surrogate in the perturbation (ascent) step with a differentiable log-sum-exp lower bound on the 0-1 loss built from a lower-bound step approximation (tanh or a shifted softplus), keeping the minimizer on cross-entropy; this gives a bilevel formulation solved with a SAM-style first-order step at the same cost.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace SAM's cross-entropy perturbation objective with the BiSAM -log lower-bound objectiveSAM · CIFAR-10 test, 5-model averageaccuracy: 95.78_{\pm 0.06} -> 95.88_{\pm 0.08}Helped
Replace SAM's cross-entropy perturbation objective with the BiSAM -log lower-bound objectiveSAM · CIFAR-100 test, 5-model averageaccuracy: 78.52_{\pm 0.13} -> 78.78_{\pm 0.09}Helped
Replace SAM's cross-entropy perturbation objective with the BiSAM -log lower-bound objectiveSAM · ImageNet-1K testTop1 accuracy: 75.83_{\pm 0.16} -> 75.96_{\pm 0.15}Helped
Use tanh instead of the -log lower bound (ablation)BiSAM · CIFAR-10 test, 5-model averageaccuracy: 95.88_{\pm 0.08} -> 95.93_{\pm 0.08}Helped
Use tanh instead of the -log lower bound (ablation)BiSAM · ImageNet-1K testTop5 accuracy: 92.49_{\pm 0.10} -> 92.40_{\pm 0.13}Hurt
Add adaptive sharpness to the BiSAM perturbation objectiveASAM · CIFAR-10 test, 5-model averageaccuracy: 96.07_{\pm 0.05} -> 96.14_{\pm 0.05}Helped
Replace the ASAM perturbation objective with the BiSAM -log lower-bound objectiveASAM · CIFAR-10 test, DenseNet-121accuracy: 96.79_{\pm 0.14} -> 96.79_{\pm 0.13}No clear effect
Add ESAM's SWP and SDS to the BiSAM methodESAM · CIFAR-10 test, 5-model averageaccuracy: 95.56_{\pm 0.09} -> 95.71_{\pm 0.06}Helped
Replace the ESAM perturbation objective with the BiSAM -log lower-bound objectiveESAM · CIFAR-10 test, WRN-28-10accuracy: 97.17_{\pm 0.09} -> 97.18_{\pm 0.05}Helped
Replace SAM's perturbation objective with the BiSAM -log lower-bound objectiveSAM with ViT-B/16 fine-tuning · Oxford-IITPets testaccuracy: 93.66_{\pm 0.48} -> 94.15_{\pm 0.24}Helped
Add BiSAM to AdamW fine-tuningAdamW with BERT-base · GLUEaggregate score: 73.21 -> 77.04Helped
Replace SAM's perturbation objective with the BiSAM -log lower-bound objectiveSAM with ResNet-32 · CIFAR-10 test, 40% label noiseaccuracy: 89.03_{\pm 0.09} -> 88.71_{\pm 0.23}Hurt

Surprising findings

Limitations

Experimental setup

Datasets: CIFAR-10 CIFAR-100 ImageNet-1K Oxford Flowers Oxford-IIIT Pets GLUE CIFAR-10 with label noise

Benchmarks: CIFAR-10 CIFAR-100 ImageNet-1K Oxford Flowers Oxford-IIIT Pets GLUE CIFAR-10 label noise

Metrics: test accuracy top-1 accuracy top-5 accuracy Matthews correlation F1

Baselines: SGD SAM ASAM ESAM GSAM

Builds on: Sharpness-Aware Minimization ASAM ESAM mSAM

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