EMASAM: a Computationally Efficient Sharpness-Aware Minimization via EMA-Guided Perturbations

Tanapat Ratchatorn, Masayuki Tanaka
8/15/2026
cs.LGcs.CV

No confident code implementation found for this paper.

Abstract

Recent progress in optimization research has highlighted the sharpness of the loss landscape as a key factor in narrowing the generalization gap. Motivated by this insight, Sharpness-Aware Minimization (SAM) was proposed as a training strategy that enhances generalization.

Show full abstract

Despite the promising performance, SAM suffers from its twice computational cost due to its core algorithm requiring an extra gradient computation during the perturbation step. To overcome this limitation, we introduce Exponential Moving Average Sharpness-Aware Minimization (EMASAM), a computationally efficient variant of SAM. EMASAM does not require the loss gradient in the perturbation step. Instead, EMASAM defines the perturbation direction based on the discrepancy between the main model and the EMA shadow model. This perturbation travels away from the stable average position toward the less stable area, acting as a softer yet cheaper alternative to SAM's worst-case scenario perturbation. Moreover, since EMASAM's perturbation does not rely on noisy mini-batch gradients, it mitigates the gradient-induced instability inherent in SAM. Hence, EMASAM eliminates the need for an extra backpropagation while also preserving the generalization ability of the SAM-style training. Several experiments have been performed and confirm the efficiency and robustness of our method.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ratchatorn2026emasam,
  title  = {EMASAM: a Computationally Efficient Sharpness-Aware Minimization via EMA-Guided Perturbations},
  author = {Tanapat Ratchatorn and Masayuki Tanaka},
  year   = {2026},
  eprint = {2608.15105},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.15105v1}
}

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

Discussion