Abstract
Deep Neural Collapse (DNC) describes the rigid geometric structure that emerges in the final layers of deep neural networks (DNNs) during training, where within-class variability vanishes and class means arrange themselves into a symmetrical simplex. While frequently observed, most explanations for DNC are data-agnostic, treating features as free variables. This work introduces a data-dependent mechanism for DNC rooted in feature learning via the Average Gradient Outer Product (AGOP). By utilizing the Deep Recursive Feature Machine (Deep RFM), we demonstrate that DNC arises naturally from projecting data onto the AGOP matrix at each layer. We provide theoretical justification for this collapse in asymptotic settings and offer empirical evidence that this mechanism extends to standard DNN architectures like ResNets and VGGs through the alignment of weight matrices with the AGOP.
Introduction
In the terminal phase of training for classification tasks, deep neural networks exhibit a phenomenon known as Neural Collapse (NC). This involves four distinct properties, most notably NC1 (the collapse of within-class variations to their respective class means) and NC2 (the convergence of class means to a simplex equiangular tight frame).
Existing theoretical frameworks, such as the "unconstrained features model," often bypass the actual process of feature learning to explain these structures. This paper addresses that gap by identifying the Average Gradient Outer Product (AGOP) as the primary engine driving this collapse. We argue that DNC is not merely a final-layer artifact but a progressive, depth-wise refinement driven by the model's sensitivity to its input gradients.
The Mechanism: Average Gradient Outer Product (AGOP)
The AGOP is a matrix defined with respect to a learned predictor. It is the uncentered covariance matrix of the gradients of the model's output with respect to its inputs, averaged over the training dataset. Formally, it captures the directions in the feature space that are most relevant to the model's predictions.
In this research, the AGOP is shown to act as a denoising filter. By projecting data onto the principal components of the AGOP, the network selectively retains information necessary for classification while discarding the "noise"—the within-class variability that differentiates individual samples of the same class.
Deep Recursive Feature Machines (Deep RFM)
To isolate the role of the AGOP, the authors employ the Deep Recursive Feature Machine (Deep RFM). Unlike standard DNNs that use backpropagation, Deep RFM is a "white-box" architecture that builds layers through an iterative process:
- Predict: Train a simple predictor on the current data representation.
- Compute AGOP: Calculate the AGOP matrix for that predictor.
- Project: Transform the data by projecting it onto the AGOP.
- Map: Apply a fixed, untrained random feature map (e.g., ReLU or Cosine).
Empirical tests on MNIST, CIFAR-10, and SVHN show that Deep RFM achieves near-perfect Neural Collapse across many layers. Interestingly, the study finds that while random feature maps actually increase within-class variability, the linear projection onto the AGOP structure consistently reduces it, driving the network toward collapse.
Generalizing to Standard Neural Networks
A central question is whether the insights from Deep RFM apply to standard SGD-trained networks. The authors investigate this through the Neural Feature Ansatz (NFA), which posits that the weight matrices ($W$) of trained DNNs are highly correlated with the AGOP of the preceding layer.
By performing Singular Value Decomposition (SVD) on the weights of trained ResNets and VGGs, the researchers found that the right singular vectors and values are responsible for the majority of within-class variability reduction. This suggests that the weight matrices in standard DNNs perform a function mathematically analogous to the AGOP projection in Deep RFM, effectively "learning" the AGOP structure through backpropagation.
Theoretical Foundations
The paper provides a theoretical explanation for DNC in Deep RFM within an asymptotic high-dimensional regime. The authors prove that when optimizing over kernels and regression coefficients, DNC emerges as an implicit bias. Under specific conditions, the Deep RFM iteration is shown to converge exponentially toward a state of neural collapse, providing a rigorous backbone for the empirical observations.
Conclusion and Future Directions
This work shifts the understanding of Neural Collapse from a data-agnostic geometric curiosity to a fundamental consequence of gradient-based feature learning. By identifying the AGOP as the mechanism for within-class variability collapse, the authors provide a clearer picture of how deep networks distill complex input into rigid, separable representations.
While the AGOP explains the reduction of variance (NC1) exceptionally well, the specific arrangement of class means into a simplex (NC2) remains more pronounced in the final layers of standard DNNs compared to the broader emergence seen in Deep RFM. Future work may explore how this mechanism functions in non-classification settings, such as regression or self-supervised learning, where class means are not explicitly defined.
Summary updated