Skip to main content

This is a preprint.

It has not yet been peer reviewed by a journal.

The National Library of Medicine is running a pilot to include preprints that result from research funded by NIH in PMC and PubMed.

ArXiv logoLink to ArXiv
[Preprint]. 2026 Mar 13:arXiv:2510.09816v2. [Version 2]

A mathematical theory for understanding when abstract representations emerge in neural networks

Bin Wang 1,*, Jeffrey Johnston 1, Stefano Fusi 1,†
PMCID: PMC13014162  PMID: 41890612

Abstract

Recent experiments in neuroscience reveal that task-relevant variables are often encoded in approximately orthogonal subspaces of neural population activity. These disentangled, or abstract, representations have been observed in multiple brain areas and across different species. These representations have been shown to support out-of-distribution generalization and rapid learning of novel tasks. The mechanisms by which these representations emerge remain poorly understood, especially in the case of supervised task behavior. Here, we show mathematically that abstract representations of latent variables are guaranteed to appear in the hidden layer of feedforward nonlinear networks when they are trained on tasks that depend directly on these latent variables. These learned abstract representations reflect the semantics of the input stimuli. To show this, we reformulate the usual optimization over the network weights into a mean-field optimization problem over the distribution of neural preactivations. We then apply this framework to finite-width ReLU networks and show that the hidden layer of these networks will exhibit an abstract representation at all global minima of the task objective. Finally, we extend our findings to two broad families of activation functions as well as deep feedforward architectures. Together, our results provide an explanation for the widely observed abstract representations in both the brain and artificial neural networks. In addition, the general framework that we develop here provides a mathematically tractable toolkit for understanding the emergence of different kinds of representations in task-optimized, feature-learning network models.

I. INTRODUCTION

How task structure shapes the geometry of neural representations has long been a central question in neuroscience and machine learning. The ability to learn appropriate representations from training data is fundamental to a system’s capacity for generalization. In neuroscience, recent experiments have shown that, following task training, neural responses across various brain regions often exhibit a characteristic low-dimensional geometry, referred to as an abstract (or, in machine learning, a disentangled) representation [8, 13, 16, 24, 62, 65, 70, 94] (Fig. 1). In these representations, task-relevant variables are represented in distinct, approximately orthogonal subspaces in the firing rate space of neurons (Fig. 1A, right). One possibility is that these subspaces correspond to distinct sets of neurons. In this case, a single neuron would represent the value of a single variable. The discovery of an unsupervised learning algorithm that will produce this kind of ”disentangled” representation has been a topic of great interest in machine learning [25, 31, 59]. Another possibility is that these subspaces are not necessarily aligned with single neurons, but instead distributed across the activity of the entire population of neurons, as seen in many experimental work from neuroscience [8, 16, 24], where all neurons in the population play at least a small part in representing almost all variables. Whether expressed in specialized sub-populations or across the whole population, abstract representations make the representation of a single variable invariant to all other variables (‘dissociated from specific instances’). As a consequence, they facilitate certain forms of outof-distribution generalization and rapid learning of novel tasks. In contrast, non-abstract representations (Fig. 1B, right) – in which different variables are not invariant to each other – do not have these properties, though the relevant variables can still be accurately decoded [28, 44]. In these non-abstract representations, the different variables are nonlinearly mixed with each other [28, 78] – producing a high-dimensional representation that can be used to decode any stimulus condition dichotomy.

FIG. 1.

FIG. 1.

Abstract representations. (A) Each stimulus input in the task (e.g. images of handwritten digits) is associated with several binary latent variables (e.g. parity and magnitude of the digits). These latent variables are exactly the output labels yi in our data model Eq. (1). An abstract representation is one in which each binary variable is represented along a single axis in the population activity space, shown in the top plot inside the frame. This geometric property can be quantified using the parallelism score PS, which measures how parallel the coding directions for one variable remain when the other variables vary. For example, it would measure the parallelism of the parity coding direction for small and large digits (corresponding to two values of the other variable, magnitude). Abstract representations are low-dimensional and have PS=1. In an alternative neural representation, the points representing the different digits are arranged on a tetrahedron shape, which is the highest-dimensional representation (bottom in the frame). This would correspond to a non-abstract representation and has PS~0. (B) Magnitude and parity are equally linearly decodable for both geometries.

In machine learning, variational autoencoders and their variants have been the standard approach to obtain disentangled representations [14]. However, due to identifiability issues, it has been shown that learning disentangled representations in an entirely unsupervised manner is difficult if not impossible [35, 53, 54]. For this reason, other approaches have been proposed, which often include additional regularization [3, 25, 32, 51] or supervision [2, 40, 80]. These supervised approaches have a clear connection to neuroscience: through natural behavior, humans and other animals learn to interact with and classify stimuli in their environment in a variety of ways. Previous work has shown that learning to classify single stimuli in multiple ways can naturally give rise to abstract representations in artificial neural networks [40]. Thus, abstract representations may emerge in the brain through this behavioral process. However, this prior work did not establish general conditions in which these representations emerge, nor did they develop a mathematical theory that explains this emergence.

Here, we formulate an analytical theory that explains the emergence of abstract representations in feedforward artificial neural networks trained to perform multiple tasks that share the same set of latent variables [2, 40]. We begin by studying the emergence of abstract representations in the simplest nonlinear network model that exhibits representation learning: a feedforward network with a single hidden layer and nonlinear activation functions (Fig. 2A, left). For the first time, we prove that the process of minimization of a simple mean square error with l2-weight regularization in the multi-task setting of [2, 40] is guaranteed to generate abstract representations. We show that this result is robust to the choice of nonlinear activation function. However, our analytical framework can be applied well beyond the tasks studied here. In particular, it can be used to characterize the optimal neural representation in nonlinear feature-learning neural networks trained on any task. Our framework provides a powerful tool for characterizing the structure of neural representation in task-optimized networks [19, 43, 77, 84, 102]. Our work therefore advances existing analytical methods for studying task-optimized neural networks, and more broadly, in those nonlinear models exhibiting permutation symmetry.

FIG. 2.

FIG. 2.

Model set-up and summary of the main results. (Middle) The two-layer nonlinear network models are trained on tasks related to abstract representation. The weight and bias parameters are optimized for the task. The hidden layer has width M. For a range of input geometries (characterized by different input kernel matrices KX) and the specified output geometry (where each output label is exactly the latent label), the optimal hidden representation is abstract. (Top right) The output labels for each stimulus input are exactly its associated binary latent labels. (Top left) The range of input geometry smoothly transitions from a fully orthogonalized input, where different stimuli are represented by orthogonal vectors, to a fully output-aligned input (where KX≈KY). To illustrate the fully orthogonalized input in the 4-dimensional space, we draw its 3D projection, which forms a tetrahedron.

The paper is organized as follows. In Section II, we define the task and network model and then introduce the analytical framework for characterizing the optimal neural representations in a two-layer nonlinear network trained on a given task. This framework establishes an exact mapping from the original network model to an effective model whose degrees of freedom are the neural preactivation patterns on training data (Fig. 3A). Solving for the optimal neural representation is then reduced to a corresponding mean-field theory of this effective model. In Section III, we apply this framework to finite-width ReLU networks and derive the optimal neural representation for the corresponding task model (Fig. 3B). In Section IV, we further use this analytical framework to show that the abstract representation remains optimal for two broad classes of nonlinear activation functions. Finally, in Section V, we extend the framework to study additional tasks and deep network architectures.

FIG. 3.

FIG. 3.

The analytical framework. (A) The neural preactivation patterns for all P stimuli can be captured in the preactivation matrix H [Eq. (11)]. Each row represents the M hidden neurons’ preactivations for a specific stimulus. Each column represents the preactivations of a specific hidden neuron for all P stimuli. (B) The column vectors of H can be plotted in a P-dimensional space that encodes each hidden neuron’s tuning for all P stimuli. (C) The statistics of preactivations of hidden neurons can be captured by the empirical (unnormalized) measure. The hidden representation kernel matrix is a linear function of such an empirical measure. (D-F) Mathematically, finding the optimal network reduces to determining the ground state of an effective M-neuron system whose interactions are governed by the input and output kernel matrices [Eq. (13)], which is further equivalent to a mean-field problem where a single representative neuron interacts with the statistics of the neural activity in the network [Eq. (18)].

II. THE ANALYTICAL FRAMEWORK

A. Data and network model

We consider feedforward network models trained through supervised learning, with the training dataset

D=xi,yii=1P⊆ℝdX×ℝdY. (1)

Here, P is the number of training samples (input-output mappings) in the task. dX and dY are the input and output dimensions.

We assume that the input patterns are unstructured (that is, uncorrelated with each other), whereas the desired outputs (i.e., the training labels) have low-dimensional structure (similar to [40, 86]). In general, these labels might reflect the structure of a latent space used to generate the complex, seemingly unstructured inputs and might depend on the latent variables in a complex way [40]. Here, we assume that the network’s desired outputs, yi, are exactly these latent variables, and ignore the possibility of a more complex dependency between the latent variables and output labels. An example of such dataset is the MNIST images where the latent variables are magnitude and parity (Fig. 1A).

More specifically, the output associated with a particular input yi∈{±1}dY is assumed to consist of dY∈ℕ+ binary labels. In the typical multitask set-up [80], different binary labels represent different ways to classify the inputs, usually based on different features of the inputs (Fig. 1). We define the input and output data matrices as

Xdata=x1,x2,…,xP∈ℝdX×P,Y=y1,y2,…,yP∈{±1}dY×P. (2)

Based on their output labels, all the training data form 2dY distinct classes. We further assume that each class has the same number of training data, n∈ℕ+. Namely, all the classes are balanced, and thus the total number of training data points P satisfies

P=n⋅2dY. (3)

Denote the ith row vector of Y as vi∈{±1}P, whose components are the ith binary labels for all training data, i=1,2,..dY. Under the above assumption, we find that (i) vi⋅vj=Pδij, where δij is the Kronecker delta notation; (ii) 1⋅vi=0, for 1=(1,1,…,1)T∈ℝP, i.e. exactly half of the components of vi is +1 and the other half is −1, and (iii)vi’s are all the eigenvectors of the output kernel matrix KY≡YTY with non-vanishing eigenvalues (SI §1.1).

We are interested in the neural representation in a minimal two-layer network model trained to produce these input-output mappings (Fig. 2). A two-layer network defines a map

fW1,W2,b(x)=W2ϕW1x+b,

where ϕ is a component-wise nonlinear activation function. The width of the hidden layer is M. W1∈ℝM×dX and W2∈ℝdY×M are the weight matrices of the 1st and 2nd layer. b∈ℝM is the bias parameter. When M is large, the above functional form can approximate any continuous function [17].

The weight and bias parameters in the network are optimized on the training dataset D via the loss function

EW1,W2,b=∑i=1Pyi−W2ϕW1xi+b2+λ1W1F2+λ1‖b‖22+λ2W2F2≡Y−W2ϕ(WX)F2+λ1‖W‖F2+λ2W2F2. (4)

Here ‖⋅‖F is the Frobenius norm of a matrix. In the last line, we introduced the augmented input matrix X and weight matrix W to incorporate the bias parameter b,

W≡W1,b,X≡Xdata1T. (5)

λ1,2>0 in Eq. (4) are the strengths of l2-weight regularization and are typically small.

For a data point (x,y), we call r=ϕW1x+b the population firing rate vector or neural representation of the data in the hidden layer. We assume that after the task training, the neural network has reached a global minimum of the loss [Eq. (4)]. And we will investigate the neural representations at these global minima. Our main analysis and results will be presented in this setting of two-layer neural networks, and the extensions to deep neural networks are deferred to Section V.

B. Parallelism score measures the abstractness of the neural representation

Previous work uses parallelism score (PS) as a measure of the abstractness of a neural representation [2, 8]. We define PS below using our notation. Given a network with the parameters W1,W2,b, its representation of the training data xi,yi is ri=ϕW1xi+b. Since all the training data form 2dY distinct classes based on their output labels, we define the prototype representation of each class as the mean firing rate vector of the n data points [Eq.(3)] belonging to this class,

r(y)=1n∑i:yi=yri. (6)

where y=y1,..,ydY∈{±1}dY is the class label.

An abstract representation is characterized by the property that each latent binary label is encoded along a specific direction in the population firing rate space, independently of the other latent labels. To measure this, we examine how the neural representation changes when varying only the kth latent label yk while keeping other labels y\k=α∈{±1}dY−1 fixed,

Δr(k;α)=ryk=+1,y\k=α−ryk=−1,y\k=α.

For different labels α1, α2∈{±1}dY−1, we quantify how consistent the direction of representation changes are when varying the kth label, using cosine similarity

PSkα1,α2≡Δrk;α1⋅Δrk;α2Δrk;α12Δrk;α22∈[−1,1].

From this definition, if the representation change for the kth latent label is independent of other latent labels Δrk;α1=Δrk;α2, then PSkα1,α2=1. So any deviation from 1 would indicate an interdependence between different latent labels.

The average parallelism score for the kth latent label is defined as the average cosine similarity for all distinct pairs α1,α2,

PSk=12dY−1⋅2dY−1−1∑α1,α2∈{±1}dY−1α1≠α2PSkα1,α2.

The overall PS for the neural representation is the average over all latent labels

PS=1dY∑k=1dYPSk. (7)

By definition, PS of a neural representation only depends on the inner product between the neural representation of all data pairs, ri⋅rj. So we define the representation kernel matrix K∈ℝP×P whose element is

Kij≡ri⋅rj=ϕW1xi+b⋅ϕW1xj+b (8)

This kernel matrix fully determines the PS for a neural representation. Moreover, following the definition, PS does not change when (1) adding a constant to all elements of K, or (2) multiplying K by a positive scalar.

If the neural representation of data is completely random, PS~0. A neural representation is called an abstract representation if the PS is large and close to 1 [8, 16]. However, even a representation with PS~0 allows for a linear decoder to recover the latent labels (Fig. 1A). Thus, the emergence of representations with high PS is not a direct consequence of high task performance.

C. The effective mean-field energy

We investigate the global minima of the loss function for the two-layer network models EW1,W2,b [Eq. (4)]. These minima can also be thought of as the ground states of a physical system with a Hamiltonian EW1,W2,b. The corresponding Gibbs measure with inverse-temperature parameter β is

pW1,W2,b=Zβ−1exp−βEW1,W2,b, (9)

where Zβ≡∫W1,W2,bexp−βEW1,W2,bdW1dW2db is the corresponding partition function and the free energy is Fβ≡β−1lnZβ. Specifically, the ground state of the system is related to the zero-temperature free energy limβ→+∞Fβ.

We introduce some notations to state our main result for the zero-temperature free energy. Denote the augmented input and output kernel matrices as

KX=XTX∈ℝP×P,KY=YTY∈ℝP×P. (10)

Since up to a rotation, the input and output data X, Y can be reconstructed from these kernel matrices, we say that these kernel matrices capture the input and output geometry (Fig. 2). Denote Range KX as the column space of the matrix KX

The neural preactivations for all P input data can be summarized in the preactivation matrix (Fig. 3AB)

H≡XTWT=h1,h2,…,hM∈ℝP×M, (11)

where the kth column vector hk∈ℝP represents the preactivation pattern of the kth hidden neuron for all P data points (or stimulus conditions). We note that H is related to the response matrix commonly used in neuroscience [44], whose rows correspond to all the stimulus conditions and columns to all the neurons.

We find that (SI §1.2) the zero-temperature free energy can be obtained via the following optimization problem over the neural preactivations,

limβ→+∞Fβ=minhk∈RangeKXEh1,h2,..,hM, (12)

where Eh1,h2,..,hM is

Eh1,h2,..,hM=λ1∑k=1MhkTKX†hk+trλ2λ2+∑k=1MϕhkϕhkTKY (13)

Here KX† is the Moore-Penrose inverse of KX. Eqs. (12)–(13) shows that the zero-temperature free energy is determined by the global minima of the effective energy function [Eq. (13)] over the neural preactivation patterns in the hidden layer, subject to the constraint hk∈RangeKX.

This result maps the original system, whose energy function [Eq. (4)] is over its parameter space W1,W2,b, into an effective system with energy function described by Eq. (13). The effective system consists of M neurons, each of which has a P-dimensional state variable h∈ℝP, lying in the data-dependent subspace RangeKX (Fig. 3DE). Note that Eqs. (12)–(13) are valid for any network width M and input/output kernel matrix KX/KY.

An immediate consequence of the above equation is that the optimal preactivation matrix H*=h1*,…,hM* [Eq. (11)] and the corresponding optimal representation kernel K*=ϕH*ϕH*T [Eq. (8)] only depend on the input and output kernel matrices KX and KY, rather than depending directly on the data matrices X, Y. This invariance is a general property for any rotationally-symmetric energy function such as Eq. (4).

Eq.(13) is invariant under permutation over neurons (note that the hk only appear in summation). So we introduce the empirical measure of the preactivations ρM=∑k=1Mδhk (the unnormalized empirical distribution of hk’s) and rewrite the sums as integrals over this new distribution, so

∫λ1hTKX†hdρM(h)+trλ2λ2+∫ϕ(h)ϕ(h)TdρM(h)KY (14)

Note that the representation kernel can be written as KρM=∫ϕ(h)ϕ(h)TdρM(h). Since all the preactivation patterns hk’s lie in RangeKX, so is the support of the measure, suppρM⊆RangeKX [66].

Eq. (14) shows that the energy function of the effective M-neuron system only depends on the global statistics of neural activity ρM. Thus, the measure ρM can be viewed as the order parameter of the (finite-size) effective M-neuron system, which is permutation-invariant and reflects the symmetry in the original system [Eq. (4)]. This is similar to many other models in statistical physics [1, 42, 46, 47, 63, 69] where the order parameter here is a (probability) measure rather than simple scalars.

D. The optimality condition

To compute the PS [Eq. (7)] corresponding to the ground state of effective system, we want to find the representation kernel KρM* corresponding to the global minima ρM* of Eq. (14), with the constraint that ρM* is a sum of M Dirac-delta measures and suppρM*⊆RangeKX. This optimization is challenging to perform directly, as the space of finite M-sum Dirac delta measures is not convex. To address this issue, we relax the constraint by enlarging the optimization domain to include all finite positive measures supported on RangeKX⊆ℝP, which also includes continuous measures. We denote this new space of measures [67], as M+KX. By definition, M+KX is convex (equipped with the usual sum between measures).

Now for ρ∈M+(X), we consider the energy functional defined by Eq. (14),

E[ρ]≡λ1∫hTKX†hdρ(h)+trλ2λ2+∫ϕ(h)ϕ(h)Tdρ(h)KY. (15)

This is a convex functional on M+(X):E[ρ] is a convex function on M+(X) if and only if ∀ρ1, ρ2∈M+(X), f(t)≡Etρ1+(1−t)ρ2 is a convex function for t∈[0,1] [12]. The latter can be checked by computing the 2nd derivative of f(t) (SI §1.3),

f″(t)=2λ2tr1λ2+KtδK1λ2+KtKY1λ2+KtδK≥0. (16)

See SI §1.3 for the expressions of Kt and δK.

For this convex optimization problem, the Karush–Kuhn–Tucker (KKT) condition for the optimal solution ρ* is (SI §1.4)

λ1hTKX†h−λ2ϕ(h)T1λ2+Kρ*KY1λ2+Kρ*ϕ(h)≥0,∀h∈RangeKX,h∈suppρ*⇒equality holds, (17)

where Kρ*=∫ϕ(h)ϕ(h)Tdρ*(h) is the representation kernel for ρ*. BecauseR the problem is convex in ρ*, any solution to the KKT conditions is automatically a global minimum for Eq. (15).

This KKT condition shows that any global minimum ρ* of Eq. (15) must satisfy the inequality in Eq. (17) and at the same time, its support must be confined to those vectors h for which the equal sign is attained. The two conditions can be interpreted as a mean-field description [69] of the effective M-neuron system (Fig. 3F). To see this, we define the single-neuron mean-field energy,

E(h;ρ)≡λ1hTKX†h−ϕ(h)Tλ2λ2+K[ρ]KY1λ2+K[ρ]ϕ(h). (18)

where K[ρ] is the representation kernel for ρ, as defined above.

The KKT conditions [Eq. (17)] for any optimal solution ρ* can be written in terms of the single-neuron mean-field energy

minh∈RangeKXEh;ρ*=0,suppρ*⊆argminh∈RangeKXEh;ρ*≡AKX,KY, (19)

In the second equation, the support of ρ* consists of the optimal preactivation patterns (or single-neuron tuning) for training data, which we denote as AKX,KY.

From statistical physics perspective, Eq.(19) show that the individual neuron’s preactivation h is trying to minimize the single-neuron mean-field energy E(h;ρ), where the “mean-field” is generated by the statistics of all neurons’ activity ρ* (Fig. 3C). The two terms in E(h;ρ) [Eq.(18)] have interesting interpretations: the 1st term pushes all the neurons’ activities to align with the largest principal component of the input kernel, while the 2nd term encourages the transformed neuronal activity ϕ(h) to align with the largest principal component of the output-induced mean-field, 1λ2+Kρ*KY1λ2+Kρ*.

These mean-field equations [Eq. (19)] need to be solved in a self-consistent manner [46, 47, 63, 69] (See SI §1.4). For arbitrary input and output data KX, KY, and nonlinear activation function ϕ, these equations are systems of nonlinear equations that can only be solved numerically. Fortunately, for training data related to abstract representation (Section IIA), the mean-field equations [Eq. (19)] can be solved exactly as we will present below.

As a final note, although the above optimization is performed over all positive measures in M+(X) and in general, some of these measures cannot be attained by a finite-size system, in many cases, the global minimizer ρ* is a finite sum of Dirac-delta measures. As we show in the next section, this fact allows us to study the optimal neural representations in a finite-width network by optimizing a convex functional [Eq. (15)] over the infinite-dimensional measure space for preactivation, M+(X).

III. WHITENED AND TARGET-ALIGNED INPUTS LEAD TO ABSTRACT REPRESENTATION IN RELU NETWORK

We investigate the optimal neural representations for the data and network model in Section IIA. Throughout this section, we assume a ReLU activation function: ϕ(z)=[z]+. We focus on two types of inputs: (i) whitened inputs, and (ii) inputs exhibiting stronger alignment with the outputs than the whitened case (hereafter “target-aligned inputs”, illustrated in Fig. 2).

For these input geometries, we find that all the solutions satisfying the KKT conditions [Eq. (19)] correspond to abstract hidden representations. We summarize the key steps of the argument here, with detailed derivations provided in SI §2. We start with the scenario where each binary class contains a single data point (n=1) and then extend the results to multi-element classes (n≥2).

A. Whitened input + single-element class (n=1)

For whitened (or orthogonalized) inputs, XdataTXdata=IP. The augmented input kernel matrix and its psudo-inverse are

KX=IP+11T,KX†=IP−1P+111T.

Both matrices are full, so the constraint on h in Eq. (19) is trivial, RangeKX=ℝP.

The key result that helps us solve the mean-field equation [Eq.(19)] is the following lower bound for single-neuron mean-field energy (SI §2.1),

E(h;ρ)≥λ1h+TKX†h+−λ2h+T1λ2+K[ρ]KY1λ2+K[ρ]h+≡Erh+;ρ,∀h∈ℝP,∀ρ∈M+KX. (20)

where h+=[h]+ is the positive component of the vector h. Using this inequality, we can find the minimum of E(h;ρ) [as required in Eq.(19)] via minimizing Erh+;ρ over all the nonnegative vectors h+≥0.

Minimizing Erh+;ρ turns out to be equivalent to determining the copositivity of a matrix [88] and is generally a non-convex problem. Using the properties of the output kernel KY, we solve this non-convex problem and show that any solution ρ* must have the hidden representation kernel (SI §2.2)

Kρ*=b*dY11T+KY. (21)

where

b*=λ2λ1P+1P(P+2)−λ2P. (22)

Here λ1,2 are assumed to be small to ensure b*>0, i.e. λ1λ2<P+2P(P+1). Interestingly, the solutions of the mean-field equation ρ* [Eq.(19)], or equivalently the global minimizers of the loss [Eq.(15)], are not unique. But they all correspond to the identical representation kernel given by Eq.(21). We note that such uniqueness of the representation kernel does not generally hold for arbitrary tasks and appears to be a special property of the tasks studied here (SI §2.2)

The set of optimal preactivation vectors in the hidden layer AKX,KY, which is equal to the support of ρ*, is found to consist of 2dY line rays in the nonnegative orthorant ℝ≥0P (SI §2.2)

h=h+=α1+viorα1−vi,for someα≥0andi∈1,2,..,dY. (23)

As half of the components in vi are +1 and the other ones are −1, the above optimal preactivation vectors have exactly half of the components to be 2 and the other ones zero.

Finally, this optimal solution ρ* can be attained in a network with M≥2dY hidden neurons where each neuron simply takes the preactivation hi±=b*1±vi (SI §2.2).

Altogether, when M≥2dY and the input is whitened, we find the optimal hidden representation is Eq.(21) and that the neurons in the hidden layer cluster into 2dY groups given by Eq.(23).

B. Whitened input + multi-element class (n≥2)

When each class contains multiple data points ((n≥2) in Eq. (3)), whitened input has input kernel matrix XdataTXdata=IP. Namely, both the within-class and between-class correlations are zero. Here we consider a slightly more general form of input kernel that would allow within-class correlation,

XdataTXdata=C1︸n×nC2..C2dY︸n⋅2dY×n⋅2dY=∑i=12dYCi⊗eieiT, (24)

where ⊗ is the Kronecker product between two matrices. ei, i=1,2,…,2dY is the standard product basis in ℝ2dY. The two matrices terms in the Kronecker product naturally represent the between-class and within-class correlations.

The within-class correlation matrices Ci are assumed to satisfy the following conditions:

  1. Ci is positive definite for i=1,2,3,..,2dY;

  2. All the Ci’s have the same largest eigenvalue c>0 with the same eigenvector 1∈ℝn, i.e. Ci1=c1.

Under this assumption, the augmented input kernel matrix is KX=∑i=12dYCi⊗eieiT+11T⊗11T. And the output kernel becomes KY=KY0⊗11T. Here KY0 denotes the dY×dY output kernel matrix in the single-element case.

In SI §2.3, we solve the mean-field problem [Eq. (19)] and find the optimal representation kernel is similar as before

Kρ*=b*dY11T+KY0⊗11T, (25)

and b* is

b*=λ2λ1P+c(P+2c)P−λ2P. (26)

Assume that λ1,2 are small enough to have b*>0.

Similarly, the set of optimal neural preactivations AKX,KY is given by 2dY directions

AKX,KY={h∈ℝ2dY⊗ℝn∣h=α1+vi0⊗1orα1−vi0⊗1,α≥0andi=1,2,..,dY}, (27)

where vi0’s are the eigenvectors of KY0 with nonvanishing eigenvalues.

The optimal kernel [Eq. (25)] (and the associated optimal measure ρ*) can be attained when the number of hidden neurons M≥2dY. Thus, despite having nonzero within-class correlations, the optimal kernel matrix is similar to the single-element case [Eq. (21)].

This optimal representation kernel [Eq. (25)] has an intriguing geometric interpretation: the between-class correlation matrix b*dY11T+KY0 is the same as for the single-element class case [Eq. (21)] and the within-class correlation matrix is given by 11T. This form of within-class correlation means the neural representation of all data points from the same class “collapse” into a single point in the hidden layer, as also indicated in the set of optimal preactivations [Eq. (27)]. Such a property closely resembles the neural collapse phenomena reported in previous studies [37, 72, 91, 92, 95, 103]. We discuss the similarity and difference between our results and the work related to neural collapse in SI §5.1 in more detail. For ReLU nonlinearity, this ”within-class collapse” property can be directly proved via Jensen’s inequality (SI §2.4). The fact that the optimal preactivation patterns in the hidden layer clusters into only a few directions [Eq. (23) and Eq. (25)] is also known as the quantization phenomenon [55].

C. Target-aligned input

The above results for whitened input can be generalized to inputs more aligned to the output than the whitened case (Fig. 4C). We will state our main results for single-element (n=1) and multi-element (n≥2) classes here.

FIG. 4.

FIG. 4.

Task-optimized ReLU network exhibits abstract representation for whitened and target-aligned inputs. (A) The training loss and the parallelism score of the hidden representation are plotted against the number of training epochs for the whitened input. The training is through gradient descent algorithm. After training, the network performs the task perfectly with zero training loss and has an abstract hidden representation (PS→1). (B) The optimal hidden kernel predicted by theory (Ktheory given by Eq. (21)) is aligned with the one found in numerical simulation Ksim for different output dimensions dY. (C) The parallelism score of the hidden representation after training vs. the input-output alignment. See SI §5 for the definition of input-output alignment. Each point in the plot represents a specific randomly sampled input geometry. The red dot indicates the point for the whitened input. For inputs that are more aligned to the output than the whitened one, the PS is close to 1. (D-E) Modularity of the single-neuron tuning in the hidden layer is captured by the preactivation vector h and weight vector v to the output layer for each hidden neuron (dY=2). (E) Each hidden neuron only has nonzero output weights to a single output unit, suggesting that different neurons in the hidden layer ”encode” different output labels. (F) The first three principal components of the neural preactivation space (the same space as Fig. 3B). The preactivation vectors of the hidden neurons concentrate along P=4 distinct directions, as predicted by Eq. (23).

For the single-element class (n=1), we consider the augmented input kernel matrix of the form

KX=c0P11T+cYPKY+∑j=dY+1P−1cjujujT, (28)

where KY=∑i=1dYviviT is the output kernel and ui’s are the orthonormal basis of 1,v1,v2,…,vdY⊥ in ℝP (Section IIA).

The 2nd and 3rd terms in the above equation can be considered input components that are aligned and orthogonal to the output. For whitened inputs considered in Section IIIA, c0=P+1, cY=cj=1, j=dY+1..,P−1. Here we consider those inputs whose output-aligned component is greater than or equal to the orthogonal component, meaning that

c0>cY≥cj>0,j=dY+1,..,P−1. (29)

Unlike the fully orthogonalized input before, the input here has positive (between-class) correlations if c0 is large. Interestingly, we find (SI §2.6) that this introduced correlation does not change the form of the optimal kernel Kρ*=b*dY11T+KY, and only modifies the coefficient b*

b*=λ2c0cYPλ1Pc0−cY+2cY−λ2P (30)

The same result holds for multi-element classes n≥2,P=n⋅2dY. Now the augmented input kernel has the tensor product form

KX=KX0⊗C+11T⊗11T (31)

where KX0 is the input kernel in the single-element class scenario [Eq. (28)] and satisfies Eq. (29). For simplicity, we also assume that all the classes have the same within-class correlation matrix C, which satisfies the same properties as before (Section IIIA). This input kernel recovers the one for orthogonalized classes (Section IIIB) if c0=1, cY=cj=1, and recovers single-element class [Eq. (28)] if every class has a single element (n=1). An example dataset with the above input kernel is when the within-class correlation is cin and between-class correlation is cout, with cout<cin.

The optimal kernel in this case has the same form as for orthogonalized inputs [Eq. (25)], Kρ*=b*dY11T+KY0⊗11T, but with an coefficient (SI §2.6)

b*=λ2λ1ccYP+cc0P+cc0+ccYP−λ2P.

This optimal kernel (and the associated optimal measures ρ*) can be attained when the number of hidden neurons M≥2dY. The set of optimal preactivations AKX,KY is the same as before [Eq. (23) or Eq. (27)].

Altogether, this shows that for target-aligned inputs [Eq.(29)], the optimal representation kernel [Eq. (28)] does not depend on the magnitude of orthogonal components cj for all j=dY+1,..,P−1. However, this property does not hold if the target-aligned condition [Eq.(29)] is not satisfied, i.e. when the orthogonal component is large, cj>cY (Fig.5C). The underlying intuition is that for nonlinear networks, the output-aligned component and the output-orthogonal component in the input ”compete” with each other to form the hidden representation. In contrast, a linear network only uses the output-aligned component to form the hidden representation.

FIG. 5.

FIG. 5.

Task-optimized ReLU network for multi-element classes (n≥2). (A) An example of input kernel with nonzero within-class correlation but zero between-class correlation (left). For illustration, this example assumes the same within-class correlation matrix C for all classes but our theory also works for class-specific correlation [Eq.(24)]. The theory predicts that the optimal hidden kernel Ktheory is proportional to the output kernel up to a positive shift (right). In particular, the hidden kernel has a block structure because all the data within each binary class has the same hidden representation [Eq.(27)]. (B) Training loss and PS are plotted against the number of training epochs. (C) The predicted hidden kernel Ktheory always aligns with simulation Ksim when the number of data per class n changes.

D. PS, single-neuron tuning and weight matrices for the optimal solution

We have shown that for orthogonalized [Eq. (24)] or target-aligned [Eq. (31)] inputs, when M≥2dY, all global minima of the loss have the representation kernel Kρ*=b*dY11T⊗11T+KY. In this section, we investigate other properties of these optimal solutions.

From the optimal representation kernel, we can compute its PS, denoted PSKρ*. By translation-and scale-invariance of PS (Section IIB), PSKρ*=PSKY. By the definition of KY, the prototype representation [Eq. (6)] of each binary class corresponds to each vertex of a dY-dimensional hypercube (Fig. 2). So the representation change for the kth binary latent label is aligned with the kth axis of the hypercube (Fig.4), independent of other latent labels: PSkα1,α2≡Δrk;α1⋅Δrk;α2Δrk;α12Δrk;α22=1. Therefore, the overall parallelism score PSKY=1=PSKρ*, and the optimal representation kernel [Eq. (24) and (31)] corresponds to an abstract representation.

Next, we look at the responses of individual neurons in the optimal solution ρ*. From Eq. (23) and Eq. (27), the optimal preactivation of each neuron has the form h=α1±vi0⊗1 for some i∈1,2,3..,dY and α>0 (we focus on neurons having nonzero preactivation patterns). The P components of h∈ℝP≃ℝ2dY⊗ℝn are this neuron’s preactivations for the P training data points [Eq.(11)]. Based on the definition of vi0 (Section IIA and SI §1.1), the neuron with h=α1+vi0⊗1 (or h=α1−vi0⊗1) has nonzero preactivations exactly for those training data points whose ith output label are positive (or negative). So all the neurons in the hidden layer are divided into 2dY groups: each group responds only to a single output label (Fig.5D-F). Note that a random network would not have a modular response property like this, and such modularity is a consequence of task training.

Since the preactivation of every neuron is a linear combination of 1⊗1 and vi⊗1 for some i, the optimal preactivation matrix H* [Eq. (11)] has the following form

H*=1⊗1,v1⊗1,v2⊗1,…,vdY⊗1︸P×dY+1matrixA,

where A∈ℝdY+1×M is the matrix encoding the coefficients α for all neurons. Importantly, H*∈ℝP×M has rank dY+1. The corresponding optimal weight matrices for Eq. (4) can be solved as W*=H*X† (since X is of full rank) and W2,*=YH*Tλ2+H*H*T−1 (SI §1.2). So these matrices also have rank dY+1, which could be much smaller than the hidden layer width M and input dimensions dX. The fact that the optimal weight matrices are low-rank indicates that the neural network learns the task-relevant low-dimensional structures in the input, rather than constructs a large set of fixed features from the inputs as in kernel machine [23, 99].

IV. ABSTRACT REPRESENTATION EMERGES IN THE HIDDEN LAYER, INDEPENDENT OF SINGLE-NEURON NONLINEARITY

We show that the results from the previous section can be extended to other activation functions ϕ beyond ReLU. In particular, the emergence of abstract representation is robust to single-neuron nonlinearity and is mainly determined by the task structure.

We consider two broad classes of nonlinear activation functions. The 1st class is the threshold nonlinear functions of the form

ϕ(z)=ϕ+(z)z≥00z<0 (32)

Here we require the nonzero function ϕ+:ℝ≥0→ℝ≥0 to satisfy the following properties:

  1. ϕ+ is continuous, non-decreasing and ϕ+(0)=0;

  2. For any z>0, the slope function B(z)≡ϕ+(z)z≥0 is non-increasing, and B0≡limz→0+B(z)∈(0,+∞).

The property (2) can be viewed as a saturation effect in the neural responses. Examples in this function class include ReLU, hard Sigmoid, and functions that are concave for positive inputs (Fig. 6A).

FIG. 6.

FIG. 6.

Task-optimized network with threshold nonlinearity. (A) Three examples of nonlinear activation functions from the 1st class. See detailed expressions for the three functions in SI §5. (B,C) Training loss and PS of the hidden representation are plotted against the number of training epochs, for the three activation functions. (D-F) PS of the optimal hidden representation when varying the input-output alignments. This plot appears to be insensitive to the specific shape of nonlinearity used in the network.

The 2nd class of nonlinear activations is those odd functions,

ϕ(z)=ϕ+(z)z≥0−ϕ+(−z)z<0, (33)

where ϕ+ satisfies the same properties (1) and (2) as above. This class of functions includes linear functions, tanh, and any odd function that is concave for positive inputs (Fig. 7A).

FIG. 7.

FIG. 7.

Task-optimized network with odd-symmetric nonlinearity. (A) Three examples of nonlinear activation functions from the 2nd class. See detailed expressions for the three functions in SI §5. (B,C) Training loss and PS of the hidden representation as a function of the number of training epochs, for the three activation functions in (A). (D-F) Although the optimal hidden representations are always abstract for the two classes of nonlinearity, the hidden neurons have different tuning properties. For 1st class nonlinearity, each hidden neuron is specifically connected to a single output unit (E), while this connectivity appears unstructured for hidden neurons when using the 2nd class nonlinearity (F).

In SI §3, we find that for orthogonalized and target-aligned inputs, the optimal representation kernel converges to the form Kρ*M→a*11T⊗11T+b*KY as M→+∞. As noted before, this optimal kernel corresponds to an abstract neural representation.

Our central strategy is to (i) prove these results for a perturbed version of the nonlinear function, and then (ii) extend the result via a continuity argument. We outline these key arguments below for the single-element class case (n=1) with whitened input. Detailed derivations, as well as the scenarios with multi-element classes (n≥2) and target-aligned inputs, are provided in SI §3.

A. Threshold nonlinear activation

For any δ>0 and a 1st class nonlinearity ϕ, we introduce the perturbed activation function

ϕδ(z)≡B0δ−ϕ+(δ)+ϕ+(z)z≥δB0z0≤z≤δ0z<0,

where B0=limz→0+ϕ+(δ)z>0 is the slope of ϕ at the origin. Here ϕ is simply replaced by its linear tangent on [0,δ]. Moreover, it can be checked that if ϕ is a 1st class nonlinearity, so is the perturbed one ϕδ.

For this perturbed activation ϕδ and whitened input KX=IP+11T (single-element class n=1), we find (SI §3.1–3.2) that a similar result as Eq. (20) holds

E(h;ρ)≥Erϕδ(h);ρ,∀h∈ℝP,∀ρ∈M+KX, (34)

where Er(⋅;ρ) is given by Eq. (20) except that the regularization strength λ1 is rescaled λ1→λ1B0−2. This result can be proved via the method of majorization [9, 58] (SI §3.1–3.2).

Note that the argument ϕδ(h) in Erϕδ(h);ρ takes values from a hypercube ϕδ(h)∈0,ϕ+(+∞)P within the nonnegative orthant ℝ≥0P. Minimizing Erϕδ(h);ρ is a nonconvex copositive programming problem similar to the ReLU case (SI §3.2), and we find that the optimal representation kernel is still of the form Kδρ*=b*dY11T+KY, with b*

b*=λ2B02λ1P+1P(P+2)−λ2P,

where λ1,2 are assumed to be small enough such that b*>0. So the effect of the nonlinearity ϕδ is to simply scale λ1 by B0−2, the inverse square of the slope of ϕ+ at the origin.

The set of optimal preactivations in this case is the same as the ReLU case [Eq. (23)] but with an additional constraint h=B0−1ϕδ(h) (SI §3.2). Furthermore, this optimal solution is attained when the hidden layer has a width M>2dY⎡b*δ−1⎤ (SI §3.2).

Note that the optimal kernel (and b*) is independent of δ>0, so we can carry out the limiting argument δ↓0+ and find that the same kernel Kδρ*=b*dY11T+KY is still optimal even if δ=0 (SI §3.4).

While these results show that for whitened and target-aligned inputs, the optimal representation for any 1st class nonlinear activation function ϕ is always abstract, interestingly, we find in simulations that the PS of the optimal representation for other input geometries seems to be also robust to the choice of nonlinearity for a wide network (Fig.6D-F).

B. Odd-symmetric nonlinear activation

Similarly, for the 2nd class of nonlinearity, the perturbed activation function is

ϕδ(z)≡B0δ−ϕ+(δ)+ϕ+(z)z≥δB0z−δ≤z≤δ−B0δ+ϕ+(δ)−ϕ+(−z)z≤−δ

where B0 is the slope at z→0+. If ϕ is a 2nd class nonlinearity, so is the perturbed one ϕδ.

For single-element class (n=1) and whitened inputs, a similar bound as Eq. (34) holds (SI §3.3)

E(h;ρ)≥Erϕδ(h);ρ,∀h∈ℝP,∀ρ∈M+KX,

where Er(⋅;ρ) is given by Eq. (20) except that the regularization strength λ1 is rescaled λ1→λ1B0−2.

Note that there is one crucial difference for the 2nd class nonlinearity compared to the 1st class nonlinearity: the argument in Erϕδ(h);ρ, ϕδ(h)∈−ϕ+(+∞),ϕ+(+∞)P takes values within the hypercube region that is symmetric to the origin. Particularly, it can take negative values. Due to this difference, minimizing Erϕδ(h);ρ becomes a convex quadratic programming problem rather than a nonconvex copositive programming problem.

Specifically, the unique optimal kernel in this case is found to be

Kδρ*=b*KY. (35)

where

b*=λ2B02λ1P−λ2P.

λ1,2 are small enough to ensure b*≥0. We note that there is no constant shift (the 11T) in the above kernel.

Moreover, the set of optimal preactivations (SI §3.3) forms a subspace, having the form

h=∑i=1dYαivi,αi∈ℝandi∈1,2,..,dY, (36)

with the additional constraint h=B0−1ϕδ(h). Furthermore, this optimal solution can be attained when the network width M>dYb*δ−1.

Despite the differences, the optimal kernel in Eq. (35) still represents an abstract representation. Finally, repeating the limiting argument as before shows that this representation kernel remains optimal when taking δ↓0+ (SI §3.4).

C. Differences in single-neuron tuning

For both classes of nonlinearity [Eq. (32)–(33)], we have shown that the optimal hidden representation in the network is abstract and has PS equal to 1. While the abstractness of the representation is robust to different choices of nonlinearity, the single-neuron tuning properties are different for two classes of nonlinearity (Fig. 7D-F).

When the activation function is ReLU (which belongs to the 1st class of nonlinearity [Eq. (32)]), we have shown that the optimal neural representation consists only of neurons that are either positively or negatively tuned to a single output label (Section IIID), yielding 2dY groups of neurons. For general 1st class nonlinearity ϕ, since it shares the same set of optimal preactivations [Eq. (23)] as ReLU, this modular tuning remains [68] (Fig. 7E).

On the other hand, for odd activation functions [Eq. (33)] (including the linear activation function), the optimal preactivations [Eq. (36)] can freely rotate within a subspace (when h is small). So in this case, neurons in the hidden layer generally exhibit mixed selectivity [28, 78] (Fig. 7F), where many components of h are nonzero.

Therefore, even if both classes of nonlinearity generate the same optimal population geometry (characterized by the same representation kernel Kρ* up to a global shift), they lead to different single-neuron tuning properties. This suggests that the optimal tuning curves on the single-neuron level are not only impacted by the task structure, but also by the biophysical properties of individual neurons (which determine the response nonlinearity).

V. EXTENSIONS

In the previous sections, we use our analytical framework to study optimal neural representations for two-layer networks trained on the data model in Section IIA. However, the framework is indeed applicable to additional data models and deep neural networks. For illustrative purposes, we present these extensions here, with a focus on the single-element class (n=1) with ReLU nonlinear activation. These results can be extended to any nonlinearity as before (Section IV).

We first discuss some general properties of the optimal representation kernel derived using our analytical framework (Section II). Given any input and output matrices X, Y, denote the set of optimal representation kernels as S(X,Y)⊆ℝP×P. According to Eq. (13), the optimal preactivation matrix H and thus the optimal representation kernel only depend on the input and output kernels, S(X,Y)≡SKX,KY. Moreover, this set is invariant under global scaling factors of the input and output kernels (for ϕ=ReLU and small λ1,2), SαXKX,αYKY=SKX,KY if αX, αY>0.

  1. Denote the set of optimal measures of Eq. (15) as PKX,KY⊆M+(X). Since the problem is a convex optimization problem, the optimal solution set, PKX,KY is a convex set and in particular, is simply connected. Because the kernel K[⋅] is a linear map on M+(X), the set of optimal representation kernel matrices SKX,KY=KPKX,KY is also convex and simply connected. For ReLU nonlinearity, SKX,KY is a subset of the set of completely positive matrices and by Caratheodory’s theorem, can be attained when the network width M≥1+P(P+1)/2 [88]. This property is usually called mode connectivity of the loss landscape [4, 27, 64, 89], and our analytical framework provides an alternative way to uncover this property.

  2. For input kernel KX, denote Kρ*∈SKX,KY as the optimal kernel with the set of optimal preactivations AKX,KY. Now if a rank one perturbation is added to the input kernel, KXnew=KX−avvT, a∈ℝ, v∈RangeKX, and moreover, its magnitude and direction satisfy
    avTKX†v<1andKX†v∈AKX,KY⊥,
    then the same kernel Kρ* is also optimal for this perturbed input (SI §4.1). This property shows that the optimal hidden representation is robust to input perturbation along certain directions.
  3. If the pseudo-inverse of the input kernel KX† has negative off-diagonals, we can show that the optimal set of neural preactivations lies entirely within the nonnegative orthorant, AKX,KY⊆ℝ≥0P. And this property holds independently of the output kernel KY. In this specific scenario, the problem of training two-layer network [Eq. (4)] is equivalent to a dictionary learning problem with positive representations. Input kernels KX satisfying such properties are known as inverse M-matrix [18, 26, 38, 39] (SI §4.2).

  4. For any optimal measure ρ*∈PKX,KY, the output of the network for a new data point x=xdata,1T∈ℝdX+1 is (SI §4.3),
    y*(x)=Y1λ2+Kρ*∫ϕ(h)ϕhTKX†XTxdρ*(h),
    where X is the augmented input matrix [Eq. (5)] and Y is the output matrix [Eq. (2)]. This result thus allows us to investigate the generalization property of the optimal network solution. As an illustration, we apply it to a simple compositional-generalization task (see SI §4.4).

A. Anisotropic input-output geometry

In this section, we consider a scenario where the input and output kernels are

KX=c0P11T+∑i=1dYciPviviT+∑j=dY+1P−1cjujujT,KY=∑i=1dYdiviviT.

According to the definition of vi (Section IIA), the above output kernel would correspond to anisotropic output labels where the ith output direction is scaled by a factor di>0 for different i’s, yielding a hierarchical structure (Fig. 8A). We assume that the inputs are also anisotropic (ci>0’s are different) and are target-aligned,

c0>maxi=1,..dYci,andmini=1,..dYci≥maxj=dY+1,..P−1cj.

This kernel recovers scenarios in previous sections if di=1, ci=cY for all i’s.

FIG. 8.

FIG. 8.

Extensions of the analytical framework to anisotropic input-output geometry, deep feedforward network, and recurrent network models. (A) For anisotropic output geometry, different output dimensions are scaled by a different factor di. The corresponding output kernel matrix is shown to have a hierarchical block structure. (B) Training loss and PS of hidden representation are plotted against the number of training epochs. The training dynamics has more prominent stage-like transitions than the case with isotropic outputs in Figure 4A. (C) The optimal hidden representation is aligned with the output geometry in (A), except that the axis representing each latent label is rescaled. It has PS equal to 1. (D) A deep neural network trained on related tasks develops an abstract representation in its last layer. (E) A recurrent neural network trained on the related tasks develops an abstract representation at the last timestep.

We solve the mean-field problem [Eq. (19)] in this case and find that the unique optimal hidden representation kernel is (SI §4.5)

Kρ*=∑i=1dYbi*11T+viviT

where the coefficient b* is

bi*=λ2dic0ciPλ1c0+ci−λ2P.

We see that up to a global translation, the effect of anisotropic input and output simply scales the ith direction of the hidden representation by a factor bi* that depends on di. The hidden representation still has a hypercube (or hyper-rectangular) geometry (Fig. 8C) and is abstract. However, the anisotropy in the training data induces a more pronounced stage-like transition in the learning dynamics (Fig. 8B).

B. Deep neural network

The analytical framework presented in Section II generalizes naturally to deep networks (Fig. 8D). We consider a deep feedforward network

fWl(x)=WLϕWL−1ϕ..ϕW1x,

For convenience, we have incorporated the bias parameter of the 1st layer into the input x, and the rest of the layers are bias-free. The loss function is

EWl≡Y−fWl(X)F2+∑l=1LλlWlF2.

We are interested in when the last layer of the network exhibits abstract representations (Fig. 8D) for small regularization parameters λl≪1, l=1,2,..,L.

Following similar procedures as in Section IIC, we can introduce the empirical measure for preactivations for each layer ρl=∑k=1Mδhkl and derive the KKT conditions for the optimal solutions (SI §4.6).

For the data model in Section IIA with whitened input KX=IP+11T, we solve these KKT conditions to get an optimal representation kernel of the form

Kρ*l=b*ldY11T+KY,l=1,2,..,L.

In the limit λl≡λ↓0+, l=1,2,..,L, these coefficients are

b*1=γ*dY+1(P+1)dYP(P+2),
b*l=γ*l−1b*1,l=2,…,L−1.

where γ*=dY2P(P+2)dY+12(P+1)L+Oλl. The above result gives an optimal network that exhibits abstract representation in the last layer (and all the other layers, Fig. 8D) and can be attained when the width of every layer M≥2dY (SI §4.6). In general, the effective energy function for deep networks (L≥3) is not convex over the space of measures [unlike Eq.(16)]. But the above solution is always a strict local minimum of the loss for any number of hidden layers L≥2 (SI §4.6).

Finally, the analytical framework is extended to analyze the optimal representation in recurrent neural networks (SI §4.7). The loss in this case can be written as a functional over the space of measures of the temporal trajectory of the neural preactivations. As in the deep feedforward network case, this loss functional is generally not convex. The KKT condition for a recurrent network depends on the full temporal trajectory of preactivations (SI §4.7), rather than factorizing cleanly at each layer as in the feedforward case (SI §4.6). Nevertheless, we find that for whitened inputs and the data model in Section IIA, the learned representation at the last timestep remains abstract (Fig. 8E).

VI. DISCUSSION

The low-dimensional disentangled abstract representations of task-relevant variables have been observed in multiple brain areas of multiple species (Fig.1, [8, 24, 62, 70, 94]). Despite the ubiquity of this type of representational geometry, we still do not know the network mechanisms that lead to its formation. Here, we showed that abstract representations of the latent variables naturally emerge in simple feedforward neural networks when the networks are optimized on tasks whose output (i.e. behavior readout) depend on those latent variables. In these networks, the geometry of the hidden layer reflects the geometry of the outputs (labels, Fig. 1–2). The input geometry or input encoding also has an important effect on the representational geometry learned in the hidden layer (Fig. 4C, Fig. 6D-F and [2, 41]): when the input geometry aligns with the abstract output geometry, it is not surprising that the hidden representation will also be abstract (Section IIIC). It is less obvious that whitened inputs (Section IIIA-IIIB), despite not being aligned with any specific low-dimensional representation geometry, nonetheless facilitate the emergence of low-dimensional abstract neural representations. One possible intuition is that this facilitation arises from the maximal dimensionality of the whitened data, which allows the hidden-layer neural representation to ”move around more freely” in the high-dimensional space and inherit the low-dimensional structure from the output. In the brain, these high-dimensional representations are likely the result of some form of ‘recoding’ [56, 57], which is probably implemented in the hippocampus [7, 13, 29, 75, 93]. Earlier work has shown that dimensionality expansion increases the separability between different stimuli and helps discrimination [5, 52, 60]. Here, our result suggests that these expansion layers offer another benefit: they facilitate better representation learning in downstream brain areas. These learned low-dimensional representations would support sample-efficient generalization for novel tasks [6, 96].

In order to investigate the optimal neural representation formed in the network, we developed a mathematical framework that maps the original problem of weight space optimization to an optimization problem over the neural preactivations [Fig. 3A-C, Eq. (13)]. The new problem corresponds to an effective model where neurons interact with each other through a ”mean-field” induced by the overall distribution of neural activity [Eq. (14), Fig. 3]. We derive the KKT condition for the optimal distribution of neural activity [Eq. (17)]. For a large class of input kernels, the KKT condition is equivalent to a nonnegative quadratic programming problem, which we solve in closed form when the output geometry is abstract (SI §2.2). Crucially, because the new optimization problem is convex, any solution of the KKT condition is automatically a global minimum of the loss function. We show that, in many cases, all such solutions correspond to an abstract neural representation. To our knowledge, this provides the first theoretical result showing the robust emergence of abstract representation in nonlinear neural networks, when trained to binary decision tasks closely related to prior neuroscience experiments (Section IIA, [8, 16]). These results, together with the analytical framework developed to derive them, constitute the main innovations of this work.

Our work provides insights into why abstract representations appear in the brain [8, 24, 62, 70, 94]. More broadly, our analytical framework provides a general tool for characterizing optimal representations across a wide range of tasks studied in the machine learning literature. It offers a complementary perspective to existing approaches for analyzing learning in two-layer neural networks. Below, we compare our approach with two major streams of related work (see a more comprehensive discussion in SI §5):

A substantial body of prior work has investigated two-layer networks from the perspective of Bayesian neural networks. Leveraging tools from statistical physics, these studies have shown that certain scaling limits of the model lead to Gaussian equivalence properties [30, 49, 71], wherein the neural preactivations follow a joint Gaussian distribution, a regime closely linked to the kernel or lazy regime [23, 36, 99]. More recent work has explored alternative scaling limits [48, 97, 100, 101] that are connected to the mean-field limit of deep networks. While these results primarily concern the (infinite-width or infinite-input-dimension) scaling limits, our framework enables direct analysis of optimal solutions in finite-width networks with finite-dimensional inputs. The results for finite-width networks allow us to derive results on the optimal representation in various infinite-width limits (SI §5.1). Furthermore, whereas Bayesian approaches typically average the network properties over the posterior distribution, our method provides insights into the structure of individual global minima of the loss function. We comment that when deriving the scaling limit from our finite-width results, we first take the infinite temperature limit β→+∞ followed by infinite-width limit M→+∞. As a consequence, the resulting network always learns the low-dimensional features in the data. This is different from the usual Bayesian network setting where M→+∞ is taken first and then β→+∞, where the feature learning only happens when using a special weight scaling in the loss function.

Another series of work examined the learning dynamics of these networks. Earlier works focused on perceptron [22, 73, 87], deep linear networks [85, 86] and narrow two-layer network in the teacher-student setup [81–83]. Recently, the learning dynamics of overparametrized two-layer nonlinear networks were studied both in the mean-field regime [10, 15, 61, 79, 90] and in finite-width settings [11]. These recent analyses on nonlinear networks are typically only tractable for a one-dimensional output. However, abstract representations (Fig. 1) concern the relationship between the hidden representations of different output dimensions (Section IIB). So we adopt a different approach here: rather than tracking the entire training trajectory, we directly analyze global minima of the loss function [Eq. (4)]. An intriguing future direction would be to extend the existing results for learning dynamics with one-dimensional outputs, to those tasks in Section IIA that require multi-dimensional outputs, and investigate how the hidden representation kernel evolves during training.

A byproduct of our analysis is a characterization of single-neuron selectivity in the optimal network solution. This is determined by the set of optimal preactivation vectors AKX,KY [Eq.(23), (25) and (36)], whose components specify the neural response to each stimulus in the training set. A longstanding question in neuroscience is whether neurons exhibit “interpretable” tuning—activity explained by a single task-relevant variable, or “mixed” tuning, where responses depend on combinations of multiple variables [28]. Experimental data and models have suggested that the tuning type depends on details of task structure [20, 21, 41, 98], brain regions [74], and species. For the task and network architecture studied here (Section IIA), we find that the nonlinearity in the hidden layer plays a key role (see also [2]): depending on its form, the task optimization yields either distinct neural modules tuned to individual binary latent variables or neurons with mixed selectivity to multiple latent variables. In the brain, the neuron nonlinearity varies across regions due to differences in single-neuron biophysical and morphological properties [76], which may explain the heterogeneous single-neuron selectivity observed in experimental data.

Despite such variability on the single-neuron selectivity, we demonstrated that in the large-network limit, the emergence of abstract representations on the population level is robust to the specific form of single-neuron nonlinearities. This universality result offers a potential explanation for recent experimental observations of abstract representations across diverse brain areas. Previous studies have shown that neural network models, under certain scaling limits, exhibit Gaussian universality or Gaussian equivalence properties, typically attributed to central limit theorem-like mechanisms [30, 33]. In contrast, the optimal preactivation distributions ρ* in our model are non-Gaussian, suggesting a different origin of universality. We believe that the shared task structure [Section IIA] on which all these models are trained is the underlying reason for this universal abstract representation. This insight aligns with recent empirical findings that networks with different architectures, when trained on similar or related tasks, often converge to similar neural representations, a phenomenon referred to as the Platonic representation hypothesis [34, 45, 50]. Our results thus provide a tractable mathematical model for investigating this hypothesis and show that neural representations for a task on the population level (in terms of representation kernel), can be relatively insensitive to single-neuron-level response details.

Finally, the order parameter ρ, defined as the distribution over neural preactivations, provides a powerful tool for exploiting the permutation symmetry inherent in these network models [4, 15, 61, 90]. We anticipate that this formulation will not only aid in analyzing the optimal solutions in the networks studied here but may also be extended to investigate a broader class of permutation-symmetric problems, including ResNet and transformer models in modern AI systems, as well as to analyze learning dynamics in network models trained with biological learning rules.

VII. ACKNOWLEDGEMENT

This work is supported by NSF DBI-2229929 (ARNI), NIH NINDS K99NS138578 (WJJ), the Simons Foundation (542983SPI, SF), the Swartz Foundation, the Gatsby Charitable Foundation, and the Kavli Foundation.

References

  • [1].The order parameter for spin glasses: a function on the interval 0–1. Journal of Physics A: Mathematical and General, 13(3):1101, 1980. [Google Scholar]
  • [2].Alleman Matteo, Lindsey Jack W, and Fusi Stefano. Task structure and nonlinearity jointly determine learned representational geometry. arXiv preprint arXiv:2401.13558, 2024. [Google Scholar]
  • [3].Arjovsky Martin and Bottou Léon. Towards principled methods for training generative adversarial networks (2017). arXiv preprint arXiv:1701.04862, 2017. [Google Scholar]
  • [4].Bach Francis. Breaking the curse of dimensionality with convex neural networks. Journal of Machine Learning Research, 18(19):1–53, 2017. [Google Scholar]
  • [5].Barak Omri, Rigotti Mattia, and Fusi Stefano. The sparseness of mixed selectivity neurons controls the generalization–discrimination trade-off. Journal of Neuroscience, 33(9):3844–3856, 2013. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [6].Bengio Yoshua, Courville Aaron, and Vincent Pascal. Representation learning: A review and new perspectives. IEEE transactions on pattern analysis and machine intelligence, 35(8):1798–1828, 2013. [DOI] [PubMed] [Google Scholar]
  • [7].Benna Marcus K and Fusi Stefano. Place cells may simply be memory cells: Memory compression leads to spatial tuning and history dependence. Proceedings of the National Academy of Sciences, 118(51):e2018422118, 2021. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [8].Bernardi Silvia, Benna Marcus K, Rigotti Mattia, Munuera Jérôme, Fusi Stefano, and Salzman C Daniel. The geometry of abstraction in the hippocampus and prefrontal cortex. Cell, 183(4):954–967, 2020. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [9].Bhatia Rajendra. Matrix analysis, volume 169. Springer Science & Business Media, 2013. [Google Scholar]
  • [10].Bordelon Blake and Pehlevan Cengiz. Self-consistent dynamical field theory of kernel evolution in wide neural networks. Advances in Neural Information Processing Systems, 35:32240–32256, 2022. [Google Scholar]
  • [11].Boursier Etienne, Pillaud-Vivien Loucas, and Flammarion Nicolas. Gradient flow dynamics of shallow relu networks for square loss and orthogonal inputs. Advances in Neural Information Processing Systems, 35:20105–20118, 2022. [Google Scholar]
  • [12].Boyd Stephen P and Vandenberghe Lieven. Convex optimization. Cambridge university press, 2004. [Google Scholar]
  • [13].Boyle Lara M, Posani Lorenzo, Irfan Sarah, Siegelbaum Steven A, and Fusi Stefano. Tuned geometries of hippocampal representations meet the computational demands of social memory. Neuron, 112(8):1358–1371, 2024. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [14].Burgess Christopher P, Higgins Irina, Pal Arka, Matthey Loic, Watters Nick, Desjardins Guillaume, and Lerchner Alexander. Understanding disentangling in \beta-vae. arXiv preprint arXiv:1804.03599, 2018. [Google Scholar]
  • [15].Chizat Lenaic and Bach Francis. On the global convergence of gradient descent for over-parameterized models using optimal transport. Advances in neural information processing systems, 31, 2018. [Google Scholar]
  • [16].Courellis Hristos S, Minxha Juri, Cardenas Araceli R, Kimmel Daniel L, Reed Chrystal M, Valiante Taufik A, Salzman C Daniel, Mamelak Adam N, Fusi Stefano, and Rutishauser Ueli . Abstract representations emerge in human hippocampal neurons during inference. Nature, 632(8026):841–849, 2024. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [17].Cybenko George. Approximation by superpositions of a sigmoidal function. Mathematics of control, signals and systems, 2(4):303–314, 1989. [Google Scholar]
  • [18].Dellacherie Claude, Martinez Servet, San Martin Jaime, et al. Inverse M-matrices and ultrametric matrices, volume 2118. Springer, 2014. [Google Scholar]
  • [19].Doerig Adrien, Sommers Rowan P, Seeliger Katja, Richards Blake, Ismael Jenann, Lindsay Grace W, Kording Konrad P, Konkle Talia, Van Gerven Marcel AJ, Kriegeskorte Nikolaus, et al. The neuroconnectionist research programme. Nature Reviews Neuroscience, 24(7):431–450, 2023. [DOI] [PubMed] [Google Scholar]
  • [20].Dorrell Will, Hsu Kyle, Hollingsworth Luke, Lee Jin Hwa, Wu Jiajun, Finn Chelsea, Latham Peter E, Behrens Tim EJ, and Whittington James CR. Range, not independence, drives modularity in biologically inspired representations. arXiv preprint arXiv:2410.06232, 2024. [Google Scholar]
  • [21].Dorrell William, Latham Peter E, and Whittington James. Convex efficient coding. arXiv preprint arXiv:2601.10482, 2026. [Google Scholar]
  • [22].Engel Andreas. Statistical mechanics of learning. Cambridge University Press, 2001. [Google Scholar]
  • [23].Farrell Matthew, Recanatesi Stefano, and Shea-Brown Eric. From lazy to rich to exclusive task representations in neural networks and neural codes. Current opinion in neurobiology, 83:102780, 2023. [DOI] [PubMed] [Google Scholar]
  • [24].Fascianelli Valeria, Battista Aldo, Stefanini Fabio, Tsujimoto Satoshi, Genovesio Aldo, and Fusi Stefano. Neural representational geometries reflect behavioral differences in monkeys and recurrent neural networks. Nature Communications, 15(1):6479, 2024. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [25].Fernandez-de Cossio-Diaz Jorge, Cocco Simona, and Monasson Rémi. Disentangling representations in restricted boltzmann machines without adversaries. Physical Review X, 13(2):021003, 2023. [Google Scholar]
  • [26].Fiedler Miroslav and Pták Vlastimil. On matrices with non-positive off-diagonal elements and positive principal minors. Czechoslovak Mathematical Journal, 12(3):382–400, 1962. [Google Scholar]
  • [27].Freeman C Daniel and Bruna Joan. Topology and geometry of half-rectified network optimization. arXiv preprint arXiv:1611.01540, 2016. [Google Scholar]
  • [28].Fusi Stefano, Miller Earl K, and Rigotti Mattia. Why neurons mix: high dimensionality for higher cognition. Current opinion in neurobiology, 37:66–74, 2016. [DOI] [PubMed] [Google Scholar]
  • [29].Gluck Mark A and Myers Catherine E. Psychobiological models of hippocampal function in learning and memory. Neurobiology of learning and memory, pages 417–448, 1998. [DOI] [PubMed] [Google Scholar]
  • [30].Goldt Sebastian, Mézard Marc, Krzakala Florent, and Zdeborová Lenka. Modeling the influence of data structure on learning in neural networks: The hidden manifold model. Physical Review X, 10(4):041044, 2020. [Google Scholar]
  • [31].Higgins Irina, Matthey Loic, Pal Arka, Burgess Christopher, Glorot Xavier, Botvinick Matthew, Mohamed Shakir, and Lerchner Alexander. beta-vae: Learning basic visual concepts with a constrained variational framework. In International conference on learning representations, 2017. [Google Scholar]
  • [32].Horan Daniella, Richardson Eitan, and Weiss Yair. When is unsupervised disentanglement possible? Advances in Neural Information Processing Systems, 34:5150–5161, 2021. [Google Scholar]
  • [33].Hu Hong and Lu Yue M.. Universality laws for high-dimensional learning with random features. IEEE Transactions on Information Theory, 69(3):1932–1964, 2023. [Google Scholar]
  • [34].Huh Minyoung, Cheung Brian, Wang Tongzhou, and Isola Phillip. Position: The platonic representation hypothesis. In Forty-first International Conference on Machine Learning, 2024. [Google Scholar]
  • [35].Hyvärinen Aapo and Pajunen Petteri. Nonlinear independent component analysis: Existence and uniqueness results. Neural networks, 12(3):429–439, 1999. [DOI] [PubMed] [Google Scholar]
  • [36].Jacot Arthur, Gabriel Franck, and Hongler Clément. Neural tangent kernel: Convergence and generalization in neural networks. Advances in neural information processing systems, 31, 2018. [Google Scholar]
  • [37].Jacot Arthur, Súkeník Peter, Wang Zihan, and Mondelli Marco. Wide neural networks trained with weight decay provably exhibit neural collapse. arXiv preprint arXiv:2410.04887, 2024. [Google Scholar]
  • [38].Johnson Charles R. Inverse m-matrices. Linear Algebra and its Applications, 47:195–216, 1982. [Google Scholar]
  • [39].Johnson Charles R and Smith Ronald L. Inverse m-matrices, ii. Linear algebra and its applications, 435(5):953–983, 2011. [Google Scholar]
  • [40].Johnston W Jeffrey and Fusi Stefano. Abstract representations emerge naturally in neural networks trained to perform multiple tasks. Nature Communications, 14(1):1040, 2023. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [41].Johnston W Jeffrey and Fusi Stefano. Modular representations emerge in neural networks trained to perform context-dependent tasks. bioRxiv, 2024. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [42].Jones Robert O. Density functional theory: Its origins, rise to prominence, and future. Reviews of modern physics, 87(3):897–923, 2015. [Google Scholar]
  • [43].Kanwisher Nancy, Khosla Meenakshi, and Dobs Katharina. Using artificial neural networks to ask ‘why’questions of minds and brains. Trends in Neurosciences, 46(3):240–254, 2023. [DOI] [PubMed] [Google Scholar]
  • [44].Kaufman Matthew T, Benna Marcus K, Rigotti Mattia, Stefanini Fabio, Fusi Stefano, and Churchland Anne K. The implications of categorical and category-free mixed selectivity on representational geometries. Current opinion in neurobiology, 77:102644, 2022. [DOI] [PubMed] [Google Scholar]
  • [45].Kornblith Simon, Norouzi Mohammad, Lee Honglak, and Hinton Geoffrey. Similarity of neural network representations revisited. In International conference on machine learning, pages 3519–3529. PMLR, 2019. [Google Scholar]
  • [46].Kuramoto Yoshiki. Self-entrainment of a population of coupled non-linear oscillators. In International symposium on mathematical problems in theoretical physics: January 23–29, 1975, kyoto university, kyoto/Japan, pages 420–422. Springer, 1975. [Google Scholar]
  • [47].Kuramoto Yoshiki and Kuramoto Yoshiki. Chemical turbulence. Springer, 1984. [Google Scholar]
  • [48].Lauditi Clarissa, Bordelon Blake, and Pehlevan Cengiz. Adaptive kernel predictors from feature-learning infinite limits of neural networks. arXiv preprint arXiv:2502.07998, 2025. [Google Scholar]
  • [49].Li Qianyi and Sompolinsky Haim. Statistical mechanics of deep linear neural networks: The backpropagating kernel renormalization. Physical Review X, 11(3):031059, 2021. [Google Scholar]
  • [50].Li Yixuan, Yosinski Jason, Clune Jeff, Lipson Hod, and Hopcroft John. Convergent learning: Do different neural networks learn the same representations? arXiv preprint arXiv:1511.07543, 2015. [Google Scholar]
  • [51].Liang Qiyao, Qian Daoyuan, Ziyin Liu, and Fiete Ila. Compositional generalization via forced rendering of disentangled latents. arXiv preprint arXiv:2501.18797, 2025. [Google Scholar]
  • [52].Litwin-Kumar Ashok Kameron Decker, Axel Richard, Sompolinsky Haim, and Abbott LF. Optimal degrees of synaptic connectivity. Neuron, 93(5):1153–1164, 2017. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [53].Locatello Francesco, Bauer Stefan, Lucic Mario, Raetsch Gunnar, Gelly Sylvain, Schölkopf Bernhard, and Bachem Olivier. Challenging common assumptions in the unsupervised learning of disentangled representations. In international conference on machine learning, pages 4114–4124. PMLR, 2019. [Google Scholar]
  • [54].Locatello Francesco, Bauer Stefan, Lucic Mario, Rätsch Gunnar, Gelly Sylvain, Schölkopf Bernhard, and Bachem Olivier . A sober look at the unsupervised learning of disentangled representations and their evaluation. Journal of Machine Learning Research, 21(209):1–62, 2020.34305477 [Google Scholar]
  • [55].Maennel Hartmut, Bousquet Olivier, and Gelly Sylvain. Gradient descent quantizes relu network features. arXiv preprint arXiv:1803.08367, 2018. [Google Scholar]
  • [56].Marr David and Thach W Thomas. A theory of cerebellar cortex. From the retina to the neocortex: selected papers of David Marr, pages 11–50, 1991. [Google Scholar]
  • [57].Marr David, Willshaw David, and McNaughton Bruce. Simple memory: a theory for archicortex. Springer, 1991. [Google Scholar]
  • [58].Marshall Albert W, Olkin Ingram, and Arnold Barry C. Inequalities: theory of majorization and its applications. 1979. [Google Scholar]
  • [59].Mathieu Emile, Rainforth Tom, Siddharth Nana, and Teh Yee Whye . Disentangling disentanglement in variational autoencoders. In International conference on machine learning, pages 4402–4412. PMLR, 2019. [Google Scholar]
  • [60].McClelland James L and Goddard Nigel H. Considerations arising from a complementary learning systems perspective on hippocampus and neocortex. Hippocampus, 6(6):654–665, 1996. [DOI] [PubMed] [Google Scholar]
  • [61].Mei Song, Montanari Andrea, and Nguyen Phan-Minh. A mean field view of the landscape of two-layer neural networks. Proceedings of the National Academy of Sciences, 115(33):E7665–E7671, 2018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [62].Mishchanchuk Karyna, Gregoriou Gabrielle, Qü Albert, Kastler Alizée, Huys Quentin JM, Wilbrecht Linda, and MacAskill Andrew F. Hidden state inference requires abstract contextual representations in the ventral hippocampus. Science, 386(6724):926–932, 2024. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [63].Negele John W. The mean-field theory of nuclear structure and dynamics. Reviews of Modern Physics, 54(4):913, 1982. [Google Scholar]
  • [64].Nguyen Quynh. On connected sublevel sets in deep learning. In International conference on machine learning, pages 4790–4799. PMLR, 2019. [Google Scholar]
  • [65].Nogueira Ramon, Rodgers Chris C, Bruno Randy M, and Fusi Stefano. The geometry of cortical representations of touch in rodents. Nature Neuroscience, 26(2):239–250, 2023. [DOI] [PubMed] [Google Scholar]
  • [66].Here the support of a measure suppρ can be intuitively thought of as the largest region where the measure has nonzero mass, and it is formally defined as the largest closed set A⊆ℝP such that ρ(Ac)=0.
  • [67].To be technically correct, we also require all 2nd-order moments of ρ are finite in M+(X). This would ensure all the integrals in E[ρ] are finite.
  • [68].More precisely, we show that in SI §3.1–3.2, the perturbed nonlinearity shares the same set of optimal preactivations as ReLU. By continuity, this form of modularity persists when δ↓0+. [Google Scholar]
  • [69].Opper Manfred and Saad David. Advanced mean field methods: Theory and practice. MIT press, 2001. [Google Scholar]
  • [70].O’Neill Pia-Kelsey, Posani Lorenzo, Meszaros Jozsef, Warren Phebe, Schoonover Carl E Andrew JP, Fusi Stefano, and Salzman C Daniel. The representational geometry of emotional states in basolateral amygdala. BioRxiv, pages 2023–09, 2023. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [71].Pacelli R, Ariosto S, Pastore Mauro, Ginelli F, Gherardi Marco, and Rotondo Pietro. A statistical mechanics framework for bayesian deep neural networks beyond the infinite-width limit. Nature Machine Intelligence, 5(12):1497–1507, 2023. [Google Scholar]
  • [72].Papyan Vardan, Han XY, and Donoho David L. Prevalence of neural collapse during the terminal phase of deep learning training. Proceedings of the National Academy of Sciences, 117(40):24652–24663, 2020. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [73].Patel Nishil, Lee Sebastian, Mannelli Stefano Sarao, Goldt Sebastian, and Saxe Andrew. Rl perceptron: Generalization dynamics of policy learning in high dimensions. Physical Review X, 15(2):021051, 2025. [Google Scholar]
  • [74].Posani Lorenzo, Wang Shuqi, Muscinelli Samuel P, Paninski Liam, and Fusi Stefano. Rarely categorical, always high-dimensional: how the neural code changes along the cortical hierarchy. bioRxiv, pages 2024–11, 2025. [Google Scholar]
  • [75].Priestley James B, Bowler John C, Rolotti Sebi V, Fusi Stefano, and Losonczy Attila. Signatures of rapid plasticity in hippocampal ca1 representations during novel experiences. Neuron, 110(12):1978–1992, 2022. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [76].Rauch Alexander, La Camera Giancarlo, Luscher Hans-Rudolf, Senn Walter, and Fusi Stefano. Neocortical pyramidal cells respond as integrate-and-fire neurons to in vivo–like input currents. Journal of neurophysiology, 90(3):1598–1612, 2003. [DOI] [PubMed] [Google Scholar]
  • [77].Richards Blake A, Lillicrap Timothy P, Beaudoin Philippe, Bengio Yoshua, Bogacz Rafal, Christensen Amelia, Clopath Claudia, Costa Rui Ponte, de Berker Archy, Ganguli Surya, et al. A deep learning framework for neuroscience. Nature neuroscience, 22(11):1761–1770, 2019. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [78].Rigotti Mattia, Barak Omri, Warden Melissa R, Wang Xiao-Jing, Daw Nathaniel D, Miller Earl K, and Fusi Stefano . The importance of mixed selectivity in complex cognitive tasks. Nature, 497(7451):585–590, 2013. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [79].Rotskoff Grant M and Vanden-Eijnden Eric. Neural networks as interacting particle systems: Asymptotic convexity of the loss landscape and universal scaling of the approximation error. stat, 1050:22, 2018. [Google Scholar]
  • [80].Ruder Sebastian. An overview of multi-task learning in deep neural networks. arXiv preprint arXiv:1706.05098, 2017. [Google Scholar]
  • [81].Saad David and Solla Sara. Learning with noise and regularizers in multilayer neural networks. Advances in Neural Information Processing Systems, 9, 1996. [Google Scholar]
  • [82].Saad David and Solla Sara A. Exact solution for on-line learning in multilayer neural networks. Physical Review Letters, 74(21):4337, 1995. [DOI] [PubMed] [Google Scholar]
  • [83].Saad David and Solla Sara A. On-line learning in soft committee machines. Physical Review E, 52(4):4225, 1995. [DOI] [PubMed] [Google Scholar]
  • [84].Saxe Andrew, Nelli Stephanie, and Summerfield Christopher. If deep learning is the answer, what is the question? Nature Reviews Neuroscience, 22(1):55–67, 2021. [DOI] [PubMed] [Google Scholar]
  • [85].Saxe Andrew M, McClelland James L, and Ganguli Surya. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. arXiv preprint arXiv:1312.6120, 2013. [Google Scholar]
  • [86].Saxe Andrew M, McClelland James L, and Ganguli Surya. A mathematical theory of semantic development in deep neural networks. Proceedings of the National Academy of Sciences, 116(23):11537–11546, 2019. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [87].Seung Hyunjune Sebastian, Sompolinsky Haim, and Tishby Naftali. Statistical mechanics of learning from examples. Physical review A, 45(8):6056, 1992. [DOI] [PubMed] [Google Scholar]
  • [88].Shaked-Monderer Naomi and Berman Abraham. Copositive and completely positive matrices. World Scientific, 2021. [Google Scholar]
  • [89].Simsek Berfin, Ged François, Jacot Arthur, Spadaro Francesco, Hongler Clément, Gerstner Wulfram, and Brea Johanni . Geometry of the loss landscape in overparameterized neural networks: Symmetries and invariances. In International Conference on Machine Learning, pages 9722–9732. PMLR, 2021. [Google Scholar]
  • [90].Sirignano Justin and Spiliopoulos Konstantinos. Mean field analysis of neural networks: A law of large numbers. SIAM Journal on Applied Mathematics, 80(2):725–752, 2020. [Google Scholar]
  • [91].Súkeník Peter, Lampert Christoph, and Mondelli Marco. Neural collapse vs. low-rank bias: Is deep neural collapse really optimal? In 38th Annual Conference on Neural Information Processing Systems, volume 38, 2024. [Google Scholar]
  • [92].Súkeník Peter, Mondelli Marco, and Lampert Christoph H. Deep neural collapse is provably optimal for the deep unconstrained features model. Advances in Neural Information Processing Systems, 36:52991–53024, 2023. [Google Scholar]
  • [93].Sun Weinan, Winnubst Johan, Natrajan Maanasa, Lai Chongxi, Kajikawa Koichiro, Bast Arco, Michaelos Michalis, Gattoni Rachel, Stringer Carsen, Flickinger Daniel, et al. Learning produces an orthogonalized state machine in the hippocampus. Nature, pages 1–11, 2025. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [94].Tang Wenbo, Shin Justin D, and Jadhav Shantanu P. Geometric transformation of cognitive maps for generalization across hippocampal-prefrontal circuits. Cell reports, 42(3), 2023. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [95].Tirer Tom and Bruna Joan. Extended unconstrained features model for exploring deep neural collapse. In International Conference on Machine Learning, pages 21478–21505. PMLR, 2022. [Google Scholar]
  • [96].Tschannen Michael, Bachem Olivier, and Lucic Mario. Recent advances in autoencoder-based representation learning. arXiv preprint arXiv:1812.05069, 2018. [Google Scholar]
  • [97].van Meegen Alexanderand Sompolinsky Haim. Coding schemes in neural networks learning classification tasks. Nature Communications, 16(1):3354, 2025. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [98].Whittington James CR, Dorrell Will, Ganguli Surya, and Behrens Timothy EJ. Disentanglement with biological constraints: A theory of functional cell types. arXiv preprint arXiv:2210.01768, 2022. [Google Scholar]
  • [99].Woodworth Blake, Gunasekar Suriya, Lee Jason D., Moroshko Edward, Savarese Pedro, Golan Itay, Soudry Daniel, and Srebro Nathan. Kernel and rich regimes in overparametrized models. In Abernethy Jacob and Agarwal Shivani, editors, Proceedings of Thirty Third Conference on Learning Theory, volume 125 of Proceedings of Machine Learning Research, pages 3635– 3673. PMLR, 09–12 Jul 2020. [Google Scholar]
  • [100].Yang Greg. Tensor programs ii: Neural tangent kernel for any architecture. arXiv preprint arXiv:2006.14548, 2020. [Google Scholar]
  • [101].Yang Greg and Hu Edward J . Tensor programs iv: Feature learning in infinite-width neural networks. In International Conference on Machine Learning, pages 11727–11737. PMLR, 2021. [Google Scholar]
  • [102].Yang Guangyu Robert and Wang Xiao-Jing. Artificial neural networks for neuroscientists: a primer. Neuron, 107(6):1048–1070, 2020. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [103].Zhu Zhihui, Ding Tianyu, Zhou Jinxin, Li Xiao, You Chong, Sulam Jeremias, and Qu Qing. A geometric analysis of neural collapse with unconstrained features. Advances in Neural Information Processing Systems, 34:29820–29834, 2021. [Google Scholar]

Articles from ArXiv are provided here courtesy of arXiv

RESOURCES