Abstract
Deep neural networks are widely used prediction algorithms whose performance often improves as the number of weights increases, leading to over-parametrization. We consider a two-layered neural network whose first layer is frozen while the last layer is trainable, known as the random feature model. We study over-parametrization in the context of a student-teacher framework by deriving a set of differential equations for the learning dynamics. For any finite ratio of hidden layer size and input dimension, the student cannot generalize perfectly, and we compute the non-zero asymptotic generalization error. Only when the student's hidden layer size is exponentially larger than the input dimension, an approach to perfect generalization is possible.
Introduction
Deep learning often defies classical statistical intuition: increasing the number of parameters beyond the number of training points (over-parametrization) frequently improves performance rather than causing over-fitting. One popular way to analyze this is the Neural Tangent Kernel (NTK) or "lazy training" regime, where weights stay close to their initial values and the network behaves like a linearized model. However, there is a known performance gap between these "lazy" models and real-world networks that actually learn new features. This paper seeks to quantify this gap by asking: Under what conditions can a model with a frozen first layer (the Random Feature Model) perfectly learn a task set by a teacher network?
Methods
The researchers employ a Student-Teacher framework, a classic tool from statistical mechanics. In this setup, a "teacher" network generates labels for data, and a "student" network tries to learn the underlying function.
The study focuses on the Random Feature Model (RFM), a two-layer network where input-to-hidden weights are fixed (random features) and only the hidden-to-output weights are trained via Stochastic Gradient Descent (SGD). The authors derive a set of ordinary differential equations (ODEs) using Langevin dynamics to describe the learning process in the "ultra-wide" limit. They utilize Random Matrix Theory, specifically the Marcenko-Pastur distribution, to analytically predict the final generalization error. Synthetic datasets are used, with input vectors drawn from a normal distribution $\mathcal{N}(0, 1)$ and labels generated by a teacher perceptron.
Key Insights and Results
The analysis confirms that if the ratio of hidden neurons ($K$) to input dimensions ($N$) is finite, the student will always exhibit a non-zero generalization error floor. The student cannot "see" the teacher's function perfectly through a limited set of random features. To achieve near-perfect generalization, the student's hidden layer size $K$ must scale exponentially with the input dimension $N$. This "curse of dimensionality" arises because the probability of random features aligning with the teacher's weights drops sharply as $N$ increases.
The authors derived explicit expressions for these asymptotic error floors. As shown in the figure above, the error floor depends on the activation function; for example, the error function (erf) activation typically results in a lower asymptotic error (~0.0075) compared to ReLU (~0.045). Furthermore, the system exhibits a self-averaging nature: as size increases, the behavior of a single large network becomes highly predictable, following the mean path defined by the derived ODEs.
Conclusion
This work provides a rigorous quantification of the performance gap in lazy training regimes. The requirement for exponential scaling of the hidden layer to achieve perfect generalization explains why models that allow feature learning (adapting the first layer) are significantly more efficient. Future research may extend these statistical mechanics techniques to "active" regimes where both layers are trained, potentially quantifying the efficiency gains of feature learning.
Summary updated