Bayes-optimal learning of an extensive-width neural network from quadratically many samples
Antoine Maillard, Emanuele Troiani, Simon Martin, Florent Krzakala, Lenka Zdeborová
TL;DR
This work derives a closed-form Bayes-optimal generalization error for learning a single-hidden-layer neural network with a quadratic activation in the regime of extensive width and quadratically many samples, by reducing the problem to an extensive-rank matrix denoising framework and leveraging free probability techniques. It introduces GAMP-RIE, a polynomial-time algorithm whose state evolution matches the Bayes-optimal fixed point, thereby closing the gap between information-theoretic limits and computable methods in this setting. The analysis reveals a perfect-recovery threshold in the noiseless case and detailed asymptotics for various limits of the width-to-dimension ratio, clarifying the role of spectral properties of associated random matrices. Empirically, the authors show that noiseless gradient descent with random initialization can sample near-posterior interpolants, and that averaging over initializations can achieve Bayes-optimal performance, while in noisy settings GD behaves differently, highlighting a nuanced landscape of optimization versus information-theoretic limits. Overall, the work advances theoretical understanding of high-dimensional learning with extensive width and non-linear activations, and introduces techniques with potential applicability to other matrix-learning problems and phase-retrieval-like tasks.
Abstract
We consider the problem of learning a target function corresponding to a single hidden layer neural network, with a quadratic activation function after the first layer, and random weights. We consider the asymptotic limit where the input dimension and the network width are proportionally large. Recent work [Cui & al '23] established that linear regression provides Bayes-optimal test error to learn such a function when the number of available samples is only linear in the dimension. That work stressed the open challenge of theoretically analyzing the optimal test error in the more interesting regime where the number of samples is quadratic in the dimension. In this paper, we solve this challenge for quadratic activations and derive a closed-form expression for the Bayes-optimal test error. We also provide an algorithm, that we call GAMP-RIE, which combines approximate message passing with rotationally invariant matrix denoising, and that asymptotically achieves the optimal performance. Technically, our result is enabled by establishing a link with recent works on optimal denoising of extensive-rank matrices and on the ellipsoid fitting problem. We further show empirically that, in the absence of noise, randomly-initialized gradient descent seems to sample the space of weights, leading to zero training loss, and averaging over initialization leads to a test error equal to the Bayes-optimal one.
