A simple mean field model of feature learning
Niclas Göring, Chris Mingard, Yoonsoo Nam, Ard Louis
TL;DR
This work addresses why finite-width neural networks learn features more efficiently than fixed kernels. It develops a self-consistent mean-field (MF) theory for the Bayesian posterior of a two-layer network trained with stochastic gradient Langevin dynamics (SGLD), revealing a symmetry-breaking onset of feature learning (FL) at finite width, with infinite width reducing to kernel ridge regression. However, plain MF underestimates post-transition generalization because it misses self-reinforcing input feature selection (IFS). The authors introduce MF-ARD, a minimal ARD-based MF extension that endows coordinates with learnable variances, enabling coordinate-wise feature selection and sparsification (WTA-like), thereby quantitatively matching SGLD learning curves and revealing how ARD removes the ambient dimensionality from the FL onset. The framework shows FL comprises a two-stage process: a data-driven phase transition, followed by IFS that concentrates mass on task-relevant coordinates and yields sharp generalization gains. Overall, MF-ARD provides a tractable, mechanistic explanation for finite-width feature learning and its advantage over fixed kernels on sparse tasks.
Abstract
Feature learning (FL), where neural networks adapt their internal representations during training, remains poorly understood. Using methods from statistical physics, we derive a tractable, self-consistent mean-field (MF) theory for the Bayesian posterior of two-layer non-linear networks trained with stochastic gradient Langevin dynamics (SGLD). At infinite width, this theory reduces to kernel ridge regression, but at finite width it predicts a symmetry breaking phase transition where networks abruptly align with target functions. While the basic MF theory provides theoretical insight into the emergence of FL in the finite-width regime, semi-quantitatively predicting the onset of FL with noise or sample size, it substantially underestimates the improvements in generalisation after the transition. We trace this discrepancy to a key mechanism absent from the plain MF description: \textit{self-reinforcing input feature selection}. Incorporating this mechanism into the MF theory allows us to quantitatively match the learning curves of SGLD-trained networks and provides mechanistic insight into FL.
