From Spikes to Heavy Tails: Unveiling the Spectral Evolution of Neural Networks

Vignesh Kothapalli, Tianyu Pang, Shenyang Deng, Zongmin Liu, Yaoqing Yang

Abstract

Training strategies for modern deep neural networks (NNs) tend to induce a heavy-tailed (HT) empirical spectral density (ESD) in the layer weights. While previous efforts have shown that the HT phenomenon correlates with good generalization in large NNs, a theoretical explanation of its occurrence is still lacking. Especially, understanding the conditions which lead to this phenomenon can shed light on the interplay between generalization and weight spectra. Our work aims to bridge this gap by presenting a simple, rich setting to model the emergence of HT ESD. In particular, we present a theory-informed setup for ‘crafting’ heavy tails in the ESD of two-layer NNs and present a systematic analysis of the HT ESD emergence without any gradient noise. This is the first work to analyze a noise-free setting, and we also incorporate optimizer (GD/Adam) dependent (large) learning rates into the HT ESD analysis. Our results highlight the role of learning rates on the Bulk+Spike and HT shape of the ESDs in the early phase of training, which can facilitate generalization in the two-layer NN. These observations shed light on the behavior of large-scale NNs, albeit in a much simpler setting.

Introduction: The Spectral Signature of Generalization

In modern deep learning, the "spectral signature"—the distribution of eigenvalues—of a well-trained model’s weight matrices often follows a heavy-tailed (HT) distribution. This phenomenon, studied under Heavy-Tailed Self-Regularization (HT-SR) theory, strongly correlates with a model's ability to generalize. While conventional wisdom attributes this to "stochastic gradient noise" from mini-batch training, this research investigates whether noise is truly necessary. We demonstrate that the emergence of heavy tails is a fundamental consequence of the interplay between the optimizer, the learning rate, and data structure, even in a noise-free, full-batch setting.

Methodology: The Teacher-Student Framework

We utilize a Teacher-Student framework to analyze a two-layer, fully connected "Student" network learning a "Single-Index Model" from a "Teacher" target direction in high-dimensional space. The training proceeds in two stages:

  1. Hidden Layer Optimization: Weights ($W$) are optimized using either Gradient Descent (GD) or Full-batch Adam (FB-Adam).
  2. Final Layer Solution: Solved via ridge regression to maintain mathematical tractability.

We track the Empirical Spectral Density (ESD) of the weights, observing the transition from a random Marchenko-Pastur distribution to a "Bulk+Spike" shape (where a single eigenvalue dominates), and finally to a full Heavy-Tailed distribution.

Key Insights: Optimizer Dynamics and Learning Rates

A core finding is the differing requirements for GD and Adam. Adam (FB-Adam) is a "Spike Specialist," requiring significantly smaller learning rates than GD to induce a spectral spike. For instance, while GD might require $\eta=2000$, Adam achieves similar results with $\eta=0.5$.

Spectral evolution of weight matrices under GD and FB-Adam, showing the transition to heavy-tailed distributions in both linear and log-log scales.

The mechanism for HT emergence follows a "Bulk-Decay" pattern: a large learning rate first creates a "spike" aligned with the data signal. Continued training causes the interaction between this spike and the "bulk" weights to stretch the distribution, forming a heavy tail. Crucially, this occurs without gradient noise, suggesting that the loss landscape geometry and optimizer path are the primary drivers.

Results and Generalization

Our analysis reveals that HT spectra appear remarkably early—often within the first 10 training steps—long before training loss reaches a minimum. We mathematically establish the learning rate scale needed for FB-Adam to produce these spikes (Theorem 4.1), proving it is independent of layer width ($h$) and data dimension ($d$), unlike GD.

Comparison of ESD for FB-Adam at initialization versus step 10, highlighting the rapid emergence of the spectral spike.

Empirical tests on VGG11 and ResNet18 across MNIST, CIFAR10, and SVHN confirm that the emergence of HT ESDs consistently aligns with improved test accuracy. We identified a "benign" learning rate range where the power-law exponent ($\alpha$) falls between 2 and 2.5, marking the sweet spot for generalization.

Conclusion and Future Work

This work provides the first analysis of HT ESD emergence in a noise-free setting, highlighting the critical role of large learning rates and optimizer choice. While we provide a rigorous theory for the initial steps of Adam, future work will aim to mathematically prove the full multi-step transition and extend the analysis to deeper architectures and multi-index teacher models.

Summary updated

BibTeX
@article{kothapalli2025from,
  author = {Vignesh Kothapalli and Tianyu Pang and Shenyang Deng and Zongmin Liu and Yaoqing Yang},
  title = {{From Spikes to Heavy Tails: Unveiling the Spectral Evolution of Neural Networks}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=DJHB8eBUnt},
}
Figure