A mathematical theory for understanding when abstract representations emerge in neural networks
Bin Wang, W. Jeffrey Johnston, Stefano Fusi
TL;DR
The paper addresses why abstract, disentangled representations emerge when neural networks are trained on tasks tied to latent variables.It develops a mean‑field analytical framework that converts weight optimization in a two‑layer nonlinear network into a convex optimization over preactivation distributions, with an effective energy $E(\mathbf{h};\rho)$ and a representation kernel $K[\rho]$ that depend only on input/output geometry ($K_X$, $K_Y$).For whitened or target‑aligned inputs, the analysis yields explicit, low‑rank, abstract representations in the hidden layer across ReLU and broad nonlinearities, with a universal kernel form $K[\rho_*] = b_*(d_Y\mathbf{1}\mathbf{1}^T + K_Y)$ and modular neuron tuning in many cases.Extensions to anisotropic geometries and deep architectures show that abstract representations persist and generalize to multi‑layer and recurrent networks, offering a tractable toolkit for understanding task‑driven representation learning.These results connect brain observations of low‑dimensional, abstract coding to a rigorous mathematical mechanism, and provide a general framework for studying representation emergence in permutation‑symmetric, task‑driven networks.
Abstract
Recent experiments reveal that task-relevant variables are often encoded in approximately orthogonal subspaces of the neural activity space. These disentangled low-dimensional representations are observed in multiple brain areas and across different species, and are typically the result of a process of abstraction that supports simple forms of out-of-distribution generalization. The mechanisms by which such geometries emerge remain poorly understood, and the mechanisms that have been investigated are typically unsupervised (e.g., based on variational auto-encoders). Here, we show mathematically that abstract representations of latent variables are guaranteed to appear in the last hidden layer of feedforward nonlinear networks when they are trained on tasks that depend directly on these latent variables. These abstract representations reflect the structure of the desired outputs or the semantics of the input stimuli. To investigate the neural representations that emerge in these networks, we develop an analytical framework that maps the optimization over the network weights into a mean-field problem over the distribution of neural preactivations. Applying this framework to a finite-width ReLU network, we find that its hidden layer exhibits an abstract representation at all global minima of the task objective. We further extend these analyses to two broad families of activation functions and deep feedforward architectures, demonstrating that abstract representations naturally arise in all these scenarios. Together, these results provide an explanation for the widely observed abstract representations in both the brain and artificial neural networks, as well as a mathematically tractable toolkit for understanding the emergence of different kinds of representations in task-optimized, feature-learning network models.
