The asymptotic spectrum of the Hessian of DNN throughout training

Arthur Jacot, Franck Gabriel, Clément Hongler

Overview

Training a deep neural network (DNN) is fundamentally an exercise in navigating a complex, high-dimensional loss landscape. Researchers have long observed two curious numerical phenomena regarding this landscape: first, it often resembles a "narrow valley"—a winding canyon with a few incredibly steep directions (high curvature) and many flat directions; second, it is littered with saddle points where the relationship between the loss value and the number of negative eigenvalues in the Hessian matrix follows specific patterns.

While these phenomena are well-documented in experiments, a rigorous theoretical explanation for why the Hessian behaves this way—especially as the network evolves during training—has been elusive. This paper provides a robust theoretical framework to characterize the spectrum of the Hessian (the matrix of second-order derivatives) throughout the entire training process of an infinitely wide neural network. By leveraging the Neural Tangent Kernel (NTK), the authors prove that the Hessian is the sum of two asymptotically orthogonal matrices, explaining the origin of the narrow valley structure.

The NTK Framework and Hessian Decomposition

To make the training dynamics mathematically tractable, the researchers utilize the Neural Tangent Kernel (NTK) framework in the infinite-width limit. In this regime, the core of their approach relies on decomposing the Hessian matrix $H$ into two distinct components:

$$H = I + S$$

  • Matrix $I$: This component is closely related to the Fisher Information Matrix. It captures how the curvature of the loss function interacts with the network's gradients.
  • Matrix $S$: This component involves the second derivatives of the network function itself, representing the "internal" curvature of the neural network architecture.

The authors study these matrices using a sequential limit (taking the width of the first layer to infinity, then the second, and so on). Using functional analysis, they track how $I$ and $S$ evolve from initialization, throughout the training process, and ultimately to convergence.

Key Theoretical Insights

Asymptotic Orthogonality and the "Narrow Valley"

Perhaps the most striking finding is that $I$ and $S$ are asymptotically orthogonal. This means their eigenvectors point in entirely different directions, and their spectra do not interfere with one another. Consequently, the total curvature of the loss landscape is simply the independent sum of the curvatures of $I$ and $S$.

The matrix $I$ is primarily responsible for the "narrow valley" phenomenon. Its eigenvalues are determined by a Kernel PCA of the dataset with respect to the NTK. The few exceptionally large eigenvalues—the steep "cliffs" of the valley—correspond to the principal components of the data that the network identifies as most important.

$S$ as a Transient Guest

At initialization, the matrix $S$ actively contributes to the landscape's curvature. However, as the network converges toward a global minimum, $S$ vanishes in the Frobenius norm. This implies that near the end of training, the shape of the loss landscape is almost entirely dictated by the data and the NTK (Matrix $I$).

Vanishing Higher Moments

The authors provide explicit formulas for the limiting moments of the Hessian. For the matrix $S$, they demonstrate that only the first two moments are non-zero in the limit; all higher moments vanish. This indicates that $S$ possesses a very specific, "thin" spectral structure.

Extracted figure from page 6 of The asymptotic spectrum of the Hessian of DNN throughout training

Furthermore, for Mean Squared Error (MSE) loss, the spectrum of $I$ remains constant throughout training because the NTK is fixed in the infinite-width limit, while $S$ dynamically evolves and eventually disappears.

Empirical Validation

While the paper is heavily grounded in theoretical proofs, the authors validate their asymptotic results with numerical experiments. They track the moments of the Hessian using "rectangular" networks (networks with equal width across all hidden layers) on both synthetic data (points distributed uniformly on a unit disk) and a scaled-down 14x14 version of MNIST. These experiments confirm that the theoretical predictions derived from the sequential infinite-width limit hold true for practical, finite-width architectures.

Limitations and Future Directions

  • Sequential vs. Simultaneous Limits: The rigorous proofs rely on a sequential limit (e.g., width $n_1 \to \infty$, then $n_2 \to \infty$). While numerical results strongly suggest these findings match the simultaneous limit (where all layer widths approach infinity together), providing a formal mathematical proof for the simultaneous case remains a complex open challenge.
  • Architectural Scope: The current analysis is constrained to fully connected networks. Although the NTK framework has been extended to Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs), the specific Hessian decomposition and orthogonality proofs would need to be re-verified for these architectures.
  • Finite-Width Corrections: The results describe asymptotic behavior. Understanding the exact $1/\text{width}$ corrections for finite networks is a crucial next step for bridging the gap between infinite-width theory and standard deep learning practice.

Summary updated

BibTeX
@inproceedings{jacot2020asymptotic,
  author = {Arthur Jacot and Franck Gabriel and Clément Hongler},
  title = {{The asymptotic spectrum of the Hessian of DNN throughout training}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
}
Figure