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.
2026
2026
4
10.1088/1742-5468/ae5a23
https://arxiv.org/abs/2507.00629
Pérez Ortiz, Rodrigo; Nwemadji, Gibbs; Barbier, Jean; Gerace, Federica; Ingrosso, Alessandro; Lauditi, Clarissa; Malatesta, Enrico M
File in questo prodotto:
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.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/20.500.11767/154271
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? 0
social impact