arrow
Return

Parallelizing Sharpness-Aware Minimization: A Semi-asynchronous, Small-Batch Approach

delete2026-01-01
delete0
PRE
AI
W
Weimin Li
Y
Yuzhong Sun *
DOI:10.1007/978-3-032-04558-4_9delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Sharpness-aware minimization (SAM), which seeks flat minima of the loss landscape, has proven effective in improving the generalization performance of deep learning models. However, SAM inherently calculates two gradients sequentially per step, doubling the training overhead while leaving the potential to improve performance. In this paper, we propose a novel approach that enhances both training efficiency and the generalization performance of SAM. Our approach leverages the noteworthy observations that (1) Asynchronous SGD gradient with a small delay can align with SAM gradient in direction while retaining efficient convergence, yet it struggles to match its scale and achieve comparable generalization. (2) Adopting smaller batch sizes in ASGD bolsters generalization with little impact on convergence but decreases throughput. Based on these insights, we propose ParaS3AM, a parallel algorithm that approximates SAM using one-step delayed ASGD while enhancing generalization performance using smaller batch sizes without substantial losses in throughput. Experiments on various datasets and architectures demonstrate that ParaS3AM outperforms state-ofthe-art baselines and achieves the optimal performance-efficiency trade-off.
Keywords:
SAM
ASGD
Batch Size

Journal

A
ARTIFICIAL NEURAL NETWORKS AND MACHINE LEARNING-ICANN 2025, PT I
IF:
0
Papers:
53
Citations:
0

Organization

C
chinese academy of sciences
Scholars:
56.7W
Papers: 45.0W
Citations: 704
Cited Papers

Cited Papers

Neural Collaborative Filtering
err2017-04-03
err0
errOAAI
errXiangnan He; Lizi Liao; Hanwang Zhang; Liqiang Nie; Xia Hu; Tat-Seng Chua
errShare
errSave
The Elements of Statistical Learning
err2009-01-01
err0
PREAI
errTrevor Hastie; Robert Tibshirani; Jerome Friedman
errShare
errSave