[Paper Review] On the Maximum Hessian Eigenvalue and Generalization
This paper investigates the link between the maximum Hessian eigenvalue ($\lambda_{\text{max}}$) and neural network generalization, demonstrating that smaller $\lambda_{\text{max}}$ values do not consistently improve generalization. Through controlled experiments on VGG networks, it shows that interventions like large learning rates, batch normalization, dropout, and SAM reduce $\lambda_{\text{max}}$ yet fail to improve or even degrade test accuracy—especially at large batch sizes—while batch normalization improves generalization without reducing $\lambda_{\text{max}}$. These findings challenge $\lambda_{\text{max}}$ as a reliable proxy for generalization.
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.
Motivation & Objective
- To investigate whether the maximum Hessian eigenvalue ($\lambda_{\text{max}}$) reliably predicts or causally influences neural network generalization.
- To test the robustness of $\lambda_{\text{max}}$ as a flatness metric across diverse training interventions, including learning rate, batch size, dropout, batch normalization, and SAM.
- To determine whether generalization improvements can occur without reducing $\lambda_{\text{max}}$, or whether $\lambda_{\text{max}}$ can be reduced without improving generalization.
- To evaluate the validity of $\lambda_{\text{max}}$ as a scientific explanation for the success of optimization methods like SAM and batch normalization.
Proposed method
- The authors train VGG-11 models on CIFAR-10 using minibatch SGD with controlled variations in learning rate, batch size, dropout rate, and batch normalization.
- They compute $\lambda_{\text{max}}$ using a grid-based approximation between successive training iterates, following Cohen et al. [24], to ensure accuracy in the edge-of-stability regime.
- Experiments are conducted across small and large batch sizes, with learning rates varied to assess the impact on $\lambda_{\text{max}}$ and test accuracy.
- The study compares models with and without batch normalization, dropout, and SAM, measuring both $\lambda_{\text{max}}$ and generalization performance across multiple random seeds.
- The linear scaling rule is applied to maintain consistent training dynamics when increasing batch size and learning rate in tandem.
- Statistical comparisons are made across 4 runs per setting to ensure robustness of $\lambda_{\text{max}}$ and test accuracy measurements.
Experimental results
Research questions
- RQ1Does reducing $\lambda_{\text{max}}$ via increased learning rate consistently improve generalization, especially at large batch sizes?
- RQ2Can $\lambda_{\text{max}}$ be reduced without changing generalization performance by scaling learning rate and batch size together?
- RQ3Do the generalization benefits of SAM persist when $\lambda_{\text{max}}$ is reduced, particularly in the large-batch regime?
- RQ4Does excessive dropout reduce generalization despite lowering $\lambda_{\text{max}}$?
- RQ5Can batch normalization improve generalization without reducing $\lambda_{\text{max}}$?
Key findings
- For non-batch-normalized VGG networks, increasing the learning rate reduces $\lambda_{\text{max}}$ across all batch sizes, but generalization benefits vanish at large batch sizes.
- When learning rate and batch size are scaled together in a ratio-preserving manner, $\lambda_{\text{max}}$ decreases without any change in generalization performance, confirming that $\lambda_{\text{max}}$ is not causally linked to generalization.
- SAM reduces $\lambda_{\text{max}}$ for all batch sizes, but its generalization benefits diminish and vanish entirely at large batch sizes, despite flatter solutions.
- Excessively high dropout probabilities degrade test accuracy even as they reduce $\lambda_{\text{max}}$, showing that smaller $\lambda_{\text{max}}$ does not ensure better generalization.
- Batch normalization improves generalization at large learning rates, particularly in the large-batch setting, yet does not significantly reduce $\lambda_{\text{max}}$, demonstrating that generalization can improve without flatter solutions.
- For fixed learning rates and batch sizes, models with and without batch normalization exhibit comparable $\lambda_{\text{max}}$ values, yet differ substantially in test accuracy—highlighting that $\lambda_{\text{max}}$ cannot explain generalization differences.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.