On the Maximum Hessian Eigenvalue and Generalization
Abstract
The mechanisms by which certain training interventions, such as increasing learning rates and applying batch normalization, improve the generalization of deep networks remains a mystery. Prior works have speculated that "flatter" solutions generalize better than "sharper" solutions to unseen data, motivating several metrics for measuring flatness (particularly $λ_{max}$, the largest eigenvalue of the Hessian of the loss); and algorithms, such as Sharpness-Aware Minimization (SAM) [1], that directly optimize for flatness. Other works question the link between $λ_{max}$ and generalization. In this paper, we present findings that call $λ_{max}$'s influence on generalization further into question. We show that: (1) while larger learning rates reduce $λ_{max}$ for all batch sizes, generalization benefits sometimes vanish at larger batch sizes; (2) by scaling batch size and learning rate simultaneously, we can change $λ_{max}$ without affecting generalization; (3) while SAM produces smaller $λ_{max}$ for all batch sizes, generalization benefits (also) vanish with larger batch sizes; (4) for dropout, excessively high dropout probabilities can degrade generalization, even as they promote smaller $λ_{max}$; and (5) while batch-normalization does not consistently produce smaller $λ_{max}$, it nevertheless confers generalization benefits. While our experiments affirm the generalization benefits of large learning rates and SAM for minibatch SGD, the GD-SGD discrepancy demonstrates limits to $λ_{max}$'s ability to explain generalization in neural networks.
BibTeX
@inproceedings{kaur2022maximum,
author = {Simran Kaur and Jeremy Cohen and Zachary C. Lipton},
title = {{On the Maximum Hessian Eigenvalue and Generalization}},
booktitle = {ICBINB @ NeurIPS},
year = {2022},
url = {https://openreview.net/forum?id=llza_S8mHT-},
}Ask Althea to put this paper to the test.
| Flatness After All? | arXiv · 2025 |
| Towards Understanding Generalization of Deep Learning: Perspective of Loss Landscapes | arXiv · 2017 |
| Finding Flatter Minima with SGD | Workshops @ ICLR · 2018 |
| A Modern Look at the Relationship between Sharpness and Generalization | ICML · 2023 |
| Sharp Minima Can Generalize For Deep Nets | ICML · 2017 |
| Relative Flatness and Generalization | arXiv · 2019 |