This paper tackles a fundamental question in deep learning: how do we actually measure if a neural network is "learning features" versus just memorizing patterns?
Overview
The authors introduce $D_{LR}$, a computationally efficient and performance-independent metric to measure "dynamical richness"—the extent to which a model transforms its internal features during training. By decoupling richness from accuracy, they show that "richer" models aren't always better and reveal that common training techniques, like Batch Normalization, are powerful drivers of feature learning.
The Challenge: Lazy vs. Rich Regimes
In deep learning theory, network dynamics are often categorized into two regimes:
- The Lazy Regime: The model behaves like a linear kernel. Internal features don't change significantly, and the network essentially "interpolates" between data points.
- The Rich Regime: The model actively transforms its features to find a low-rank representation that best suits the task.
Historically, researchers have used test accuracy as a proxy for richness, assuming that high accuracy implies the model has learned high-quality features. However, this paper demonstrates that this assumption is flawed. A model can exhibit "rich" dynamics but focus on the wrong features, leading to poor generalization. Conversely, a "lazy" model might generalize perfectly well. To study this properly, we need a way to measure the process of feature learning (richness) without relying on the outcome (accuracy).
Proposed Methodology: The $D_{LR}$ Metric
The authors propose a new metric called Minimum Projection Alignment ($D_{LR}$).
- The Core Idea: In an ideal "rich" scenario, a network should only learn the minimum number of features necessary to represent the target classes, a concept known as a low-rank bias.
- The Metric: $D_{LR}$ compares the actual features in the last layer to a "Minimum Projection" operator—a mathematical ideal where the features perfectly and minimally span the learned function space.
- Computational Efficiency: Unlike previous methods (such as those based on the Neural Tangent Kernel) that require calculating gradients for every single parameter, $D_{LR}$ only evaluates the activations of the penultimate layer. This makes it fast enough to run on a standard laptop in under a minute, even for large models.
- Visualization: The authors also introduce a suite of tools based on eigendecomposition to visualize "Target Projection" (how well features align with the task) and "Self Projection" (how many features the model is actually using).
Experimental Validation
The researchers validated their metric across several standard and custom setups, including image classification (MNIST, CIFAR-10, and CIFAR-100 using architectures like ResNet18, VGG-16, and simple MLPs) and algorithmic tasks (a modular division task used to study grokking).
Key Findings and Insights
Richness $\neq$ Generalization The authors highlight a critical "aha moment" where a rich model achieves 100% training accuracy but only 10% test accuracy. This occurs because the model latches onto a specific "rich" feature (like an artificial label encoding) that doesn't exist in the test set. Meanwhile, a lazy model on the same data generalized much better.
Batch Norm is a Richness Booster One of the most surprising findings is that Batch Normalization significantly promotes rich dynamics. For instance, in a VGG-16 trained on CIFAR-100, the model remains "lazy" without Batch Normalization but transitions to "rich" when it is applied.
Grokking as a Regime Shift The metric $D_{LR}$ successfully captures the exact moment a model "groks" a task (suddenly jumping to 100% test accuracy long after training loss has hit zero). It reveals that grokking is essentially a transition from a lazy regime to a rich one, providing a performance-independent way to track this phenomenon.
Generalizing Neural Collapse The authors prove that "Neural Collapse"—a well-known phenomenon where last-layer features of different classes collapse into a single point—is actually just a special, extreme case of their $D_{LR}$ metric.
Robustness and Architecture Impact In head-to-head comparisons with existing metrics (like parameter norms or kernel similarity), $D_{LR}$ was the only one that consistently identified richness across different learning rates and target scales. Furthermore, they found that architectures like ResNet18 are inherently "richer" than standard MLPs. ResNet18 concentrates its learning on the top significant features almost immediately, whereas an MLP spreads its learning across many more "lazy" features. Interestingly, ResNet18 maintains these rich dynamics even when trained on completely random labels, suggesting that richness is a property of the architecture and optimization process, not just the data structure.
Limitations and Future Work
- Last-Layer Focus: The metric currently only evaluates the very last layer of the network. While the authors argue this is where the low-rank bias is strongest, it does not capture the "richness" of intermediate layers.
- Isotropic Assumption: The current mathematical framework assumes "balanced" tasks (e.g., an equal number of samples per class). Extending this to imbalanced, "anisotropic" data is a noted area for future research.
- MSE vs. Cross-Entropy: Most of the theoretical proofs utilize Mean Squared Error (MSE) loss. While they show the metric works empirically for Cross-Entropy, the mathematical link is less direct and warrants further exploration.
Summary updated