Neural Collapse (NC)—the phenomenon where class features converge into a rigid, highly structured geometric arrangement—isn't just a "last-layer" event. Recent research demonstrates that deep networks undergo a progressive collapse across intermediate layers. This process is characterized by a "hunchback" dimensionality profile: the network first expands data into high dimensions to separate it, before aggressively compressing it into structured class clusters.
The Mystery of Intermediate Layers
In 2020, researchers identified a striking phenomenon called Neural Collapse (NC). They found that at the very end of training (the "terminal phase"), the features in the final layer of a deep classifier stop being messy. Instead, they exhibit four key properties:
- NC1: Features cluster tightly around their class means.
- NC2: Those means form a perfectly symmetrical shape called a Simplex Equiangular Tight Frame (ETF).
- NC3: The weights of the classifier align perfectly with these means.
- NC4: The network essentially becomes a simple "nearest class center" classifier.
While NC is well-documented for the final layer, the "black box" of intermediate layers has remained mysterious. Do these internal layers also "collapse," or is the heavy lifting of feature organization saved entirely for the very end? This paper investigates whether the internal layers of a network follow these same geometric rules and how that relates to the way a network actually learns to categorize data.
Investigating the Internal Geometry
To peer inside the network, the authors extended the four standard metrics of Neural Collapse to intermediate layers. They analyzed:
- Covariance Statistics: Measuring the "within-class" covariance (how much samples of the same class vary) versus "between-class" covariance (how far apart different classes are).
- Geometric Alignment: Using Principal Angles Between Subspaces (PABS) to see if the subspace spanned by class features aligns with the subspace of the layer's weight matrix.
- Stable Rank: Tracking the "effective dimensionality" of features at each layer to observe how the network expands or compresses information.
- Ablation by "Fixing" Layers: In a novel experiment, they replaced the learned weights of deeper layers with fixed, mathematically ideal Simplex ETFs to see if the network could still function without "learning" those specific layers.
The study evaluated these metrics across four standard image classification benchmarks (MNIST, FashionMNIST, CIFAR10, and SVHN) using Multilayer Perceptrons (MLPs), Convolutional Neural Networks (ConvNets), and Residual Networks (ResNets).
Key Findings: The Path to Collapse
The empirical results reveal a fascinating, progressive structuring of data as it moves through the network.
- The "Collapse Layer" Threshold: The authors identified a specific point in deep networks—often marked by a "green line" in their visualizations—beyond which intermediate NC begins. Once a layer collapses, all subsequent layers tend to stay collapsed. In these collapsed layers, the within-class variance typically drops to less than 20% of the total variance, showing that the network is actively "ignoring" intra-class differences (NC1).
- The "Hunchback" Dimensionality: The network doesn't compress data linearly. Instead, early layers project data into a very high-dimensional space (increasing rank) to make classes linearly separable. Deeper layers then aggressively compress this into low-dimensional class clusters (decreasing rank).
- Redundancy in Deep Layers: Perhaps the most surprising finding is that once a network reaches the "collapsed" stage, the specific learned weights of the remaining deeper layers become somewhat redundant. For an MLP on MNIST, the authors could fix the last 4 out of 10 layers to be static ETFs without any loss in performance, suggesting that the "feature learning" was essentially complete by layer 6.
- Nearest Class Center Equivalence: The accuracy of a simple Nearest Class Center (NCC) classifier applied to intermediate features matches the full network's accuracy once the "collapse layer" is reached (NC4).
- Associative Memory Connection: The paper links NC to the Willshaw model of associative memory, showing that a network exhibiting NC is mathematically equivalent to an associative memory system where the class means act as "keys" to retrieve the correct label.
Limitations and Future Directions
While the empirical evidence for intermediate collapse is strong, the authors note that it is not a universal rule. Under certain hyperparameter settings, networks can achieve high accuracy and last-layer NC without showing intermediate collapse. This suggests that while intermediate NC is a common path to a solution, it isn't the only one.
Future work remains to determine if intermediate NC is actually desirable for generalization or transfer learning. Does a network that collapses early "overfit" to the training classes, or does the structured geometry help it perform better on new, unseen data? Furthermore, a more rigorous theoretical framework is needed to explain exactly why Stochastic Gradient Descent (SGD) gravitates toward these simplex structures in the middle of a network.
Summary updated