Explicit Eigenvalue Regularization Improves Sharpness-Aware Minimization
Haocheng Luo, Tuan Truong, Tung Pham, Mehrtash Harandi, Dinh Q. 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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Rényi Sharpness: A Novel Sharpness that Strongly Correlates with Generalization 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Rényi Sharpness: A Novel Sharpness that Strongly Correlates with Generalization 引用了 Fantastic Generalization Measures and Where to Find Them
- Rényi Sharpness: A Novel Sharpness that Strongly Correlates with Generalization 引用了 Sharpness-aware Minimization for Efficiently Improving Generalization
- Unveiling m-Sharpness Through the Structure of Stochastic Gradient Noise 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Unveiling m-Sharpness Through the Structure of Stochastic Gradient Noise 引用了 Sharpness-aware Minimization for Efficiently Improving Generalization
- Bilevel Optimization for Adversarial Learning Problems: Sharpness, Generation, and Beyond 引用了 Fantastic Generalization Measures and Where to Find Them
- Bilevel Optimization for Adversarial Learning Problems: Sharpness, Generation, and Beyond 引用了 Sharpness-aware Minimization for Efficiently Improving Generalization
- Sharpness-Aware Minimization in Logit Space Efficiently Enhances Direct Preference Optimization 引用了 Fantastic Generalization Measures and Where to Find Them
- Sharpness-Aware Minimization in Logit Space Efficiently Enhances Direct Preference Optimization 引用了 Sharpness-aware Minimization for Efficiently Improving Generalization
- Understanding SAM through Minimax Perspective 引用了 Sharpness-aware Minimization for Efficiently Improving Generalization
- Sharpness-aware Minimization for Efficiently Improving Generalization 引用了 Fantastic Generalization Measures and Where to Find Them
引用它的顶会 Paper8
- Unveiling m-Sharpness Through the Structure of Stochastic Gradient NoiseHaocheng Luo, Mehrtash Harandi, Dinh Phung, Trung LeNeurIPS 2025 · 2 次引用
- Bilevel Optimization for Adversarial Learning Problems: Sharpness, Generation, and BeyondRisheng Liu, Zhu Liu, Weihao Mao, Wei Yao 等NeurIPS 2025 · 2 次引用
- Rényi Sharpness: A Novel Sharpness that Strongly Correlates with GeneralizationQiaozhe Zhang, Jun Sun, Yingzhuang LiuICLR 2026 · 1 次引用
- Sharpness-Aware Minimization in Logit Space Efficiently Enhances Direct Preference OptimizationHaocheng Luo, Zehang Deng, Thanh-Toan Do, Mehrtash Harandi 等ICLR 2026 · 1 次引用
- Understanding SAM through Minimax PerspectiveYing Chen, Aoxi Li, Javad LavaeiICML 2026
它引用的 Paper20
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- Sharpness-aware Minimization for Efficiently Improving GeneralizationPierre Foret, Ariel Kleiner, Hossein Mobahi, Behnam NeyshaburICLR 2021 · 1,861 次引用
- Fantastic Generalization Measures and Where to Find ThemYiding Jiang, Behnam Neyshabur, Hossein Mobahi, Dilip Krishnan 等ICLR 2020 · 705 次引用
- Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-trainingHong Liu, Zhiyuan Li, David Leo Wright Hall, Percy Liang 等ICLR 2024 · 264 次引用
- Implicit Gradient RegularizationDavid G. T. Barrett, Benoit DherinICLR 2021 · 235 次引用
相关 Paper
- How Sharpness-Aware Minimization Minimizes Sharpness?Kaiyue Wen, Tengyu Ma, Zhiyuan LiICLR 2023 · 3 次引用
- SAM operates far from home: eigenvalue regularization as a dynamical phenomenonAtish Agarwala, Yann N. DauphinICML 2023 · 26 次引用
- Gradient Norm Aware Minimization Seeks First-Order Flatness and Improves GeneralizationXingxuan Zhang, Renzhe Xu, Han Yu, Hao Zou 等CVPR 2023
- An SDE for Modeling SAM: Theory and InsightsEnea Monzio Compagnoni, Luca Biggio, Antonio Orvieto, Frank Norbert Proske 等ICML 2023 · 25 次引用
- Stability Analysis of Sharpness-Aware MinimizationHoki Kim, Jinseong Park, Yujin Choi, Jaewook LeeICML 2026 · 18 次引用
