Abstract
Random features models play a distinguished role in the theory of deep learning, describing the behavior of neural networks close to their infinite-width limit. In this work, we present a thorough analysis of the generalization performance of random features models for generic supervised learning problems with Gaussian data. Our approach, built with tools from the statistical mechanics of disordered systems, maps the random features model to an equivalent polynomial model, and allows us to plot average generalization curves as functions of the two main control parameters of the problem: the number of random features $N$ and the size $P$ of the training set, both assumed to scale as powers in the input dimension $D$. Our results extend the case of proportional scaling between $N$, $P$ and $D$. They are in accordance with rigorous bounds known for certain particular learning tasks and are in quantitative agreement with numerical experiments performed over many order of magnitudes of $N$ and $P$. We find good agreement also far from the asymptotic limits where $D \to \infty$ and at least one between $P/D^K$, $N/D^L$ remains finite.
Introduction
Understanding the generalization capabilities of deep neural networks remains a central challenge in machine learning theory. To make this problem tractable, researchers often turn to Random Features Models (RFMs). In these shallow architectures, the first layer's weights are fixed randomly, and only the output layer is optimized. RFMs serve as a proxy for the "lazy training" regime of wide neural networks, where weights stay close to their initialization.
While previous theoretical work primarily addressed regimes where the number of features ($N$) and training samples ($P$) scale linearly with the input dimension ($D$), real-world scenarios often involve more complex polynomial scaling (e.g., $P \sim D^2$ or $N \sim D^3$). This paper introduces a unified framework to predict generalization error across these vast scales, explaining the "staircase" patterns of learning and the "double descent" phenomenon.
Theoretical Framework: The Polynomial Mapping
The authors leverage the replica method from statistical mechanics to derive the average properties of RFMs. The core innovation is demonstrating that an RFM is mathematically equivalent to a noisy polynomial regression model.
This mapping is achieved through three key steps:
- Hermite Expansion: The non-linear activation function is decomposed into a series of Hermite polynomials.
- Kernel Truncation: The theory shows that if a model has $N \sim D^L$ features, it effectively functions as a polynomial regressor of degree $L$. Any higher-order terms in the expansion do not contribute to learning the signal; instead, they act as "effective noise," potentially leading to overfitting.
- Random Matrix Theory: Tools like the Marchenko-Pastur distribution are used to account for the correlations inherent in random feature mappings.
Staircase Learning and the Role of Dimension
A defining characteristic of these models is "staircase learning." As the training set size $P$ increases, the generalization error does not decrease uniformly. Instead, it drops in discrete steps whenever $P$ crosses a power of the dimension $D$ (e.g., $D^1, D^2, D^3$). Each step signifies the model's newfound ability to resolve a higher-order polynomial component of the target function.
As shown in the figure above, the theoretical curves (solid lines) accurately capture the discrete jumps in performance observed in numerical simulations (points with error bars). The model's capacity is also constrained by its activation function: to learn a feature of order $\ell$, the $\ell$-th Hermite coefficient of the activation must be non-zero.
Key Results and Double Descent
The proposed theory provides quantitative accuracy even for relatively small dimensions (e.g., $D=30$). It successfully reproduces the double descent phenomenon—a non-monotonic error curve where performance degrades as $N$ approaches $P$ (the interpolation threshold) due to noise-fitting, before improving again in the overparameterized regime ($N \gg P$).
By identifying three distinct asymptotic regimes ($N \gg P$, $N \sim P$, and $P \gg N$), the authors provide a roadmap for predicting model performance based on available computational resources and data constraints.
Limitations and Future Directions
While powerful, the current framework relies on several assumptions:
- Gaussian Data: The theory assumes unstructured input data. Extending this to "manifold" data with intrinsic structure (like natural images) is a priority for future work.
- Lazy Training: The focus is on fixed first-layer weights. The "rich" regime, where features are learned through weight updates, presents a more complex landscape.
- Convex Loss: The derivation assumes a convex loss function (e.g., quadratic loss). Non-convex landscapes in more complex architectures might require advanced techniques like replica symmetry breaking.
This work provides a rigorous foundation for understanding how the interplay between model size, data volume, and input dimensionality dictates the learning trajectory of wide neural networks.
Summary updated