paper-with-me

Papers

Towards Understanding Sharpness-Aware Minimization

2022-06-13 · Maksym Andriushchenko, Nicolas Flammarion

Sharpness-Aware Minimization (SAM) is a recent training method that relies on worst-case weight perturbations which significantly improves generalization in various settings. We argue that the existing justifications for the success of SAM which are based on a PAC-Bayes generalization bound and the idea of convergence to flat minima are incomplete. Moreover, there are no explanations for the success of using $m$-sharpness in SAM which has been shown as essential for generalization. To better understand this aspect of SAM, we theoretically analyze its implicit bias for diagonal linear networks. We prove that SAM always chooses a solution that enjoys better generalization properties than standard gradient descent for a certain class of problems, and this effect is amplified by using $m$-sharpness. We further study the properties of the implicit bias on non-linear networks empirically, where we show that fine-tuning a standard model with SAM can lead to significant generalization improvements. Finally, we provide convergence results of SAM for non-convex objectives when used with stochastic gradients. We illustrate these results empirically for deep networks and discuss their relation to the generalization behavior of SAM. The code of our experiments is available at https://github.com/tml-epfl/understanding-sam.

📄 PDF Abstract BibTeX arXiv:2206.06232

Code (1)

tml-epfl/understanding-sam 공식 구현 pytorch

Similar Papers 제목 키워드 기반

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

1st-Order Magic: Analysis of Sharpness-Aware Minimization

2024-11-03 · Nalin Tiwary, Siddarth Aananth

Sharpness-Aware Minimization (SAM) is an optimization technique designed to improve generalization by favoring flatter loss minima. To achieve this, SAM optimizes a modified objective that penalizes sharpness, using comp…

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

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

Sharpness-Aware Minimization with Dynamic Reweighting

2021-12-16 · Wenxuan Zhou, Fangyu Liu, huan zhang, Muhao Chen

Deep neural networks are often overparameterized and may not easily achieve model generalization. Adversarial training has shown effectiveness in improving generalization by regularizing the change of loss on top of adve…

Natural Language Understanding