Average gradient outer product as a mechanism for deep neural collapse

Daniel Beaglehole, Peter Súkeník, Marco Mondelli, Mikhail Belkin

In the final stages of training a deep neural network (DNN) for classification, a fascinating geometric phenomenon occurs: the internal representations of data points from the same class "collapse" toward their common mean, and these class means arrange themselves into a perfectly symmetrical structure known as an Equiangular Tight Frame (ETF). This phenomenon is termed Neural Collapse (NC).

While researchers have documented this rigid structure for years, most explanations have been "data-agnostic"—treating the features as abstract variables rather than products of the actual training data. A recent paper from researchers at UC San Diego and IST Austria, titled "Average gradient outer product as a mechanism for deep neural collapse," shifts this paradigm by introducing a data-dependent mechanism that explains why this collapse happens: the Average Gradient Outer Product (AGOP).

The Mystery of Neural Collapse

The theory of deep learning often struggles to bridge the gap between abstract optimization and the actual transformation of data. Neural Collapse is a key structural property of DNNs, typically divided into two main components:

  1. NC1 (Within-class variability collapse): Data points belonging to the same class become nearly identical in the network's hidden layers.
  2. NC2 (Convergence to ETF): The means of different classes become as spread out and orthogonal as mathematically possible.

Previous theories, such as the "Unconstrained Features Model," explain NC by assuming the network is infinitely expressive and simply optimizes for the best possible geometry. However, these models ignore the role of the training data itself. The authors of this paper sought a data-dependent mechanism—a specific way the network interacts with the data to force this collapse across multiple layers, a process known as Deep Neural Collapse (DNC).

Uncovering the Mechanism: AGOP and Deep RFMs

To isolate the mechanics of feature learning, the researchers focused on a specific mathematical object and a novel model architecture:

  • The Average Gradient Outer Product (AGOP): This is the uncentered covariance matrix of a model's input-output gradients. Essentially, it identifies the "directions" in the data to which the model is most sensitive. If a direction does not help distinguish between classes, the AGOP ignores it.
  • Deep Recursive Feature Machines (Deep RFM): Unlike standard DNNs trained via backpropagation, Deep RFMs are built iteratively. At each layer, the model computes the AGOP of the current representation, projects the data onto it, and then applies a random feature map. This isolates the effect of the AGOP projection.
  • SVD Decomposition in Standard DNNs: To verify if this mechanism applies to standard architectures like ResNets, the authors decomposed weight matrices ($W$) using Singular Value Decomposition ($W = USV^\top$). They investigated whether the right singular vectors ($V$), which correlate with the AGOP via the "Neural Feature Ansatz," were responsible for the collapse.

Key Insights and Depth-Wise Progression

The core insight of the paper is that projecting data onto the AGOP acts as a massive denoising filter. It preserves the "signal" (differences between classes) while discarding the "noise" (variability within a class), directly causing NC1.

Furthermore, the paper theoretically proves that Neural Collapse is an implicit bias when optimizing over the choice of kernels in a learning algorithm. This suggests that NC is a natural byproduct of any system trying to learn the most efficient features for a task.

Crucially, while standard NC focuses on the last layer, this work demonstrates that the AGOP mechanism causes collapse to progress and intensify as data moves deeper into the network.

Depth-wise progression of Neural Collapse across network layers

Empirical Validation and Results

The authors validated their findings using standard vision benchmarks, including MNIST, CIFAR-10, and SVHN.

  • Empirical DNC in Deep RFM: Deep RFMs exhibited clear and consistent Neural Collapse (both NC1 and NC2) across all tested datasets. This proves that the AGOP projection alone is sufficient to induce the phenomenon.
  • Weight Structure in DNNs: In MLPs, ResNets, and VGG networks, the researchers showed that multiplication by the right singular vectors of the weights ($V^\top$) accounts for the vast majority of the reduction in within-class variability.
  • Correlation with AGOP: The singular structure of trained DNN weights was found to be highly correlated with the AGOP of the previous layer. This supports the Neural Feature Ansatz and firmly links standard backpropagation-trained networks to the AGOP mechanism.

Limitations and Future Directions

While the AGOP projection beautifully explains the collapse of variability (NC1), the specific symmetry of the class means (NC2) was most prominent primarily in the final layer. The progression of NC2 in intermediate layers appears more complex and warrants further study. Additionally, the link between AGOP and weight structure holds most strongly when networks are trained with small initializations; behavior might differ in "lazy" training regimes. Finally, as this study focuses on classification, extending these insights to regression or generative tasks remains an exciting open question for future research.

Summary updated

BibTeX
@inproceedings{beaglehole2024average,
  author = {Daniel Beaglehole and Peter Súkeník and Marco Mondelli and Mikhail Belkin},
  title = {{Average gradient outer product as a mechanism for deep neural collapse}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=vtRotUd539},
}
Figure