Phase Transitions for Feature Learning in Neural Networks
Andrea Montanari, Zihao Wang
TL;DR
The paper analyzes how two-layer neural networks learn latent low-dimensional structure in multi-index models under proportional growth, showing a Hessian-driven phase transition that governs feature learning. It introduces a Hessian-based threshold $\delta_{\mathrm NN}$, separating easy directions learned in $O(1)$ steps from hard directions that are learned once negative eigenvalues aligned with the hard subspace emerge. Using discrete-time dynamical mean-field theory (DMFT), the authors characterize the bulk Hessian spectrum and derive a finite-dimensional outlier condition whose solutions determine when feature learning begins, both at finite time and in the long-time limit. The results explain phenomena like grokking and quantify how network architecture and training details affect the feature-learning threshold, providing a principled spectral framework for understanding learning dynamics in high dimensions.
Abstract
According to a popular viewpoint, neural networks learn from data by first identifying low-dimensional representations, and subsequently fitting the best model in this space. Recent works provide a formalization of this phenomenon when learning multi-index models. In this setting, we are given $n$ i.i.d. pairs $({\boldsymbol x}_i,y_i)$, where the covariate vectors ${\boldsymbol x}_i\in\mathbb{R}^d$ are isotropic, and responses $y_i$ only depend on ${\boldsymbol x}_i$ through a $k$-dimensional projection ${\boldsymbol Θ}_*^{\sf T}{\boldsymbol x}_i$. Feature learning amounts to learning the latent space spanned by ${\boldsymbol Θ}_*$. In this context, we study the gradient descent dynamics of two-layer neural networks under the proportional asymptotics $n,d\to\infty$, $n/d\toδ$, while the dimension of the latent space $k$ and the number of hidden neurons $m$ are kept fixed. Earlier work establishes that feature learning via polynomial-time algorithms is possible if $δ> δ_{\text{alg}}$, for $δ_{\text{alg}}$ a threshold depending on the data distribution, and is impossible (within a certain class of algorithms) below $δ_{\text{alg}}$. Here we derive an analogous threshold $δ_{\text{NN}}$ for two-layer networks. Our characterization of $δ_{\text{NN}}$ opens the way to study the dependence of learning dynamics on the network architecture and training algorithm. The threshold $δ_{\text{NN}}$ is determined by the following scenario. Training first visits points for which the gradient of the empirical risk is large and learns the directions spanned by these gradients. Then the gradient becomes smaller and the dynamics becomes dominated by negative directions of the Hessian. The threshold $δ_{\text{NN}}$ corresponds to a phase transition in the spectrum of the Hessian in this second phase.
