Understanding the generalization properties of neural networks on simple input–output distributions is key to explaining their performance on real datasets. The classical teacher–student setting, where a network is trained on data generated by a teacher model, provides a canonical theoretical test bed. In this context, a complete theoretical characterization of fully connected one-hidden-layer networks with generic activation functions remains missing. In this work, we develop a general framework for such networks with large width, yet much smaller than the input dimension. Using methods from statistical physics, we derive closed-form expressions for the typical performance of both finite-temperature (Bayesian) and empirical risk minimization estimators in terms of a small number of order parameters. We uncover a transition to a specialization phase, where hidden neurons align with teacher features once the number of samples becomes sufficiently large and proportional to the number of network parameters. Our theory accurately predicts the generalization error of networks trained on regression and classification tasks using either noisy full-batch gradient descent (GD) (Langevin dynamics) or deterministic full-batch GD.
Generalization performance of narrow shallow neural networks in the teacher–student setting / Pérez Ortiz, R., Nwemadji, G., Barbier, J., Gerace, F., Ingrosso, A., Lauditi, C., Malatesta, E.M.. - In: JOURNAL OF STATISTICAL MECHANICS: THEORY AND EXPERIMENT. - ISSN 1742-5468. - 2026:4(2026). [10.1088/1742-5468/ae5a23]
Generalization performance of narrow shallow neural networks in the teacher–student setting
Nwemadji, Gibbs;Barbier, Jean;Gerace, Federica;Malatesta, Enrico M
2026-01-01
Abstract
Understanding the generalization properties of neural networks on simple input–output distributions is key to explaining their performance on real datasets. The classical teacher–student setting, where a network is trained on data generated by a teacher model, provides a canonical theoretical test bed. In this context, a complete theoretical characterization of fully connected one-hidden-layer networks with generic activation functions remains missing. In this work, we develop a general framework for such networks with large width, yet much smaller than the input dimension. Using methods from statistical physics, we derive closed-form expressions for the typical performance of both finite-temperature (Bayesian) and empirical risk minimization estimators in terms of a small number of order parameters. We uncover a transition to a specialization phase, where hidden neurons align with teacher features once the number of samples becomes sufficiently large and proportional to the number of network parameters. Our theory accurately predicts the generalization error of networks trained on regression and classification tasks using either noisy full-batch gradient descent (GD) (Langevin dynamics) or deterministic full-batch GD.| File | Dimensione | Formato | |
|---|---|---|---|
|
Pérez_Ortiz_2026_J._Stat._Mech._2026_043405.pdf
accesso aperto
Descrizione: pdf editoriale
Tipologia:
Versione Editoriale (PDF)
Licenza:
Creative commons
Dimensione
1.1 MB
Formato
Adobe PDF
|
1.1 MB | Adobe PDF | Visualizza/Apri |
I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.


