NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Random Matrix Theory of Early-Stopped Gradient Flow: A Transient BBP Scenario

Florentin Coeurdoux, Grégoire Ferré, jean-philippe bouchaudNeurIPS 2026

TL;DR

Why does stopping gradient descent early save models from overfitting? By applying Random Matrix Theory to a solvable linear model, the authors show that learned signals literally pop out of a sea of random noise as an isolated eigenvalue—only to be swallowed back up later in training. This "now you see it, now you don't" magic trick is driven by uneven (anisotropic) data: fast directions quickly reveal the true signal, while slow directions sluggishly accumulate noise until they drown that signal out.

What Problem Does This Paper Address?

Anyone who has trained a neural network knows the golden rule of early stopping: train long enough to learn the pattern, then hit the brakes before memorizing the noise. Empirically, researchers looking at the eigenvalues (the spectrum) of weight matrices during training have noticed something intriguing. Right around the sweet spot of training, an isolated eigenvalue—a "spike"—detaches from the main cluster of noisy eigenvalues (the "bulk"), before getting lost in a complicated mess later on.

In Random Matrix Theory, a signal spike emerging from a noisy bulk is famous: it’s called a BBP (Baik–Ben Arous–Péché) phase transition. While empirical studies link this transient spectral spike to early stopping, we lacked a clean, mathematically exact explanation for why a spike would emerge during gradient descent and then vanish back into the bulk.

Methods

To strip away the intractable mess of deep learning while keeping the core physics intact, the authors set up a minimal, solvable "teacher–student" laboratory:

  • Linear Gradient Flow: A linear student model is trained via continuous-time gradient descent (gradient flow) to mimic targets generated by a rank-one "teacher" matrix buried in Gaussian noise.
  • Two-Block Anisotropy: Real-world data isn't uniform; some features vary wildly while others whisper. To model this anisotropy cleanly, the authors give the input data covariance just two distinct singular values ($\lambda_+ = 1$ and $\lambda_- \in (0, 1]$), creating "fast" and "slow" learning speeds.
  • Additive Symmetrization & Dyson Equations: Standard spectral analyses look at $A_t A_t^\top$, which yields gnarly math at finite training times. Instead, the authors analyze the additively symmetrized weight matrix $S_t = A_t + A_t^\top$. This clever pivot turns the noisy bulk into a tractable two-block Wigner-type matrix—solved exactly at any time $t$ via a $2 \times 2$ Dyson equation—and turns the rank-one teacher into a finite-rank perturbation whose outlier spike is tracked via a $2 \times 2$ determinant condition.

Datasets

No real-world benchmark datasets are used. Because this is a theoretical Random Matrix Theory paper, all evaluations and validations use synthetic high-dimensional Gaussian data generated in a teacher–student setup. Inputs have either a two-block singular value spectrum or a continuous power-law spectrum ($p(\lambda) \propto \lambda^{-1.5}$), alongside Gaussian initialization and target noise.

Key Insights and Ideas

  • Overfitting as a Clash of Timescales: If your input data is isotropic (all directions have equal variance), the critical signal threshold only goes down over time—once a signal spike emerges, it stays out forever. Transient spikes require anisotropy. Fast directions learn the teacher early (pushing the spike out of the bulk), while slow directions get amplified by inverse covariance factors late in training, pumping noise into the weights and inflating the bulk until it reabsorbs the spike.
Figure 1: Empirical spectral density of St (blue histogram, 20 realizations, N = 500) versus the theoretical density from the 2 × 2 Dyson equation (13)–(14) (black curve) at eight training times. Parameters: λ+ = 1, λ−= 0.1, γ = 1, and α = 0.5. In the signal case θ = 6, the red vertical line marks the outlier location as predicted in Section 4 when an outlier is present. One clearly sees how the outlier first emerges from the bulk before being reabsorbed.
  • Three Distinct Learning Worlds: Depending on teacher signal strength ($\theta$) and data anisotropy ($\lambda_-$), training falls into one of three regimes: Weak-signal (never learns; spike never leaves the bulk), Strong-signal (spike emerges and persists forever), and the Early-stopping ("in-and-out") regime, where the teacher is spectrally detectable only inside a finite time window $(t_1, t_2)$.
  • A Computable Optimal Stopping Time: Being outside the bulk isn't binary; eigenvector alignment with the true teacher varies continuously. Inside the transient window $(t_1, t_2)$, the overlap between the spike's eigenvector and the teacher starts at zero, peaks at a single interior maximum $t_{\text{opt}}$, and drops back to zero upon reabsorption.
  • Spectral Spikes Aren't Always Signals: When testing a one-layer self-attention model, the value matrix ($W_V$) cleanly showed the transient BBP transition, while the key matrix ($W_K$) produced spectral outliers orthogonal to the teacher—a neat reminder that seeing an outlier eigenvalue doesn't automatically mean your layer learned the right feature!

Key Results

  • Exact Finite-Size Validation: Theoretical bulk densities and spike locations match finite-size simulations ($N = 500$, averaged over 20 runs) across four orders of magnitude in training time ($t \in [0.1, 2000]$).
  • Phase Diagrams & Sample Ratios: Mapping out the phase space reveals that the transient "in-and-out" wedge only opens below a critical anisotropy threshold $\lambda_-^\star$. Furthermore, starving the model of data widens the noise bulk: shrinking the sample-to-dimension ratio $\gamma = M/N$ from $1$ down to $0.01$ drives the best achievable signal detection threshold up from $1.69$ to roughly $41$, narrowing and eventually closing the early-stopping window.
Figure 3: Phase diagram in the (θ, t) plane for λ−= 0.1, γ = 1 and α = 0.5. The critical curve θ = θc(t) separates three regimes: no outlier (underfitting), transient outlier (early-stopping window), and persistent outlier. For a fixed intermediate value of θ, the outlier emerges at t1 and is reabsorbed at t2. The overlaid red curve shows the optimal stopping time topt(θ) defined in Section 4.4: in our experiments it lies strictly inside the transient window (t1, t2) whenever the latter exists.
  • Generalization Beyond Toy Assumptions: Numerical experiments confirm that the three regimes and interior optimal stopping time $t_{\text{opt}}$ survive when moving to realistic continuous power-law input spectra ($N=400$), synchronous two-layer $\tanh$ networks, and the linear value pathway of self-attention layers.

Limitations and Future Work

  • Deliberate Toy Simplifications: The model does not capture the heavy-tailed weight spectra or complex nonlinear cross-layer couplings observed in deep networks at convergence. It also relies on additive symmetrization ($A_t + A_t^\top$) rather than the standard multiplicative singular value setup ($A_t A_t^\top$), which requires much heavier Wishart-type math.
  • Unproven Global Quasi-Convexity: While verified numerically and proven in the isotropic limit, the exact partition into only three regimes remains a formal conjecture (Conjecture 4.1) because proving that the critical threshold $\theta_c(t)$ never wiggles multiple times is algebraically daunting.
  • Future Directions: The authors leave rigorously linking eigenvector overlap $q_t$ directly to test-error curves—as well as extending this transient BBP lens to infinitely wide networks via the Neural Tangent Kernel (NTK)—to future work.

Summary updated

BibTeX
@inproceedings{coeurdoux2026random,
  author = {Florentin Coeurdoux and Grégoire Ferré and jean-philippe bouchaud},
  title = {{Random Matrix Theory of Early-Stopped Gradient Flow: A Transient BBP Scenario}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=lycAOHlEXy},
}
Figure