atlas

Research map / Optimization / Optimizers

SAMPa: Sharpness-aware Minimization Parallelized

NeurIPS 2024 · Optimization › Optimizers · approach: Surrogate losses and robust solvers · 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.

Proposes SAMPa, a parallelized variant of sharpness-aware minimization that computes the two SAM gradients simultaneously on two GPUs (with optimistic gradient correction), achieving ~2x per-iteration speedup and better generalization with a Lyapunov-based convergence proof for fixed perturbation radius.

Problem

SAM requires two sequentially dependent gradient computations per update, roughly doubling training time versus base optimizers like SGD, while many efficient variants either sacrifice accuracy or retain substantial overhead.

Approach

Replace the perturbation gradient at the clean weight with a gradient at an auxiliary sequence y_t (a look-ahead step from x_t), so that the perturbed-point gradient and the auxiliary gradient can be computed in parallel; interpolate with an optimistic gradient (OptGD) term via lambda, and prove convergence with a novel Lyapunov function even for fixed perturbation radius.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add the SAMPa-0.2 parallelized update instead of SAMSAM · CIFAR-10 test (average, 5 models)accuracy: 95.81_{\pm 0.15} -> 95.99_{\pm 0.08}Helped
Add the SAMPa-0.2 parallelized update instead of SAMSAM · CIFAR-100 test (average, 5 models)accuracy: 78.90_{\pm 0.10} -> 79.22_{\pm 0.11}Helped
Add the SAMPa-0.2 parallelized update instead of SAMSAM · ImageNet-1K testTop1 accuracy: 77.25_{\pm 0.05} -> 77.44_{\pm 0.03}Helped
Add the SAMPa-0.2 parallelized update instead of SAMSAM · CIFAR-100 test, ViT-B/16 fine-tuningaccuracy: 91.79_{\pm 0.12} -> 93.06_{\pm 0.16}Helped
Add SAMPa-0.2 to the SAM variantmSAM · CIFAR-10 test, ResNet-56accuracy: 94.28 -> 94.71Helped
Add SAMPa-0.2 to the SAM variantASAM · CIFAR-10 test, ResNet-56accuracy: 94.84 -> 94.95Helped
Set λ=0 rather than λ=0.2 (ablation)SAMPa · CIFAR-10 test (average, 5 models)accuracy: 95.99_{\pm 0.08} -> 95.86_{\pm 0.10}Hurt
Set λ=0 rather than λ=0.2 (ablation)SAMPa · CIFAR-100 test (average, 5 models)accuracy: 79.22_{\pm 0.11} -> 78.91_{\pm 0.09}Hurt
Use the previous perturbed-model gradient for the perturbation (OptSAM)SAM · CIFAR-10 test, ResNet-56accuracy: 94.26 -> 93.99Hurt
Compute the perturbation and correction gradients on different batches (ablation)SAM · CIFAR-10 test, ResNet-56accuracy: 94.26 -> 93.97Hurt
Use gradient penalization rather than the SAMPa-0.2 update (ablation)SAMPa-0.2 · CIFAR-10 test, ResNet-32, 80% noisy labelsaccuracy: 49.92 -> 48.26Hurt
Use SAMPa-0.2 rather than SAMSAM · CIFAR-10, ResNet-56time per epoch (s): 18.81 -> 10.94Helped

Surprising findings

Limitations

Experimental setup

Datasets: CIFAR-10 CIFAR-100 ImageNet-1K GLUE CIFAR-10 with label noise

Benchmarks: CIFAR-10 CIFAR-100 ImageNet-1K GLUE CIFAR-10 label noise

Metrics: test accuracy time per epoch (s) number of sequential gradients memory usage per GPU

Baselines: SGD SAM LookSAM AE-SAM SAF MESA ESAM RST mSAM ASAM SAM-ON VaSSO

Builds on: SAM optimistic gradient descent LookSAM ESAM MESA

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