Flat Minima and Generalization: Insights from Stochastic Convex Optimization
Abstract
Understanding the generalization behavior of learning algorithms is a central goal of learning theory. A recently emerging explanation is that learning algorithms are successful in practice because they converge to flat minima, which have been consistently associated with improved generalization performance. In this work, we study the link between flat minima and generalization in the canonical setting of stochastic convex optimization with a non-negative, β-smooth objective. Our first finding is that, even in this fundamental and well-studied setting, flat empirical minima may incur trivial Ω(1) population risk while sharp minima generalizes optimally. Then, we show that this poor generalization behavior extends to two natural "sharpness-aware" algorithms originally proposed by Foret et al. ( 2021 ), designed to bias optimization toward flat solutions: Sharpness-Aware Gradient Descent (SA-GD) and Sharpness-Aware Minimization (SAM). For SA-GD, which performs gradient steps on the maximal loss in a predefined neighborhood, we prove that while it successfully converges to a flat minimum at a fast rate, the population risk of the solution can still be as large as Ω(1), indicating that even flat minima found algorithmically using a sharpness-aware gradient method might generalize poorly. For SAM, a computationally efficient approximation of SA-GD based on normalized ascent steps, we show that although it minimizes the empirical loss, it may converge to a sharp minimum and also incur population risk Ω(1). Finally, we establish population risk upper bounds for both SA-GD and SAM using algorithmic stability techniques.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
1 top-tier paper has cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentations cites Adversarial Weight Perturbation Helps Robust Generalization
- When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentations cites Sharpness-aware Minimization for Efficiently Improving Generalization
- Surrogate Gap Minimization Improves Sharpness-Aware Training cites When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentations
- Surrogate Gap Minimization Improves Sharpness-Aware Training cites Fantastic Generalization Measures and Where to Find Them
- Surrogate Gap Minimization Improves Sharpness-Aware Training cites Sharpness-aware Minimization for Efficiently Improving Generalization
- Sharpness-aware Minimization for Efficiently Improving Generalization cites Fantastic Generalization Measures and Where to Find Them
Cited by top-tier papers1
Builds on42
- Sharpness-aware Minimization for Efficiently Improving GeneralizationPierre Foret, Ariel Kleiner, Hossein Mobahi, Behnam NeyshaburICLR 2021 · 1,861 citations
- Adversarial Weight Perturbation Helps Robust GeneralizationDongxian Wu, Shu-Tao Xia, Yisen WangNeurIPS 2020 · 917 citations
- Fantastic Generalization Measures and Where to Find ThemYiding Jiang, Behnam Neyshabur, Hossein Mobahi, Dilip Krishnan et al.ICLR 2020 · 705 citations
- When Vision Transformers Outperform ResNets without Pre-training or Strong Data AugmentationsXiangning Chen, Cho-Jui Hsieh, Boqing GongICLR 2022 · 388 citations
- Surrogate Gap Minimization Improves Sharpness-Aware TrainingJuntang Zhuang, Boqing Gong, Liangzhe Yuan, Yin Cui et al.ICLR 2022 · 213 citations
Related papers
- Towards Understanding Sharpness-Aware MinimizationMaksym Andriushchenko, Nicolas FlammarionICML 2022 · 190 citations
- The Crucial Role of Normalization in Sharpness-Aware MinimizationYan Dai, Kwangjun Ahn, Suvrit SraNeurIPS 2023 · 36 citations
- How to Escape Sharp Minima with Random PerturbationsKwangjun Ahn, Ali Jadbabaie, Suvrit SraICML 2024 · 17 citations
- Gradient Norm Aware Minimization Seeks First-Order Flatness and Improves GeneralizationXingxuan Zhang, Renzhe Xu, Han Yu, Hao Zou et al.CVPR 2023
- Improving Sharpness-Aware Minimization by LookaheadRunsheng Yu, Youzhi Zhang, James T. KwokICML 2024 · 1 citation
