Asymptotic generalization error in the online learning of linearized two-layer neural networks
Abstract We investigate the generalization properties of over-parameterized, two-layer neural networks in the so-called ‘lazy training’ regime, where weight updates remain small around their initial values. Using a student-teacher framework, we focus on the interplay between random features and first-layer linearization in determining the minimal achievable test error. Our analysis uses tools from statistical mechanics to study a high-dimensional limit in which the numbers of input features and hidden units both tend to infinity with a finite ratio <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> <mml:mrow> <mml:mi>K</mml:mi> <mml:mrow> <mml:mo>/</mml:mo> </mml:mrow> <mml:mi>N</mml:mi> </mml:mrow> </mml:math> . We find that the random-feature contribution to the student’s output is effectively suppressed when the first-layer weights are also trained, yielding a finite plateau in the generalization error. By explicitly linearizing in the changes of hidden-unit weights, we derive a closed-form expression for this asymptotic error plateau. Numerical simulations confirm our analytical predictions, showing that the training dynamics converge to a small, finite generalization error that does not vanish, even as <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> <mml:mrow> <mml:mi>K</mml:mi> <mml:mo>,</mml:mo> <mml:mi>N</mml:mi> <mml:mo accent="false" stretchy="false">→</mml:mo> <mml:mi mathvariant="normal">∞</mml:mi> </mml:mrow> </mml:math> . These findings illustrate how training the first-layer weights modifies the random feature model results.
Authors
- Bernd Rosenow (ORCID: https://orcid.org/0000-0002-8232-074X)
- Roman Worschech (ORCID: https://orcid.org/0000-0003-4328-1984)
Institutions
- Max Planck Institute for Mathematics in the Sciences (DE)
- Max Planck Institute for Mathematics (DE)
- Leipzig University (DE)
Publication Details
- Journal
- Journal of Statistical Mechanics Theory and Experiment
- Published
- 2025-09-01
- DOI
- https://doi.org/10.1088/1742-5468/adf822
- Primary Topic
- Neural Networks and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- International Max Planck Research School for Advanced Methods in Process and Systems Engineering