cs.LGAug 15, 2026

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

Authors: Tanapat Ratchatorn, Masayuki Tanaka

Organizations: Institute of Science Tokyo, Meguro, Tokyo, Japan

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. 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.

Figures & tables

Explore similar work

CardsList
  1. Revisiting Sharpness-Aware Minimization: A More Faithful and Effective Implementation

    Mar 9, 2026Jianlong Chen, Zhiming ZhouSharpness-Aware MinimizationDeep Learning Optimization

  2. Fix the Loss, Not the Radius: Rethinking the Adversarial Perturbation of Sharpness-Aware Minimization

    May 11, 2026Jinping Wang, Qinhan Liu, Zhiwu Xie +1Neural Network GeneralizationSharpness-Aware Minimization

  3. Gradient-Energy Guided Block-Wise Perturbations for Sharpness-Aware Minimization

    Jul 17, 2026Zhen Huang, Jiaxin Deng, Junbiao PangSharpness-Aware MinimizationNeural Network Optimization