Abstract
This paper investigates the generalization performance of shallow, wide neural networks in the overparameterized regime where the number of training samples $n$ scales quadratically with the input dimension $d$ ($n \propto d^2$). Using the replica method from statistical physics and a Gaussian equivalence ansatz, we characterize the Bayes-optimal generalization error for networks with arbitrary activation functions and weight distributions. We identify a sharp phase transition between a "universal" phase, where the network behaves like a kernel machine, and a "specialisation" phase, where it aligns with the teacher's weights. We further demonstrate a significant statistical-to-computational gap, where finding the optimal specialisation solution is computationally hard for standard algorithms.
Introduction
Understanding the mathematical limits of how neural networks generalize remains a massive challenge, especially in the "overparameterized" regime where models have enough capacity to perfectly memorize training data. While recent theoretical work has made strides in the proportional regime (where network width $k$ is proportional to input dimension $d$), this paper tackles the more complex regime near the interpolation threshold where $n \propto d^2$. This setup allows for a more realistic analysis of two-layer networks with arbitrary activation functions and generic weight distributions.
Theoretical Framework
The authors study a teacher-student model using the replica method from the statistical mechanics of spin glasses to compute the system's free entropy. A key technical innovation is the use of a Gaussian equivalence ansatz. By assuming the pre-activations of the network behave like jointly Gaussian variables, any arbitrary activation function (such as ReLU or ELU) can be decomposed using Hermite polynomials. This allows the researchers to track how different "orders" of non-linearity contribute to the learning process.
Learning Phases and Transitions
As the amount of data increases (tuned by the ratio $\alpha = n/d^2$), the network undergoes a discontinuous phase transition. In the Universal Phase (low data), the student network's performance is independent of the specific distribution of its inner weights. It cannot resolve the teacher's exact weights and instead learns non-linear combinations, acting essentially like a kernel machine.
Once a critical data threshold $\alpha_{sp}$ is crossed, the system enters the Specialisation Phase. Here, the student network "synchronizes," breaking symmetry and aligning its individual inner weights directly with the teacher's. This leads to a sharp drop in generalization error, and the specific weight distribution becomes a critical factor in performance.
Computational Hardness and the Statistical-to-Computational Gap
A critical insight of this work is that the existence of a mathematically optimal specialisation phase does not guarantee that an algorithm can find it. The authors identify a statistical-to-computational gap: standard algorithms like ADAM or Hamiltonian Monte Carlo (HMC) often get stuck in the sub-optimal universal phase.
Unless provided with an "informative" initialization (a warm start), finding the highly predictive specialisation solution requires training time that scales exponentially with the input dimension. This suggests that while the model has the capacity to generalize exceptionally well, the landscape of the optimization problem makes reaching that state computationally prohibitive.
Conclusion
This work provides exact predictive equations for the Bayes-optimal generalization error in shallow networks. By identifying the transition between universal and specialised learning, the authors clarify how activation functions and weight priors dictate the limits of learning. The discovery of a significant computational gap near the interpolation threshold highlights the ongoing challenge of balancing model expressivity with algorithmic efficiency. Future work will aim to extend this framework to deeper architectures and more structured, real-world data distributions.
Summary updated