paper-with-me

Papers

Sharpness-Aware Minimization Efficiently Selects Flatter Minima Late in Training

2024-10-14 · Zhanpeng Zhou, Mingze Wang, Yuchen Mao, Bingrui Li, Junchi Yan

Sharpness-Aware Minimization (SAM) has substantially improved the generalization of neural networks under various settings. Despite the success, its effectiveness remains poorly understood. In this work, we discover an intriguing phenomenon in the training dynamics of SAM, shedding lights on understanding its implicit bias towards flatter minima over Stochastic Gradient Descent (SGD). Specifically, we find that SAM efficiently selects flatter minima late in training. Remarkably, even a few epochs of SAM applied at the end of training yield nearly the same generalization and solution sharpness as full SAM training. Subsequently, we delve deeper into the underlying mechanism behind this phenomenon. Theoretically, we identify two phases in the learning dynamics after applying SAM late in training: i) SAM first escapes the minimum found by SGD exponentially fast; and ii) then rapidly converges to a flatter minimum within the same valley. Furthermore, we empirically investigate the role of SAM during the early training phase. We conjecture that the optimization method chosen in the late phase is more crucial in shaping the final solution's properties. Based on this viewpoint, we extend our findings from SAM to Adversarial Training.

📄 PDF Abstract BibTeX arXiv:2410.10373

Code (0)

등록된 구현이 없습니다.

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…
SAM 설명 없음

Similar Papers 제목 키워드 기반

Beyond Local Sharpness: Communication-Efficient Global Sharpness-aware Minimization for Federated Learning

2024-12-04 · CVPR 2025 1 · Debora Caldarola, Pietro Cagnasso, Barbara Caputo, Marco Ciccone

Federated learning (FL) enables collaborative model training with privacy preservation. Data heterogeneity across edge devices (clients) can cause models to converge to sharp minima, negatively impacting generalization a…

Federated Learning

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…

On Memorization and Privacy Risks of Sharpness Aware Minimization

2023-09-30 · Young In Kim, Pratiksha Agrawal, Johannes O. Royset, Rajiv Khanna

In many recent works, there is an increased focus on designing algorithms that seek flatter optima for neural network loss optimization as there is empirical evidence that it leads to better generalization performance in…

Memorization

Sharpness-Aware Minimization Revisited: Weighted Sharpness as a Regularization Term

2023-05-25 · Yun Yue, Jiadi Jiang, Zhiling Ye, Ning Gao 외

Deep Neural Networks (DNNs) generalization is known to be closely related to the flatness of minima, leading to the development of Sharpness-Aware Minimization (SAM) for seeking flatter minima and better generalization. …

GCSAM: Gradient Centralized Sharpness Aware Minimization

2025-01-20 · Mohamed Hassan, Aleksandar Vakanski, Boyu Zhang, Min Xian

The generalization performance of deep neural networks (DNNs) is a critical factor in achieving robust model behavior on unseen data. Recent studies have highlighted the importance of sharpness-based measures in promotin…

Computational Efficiency