Scaling Laws and Spectra of Shallow Neural Networks in the Feature Learning Regime

Leonardo Defilippis, Yizhou Xu, Julius Girardin, Emanuele Troiani, Vittorio Erba, Lenka Zdeborová, Bruno Loureiro, Florent Krzakala

TL;DR

This paper provides a comprehensive theoretical framework for neural scaling laws in shallow networks undergoing genuine feature learning. By mapping network training to classical sparse estimation problems, the authors derive a complete phase diagram of generalization error and rigorously connect network performance to the spectral properties of the trained weights.

What Problem Does This Paper Address?

Neural scaling laws—how model performance improves as data, compute, and parameter sizes grow—are foundational to modern deep learning, yet our theoretical understanding of them remains limited. Most existing theories are confined to linear models or the "lazy learning" (kernel) regime, where a network's internal features do not change during training.

This paper addresses the gap in characterizing scaling laws within the feature learning regime, where networks actively adapt their representations to the data. Specifically, the authors investigate how generalization error scales with sample complexity and weight decay in shallow architectures when the target task possesses a power-law spectrum.

Methods

The authors analyze two shallow network architectures:

  1. Diagonal linear networks: Two-layer linear networks with diagonal first-layer weights.
  2. Quadratic neural networks: Two-layer networks with a centered quadratic activation function.

They show that the empirical risk minimization (ERM) problem for these networks with $\ell_2$ weight decay maps exactly to classical signal processing problems. Diagonal networks map to LASSO (sparse vector estimation), while quadratic networks map to matrix compressed sensing (low-rank matrix estimation with nuclear norm regularization).

To analyze these high-dimensional optimization problems, they employ Approximate Message Passing (AMP) and its State Evolution (SE) equations. While standard AMP theory assumes fixed ratios of data to dimensions ($n/d$), the authors heuristically extend these equations to analyze non-asymptotic behavior across arbitrary scales of data ($n$), dimension ($d$), and regularization ($\lambda$).

Datasets

The paper is purely theoretical and relies on synthetic data generated via a teacher-student framework:

  • Inputs: Drawn from a standard isotropic Gaussian distribution $\mathcal{N}(0, I_d)$.
  • Targets: Generated by a teacher network with a power-law spectrum (quasi-sparsity), meaning the target weights decay according to a heavy-tailed distribution.
  • Noise: Additive Gaussian label noise is introduced to study overfitting behaviors.

No real-world datasets are used.

Key Insights and Ideas

  • Universal Effective Sample Size: Despite their structural differences, diagonal and quadratic networks share a striking universality in their scaling laws. By defining an effective sample size $n_{\text{eff}}$ ($n$ for diagonal networks, and $n/d$ for quadratic networks), both architectures can be analyzed using a single unified phase diagram.
  • The Spectra-Generalization Bridge: The paper provides a first-principles mathematical explanation for why heavy-tailed weight spectra correlate with better generalization in deep learning. The authors decompose the network's excess risk into three terms—underfitting, overfitting, and approximation error—and show that each maps directly to specific spectral features of the learned weights (e.g., the "bulk" of the spectrum represents learned noise, while "outliers" represent learned features).
  • Overfitting Transitions: The analysis uncovers a clear transition from benign to harmful overfitting in the under-regularized regime as the sample size approaches the interpolation threshold, capturing the non-monotonic "double descent" behavior observed in practice.

Key Results

  • The Scaling Phase Diagram: The authors map out 8 distinct spectral and generalization phases based on data scale and regularization strength.
Figure 1: Excess risk rates of Result 1 as a function of n and λ(n, d), with a sketch of the corresponding spectral properties of the learned weights (Result 2). Red lines represent sharp phase boundaries with different rates on two sides.
  • Optimal Regularization: They derive the optimal regularization scaling ($\lambda_{\text{opt}}$), demonstrating that properly regularized ERM completely avoids harmful overfitting and achieves Bayes-optimal generalization rates.
  • Spectral Validation: Numerical simulations perfectly match their theoretical predictions for the weight eigenvalue distributions across different training phases, validating the emergence of power-law tails.
Comparison between spectra from simulations and theory across different training phases.

Limitations and Future Work

  • Conjectural State Evolution: The non-asymptotic validity of the state evolution equations beyond the fixed $n/d$ regime is presented as a conjecture. Although backed by extensive numerical evidence, a rigorous mathematical proof remains an open challenge.
  • Shallow Architectures: The framework is limited to two-layer networks with specific activations (diagonal/quadratic). Extending these first-principle scaling laws to deep architectures and standard activations (like ReLU) is a crucial next step.
  • Global Minima vs. Algorithmic Bias: The work characterizes the global minimizer of the ERM objective rather than the explicit optimization path of Stochastic Gradient Descent (SGD), leaving the implicit bias of the training algorithm for future exploration.

Summary updated

BibTeX
@inproceedings{defilippis2026scaling,
  author = {Leonardo Defilippis and Yizhou Xu and Julius Girardin and Emanuele Troiani and Vittorio Erba and Lenka Zdeborová and Bruno Loureiro and Florent Krzakala},
  title = {{Scaling Laws and Spectra of Shallow Neural Networks in the Feature Learning Regime}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=Q3yLIIkt7z},
}
Figure