Introduction
Deep Neural Networks (DNNs) have achieved remarkable success across various domains, yet a fundamental theoretical question remains: why do these over-parameterized models generalize so well? Traditional learning theories, such as those based on VC dimension, suggest that models with millions of parameters should be prone to extreme overfitting. However, in practice, DNNs often generalize effectively even without explicit regularization techniques like Dropout or Weight Decay. This paper investigates this "Generalization Gap" by peering into the internal weight matrices of DNNs using the lens of Random Matrix Theory (RMT).
The authors propose a "Practical Theory of Deep Learning" that moves beyond descriptive metrics to explain how the training process itself—specifically Stochastic Gradient Descent (SGD)—shapes internal weight structures to prevent overfitting through a process termed "Implicit Self-Regularization."
Methodology: Random Matrix Theory in Deep Learning
To analyze the state of a neural network, the researchers employ tools from Random Matrix Theory (RMT), a field originally developed in physics to study the statistical properties of large, complex systems.
Empirical Spectral Density (ESD)
The primary tool used is the Empirical Spectral Density (ESD). For a given weight matrix $W$ of a neural network layer, the authors calculate the eigenvalues ($\lambda$) of the associated correlation matrix $X = W^T W$. The distribution of these eigenvalues reveals the underlying structure of the information stored in that layer.
The Marchenko-Pastur (MP) Law
In RMT, the Marchenko-Pastur law describes the expected distribution of eigenvalues for a purely random matrix. If a layer's ESD closely matches the MP distribution, the weights are essentially random noise, indicating that the layer has not learned significant features.
Heavy-Tailed Distributions
While standard RMT focuses on random noise, this paper extends the analysis to "Heavy-Tailed" (Power Law) distributions. In modern DNNs, the "signal" (useful information) and "noise" are often intertwined. Heavy-tailed ESDs indicate that the signal is distributed across multiple scales, a hallmark of robust, well-trained models.
The 5+1 Phases of Training
The authors categorize the state of a layer into a taxonomy of "5+1 Phases" based on its ESD:
- Random-like: The ESD fits the MP law; the layer is mostly noise.
- Bleeding-out: Eigenvalues begin to "bleed" out from the random bulk.
- Bulk+Spikes: A few large "signal" eigenvalues (spikes) appear outside the random bulk.
- Bulk-decay: The random bulk begins to shrink as more information is learned.
- Heavy-Tailed: The distribution follows a power law, indicating complex, multi-scale feature representation.
- Rank-collapse: An extreme state where the matrix loses rank, often due to over-regularization.
Key Insights: From Tikhonov to Heavy-Tailed Regularization
A central finding is the transition in regularization styles between older and modern architectures. Older, smaller models like LeNet5 typically exhibit "Tikhonov-like" regularization. In these models, the ESD shows a clear separation between a "noise bulk" and a few distinct "signal spikes."
In contrast, modern, high-performing models like AlexNet and ResNet exhibit "Heavy-Tailed" regularization. Here, the signal is not just a few spikes but is spread across a wide range of scales following a power-law distribution. This structure is theorized to be more robust and is a key driver of superior generalization.
The Role of Batch Size
The research highlights batch size as a critical "knob" for implicit regularization. By training "MiniAlexNet" on CIFAR10, the authors demonstrated that decreasing the batch size (e.g., from 500 to 2) pushes the model's layers through the 5+1 phases toward the Heavy-Tailed state. This provides a mathematical explanation for the empirical observation that smaller batch sizes often lead to better test accuracy: they drive the model into a more robust self-regularized regime.
Conclusion and Future Directions
This work provides a consistent visual and mathematical language to diagnose the "health" of neural network layers. By analyzing the ESD, researchers can determine if a model has successfully extracted signal from noise or if it remains in a random-like state.
While the framework is highly effective for Fully Connected (FC) layers, the authors note that Convolutional (Conv) layers present additional complexities due to their local connectivity and weight sharing, requiring further RMT extensions. Future work aims to transition these diagnostic tools into predictive metrics, potentially allowing for the estimation of test accuracy during training without the need for a separate validation set.
Summary updated