This paper, presented at NeurIPS 2024, explores the hidden geometry of deep learning to explain a phenomenon called Neural Collapse (NC). While researchers have known for a few years that deep networks eventually "collapse" their internal representations into highly simplified, rigid structures, the why has remained somewhat mysterious. Beaglehole et al. propose that a specific mathematical object—the Average Gradient Outer Product (AGOP)—is the engine driving this process.
TL;DR
The authors identify the Average Gradient Outer Product (AGOP) as a primary data-dependent mechanism for Deep Neural Collapse. By analyzing a recursive feature learning model, they demonstrate that projecting data onto the directions of its gradients naturally strips away within-class noise, forcing representations into the rigid, simplified structures observed in mature deep networks.
What Problem Does This Paper Address?
In the final stages of training, overparametrized deep neural networks (DNNs) exhibit Neural Collapse. This means two main things:
- NC1 (Within-class variability collapse): All images of "cats" start looking identical to the network’s internal layers; their feature vectors collapse toward a single class mean.
- NC2 (Simplex ETF property): The means of different classes (cats, dogs, cars) move as far apart as possible, forming a perfectly symmetrical geometric structure called a Simplex Equiangular Tight Frame (ETF).
Most existing theories explain this using "data-agnostic" models, essentially treating the features as free variables that the network can manipulate at will. This ignores the actual process of learning from data. This paper seeks a data-dependent explanation: how does the interaction between the training data and the model’s gradients actually produce this collapse?
Methods
The authors focus on the Average Gradient Outer Product (AGOP). If $f(x)$ is your model, the AGOP is the average of the outer product of the gradients: $\frac{1}{N} \sum \nabla f(x) \nabla f(x)^T$. Intuitively, it tells you which directions in the input space are most important for changing the model's output.
To study this, they use the Deep Recursive Feature Machine (Deep RFM). Unlike standard DNNs that use backpropagation, Deep RFM builds a network layer-by-layer by:
- Training a kernel machine on the current features.
- Computing the AGOP of that machine.
- Projecting the data onto the AGOP (linear transformation).
- Applying a random feature map (non-linear activation).
By isolating the AGOP projection, the authors can see exactly how it contributes to collapse compared to standard components like ReLU activations.
Datasets
The researchers validated their findings on standard image classification benchmarks:
- MNIST: Handwritten digits.
- CIFAR-10: Small color images of 10 classes.
- SVHN: Street View House Numbers.
These were used to train both the Deep RFM models and standard architectures (MLPs, ResNets, and VGG) for comparison.
Key Insights and Ideas
- AGOP as a Denoising Filter: The core "aha!" moment is that projecting data onto the AGOP acts as a powerful linear denoiser. It preserves the directions that distinguish classes while discarding the "noise" (within-class variability).
- Non-linearities Actually Hinder Collapse: Surprisingly, the authors found that random feature maps (like ReLU or Cosine layers) actually increase within-class variability. The collapse is almost entirely driven by the linear projection step associated with the AGOP.
- Implicit Bias of Kernel Learning: The paper provides a theoretical proof showing that Neural Collapse is the unique, optimal solution when you jointly optimize a predictor and the kernel it uses.
- The Bridge to Standard DNNs: Through the Neural Feature Ansatz (NFA), the authors show that in standard networks trained with SGD, the weight matrices ($W^T W$) naturally align with the AGOP. Therefore, the weight matrices in your favorite ResNet are likely performing this same AGOP-based "collapsing" projection.
Key Results
The empirical evidence for collapse in Deep RFM is striking. As shown in Figure 1, the Gram matrices of the features (which show the similarity between all pairs of data points) become increasingly block-diagonal as the data moves through the layers.
- Exponential Convergence: The authors prove and demonstrate that Deep RFM exhibits exponential convergence toward NC1 and NC2 across layers.
- Weight Decomposition: In standard DNNs (MLPs and ResNets), they decomposed layers into their singular value components. They found that the "right singular structure" (the part that aligns with AGOP) is responsible for the vast majority of the reduction in within-class variability.
Limitations and Future Work
- NC2 Progression: While Deep RFM shows a clear depth-wise progression of the Simplex ETF structure (NC2), standard DNNs often only show strong NC2 in the very last layer. The authors suggest this might be due to the "low-rank bias" of standard training, but more work is needed to fully bridge this gap.
- Initialization Sensitivity: The connection between weights and AGOP (the NFA) holds most strongly in the "feature learning regime" (small initialization). The mechanism might differ in the "lazy training" or "NTK" regime (large initialization).
- Theoretical Scope: The asymptotic analysis assumes high-dimensional data where kernels behave approximately linearly; extending this to more complex, finite-dimensional settings is a promising future direction.
Summary updated