[Paper Review] How noise affects the Hessian spectrum in overparameterized neural networks
This paper demonstrates that stochastic gradient descent (SGD) reduces the trace of the Hessian in overparameterized neural networks within degenerate loss valleys, where curvature is flat in some directions. Using fluctuation-dissipation relations, it shows that noise from SGD systematically decreases Hessian trace and that isotropic noise in non-degenerate directions reduces Hessian determinant, offering a mechanism for generalization and guiding new optimization designs.
Stochastic gradient descent (SGD) forms the core optimization method for deep neural networks. While some theoretical progress has been made, it still remains unclear why SGD leads the learning dynamics in overparameterized networks to solutions that generalize well. Here we show that for overparameterized networks with a degenerate valley in their loss landscape, SGD on average decreases the trace of the Hessian of the loss. We also generalize this result to other noise structures and show that isotropic noise in the non-degenerate subspace of the Hessian decreases its determinant. In addition to explaining SGDs role in sculpting the Hessian spectrum, this opens the door to new optimization approaches that may confer better generalization performance. We test our results with experiments on toy models and deep neural networks.
Motivation & Objective
- To explain why SGD in overparameterized networks generalizes well despite using only first-order information.
- To investigate how noise from SGD affects the Hessian spectrum, particularly in degenerate loss valleys.
- To derive noise covariance structures that control evolution of Hessian trace and determinant for improved generalization.
- To validate theoretical predictions with experiments on toy models and deep neural networks.
- To open pathways for designing new optimization algorithms based on controlled Hessian evolution.
Proposed method
- Theoretical analysis uses fluctuation-dissipation relations (Yaida, 2019) to model SGD noise effects on the Hessian in parameter space.
- A minimal valley structure is defined, where the loss function is approximated as a quadratic form with degenerate and non-degenerate subspaces.
- The Hessian trace and determinant evolution are derived under different noise covariance structures, showing that SGD noise reduces trace and isotropic noise reduces determinant.
- A coordinate transformation is applied to decouple non-degenerate and degenerate subspaces, enabling analysis of Hessian eigenvalue dynamics.
- Experiments use toy models with controlled loss functions to test trace and determinant evolution under varying learning rates and noise structures.
- Projected paths along SGD trajectories are used to estimate Hessian trace evolution, validated via numerical estimation (Bai et al., 1996).
Experimental results
Research questions
- RQ1How does SGD noise affect the trace of the Hessian in overparameterized networks with degenerate loss valleys?
- RQ2Can noise covariance structures be designed to control the evolution of Hessian determinant during optimization?
- RQ3Does the Hessian trace decrease along projected SGD trajectories in the loss landscape?
- RQ4What is the dependence of Hessian trace evolution on learning rate and noise variance?
- RQ5To what extent does Hessian trace evolution correlate with generalization performance?
Key findings
- SGD noise reduces the trace of the Hessian on average in degenerate valleys, consistent with the preference for flatter minima.
- The trace evolution rate is proportional to η², with contributions from both gradient step expansion and equilibrium statistics in non-degenerate directions.
- Isotropic noise in the non-degenerate subspace reduces the Hessian determinant, suggesting a mechanism for escaping sharp minima.
- Experiments on toy models confirm a linear relationship between training loss and the sum of negative Hessian eigenvalues.
- Projected path analysis on Preact-ResNet18 and VGG16 shows that Hessian trace decreases during training, even when validation loss increases.
- The observed Hessian trace evolution aligns with theoretical predictions and supports the role of noise in shaping the Hessian spectrum for better generalization.
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.