Explicit Eigenvalue Regularization Improves Sharpness-Aware Minimization

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Luo, Haocheng, Truong, Tuan, Pham, Tung, Harandi, Mehrtash, Phung, Dinh, Le, Trung
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866916577284194304
author Luo, Haocheng
Truong, Tuan
Pham, Tung
Harandi, Mehrtash
Phung, Dinh
Le, Trung
author_facet Luo, Haocheng
Truong, Tuan
Pham, Tung
Harandi, Mehrtash
Phung, Dinh
Le, Trung
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2501_12666
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Explicit Eigenvalue Regularization Improves Sharpness-Aware Minimization
Luo, Haocheng
Truong, Tuan
Pham, Tung
Harandi, Mehrtash
Phung, Dinh
Le, Trung
Machine Learning
Computer Vision and Pattern Recognition
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.
title Explicit Eigenvalue Regularization Improves Sharpness-Aware Minimization
topic Machine Learning
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2501.12666