paper-with-me

홈 › Papers

Towards Efficient and Scalable Sharpness-Aware Minimization

2022-03-05 · CVPR 2022 1 · Yong liu, Siqi Mai, Xiangning Chen, Cho-Jui Hsieh, Yang You

Recently, Sharpness-Aware Minimization (SAM), which connects the geometry of the loss landscape and generalization, has demonstrated significant performance boosts on training large-scale models such as vision transformers. However, the update rule of SAM requires two sequential (non-parallelizable) gradient computations at each step, which can double the computational overhead. In this paper, we propose a novel algorithm LookSAM - that only periodically calculates the inner gradient ascent, to significantly reduce the additional training cost of SAM. The empirical results illustrate that LookSAM achieves similar accuracy gains to SAM while being tremendously faster - it enjoys comparable computational complexity with first-order optimizers such as SGD or Adam. To further evaluate the performance and scalability of LookSAM, we incorporate a layer-wise modification and perform experiments in the large-batch training scenario, which is more prone to converge to sharp local minima. We are the first to successfully scale up the batch size when training Vision Transformers (ViTs). With a 64k batch size, we are able to train ViTs from scratch in minutes while maintaining competitive performance.

📄 PDF Abstract BibTeX arXiv:2203.02714

Code (4)

Leminhbinh0209/LookSAM pytorch
MindSpore-scientific/code-14/tree/main/Scalable-Sharpness-Aware-Minimization mindspore
MindSpore-scientific/code-14/tree/main/SeesawLoss-master mindspore
rollovd/LookSAM pytorch

Methods 이 논문이 사용한 방법론

SGD Stochastic Gradient Descent is an iterative optimization technique that uses minibatches of data to form an expectation of the gradient, rather than the full gradient using…
Adam 설명 없음
Sharpness-Aware Minimization Sharpness-Aware Minimization, or SAM, is a procedure that improves model generalization by simultaneously minimizing loss value and loss sharpness. SAM functions by…

Similar Papers 제목 키워드 기반

Model Generalization: A Sharpness Aware Optimization Perspective

2022-08-14 · Jozef Marus Coldenhoff, Chengkun Li, Yurui Zhu

Sharpness-Aware Minimization (SAM) and adaptive sharpness-aware minimization (ASAM) aim to improve the model generalization. And in this project, we proposed three experiments to valid their generalization from the sharp…

modelvalid

Leveraging Extragradient for Effective Sharpness-Aware Minimization in Deep Learning

2026-07-07 · Yao Fu, Chunxia Zhang, Junmin Liu, Yihang Jin 외 arxiv

Generalization remains a pivotal challenge in deep learning, where traditional optimizers like Stochastic Gradient Descent (SGD) often converge to sharp minima, leading to overfitting and reduced performance on unseen da…

DGSAM: Domain Generalization via Individual Sharpness-Aware Minimization

2025-03-30 · Youngjun Song, Youngsik Hwang, Jonghun Lee, Heechang Lee 외

Domain generalization (DG) aims to learn models that can generalize well to unseen domains by training only on a set of source domains. Sharpness-Aware Minimization (SAM) has been a popular approach for this, aiming to f…

Computational EfficiencyDomain Generalization

SAMSON: Sharpness-Aware Minimization Scaled by Outlier Normalization for Improving DNN Generalization and Robustness

2022-11-18 · Gonçalo Mordido, Sébastien Henwood, Sarath Chandar, François Leduc-Primeau

Energy-efficient deep neural network (DNN) accelerators are prone to non-idealities that degrade DNN performance at inference time. To mitigate such degradation, existing methods typically add perturbations to the DNN we…

RSAM: Learning on manifolds with Riemannian Sharpness-aware Minimization

2023-09-29 · Tuan Truong, Hoang-Phi Nguyen, Tung Pham, Minh-Tuan Tran 외

Nowadays, understanding the geometry of the loss landscape shows promise in enhancing a model's generalization ability. In this work, we draw upon prior works that apply geometric principles to optimization and present a…

Contrastive Learningimage-classificationImage Classification