Skip to main content
QUICK REVIEW

[Paper Review] Measurements of Three-Level Hierarchical Structure in the Outliers in the Spectrum of Deepnet Hessians

Vardan Papyan|arXiv (Cornell University)|Jan 24, 2019
Adversarial Robustness in Machine LearningComputer Science24 references26 citations
TL;DR

This paper reveals that the outliers in the Hessian spectrum of deep neural networks arise not from covariance structure but from uncentered second moments of gradients, which exhibit a three-level hierarchical structure across data samples, classes, and logit coordinates. By exploiting this structure through averaging operations, the principal subspace of the Hessian can be approximated efficiently without full eigenanalysis, validated across multiple architectures and datasets with high accuracy.

ABSTRACT

We consider deep classifying neural networks. We expose a structure in the derivative of the logits with respect to the parameters of the model, which is used to explain the existence of outliers in the spectrum of the Hessian. Previous works decomposed the Hessian into two components, attributing the outliers to one of them, the so-called Covariance of gradients. We show this term is not a Covariance but a second moment matrix, i.e., it is influenced by means of gradients. These means possess an additive two-way structure that is the source of the outliers in the spectrum. This structure can be used to approximate the principal subspace of the Hessian using certain "averaging" operations, avoiding the need for high-dimensional eigenanalysis. We corroborate this claim across different datasets, architectures and sample sizes.

Motivation & Objective

  • To explain the origin of spectral outliers in the Hessian of deep neural networks, which previous work attributed to the G component (Covariance of gradients).
  • To show that the G component is not a true covariance but a second moment matrix, whose outliers stem from uncentered means of gradients.
  • To develop a method for approximating the principal subspace of the Hessian using averaging operations over hierarchical groupings of gradient statistics, avoiding costly eigenanalysis.
  • To validate this approximation across diverse architectures (e.g., ResNet18, VGG16), datasets (MNIST, CIFAR10, ImageNet), and sample sizes.
  • To predict the size and behavior of outliers as a function of sample size without performing eigenanalysis, using structural properties of gradient means.

Proposed method

  • The Hessian is decomposed into two components: H (Gauss-Newton term) and G (second moment of gradients), with G being the source of spectral outliers.
  • The G matrix is expressed as $ G = \frac{1}{n} \Delta \Delta^T $, where $ \Delta $ is a matrix of gradient derivatives indexed by sample, class, and logit coordinate.
  • The columns of $ \Delta $ are partitioned into $ C^2 $ groups based on class $ c $ and logit coordinate $ c' $, each with a group mean $ \delta_{c,c'} $ and covariance $ \Sigma_{c,c'} $, forming a three-level hierarchical structure.
  • The dominant eigenvalues of G are shown to be approximated by the eigenvalues of $ G_{1+2} = (C-1)\sum_c \delta_c \delta_c^T + \sum_c \delta_c \delta_c^T $, which aggregates group means across classes and logit coordinates.
  • The method uses low-rank approximation via averaging operations on $ \delta_{c,c'} $, enabling efficient computation of the principal subspace without full SVD or power iterations.
  • Empirical validation uses FastLanczos and LowRankDeflation to approximate spectra, comparing $ G $, $ G_1 $, $ G_2 $, and $ G_{1+2} $ across architectures and datasets.

Experimental results

Research questions

  • RQ1What causes the spectral outliers in the Hessian of deep neural networks, and why is the G component not a true covariance matrix?
  • RQ2How does the hierarchical structure of gradient means across samples, classes, and logit coordinates give rise to the outlier eigenvalues?
  • RQ3Can the principal subspace of the Hessian be approximated efficiently using only averaging operations on gradient means, without eigenanalysis?
  • RQ4How does the size of the outliers scale with training sample size, and can this be predicted without computing eigenvalues?
  • RQ5To what extent do the approximations $ G_1 $, $ G_2 $, and $ G_{1+2} $ match the true top eigenvalues of $ G $, and what explains any deviations?

Key findings

  • The spectral outliers in the Hessian are caused by uncentered second moments of gradients, not by covariance structure, as the G component lacks mean subtraction.
  • The dominant eigenvalues of G are well-approximated by the eigenvalues of $ G_{1+2} $, which aggregates group means across classes and logit coordinates.
  • The top- $ C $ eigenvalues of $ G_{1+2} $ are dominant and closely match those of $ G_1 $, indicating that the hierarchical mean structure is sufficient for principal subspace approximation.
  • The eigenvalues of $ G_0 $, representing the global mean, are negligible and appear as a single cyan point in the main lobe of the spectrum.
  • For all tested datasets (MNIST, Fashion MNIST, CIFAR10, ImageNet) and architectures (ResNet18, VGG16, ResNet50), the approximation via $ G_{1+2} $ consistently matches the true outliers in the spectrum.
  • Deviations between $ G_{1+2} $ and $ G $ are consistent with random matrix theory predictions, confirming the robustness of the hierarchical model.

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.