Abstract
Modern deep neural networks have achieved high performance across various tasks. Recently, researchers have noted occurrences of low-dimensional structure in the weights, Hessian's, gradients, and feature vectors of these networks, spanning different datasets and architectures when trained to convergence. In this analysis, we theoretically demonstrate these observations arising, and show how they can be unified within a generalized unconstrained feature model that can be considered analytically. Specifically, we consider a previously described structure called Neural Collapse, and its multi-layer counterpart, Deep Neural Collapse, which emerges when the network approaches global optima. This phenomenon explains the other observed low-dimensional behaviours on a layer-wise level, such as the bulk and outlier structure seen in Hessian spectra, and the alignment of gradient descent with the outlier eigenspace of the Hessian. Empirical results in both the deep linear unconstrained feature model and its non-linear equivalent support these predicted observations.
Introduction: The "Spiky" Nature of Deep Learning
Modern deep neural networks exhibit a striking "spiky" structure in their optimization landscapes. Specifically, the Hessian matrix—which describes the curvature of the loss—typically displays a "bulk-outlier" spectrum: most eigenvalues cluster near zero (the "bulk"), while a few large "outliers" stand apart. Curiously, the number of these outliers often relates to the number of classes ($K$) in the dataset. While these low-dimensional quirks have been reported individually, this paper provides a unified mathematical framework to explain why they emerge together.
Theoretical Framework: The Deep Unconstrained Feature Model
The authors analyze these phenomena through the Deep Unconstrained Feature Model (UFM). In a standard network, features are constrained by the architecture. In a UFM, features are treated as free, optimizable variables, allowing for analytic proofs. The core of the analysis is Deep Neural Collapse (DNC), where features of the same class collapse into a single point (the class mean) across intermediate layers. Using DNC, the authors derive explicit formulas for the eigenvectors and eigenvalues of layer-wise Hessians and weight matrices, proving that the full-network Hessian inherits its spiked structure from these individual layers.
Key Insights and Results
The research demonstrates that the "spiky" Hessian spectrum is a direct mathematical consequence of features collapsing toward class means. Specifically:
- The $K^2$ Rule: The geometry of $K$ class means dictates the entire curvature, leading to $K^2$ outliers in the Hessian.
- Gradient Alignment: Gradients align with the top eigenspace of the Hessian because both are driven by the same underlying DNC structure. As training progresses, the optimization path naturally falls into the subspace defined by the collapsed features.
- Loss Function Sensitivity: The authors show that while Mean Squared Error (MSE) loss leads to clean outliers, Cross-Entropy (CE) loss creates the "mini-bulk" of smaller outliers often seen in empirical studies.
Empirical validation on MNIST and CIFAR-10 using ResNet-20 architectures confirms these predictions. The "squared cosine similarity" between predicted DNC eigenvectors and actual Hessian eigenvectors rapidly approaches 1.0 during training, and the effective rank of the Hessian converges to the values predicted by the theory.
Conclusion
By unifying observations of low-dimensional structure under the umbrella of Deep Neural Collapse, this work provides a rigorous explanation for the internal geometry of trained neural networks. While the UFM is an idealization, its predictive power across real-world architectures suggests that DNC is a fundamental mechanism driving the "spiky" nature of deep learning optimization. Future research will explore how this structural flatness relates to generalization performance.
Summary updated