[Paper Review] An Investigation into Neural Net Optimization via Hessian Eigenvalue Density
The paper develops a scalable tool to estimate the full Hessian spectrum of large neural networks during training and shows that outlier eigenvalues slow optimization, while batch normalization suppresses these outliers.
To understand the dynamics of optimization in deep neural networks, we develop a tool to study the evolution of the entire Hessian spectrum throughout the optimization process. Using this, we study a number of hypotheses concerning smoothness, curvature, and sharpness in the deep learning literature. We then thoroughly analyze a crucial structural feature of the spectra: in non-batch normalized networks, we observe the rapid appearance of large isolated eigenvalues in the spectrum, along with a surprising concentration of the gradient in the corresponding eigenspaces. In batch normalized networks, these two effects are almost absent. We characterize these effects, and explain how they affect optimization speed through both theory and experiments. As part of this work, we adapt advanced tools from numerical linear algebra that allow scalable and accurate estimation of the entire Hessian spectrum of ImageNet-scale neural networks; this technique may be of independent interest in other applications.
Motivation & Objective
- Develop a scalable tool to estimate the full Hessian spectrum for large neural networks.
- Empirically analyze the Hessian spectrum across training to evaluate curvature and optimization hypotheses.
- Investigate the role of outlier Hessian eigenvalues and the impact of batch normalization on optimization speed.
Proposed method
- Use Pearlmutter's trick to compute Hessian-vector products.
- Apply stochastic Lanczos quadrature with Gaussian quadrature for Hessian spectrum density estimation.
- Perform multi-sample averaging to estimate the smoothed spectral density phi_sigma(t).
- Validate accuracy against small models with double-precision ground truth.
- Track Hessian spectra along optimization trajectories for ResNet/VGG on CIFAR-10 and ImageNet.
Experimental results
Research questions
- RQ1What is the full Hessian spectrum during training of large neural networks?
- RQ2How do outlier eigenvalues influence optimization speed?
- RQ3What is the effect of batch normalization on the Hessian spectrum and training dynamics?
- RQ4Can BN change the distribution of gradient energy across eigen-directions?
- RQ5Do spectral properties correlate with learning rate schedules or architectural choices (e.g., residual connections)?
Key findings
- The Hessian spectrum quickly loses large negative eigenvalues at the very start of training and stabilizes with most eigenvalues near zero.
- Outlier Hessian eigenvalues correlate with slower optimization in non-batch normalized networks.
- Batch normalization suppresses outlier eigenvalues, concentrating gradient energy away from the outlier subspaces, and speeds up optimization.
- Lowering the learning rate can contract large eigenvalues and reduce outlier magnitude, contrary to some flat/sharp minima expectations.
- Residual connections further contract eigenvalues toward zero, aligning with BN effects on smoother spectra.
- Full-batch statistics in BN can reintroduce outliers and slow training, supporting a spectrum-based view of BN’s role.
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.