paper-with-me

홈 › Papers

Friendly Sharpness-Aware Minimization

2024-03-19 · CVPR 2024 1 · Tao Li, Pan Zhou, Zhengbao He, Xinwen Cheng, Xiaolin Huang

Sharpness-Aware Minimization (SAM) has been instrumental in improving deep neural network training by minimizing both training loss and loss sharpness. Despite the practical success, the mechanisms behind SAM's generalization enhancements remain elusive, limiting its progress in deep learning optimization. In this work, we investigate SAM's core components for generalization improvement and introduce "Friendly-SAM" (F-SAM) to further enhance SAM's generalization. Our investigation reveals the key role of batch-specific stochastic gradient noise within the adversarial perturbation, i.e., the current minibatch gradient, which significantly influences SAM's generalization performance. By decomposing the adversarial perturbation in SAM into full gradient and stochastic gradient noise components, we discover that relying solely on the full gradient component degrades generalization while excluding it leads to improved performance. The possible reason lies in the full gradient component's increase in sharpness loss for the entire dataset, creating inconsistencies with the subsequent sharpness minimization step solely on the current minibatch data. Inspired by these insights, F-SAM aims to mitigate the negative effects of the full gradient component. It removes the full gradient estimated by an exponentially moving average (EMA) of historical stochastic gradients, and then leverages stochastic gradient noise for improved generalization. Moreover, we provide theoretical validation for the EMA approximation and prove the convergence of F-SAM on non-convex problems. Extensive experiments demonstrate the superior generalization performance and robustness of F-SAM over vanilla SAM. Code is available at https://github.com/nblt/F-SAM.

📄 PDF Abstract BibTeX arXiv:2403.12350

Code (1)

nblt/f-sam 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

SAM 설명 없음

Similar Papers 제목 키워드 기반

VASSO: Variance Suppression for Sharpness-Aware Minimization

2025-09-02 · Bingcong Li, Yilang Zhang, Georgios B. Giannakis arxiv

Sharpness-aware minimization (SAM) has well-documented merits in enhancing generalization of deep neural network models. Accounting for sharpness in the loss function geometry, where neighborhoods of `flat minima' height…

Sharpness-Aware Minimization with Z-Score Gradient Filtering for Neural Networks

2025-05-05 · Juyoung Yun

Sharpness-Aware Minimization (SAM) improves neural network generalization by optimizing the worst-case loss within a neighborhood of parameters, yet it perturbs parameters using the entire gradient vector, including comp…

Enhancing Sharpness-Aware Optimization Through Variance Suppression

2023-09-27 · NeurIPS 2023 11 · Bingcong Li, Georgios B. Giannakis

Sharpness-aware minimization (SAM) has well documented merits in enhancing generalization of deep neural networks, even without sizable data augmentation. Embracing the geometry of the loss function, where neighborhoods …

Data Augmentationimage-classificationImage ClassificationMachine Translation

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

FedVSSAM: Mitigating Flatness Incompatibility in Sharpness-Aware Federated Learning

2026-05-09 · Bingnan Xiao, Yuan Gao, Bingcong Li, Wei Ni 외 arxiv

Sharpness-aware minimization (SAM) is an effective method for improving the generalization of federated learning (FL) by steering local training toward flat minima. Under data heterogeneity, however, device-side SAM sear…

Federated Learning