WorksComputer Science
A Closed Form Depth-Width Law for Neural Collapse in Deep Linear Networks
Abstract
How the depth and width of neural networks shape learned representations is difficult to predict from the data and architecture. We use neural collapse (NC) as a probe of the representation geometry and express its first three properties, within-class variability collapse (NC1), simplex class means (NC2) and classifier alignment (NC3), through the learned feature kernel, extending a known identity for NC1 to NC2 and NC3. For deep linear networks with an exchangeable input kernel, the kernel equations yield a geometric law, exact within this theory, for the layerwise decrease of NC1. At large width the accumulated decrease becomes a function of the depth-to-width ratio , with its rate determined self-consistently by the data and architecture, yielding a scaling law for representation geometry.
Introduction
Neural collapse (NC) refers to four properties that the last-layer features and the linear classifier of deep classification networks approach in the terminal phase of training, after the training error has vanished: the within-class variability of the features collapses (NC1), the centered class means form a simplex equiangular tight frame (NC2), the classifier vectors align with these class means (NC3), and the classifier reduces to a nearest-class-mean decision (NC4) [9]. The ratio of within- to between-class variability also decreases progressively across the layers of trained networks [4, 10].
How depth, width and data shape this behavior remains an open question, since most analyses of NC remove these dependencies by treating the layer features as free variables [5, 11, 12, 16], or constrain the features by keeping them close to their initial values [13] or by structural assumptions on the inputs and the weights [14]. With hidden layers of width , the depth-to-width ratio controls the fluctuations of the neural tangent kernel at initialization [2], and depth, width and the number of training samples enter the posterior of Bayesian deep linear networks through [3].
Here, we show that also controls the layerwise decrease of NC1 in a solvable setting. To this end, we predict NC across layers from a theory describing the feature kernels in trained networks. Given the labels, NC1–NC3 of a layer depend on its features only through the feature kernel, the Gram matrix of the features over the training samples, if NC3 uses the ridge readout of the layer. For Bayesian networks of finite width, the maximum a posteriori (MAP) feature kernels of all layers follow from self-consistency equations in the data, weight prior and architecture [1]. We show that for deep linear networks with an exchangeable input kernel, i.e., invariant under permutations of samples
40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: AXIOM Foundations of Efficient Deep Learning. within classes and of the classes, these equations reduce exactly to scalar equations for the within- and between-class kernel eigenvalues on solutions with the same symmetry. Our contributions are:
kernel forms of NC2 and NC3 (Proposition 1), complementing that of NC1 [6], which we evaluate on the predicted MAP kernels of Fischer et al. [1] for a nonlinear network (Figure 1);
a geometric law for the layerwise decrease of NC1 in deep linear networks with an exchangeable input kernel (Theorem 1), exact within this theory, which shows that the accumulated compression is at leading order controlled by the depth-to-width ratio , with a rate determined self-consistently by the data, weight prior and architecture (Corollary 1).
Figure 1. The kernels capture the layerwise decrease of NC1–NC3 in nonlinear networks. NC1–NC3 of an erf network (, ) on four-class XOR from the MAP kernels (lines), the feature kernels (circles), and raw features (triangles) of SGLD-trained networks; error bars over initialization seeds, layer 0 is the input. Experimental details are in App. G.
Neural collapse observables from feature kernels
Consider a balanced -class problem with samples per class, total training samples and one-hot targets . At a fixed layer, the feature vectors of the training samples form the rows of the feature matrix , with feature kernel , class means , global mean , and within- and between-class covariances and . We quantify NC1–NC3 by
For NC1, we use the trace ratio of Tirer et al. [13] instead of the measure of Papyan et al. [9]. NC2 measures the deviation of the cosine Gram matrix of the centered class means from that of a unit-norm simplex equiangular tight frame with . For NC3, the trained classifier is replaced by the ridge readout with ridge parameter , whose centered rows are .
With and , the orthogonal projectors onto the centered class-indicator subspace and onto within-class fluctuations are
The rows of , with , are the centered class means, with Gram matrix and . We further write and .
Proposition 1 (Kernel forms of the neural-collapse observables). For balanced classes and nonvanishing denominators, NC1–NC3 are functions of the feature kernel , the targets and, for NC3, the ridge parameter alone,
where is row of . The kernel form of NC1 is due to Kothapalli and Tirer [6 Thm. 4.1].
Fig. 1 evaluates Prop. 1 on the kernels of a nonlinear network, which qualitatively capture the layerwise decreases of NC1–NC3 in networks trained with stochastic gradient Langevin dynamics (SGLD) [8, 15]. NC4, defined on held-out data samples, additionally requires the kernel between test and training inputs (see App. § 6). These identities hold for arbitrary representations; predicting their layerwise evolution requires a theory of the learned kernels.
Geometric law for deep linear networks with an exchangeable input kernel
We consider fully connected networks with hidden layers of width , and for , with activation function , inputs and outputs . Following Fischer et al. [1], the weights have independent Gaussian priors of variance in the first layer and in layer , the biases of variance , and the targets have Gaussian observation noise of variance , which we also use as the ridge parameter of NC3. We evaluate Prop. 1 on the kernels of the inputs and of the features of the lth hidden layer, giving ; the term adds a constant feature, which leaves NC1 and NC2 unchanged and acts as a readout bias in NC3.
Fischer et al. [1] derive self-consistency equations for the MAP kernels from a large-deviation principle in (see App. B): forward equations for and backward equations for conjugate kernels , starting from a terminal conjugate kernel. We extend the latter to outputs (see App. C), with ; it measures the mismatch between the target covariance per output, , and the output covariance . For deep linear networks, , the equations take the closed form
with to be solved jointly, as depends on .
Exchangeable input kernel. To obtain an analytic solution, we assume that the input kernel is exchangeable, i.e., invariant under simultaneous permutations of its rows and columns that permute the samples within a class or permute the classes, a natural idealization since under NC1 and NC2 the centered kernel is exchangeable. Exchangeable kernels form the commutative algebra of matrices , with and eigenvalues of multiplicities , and . As and lie in , the MAP equations restricted to reduce to scalar equations for the eigenvalues of and of , (see App. D.1). On such solutions, and .
Theorem 1 (Channel conservation and geometric depth law). Let , with and , and consider a solution of the MAP equations in . For , is the same for all . Hence the eigenvalue of in channel is layer-independent and, for ,
The forward and backward equations multiply and by the same factor in opposite directions, which conserves their product (see App. D). In NC1, the common factors cancel, and NC1 decreases geometrically for , in line with the target-dependent kernel corrections of order that grow with depth in deep linear networks [7]. The input data fixes , while the feature-learning corrections, which also depend on the data, set the depthwise contraction.
Corollary 1 (Depth–width law). Under the assumptions of Theorem 1 and to leading order in and , the expression depends on depth and width at large only through : for at fixed and fixed ,
with the principal branch of the Lambert function. At finite width, and , where is, for , the unique positive root of .
Since , NC1 decreases in every layer, by the factor . Accumulated over layers, this gives , where the rate itself depends on and through the terminal kernel. At large width, depends on them only through , which yields Eq. (7); for , it reduces to , its value without feature learning (see App. § 10). Within the theory, Eq. (7) thus predicts the depth-to-width ratio for a target compression. As in Wang et al. [14], within-class compression is geometric across layers, but its rate follows here from the feature-learning equations instead of assumptions on the inputs and trained weights.
Input geometry. For Gaussian data (see App. § 11), where for a sample of class , with and centers of equal norms and equal pairwise overlaps, the expected input kernel is exchangeable, with
where with mean center . Then for .
Figure 2 compares these predictions with the numerical solution of the MAP equations and with SGLD-trained networks. On the expected input kernel, theory and numerics agree: NC1 decreases geometrically, more slowly in wider networks (see panel (a)); in panel (b), the rate grows with the SNR, here raised by lowering at fixed centers, which lowers ; and the terminal compression for to nearly coincides as a function of (see panel (c)). SGLD-trained networks follow the per-layer factor of Theorem 1 after a slower decrease in the first layers (see panel (d)).
Figure 2. NC1 decreases geometrically with depth and, for the MAP kernels at large width, depends on depth and width only through . (a)–(c) Expected input kernel of Gaussian classes with for ; Theorem 1 (lines) and full MAP equations (markers). (a) for varying widths and . (b) Per-layer compression rate versus SNR for and . (c) versus ; the curves nearly coincide. (d) Four sampled Gaussian classes for and : SGLD-trained networks (markers) and Theorem 1 for the input kernel projected onto (line), with for . Experimental details in App. § 12.
Beyond the exchangeable case. On four-class XOR, the input kernel is not exchangeable and NC2 and NC3 are nonzero. For an erf network, whose MAP equations we solve to first order in the conjugate kernels (see App. § 7), all three decrease across depth in this theory and in SGLD-trained networks (see Figure 1), agreeing best in the first hidden layer, while the trained networks collapse more strongly in deeper layers.
Discussion
In deep linear networks with an exchangeable input kernel, our theory shows how depth, width and data shape the layerwise decrease of NC1: each layer lowers it by the same factor, and at large width, depth and width enter only through . Our main limitation is the assumption of input kernel exchangeability, which makes the equations solvable but forces NC2 and NC3 to vanish, so that the law describes NC1 alone and does not hold for general sampled data. Since Proposition 1 applies to any kernel, solving the equations for general input kernels and studying nonlinear networks will be an interesting direction of future research.
Acknowledgments and Disclosure of Funding
This work is supported by ERC grant DOG-AMP (No 101125506) [E.S.]. G.W. acknowledges support from a Canada CIFAR AI Chair (via Mila), Humboldt Research Fellowship, FRQNT-NSERC grant 2023-NOVA-329125 and NSERC Discovery grant 03267.
Funded by the European Union. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency. Neither the European Union nor the granting authority can be held responsible for them.
Derivation of the kernel neural-collapse observables
We here prove Proposition 1, i.e., that NC1–NC3 can be written in terms of the feature kernel , the class labels and, for NC3, the ridge parameter . We work at an arbitrary fixed layer and make no assumptions on the network architecture, the training dynamics or the exchangeability of the input kernel. The proof consists of three parts. For NC1, label-dependent projectors separate the representation into its centered class-mean and within-class components, whose squared norms are traces of projected kernels. For NC2, the Gram matrix of the centered class means follows by applying the class-averaging and centering operators to . For NC3, the representer form of the ridge readout expresses its alignment with the class means through kernel inner products. The NC1 identity was previously derived by Kothapalli and Tirer [6]; we reproduce it in our notation because the same sample-space decomposition is used in the linear analysis of App. D.
We denote the feature matrix as , whose rows are the representations of the training samples , so that ; the feature dimension is at the input and for a hidden layer of the networks in Sec. 3. We consider balanced classes with samples each, labels and one-hot targets . With the centering matrices and and the centered label matrix of Sec. 2, balanced classes imply
Proof of the NC1 identity
With the class and global feature means
the within- and between-class covariances are
Since by (9) and , the projector of (2) becomes
We consider a sample belonging to class , so that row of is the unit vector . As the rows of are the class sums, , and the rows of are , we obtain
Thus, consists of the centered class means, repeated over the samples of each class, and of the within-class residuals. The projector is symmetric and idempotent by construction, and as , so that is symmetric and idempotent as well. Hence for , and with Eqs. (11) and (13) and ,
which yields
Proof of the NC2 identity
With the class-averaging matrix , the rows of are the class means . Centering across classes, , gives the centered class means and their Gram matrix,
If all centered class means are nonzero, is invertible, and has the entries
i.e., it equals the cosine Gram matrix of the centered class means in § 2. Since the reference matrix , the Gram matrix of a unit-norm simplex equiangular tight frame of vectors, does not depend on the features,
is determined by and the class labels alone.
Proof of the NC3 identity
For NC3, we use the bias-free ridge readout of § 2, which minimizes
The extremum condition gives , and the push-through identity yields the representer form
NC3 compares the class-specific readout directions after removing their common component. The centered readout vectors are the rows of , with , and the centered class means are the rows of . Hence,
and averaging the cosine misalignment over classes gives
in which every quantity is determined by , and . This completes the proof of Proposition 1.
Biases and test samples
Biases as a constant feature. The kernels of § 3 contain the term , i.e., they are the Gram matrices of feature matrices with an additional constant column. As , this column changes neither NC1 nor NC2. In NC3, it adds a bias to the ridge readout, given by times the readout weights of the constant column, so that the readout is and the penalty is . The bias is thus regularized with strength and also changes through the joint fit. As the constant column vanishes in the centered class means, the bias does not enter the inner products , but it raises the squared norms of the centered readout vectors from to , with , which enter the denominators in Eq. (4).
NC4. On a test input with features , NC4 compares the readout decision with the nearest class mean . Both decisions require the kernel between the test input and the training inputs, which is not contained in . We therefore do not give a kernel form of NC4.
MAP kernel equations
Fischer et al. [1] determine the most probable kernels of a network of large width in a Bayesian setting, conditioned on its training data. Under the weight prior and given , the preactivation vectors of the neurons of layer across the training samples are independent and Gaussian with covariance , and is times the average of over these neurons. Its distribution given thus obeys a large-deviation principle in with the cumulant-generating function
whose argument is the conjugate kernel, the variable conjugate to in the Legendre transform of that gives the rate function of . The stationary point of the resulting log posterior of the kernels obeys forward equations and backward equations . They start from the input kernel and from the terminal conjugate kernel, which, for a single output with targets and Gaussian observation noise of variance , is
As depends on , the equations must be solved jointly. The forward equation evaluates under the Gaussian measure with covariance , tilted by , and reduces to the recursion for the kernels of the neural network Gaussian process (NNGP) for . For linear networks, the tilted measure is Gaussian, so that the equations close exactly in the kernels; for nonlinear networks, it is not, and we expand the equations in the conjugate kernels.
Linear networks. For , Eq. (23) is a Gaussian integral, , and its derivatives give, without approximation and for ,
with the transfer matrix . These are the equations of Sec. 3, Eq. (5). The same matrix acts from the right on the kernel and from the left on the conjugate kernel.
Nonlinear networks. For nonlinear , the tilted expectations have no closed form. Following Fischer et al. [1, Sec. 3.4], we expand the forward and backward equations to first order in the conjugate kernels, assuming , and have
with , all expectations over , and the connected four-point function . Together with the terminal condition for outputs, Eq. (30), Eqs. (26) and (27) give the theory curves in Fig. 1 (see App. § 12 for more details).
Terminal condition for multidimensional network outputs
The feature-learning theory of Fischer et al. [1] is formulated for a scalar network output, which covers binary classification. To study neural collapse in the more general -class case with one-hot encoded labels, we here extend the terminal condition to -dimensional outputs. This condition expresses the terminal conjugate kernel , from which the backward equations start, through and the targets, and thereby enters all results below; for one-hot targets, it is the origin of the factor in the transfer factors of Corollary 1.
The forward equations for the feature kernels and the backward equations for the conjugate kernels are unchanged: all outputs share the same feature kernel . The output dimension enters only through the data term of the action, the log posterior of the kernels [1 Eq. (9)].
We denote the network output for training sample by . The readout weights and biases have independent rows and entries, respectively,
The targets are collected in . For one-hot encoded labels , the targets are and . Assuming independent Gaussian observation noise of variance for each output coordinate, the likelihood is
Conditioned on the activations of the last hidden layer, the outputs are independent Gaussian processes on the training inputs with the common covariance . Marginalizing the readout weights and biases therefore gives, with as in Sec. 3,
Relative to the scalar-output case, the trace term keeps its form, while the log-determinant acquires the factor .
Stationarity of the action with respect to , together with the equation of state, gives . Differentiating Eq. (29) with respect to , using and , yields
Thus, relative to the scalar-output terminal condition, only the subtracted term acquires the factor ; the two outer resolvents are unchanged. Equation (30) reduces to Eq. (24) at . From here on, we use one-hot targets, . Equation (30) is therefore the only modification required for the multiclass analysis below.
Proof of Theorem 1
We here prove Theorem 1; Corollary 1 is proven in App. § 10. The proof has two steps. First, for an exchangeable input kernel, we show that the linear MAP equations, Eqs. (25) and (30), restricted to the algebra , decouple into independent scalar equations for the channels , and of the global mean, the centered class means and the within-class fluctuations, and that the NC2 and NC3 vanish on such solutions (App. § 9.§ 1). Second, the scalar forward and backward equations conserve the product of the kernel and conjugate-kernel eigenvalues in each channel, which makes the transfer factor independent of the layer; the geometric law for NC1 then follows from the ratio of the within- and between-class eigenvalues (App. § 9.§ 2).
Exchangeable input kernel
Equations (25) and (30) are matrix equations for kernels. To solve them in closed form, we now assume that the input kernel is exchangeable, i.e., invariant under simultaneous permutations of its rows and columns that permute the samples within a class or permute the classes. This is a strong assumption on the input geometry, which sampled data satisfy approximately at best. We adopt it because it makes the coupled forward and backward equations analytically solvable, and because the solution isolates the mechanism behind the layerwise decrease of NC1.
An exchangeable kernel has only three distinct entries: a diagonal value , a within-class off-diagonal value , and a between-class value . Any such kernel can be written as
Projector basis. The three entry types are resolved by three mutually orthogonal projectors that sum to the identity,
which extract, respectively, the global-mean direction (rank 1), the centered class-mean subspace (rank ), and the within-class fluctuations (rank ). As satisfies , and coincide with the projectors of Eq. (2). In this basis, Eq. (31) becomes
with the eigenvalues
The channel collects the uniform component of the kernel. It drops out of NC1 and NC2, as , and for kernels in , NC3 vanishes for any (see below), so that we track only the channels and in what follows.
Invariance of the equations. Exchangeable kernels form the commutative algebra , which is closed under the sums, products and inverses that appear in the forward and backward equations. The two remaining ingredients also lie in : the bias term is purely global-mean, , and the target kernel occupies the global-mean and between-class channels,
Restricted to , the equations therefore close: if all and lie in , so do the transfer matrices , and the matrix equations reduce to scalar equations for the eigenvalues. We consider such solutions; as the equations are only equivariant under the permutations, solutions outside are not excluded. Within , and commute, so that is symmetric and its left and right actions in Eq. (25) coincide: a single scalar per channel governs the forward and backward equations, which decouple into three independent scalar channels.
NC2 and NC3. On solutions in , NC2 and NC3 vanish at every layer with . With of Sec. 2 and the projectors of Eq. (32), and imply , and , so that for every . Hence and , so that and NC2 . Likewise, has the eigenvalue in channel , so that . Every row is thus a positive multiple of , as , all cosines in Eq. (4) equal one, and NC3 .
Conservation law and geometric depth law
Writing the eigenvalues of , and in channel as , and , Eq. (25) reduces per channel to
where the bias contributes only to the channel and hence drops from both and .
Proof of Theorem 1. Inserting the forward recursion of Eq. (36) into and the backward recursion into gives the same expression, : the forward and backward eigenvalues change by the same factor in opposite directions, so that their product is conserved, for all . Substituting into the definition of gives , which rearranges to
The transfer factor is thus independent of the layer, and iterating the forward recursion yields, for ,
in Eq. (3) is the ratio of within- to between-class kernel mass, . Since is scalar on each projector subspace and the trace of an orthogonal projector equals its rank,
so that
Inserting Eq. (38), the factor , which is the same for both channels, cancels, and
where the prefactor is by Eq. (40) at .
The decrease of is therefore controlled entirely by the ratio : the input kernel fixes the prefactor , while feature learning drives the layerwise decrease through the two transfer factors. Within-class fluctuations are compressed relative to the between-class signal whenever , and the per-layer factor is constant, so that decreases geometrically with depth. The transfer factors also depend on the input data through the terminal condition, which we analyze in detail in the next section.
Proof of Corollary 1
We next derive the transfer factors at small and the depth–width law of Corollary 1. We denote the terminal eigenvalue in channel as . Since the terminal condition, Eq. (30), is diagonal in the projector basis, it becomes
where is the eigenvalue of in channel from Eq. (35).
Exact terminal closure
Before any approximation, we give the exact self-consistency equations for the transfer factors. Combining with and Eq. (42) expresses the transfer factor as an explicit function of the terminal eigenvalue alone,
The eigenvalue is in turn the terminal value of Eq. (38), , with the NNGP eigenvalue , for which and . Equation (43) thus closes into a single scalar fixed-point equation for the terminal eigenvalue,
This closure is exact within the MAP theory, as the geometric profile and the conservation law hold at any finite width. Admissible roots have , for which the Gaussian integral in Eq. (23) converges; several such roots can occur for . Through , the solution depends on the input kernel via , on the weight prior via , and on depth and width explicitly; this dependence carries the input data into the per-layer factor. We now simplify the transfer factors for small .
Small- transfer factors
Within-class channel. The targets have no within-class component, . Hence,
For , , so that
Thus, the within-class variance is suppressed by a per-layer factor that deviates from one by at leading order.
Between-class channel. The eigenvalue of the one-hot targets in the between-class channel is . With the ratio of target to terminal between-class variance
Eq. (42) gives
For ,
and therefore
Large-width depth–width scaling
Neglecting the corrections in and assuming , the ratio of the transfer factors is
For , this gives
and substitution into Theorem 1 yields
The explicit dependence on cancels from the leading rate ; the number of classes enters only through , which we determine below.
Self-consistent determination of the rate
We next determine at small . With the NNGP eigenvalue of the between-class channel , we define the target drive
the value of for the NNGP kernels. With and , (44) for is equivalent to , which at small with (50) becomes
Its left-hand side is fixed by the input kernel and the weight prior, so that (55) determines . For , the right-hand side vanishes at and increases strictly and without bound for , as and are positive and increasing, since . (55) therefore has a unique positive solution for every , which increases with .
Moreover, the right-hand side equals at and exceeds (falls below) for (), so that lies between and and, in particular, . Feature learning thus moves the terminal between-class variance from its NNGP value towards the target variance per output, , amplifying it for () and suppressing it for (). As , however, for every , so that decreases in every layer, at a rate that increases with .
Limit at fixed depth-to-width ratio
We now let at fixed and fixed and show that the compression converges to Eq. (7). The drive does not depend on if does not, as in Figure 2(a)–(c). As in Corollary 1, we work to leading order in and ; the corrections in Eqs. (46) and (50) accumulate over the layers to relative order and persist in this limit.
Rate. In logarithmic form, (55) reads . As is bounded, , so that for the equation becomes
Its left-hand side increases from to with slope in , so that it has a unique root , which, like , lies between and . As the slope exceeds there, . Exponentiating (56) and multiplying by gives , an equation of the form with . As for and increases from to for , this equation has exactly one real solution, which is positive and is denoted by , the principal branch of the Lambert function. Hence,
Compression. By Theorem 1 and Eq. (52),
The error term collects the corrections of order per layer in (52), which add up to over layers as is bounded, and . For at fixed and , it vanishes, and (57) gives
which is (7).
Small depth-to-width ratio. With , Eq. (57) gives . For and , the rate thus reduces to , its value for the NNGP kernels, and Eq. (59) to . The self-consistent change of the rate towards enters the compression only at second order in ; Eq. (59) includes it to all orders.
Scope. The limit is taken for the MAP equations, a saddle point for at fixed , whose corrections can accumulate over the layers, as the finite-width corrections of the neural tangent kernel do [2]. For deep linear networks with one output and without observation noise, the posterior at large is determined by [3], whereas does not enter Eq. (7) at fixed . Whether trained networks, which sample this posterior, follow Eq. (7) beyond therefore remains to be checked in future work.
Input geometry of Gaussian classes
The input kernel enters the depth law through and through the target drive of Corollary 1. We here compute both for Gaussian classes, for a sample of class , with fixed class centers and independent , and determine when their expected input kernel is exchangeable.
Expected input kernel. As for samples of class and of class , the input kernel of Sec. 3 has the expectation
The noise and bias terms lie in , and depends on the samples only through their classes. The expected input kernel is therefore exchangeable if and only if is invariant under all permutations of the classes, , i.e., if the centers have equal norms, , and equal pairwise overlaps, for . Then , and with and Eq. (35),
whose eigenvalues are in channel and 0 in channel . The centers of four-class XOR (App. § 12) have equal norms but overlaps and 0, and thus violate this condition.
Channel eigenvalues and SNR. With the signal-to-noise ratio of Sec. 3, where , and , the channel eigenvalues of the expected input kernel are
By Eq. (40), we get
For , it tends to , the NC1 of the input distribution. At finite , it is smaller, as the within-class subspace has dimension instead of and the empirical class means retain part of the noise.
Target drive. Inserting Eq. (62) into Eq. (54) gives
At small , the rate of Corollary 1 is an increasing function of and thus depends on the input only through , i.e., on and the SNR separately rather than on the SNR alone. Raising the SNR by lowering at fixed centers lowers and thus raises , and the per-layer decrease of NC1, as in Figure 2(b); raising it by separating the centers at fixed raises and has the opposite effect.
Sampled data. For general sampled inputs, is not exchangeable. Its orthogonal projection onto with respect to the Frobenius inner product has the channel eigenvalues and thus, by Eq. (40), the same NC1 as . The theory in Figure 2(d) is evaluated on this projection.
Experimental and numerical details
Synthetic data. We consider two balanced four-class Gaussian-mixture tasks in with , for the samples of class and . For four-class XOR (Figure 1), the class centers are , one class per center, whereas the Gaussian task of Figure 2(d) uses , . Here, denotes the th standard unit vector of . Only the latter has centers with equal pairwise overlaps, so that its expected input kernel is exchangeable (App. § 11). Both datasets use , with training samples ( per class), drawn once and shared by all trained networks.
Network training. We train the networks of § 3 with one modification: the network output is multiplied by . Weights and biases are initialized from zero-mean Gaussian priors, with variance for a weight matrix of fan-in and for the biases. Training uses full-batch stochastic gradient Langevin dynamics (SGLD) [8, 15] on the squared-error loss summed over all samples and outputs. For a parameter , one update is
Here, with , so that the data-gradient step equals one with learning rate on the per-sample averaged loss. The weight decay is matched to the prior: equals divided by the prior variance of , i.e., for weights and for biases. We train networks with independent initializations and Langevin noise on the same training samples, each for steps. Reported empirical values are the mean and population standard deviation over networks of the NC values at the final iterate; as the training samples are shared, layer has no spread.
The stationary distribution of these dynamics is proportional to times the Gaussian prior, i.e., the posterior with Gaussian observation noise of variance . As the output multiplier rescales the readout, this is the posterior of § 3 with for , and , except that the readout bias has variance , so that the constant term of is instead of ; the theory uses the same convention. Hence, enters the posterior only through the readout and , and it sets the strength of feature learning, e.g., in Corollary 1.
Kernel NC observables. At each layer, we compute the kernel of the trained network as defined in § 3 and evaluate NC1--NC3 using the kernel expressions of Proposition 1. The ridge parameter of NC3 is at every layer, matching the observation noise of the readout. We additionally report a raw-feature estimate (triangles in Figure 1), obtained from the Gram matrix of the inputs () or of the post-activations (), i.e., without the prefactors and the bias term of the kernels of § 3. As neither changes NC1 or NC2, the two estimates differ only in NC3, which depends on the scale of the kernel relative to the ridge. For the raw features, NC3 is evaluated with the same ridge , without rescaling.
Nonlinear XOR experiment (Figure 1). For Figure 1, we use four-class XOR with , , , , , , and , i.e., . The theory curves solve the first-order moment equations, Eqs. (26) and (27), jointly with the terminal condition, Eq. (30). The two-point expectations of and its derivatives are evaluated in closed form, and the connected four-point function by quasi-Monte Carlo, with Sobol points for all layers and iterations. The resulting equations are solved by Anderson acceleration until the residual of falls below in relative spectral norm. To improve convergence at the target finite width, the solution is annealed from the NNGP kernels at an auxiliary width to in steps equally spaced in , each initialized with the solution of the previous step.
Linear networks with an exchangeable input kernel (Figure 2(a)–(c)). Panels (a)–(c) use the expected input kernel, Eq. (60), which is exactly exchangeable, so no finite dataset is sampled and no seed averaging is required. We use , , , , , and , and class centers that form a regular simplex, and for , so that SNR . Panels (a) and (c) use , i.e., SNR . Throughout these experiments, for and , so that , and hence the target drive , does not depend on depth. Consequently, varying isolates the dependence on the ratio .
The lines show Theorem 1, , with and obtained from the exact finite- closure in Eq. (44). For all settings shown, these scalar equations have a unique root with , which we find by root finding with continuation in depth from . As an independent check, the markers solve the full MAP forward–backward matrix equations in Eq. (5), by Anderson acceleration of and until the residual of falls below in relative spectral norm, with the width annealed from in 20 steps equally spaced in . The closed-form and full-matrix solutions agree to a relative deviation below for all widths shown, .
Panel (a) fixes and compares the layerwise geometric law across widths. Panel (b) fixes and and varies SNR through at fixed centers, testing the data dependence of the contraction rate . Panel (c) varies depth at each width so that all curves reach : for .
Trained linear networks (Figure 2(d)). Panel (d) departs from the exactly exchangeable population setting and uses the sampled Gaussian task together with SGLD-trained linear networks, with , , , , and . We compare the layerwise NC1 values of the trained networks with Theorem 1 evaluated on the channel eigenvalues of the sampled input kernel (see App. § 11), with and from Eq. (44). Thus, unlike panels (a)–(c), which compare two solutions of the same theoretical equations, panel (d) provides a direct comparison between the analytic law and representations learned by trained finite-width networks.
References
- [1]Kirsten Fischer, Javed Lindner, David Dahmen, Zohar Ringel, Michael Krämer, and Moritz Helias. Critical feature learning in deep neural networks. In Ruslan Salakhutdinov, Zico Kolter, Katherine Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp, editors, Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 13660–13690. PMLR, 21–27 Jul 2024. URL https://proceedings.mlr.press/v235/fischer24a.html.arxiv.org/abs/2405.10761
- [2]Boris Hanin and Mihai Nica. Finite depth and width corrections to the neural tangent kernel. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=SJgndT4kwB.arxiv.org/abs/1909.05989
- [3]Boris Hanin and Alexander Zlokapa. Bayesian interpolation with deep linear networks. Proceedings of the National Academy of Sciences, 120(23):e2301345120, 2023. doi: 10.1073/pnas.2301345120. URL https://www.pnas.org/doi/abs/10.1073/pnas.2301345120.DOI
- [4]Hangfeng He and Weijie J. Su. A law of data separation in deep learning. Proceedings of the National Academy of Sciences, 120(36):e2221704120, 2023. doi: 10.1073/pnas.2221704120. URL https://www.pnas.org/doi/abs/10.1073/pnas.2221704120.DOI
- [5]Wanli Hong and Shuyang Ling. Neural collapse for unconstrained feature model under cross-entropy loss with imbalanced data. Journal of Machine Learning Research, 25(192):1–48, 2024. URL http://jmlr.org/papers/v25/23-1215.html.arxiv.org/abs/2309.09725
- [6]Vignesh Kothapalli and Tom Tiner. Can kernel methods explain how the data affects neural collapse? Transactions on Machine Learning Research, 2025. URL https://openreview.net/forum?id=MbF1gYfIIY.arxiv.org/abs/2406.02105
- [7]Qianyi Li and Haim Sompolinsky. Statistical mechanics of deep linear neural networks: The backpropagating kernel renormalization. Phys. Rev. X, 11:031059, Sep 2021. doi: 10.1103/PhysRevX.11.031059. URL https://link.aps.org/doi/10.1103/PhysRevX.11.031059.DOI
- [8]Gadi Naveh, Oded Ben David, Haim Sompolinsky, and Zohar Ringel. Predicting the outputs of finite deep neural networks trained with noisy gradients. Phys. Rev. E, 104:064301, Dec 2021. doi: 10.1103/PhysRevE.104.064301. URL https://link.aps.org/doi/10.1103/PhysRevE.104.064301.DOI
- [9]Vardan Papyan, X. Y. Han, and David L. Donoho. 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: 10.1073/pnas.2015509117. URL https://www.pnas.org/doi/abs/10.1073/pnas.2015509117.DOI
- [10]Akshay Rangamani, Marius Lindegeard, Tomer Galanti, and Tomaso A Poggio. Feature learning in deep classifiers through intermediate neural collapse. In Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett, editors, Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 28729–28745. PMLR, 23–29 Jul 2023. URL https://proceedings.mlr.press/v202/rangamani23a.html.
- [11]Peter Súkeník, Marco Mondelli, and Christoph Lampert. Deep neural collapse is provably optimal for the deep unconstrained features model. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine, editors, Advances in Neural Information Processing Systems, volume 36, pages 52991–53024. Curran Associates, Inc., 2023. doi: 10.52202/075280-2306. URL https://proceedings.neurips.cc/paper_files/paper/2023/file/a60c43ba078b723d3d517d28c50ed4c-Paper-Conference.pdf.DOI
- [12]Peter Súkeník, Christoph Lampert, and Marco Mondelli. Neural collapse vs. low-rank bias: Is deep neural collapse really optimal? In A. Globerson, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. Tomczak, and C. Zhang, editors, Advances in Neural Information Processing Systems, volume 37, pages 138250–138288. Curran Associates, Inc., 2024. doi: 10.52202/079017-4388. URL https://proceedings.neurips.cc/paper_files/paper/2024/file/f9c2ab8d429044e0c35bcece2ff6d123-Paper-Conference.pdf.DOI
- [13]Tom Tირer, Haoxiang Huang, and Jonathan Niles-Weed. Perturbation analysis of neural collapse. In Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett, editors, Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 34301–34329. PMLR, 23–29 Jul 2023. URL https://proceedings.mlr.press/v202/tirer23a.html.arxiv.org/abs/2210.16658
- [14]Peng Wang, Xiao Li, Can Yaras, Zhihui Zhu, Laura Balzano, Wei Hu, and Qing Qu. Understanding deep representation learning via layerwise feature compression and discrimination. Journal of Machine Learning Research, 26(220):1–61, 2025. URL http://jmlr.org/papers/v26/24-0047.html.
- [15]Max Welling and Yee Whye Teh. Bayesian learning via stochastic gradient langevin dynamics. In Proceedings of the 28th International Conference on Machine Learning, ICML’11, page 681–688, Madison, WI, USA, 2011. Omnipress. ISBN 9781450306195.
- [16]Zhihui Zhu, Tianyu Ding, Jinxin Zhou, Xiao Li, Chong You, Jeremias Sulam, and Qing Qu. A geometric analysis of neural collapse with unconstrained features. In M. Ranzato, A. Beygelzimer, Y. Dauphin, P.S. Liang, and J. Wortman Vaughan, editors, Advances in Neural Information Processing Systems, volume 34, pages 29820–29834. Curran Associates, Inc., 2021. URL https://proceedings.neurips.cc/paper_files/paper/2021/file/f92586a25bb3145facd64ab20fd554ff-Paper.pdf.arxiv.org/abs/2105.02375
AI tools statement
No AI-use declaration is available for this version in Valency.
The available record does not establish whether AI systems or models contributed to this work.

