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

Sharp feature-learning transitions and Bayes-optimal neural scaling laws in extensive-width networks

Minh Toan Nguyen, Jean Barbier

TL;DR

Why do neural networks follow clean power-law scaling curves, and how big should you make a student model when distilling knowledge on a fixed data budget? By analyzing the fundamental information-theoretic limits of neural networks, the authors show that models don’t learn continuously—instead, individual features snap into focus one by one through sharp phase transitions as data grows. Sizing a student network to match the exact number of statistically recoverable features at your data budget prevents overfitting to unlearnable noise and unlocks optimal scaling laws.

What Problem Does This Paper Address?

Empirically, training a smaller "student" network to mimic a larger "teacher" reveals a curious quirk: at a fixed data budget, making the student wider past a certain point actually hurts test performance. Furthermore, test error tends to follow two distinct power-law regimes as data size $n$ increases—a slow initial decay followed by a fast $n^{-1}$ drop.

Are these quirks just artifacts of gradient-based optimizers like ADAM, or are they baked into the statistical fabric of the data itself?

To untangle optimization from statistics, the authors study a teacher–student setup in the extensive-width regime, where the teacher's hidden layer width $k$ scales linearly with input dimension $d$ ($k = \Theta(d)$). This sweet spot bridges the gap between overly simple toy models ($k = \Theta(1)$) and infinite-width "lazy" networks ($k \gg d$) that don't actually learn features. By lifting all computational limits and asking what a Bayes-optimal learner (an idealized estimator with infinite compute) can extract, they isolate the pure information-theoretic boundaries of feature learning.

Methods

Analyzing Bayesian neural networks at extensive width usually requires the "replica method"—a notoriously dense technique from statistical physics. Here, the authors introduce a more direct, intuitive leave-one-out (cavity) argument.

They isolate a single hidden neuron (feature) of the teacher and treat the combined effect of the remaining $k-1$ features as effective background noise. Assuming the features weakly couple and this background acts like Gaussian noise, the messy multi-neuron inference problem collapses into a sequence of simple, single-feature generalized linear models coupled only through the overall generalization error.

Unlike prior physics-based analyses restricted to uniform ("dense") readout weights, this cavity approach handles arbitrary hierarchies—such as power-law readouts ($v_i \propto i^{-\beta}$), where features have geometrically decaying importance. The authors validate their heuristic math against ground-truth Hamiltonian Monte Carlo (HMC) sampling and practical ADAM-trained networks.

Datasets

The paper uses purely synthetic datasets to maintain exact analytical control. Inputs $\mathbf{x}_\mu$ are drawn i.i.d. from a standard $d$-dimensional Gaussian $\mathcal{N}(0, \mathbf{I}_d)$ (with experiments typically using $d=200, k=100$). Clean labels are generated by a one- or two-hidden-layer teacher network with orthonormal weights and odd activations like $\sigma(x) = \tanh(2x)$, then corrupted by additive Gaussian noise. No external or real-world benchmarks are used.

Key Insights and Ideas

  • The Staircase of Feature Learning: Features aren't learned gradually. A feature $i$ is statistically invisible until its effective signal-to-noise ratio crosses a strict, activation-dependent threshold $\lambda_\sigma$. As data $n$ grows, features cross this threshold sequentially in order of importance, causing discontinuous jumps in feature recovery and a literal staircase of drops in generalization error.
Staircase drops in Bayes-optimal generalization error and sharp jumps in feature overlap as data increases.
  • Effective Width ($k_c$) Unifies Scaling Regimes: At any data budget $n$, the number of features sitting above the recovery threshold defines the teacher's effective width $k_c$. Unlearned features ($i > k_c$) are statistically indistinguishable from random label noise. Whether a network is actively discovering new features or just polishing old ones, the Bayes-optimal error obeys one unified law: $\varepsilon^{\text{BO}} = \Theta(k_c d / n)$.
  • Why Smaller Students Beat Larger Ones: If you train a full-width student when data only supports $k_c < k$ features, those extra neurons overfit the "effective noise" of the unrecoverable teacher features. Sizing the student width $k_s \approx k_c$ acts as an information-theoretic regularizer, giving a first-principles recipe for model sizing without trial-and-error grid searches.
  • Depth Changes the Bottleneck: Extending the math to two hidden layers (widths $k_1, k_2$) reveals a striking contrast: nothing is learned until $n = \Theta(k_1 d)$, at which point the entire first layer and top second-layer features snap into place together in a single jump. Beyond that, the first layer bottlenecks the error at $\Theta(k_1 d / n)$ regardless of the readout hierarchy.

Key Results

For power-law feature hierarchies ($v_i \propto i^{-\beta}$ with $\beta > 1/2$), the unified law $\varepsilon^{\text{BO}} = \Theta(k_c d / n)$ cleanly explains the two empirical data-scaling phases:

  1. Feature-learning regime ($n \ll k^{2\beta}d$): New features continuously unlock as $k_c \sim (n/d)^{1/(2\beta)}$, partially offsetting the $1/n$ decay to yield a slower error scaling of $n^{\frac{1}{2\beta}-1}$.
  2. Refinement regime ($n \gg k^{2\beta}d$): All $k$ features are unlocked ($k_c = k$), and the error falls at the classic parametric rate $n^{-1}$.

Empirically, ADAM-trained students (tested at $k=100, d=200, \beta=1$) closely mirror these theoretical limits:

Figure 1: ADAM-trained students (all curves except the purple one, right panel) on a teacher with σ(x) = tanh(2x) (with the 2x matching the convention in [7]), k = 100, d = 200, ∆= 0.01, power- law readout with β = 1 (3 batches, 104 epochs, learning rate 0.003; averages over 9 runs, shaded regions show ±1 standard deviation). Left: At fixed sample rate n/(kd) = 2, a reduced-width student (solid = test error; faint = training error) outperforms the full-width one. Middle: Generalization error vs. student width ks at several sample rates n/(kd). Performance degrades beyond a critical width; the dashed line indicates the theoretically predicted optimal model-size exponent 1 −2β. Right: Generalization error vs. data size n for three width choices – full-width (ks = k), effective width (ks = kc from theory), and optimized width (best-performing ks ∈{10, 20, . . . , 100} found by grid search) – together with the Bayes-optimal prediction (purple). Dashed lines indicate the predicted scaling exponents: 1/(2β) −1 in the feature-learning regime and −1 in the refinement regime, see Section 3 and Appendix G for the derivation of exponents.
  • Model-size scaling: Below the critical width $k_c$, student error scales with width $k_s$ as $k_s^{1-2\beta}$; above $k_c$, test error actively degrades due to overfitting unlearnable directions.
  • Data scaling: Students sized at $k_s = k_c$ track the Bayes-optimal exponents across both regimes, separated only by a constant offset (an algorithmic computational-to-statistical gap), though roughly $5\%$ of the weakest features remain unlearned by ADAM at very large $n$.

Limitations and Future Work

  • Heuristic foundations: The leave-one-out derivations rely on unproven physics assumptions (like Gaussian cavity fields and overlap concentration), and HMC validations were initialized near the planted teacher solution rather than from scratch.
  • Activation constraints: The sharp, discontinuous transitions require the activation's second Hermite coefficient to vanish ($\mu_2 = 0$, which covers all odd functions like $\tanh$, but excludes $\text{ReLU}$). While the authors expect the broader scaling exponents to hold when $\mu_2 \neq 0$, transitions will smooth out.
  • Isotropic inputs: The theory assumes standard Gaussian inputs. Extending to structured data covariances, general activations, deeper architectures, and compute-optimal (Chinchilla-style) scaling laws are slated for future work.

Summary updated

BibTeX
@inproceedings{nguyen2026sharp,
  author = {Minh Toan Nguyen and Jean Barbier},
  title = {{Sharp feature-learning transitions and Bayes-optimal neural scaling laws in extensive-width networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Hae4EpsHWm},
}
Figure