Skip to main content
QUICK REVIEW

[Paper Review] The Full Spectrum of Deepnet Hessians at Scale: Dynamics with SGD Training and Sample Size

Vardan Papyan|arXiv (Cornell University)|Nov 16, 2018
Model Reduction and Neural NetworksPhysics and Astronomy37 references32 citations
TL;DR

This paper introduces a scalable computational framework to analyze the full Hessian spectrum of large-scale deep neural networks (up to tens of millions of parameters) trained on real datasets. Using advanced numerical linear algebra, it decomposes the Hessian into components (H, G, and hierarchical subcomponents A₁, B₁, B₂), revealing that training dynamics and sample size systematically shape the spectrum—particularly the emergence of 'spiked' eigenvalues and bulk distributions—offering new insights into generalization and optimization in deep learning.

ABSTRACT

We apply state-of-the-art tools in modern high-dimensional numerical linear algebra to approximate efficiently the spectrum of the Hessian of modern deepnets, with tens of millions of parameters, trained on real data. Our results corroborate previous findings, based on small-scale networks, that the Hessian exhibits "spiked" behavior, with several outliers isolated from a continuous bulk. We decompose the Hessian into different components and study the dynamics with training and sample size of each term individually.

Motivation & Objective

  • To analyze the full Hessian spectrum of modern deep neural networks at scale, beyond small-scale approximations.
  • To decompose the Hessian into interpretable components (H, G, and hierarchical subcomponents) to study their individual dynamics.
  • To investigate how training dynamics (SGD) and sample size affect the spectral properties of the Hessian.
  • To provide a scalable, numerically robust framework for Hessian spectrum approximation in high-dimensional deep learning models.
  • To link spectral structure—particularly outliers and bulk distributions—to generalization and optimization behavior in deep networks.

Proposed method

  • Employs state-of-the-art numerical linear algebra tools, including the Lanczos algorithm and subspace iteration, to approximate the Hessian spectrum efficiently.
  • Applies Gauss-Newton decomposition to split the Hessian into two main components: H (second-order weight contributions) and G (gradient-based curvature).
  • Further decomposes G into a hierarchical three-level structure: A₁ (class-wise mean gradients), A₂ (class-specific gradients), B₁ (within-class variance), and B₂ (between-class variance).
  • Uses normalization procedures (e.g., scaling to [-1,1] range) to stabilize spectral estimation and improve convergence of iterative solvers.
  • Employs LanczosApproxSpec and SubspaceIteration algorithms to compute spectra and deflated spectra with controlled accuracy and convergence.
  • Applies the framework to VGG11 and ResNet18 on MNIST, FashionMNIST, CIFAR10, and CIFAR100, training with fixed hyperparameters and no data augmentation to ensure determinism.

Experimental results

Research questions

  • RQ1How do the spectral components of the Hessian (H, G, and their subcomponents) evolve during SGD training in large-scale deep networks?
  • RQ2What is the contribution of each hierarchical component (A₁, B₁, B₂, etc.) to the overall Hessian spectrum, particularly the 'spiked' eigenvalues and continuous bulk?
  • RQ3How does the size of the training dataset influence the spectral structure of the Hessian and its components?
  • RQ4Can the spectral dynamics of the Hessian be reliably approximated at scale (tens of millions of parameters) using modern numerical linear algebra?
  • RQ5To what extent do spectral features (e.g., peak in G spectrum) correlate with training dynamics such as loss and error trajectories?

Key findings

  • The Hessian spectrum exhibits 'spiked' behavior in large networks, with several isolated eigenvalues (outliers) distinct from a continuous bulk, consistent with prior small-scale findings.
  • The outlier eigenvalues in the G component are primarily attributed to A₁ (class-wise mean gradients), while the right bulk of G is linked to B₂ (between-class variance), and the left bulk to B₁ (within-class variance).
  • The peak in the spectrum of G occurs at the transition point in training where loss decreases rapidly and then slows, indicating a critical phase in optimization dynamics.
  • Sample size has a systematic effect on the spectral structure: larger training sets lead to more stable and less skewed spectra, with reduced outlier magnitude and broader bulk distributions.
  • The hierarchical decomposition reveals that B₂ (between-class variance) contributes most to the bulk of the G spectrum, while A₁ dominates the outlier eigenvalues, suggesting distinct roles in curvature and generalization.
  • The spectral approximation framework, using Lanczos and subspace iteration with normalization, achieves stable and accurate spectrum estimation even for models with up to tens of millions of parameters.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.