paper-with-me

Papers

Explicit Eigenvalue Regularization Improves Sharpness-Aware Minimization

2025-01-22 · Haocheng Luo, Tuan Truong, Tung Pham, Mehrtash Harandi, Dinh Phung, Trung Le

Sharpness-Aware Minimization (SAM) has attracted significant attention for its effectiveness in improving generalization across various tasks. However, its underlying principles remain poorly understood. In this work, we analyze SAM's training dynamics using the maximum eigenvalue of the Hessian as a measure of sharpness, and propose a third-order stochastic differential equation (SDE), which reveals that the dynamics are driven by a complex mixture of second- and third-order terms. We show that alignment between the perturbation vector and the top eigenvector is crucial for SAM's effectiveness in regularizing sharpness, but find that this alignment is often inadequate in practice, limiting SAM's efficiency. Building on these insights, we introduce Eigen-SAM, an algorithm that explicitly aims to regularize the top Hessian eigenvalue by aligning the perturbation vector with the leading eigenvector. We validate the effectiveness of our theory and the practical advantages of our proposed approach through comprehensive experiments. Code is available at https://github.com/RitianLuo/EigenSAM.

📄 PDF Abstract BibTeX arXiv:2501.12666

Code (1)

ritianluo/eigensam 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

X-SAM: Boosting Sharpness-Aware Minimization with Dominant-Eigenvector Gradient Correction

2026-01-15 · Hongru Duan, Yongle Chen, Lei Guan arxiv

Sharpness-Aware Minimization (SAM) aims to improve generalization by minimizing a worst-case perturbed loss over a small neighborhood of model parameters. However, during training, its optimization behavior does not alwa…

SAM operates far from home: eigenvalue regularization as a dynamical phenomenon

2023-02-17 · Atish Agarwala, Yann N. Dauphin

The Sharpness Aware Minimization (SAM) optimization algorithm has been shown to control large eigenvalues of the loss Hessian and provide generalization benefits in a variety of settings. The original motivation for SAM …

Rényi Sharpness: A Novel Sharpness that Strongly Correlates with Generalization

2025-10-09 · Qiaozhe Zhang, Jun Sun, Ruijie Zhang, Yingzhuang Liu arxiv

Sharpness (of the loss minima) is widely believed to be a good indicator of generalization of neural networks. Unfortunately, the correlation between existing sharpness measures and generalization is not as strong as exp…

Implicit Jacobian regularization weighted with impurity of probability output

2021-09-29 · Sungyoon Lee, Jinseong Park, Jaewook Lee

Gradient descent (GD) plays a crucial role in the success of deep learning, but it is still not fully understood how GD finds minima that generalize well. In many studies, GD has been understood as a gradient flow in the…

Relation

Implicit Regularization of Sharpness-Aware Minimization for Scale-Invariant Problems

2024-10-18 · Bingcong Li, Liang Zhang, Niao He

Sharpness-aware minimization (SAM) improves generalization of various deep learning tasks. Motivated by popular architectures such as LoRA, we explore the implicit regularization of SAM for scale-invariant problems invol…