In the quest to understand why deep learning works so well, researchers often find themselves caught between two worlds. On one side, traditional learning theory offers "worst-case" bounds that are often too loose to be practical. On the other, statistical physics provides "typical-case" analyses that are precise but often rely on oversimplified assumptions—like assuming data is just a cloud of independent Gaussian noise.
A recent paper from ICML 2020, "Generalisation error in learning with random features and the hidden manifold model," builds a bridge between these worlds. By using tools from statistical physics, the authors provide a precise mathematical description of how models generalize when the data has actual structure—specifically, when it lives on a "hidden manifold."
The Problem with Standard Assumptions
Most theoretical models of machine learning assume that input data points are independent and identically distributed (i.i.d.) Gaussian vectors. However, real-world data (like images of cats) doesn't fill the entire space of pixels uniformly; it lives on a much lower-dimensional "manifold" within that space.
Existing physics-based theories often struggle to account for this structure or are limited to models with very few hidden units. This paper tackles the "high-dimensional regime," where the number of samples ($n$), the input dimension ($p$), and the latent dimension ($d$) all go to infinity while their ratios remain fixed. They specifically look at the random features regime (often called "lazy training"), where the first layer of a network is fixed and only the output layer is trained.
Analytical Methods
The researchers utilized the replica method, a sophisticated technique from the study of disordered systems in statistical physics, to analyze this setup.
- The Hidden Manifold Model (HMM): They model data as being generated from a latent space. A latent vector $c$ is projected into a higher-dimensional space via a fixed, non-linear transformation to create the input $x$. The labels $y$ depend only on the latent $c$, mimicking how real-world features are often "hidden" behind transformations.
- Replica Symmetry: They derive "saddle-point equations" that describe the system's behavior in the limit of infinite dimensions.
- Gaussian Equivalence Theorem (GET): A key technical contribution is showing that, for the purpose of calculating error, these complex non-linear models can be mapped to an equivalent, simpler Gaussian model. This allows them to turn a daunting optimization problem into a set of solvable equations.
Key Insights and Phenomena
The "Double Descent" for Logistic Regression
While "double descent" (where error peaks at the interpolation threshold and then drops again) is well-known for square loss, this paper analytically locates the peak for logistic regression. They show the peak occurs exactly at the threshold of "linear separability"—the point where the model just barely manages to separate the classes perfectly.
Orthogonal Projections and Separability
The theory confirms a common empirical observation: using orthogonal random projections leads to lower generalization error than standard i.i.d. Gaussian projections. Furthermore, the authors provide a closed-form expression for generalization error ($\epsilon_g$) that matches simulations with flawless agreement.
To map this out, they produced a phase diagram showing exactly when data becomes linearly separable as a function of the number of samples and the data dimension.
Disentangling the Manifold and Universality
The ratio between the latent dimension ($d$) and the ambient dimension ($p$) is critical. The model shows that as $d/p$ decreases (meaning the data is more "structured"), even simple linear classifiers can effectively "disentangle" the hidden manifold and achieve low error. Additionally, the results suggest that the specific choice of non-linearity in the data generation often doesn't change the qualitative behavior of the learning curve, a property known as universality. In the limit of infinite features ($p \to \infty$), the generalization error saturates at a predictable value, providing a benchmark for how much "randomness" costs compared to an ideal kernel.
Limitations and Future Work
- Lazy Training Only: The study focuses on the "lazy" regime where the first layer is fixed. It does not account for "feature learning," where the internal representations of the network change significantly during training.
- Convexity: The current derivation is conjectured to be exact for convex loss functions. Extending this to non-convex landscapes (like deep neural networks) would require "replica symmetry breaking," a much more complex physics framework.
- Hidden Variables: The authors suggest that future work should explore including hidden variables within the learning model itself to see if it can better capture the latent structure of the HMM.
Reference: Gerace, F., Loureiro, B., Krzakala, F., Mézard, M., & Zdeborová, L. (2020). Generalisation error in learning with random features and the hidden manifold model. Proceedings of the 37th International Conference on Machine Learning (ICML).
Summary updated