Manuscript Offprint
arXiv:2610.21820A Closed Form Depth-Width Law for Neural Collapse in Deep Linear Networks
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
How depth and width of neural networks shape learned representations is usually studied only after training. We show that, in a tractable feature-learning setting, this dependence can instead be obtained in closed form. Using neural collapse as a probe of representation geometry, we express NC1–NC3 directly in terms of the learned feature kernel, extending an identity known for NC1 to the angular part of NC2 and to NC3 under a ridge readout. For deep linear networks with exchangeable class structure, the resulting kernel equations yield a geometric law, exact within the theory, for the layerwise evolution of within-class variability. At large width, the accumulated compression becomes a function of the depth-to-width ratio L/N, with its rate determined self-consistently by the data, prior and architecture. Numerical experiments support the derived dependence on depth, width and signal-to-noise ratio. The result is a representation-level scaling law derived from feature-learning theory rather than fitted after training.
1 Introduction
Allocating a fixed budget between depth and width changes what a network learns, but the effect is usually measured after training rather than derived in advance. Proportional depth–width analyses have previously identified the depth-to-width ratio as a controlling parameter for finite-width kernel fluctuations, kernel renormalization, and effective depth [Hanin and Nica, 2020, Li and Sompolinsky, 2021, Hanin and Zlokapa, 2023]; here we show that the same architectural ratio controls a representation-level observable.
Neural collapse (NC) describes the progressive emergence of low within-class variability, simplex-like class means, and classifier-mean alignment [Papyan et al., 2020]. Empirical work has observed increasingly separated or collapsed representations across depth [He and Su, 2023, Rangamani et al., 2023], raising the question of what governs this evolution and how it depends on data and architecture. Existing theory has studied unconstrained-feature optima [Hong and Ling, 2024], perturbations of this idealization [Tirer et al., 2023], intermediate-layer compression under structural assumptions on trained weights [Wang et al., 2025], and data-dependent kernel descriptions [Kothapalli and Tirer, 2025].
Here we instead extend the kernel formulation of NC1 Kothapalli and Tirer [2025] to NC2 and NC3, and evaluate the resulting observables on the self-consistent feature-learning kernels of Fischer et al.
Equal contribution.
Preprint.
[2024]. Under exchangeable class geometry, the resulting deep-linear equations reduce to scalar within- and between-class channels, yielding the following contributions:
• Kernel forms for NC2 and NC3, extending the NC1 identity of Kothapalli and Tirer [2025], so that all three training-set observables are computable from the feature kernel and the labels.
• An exact geometric law for layerwise representation compression in exchangeable deep linear networks, showing that the accumulated compression is controlled at leading order by the depth-to-width ratio, with the collapse rate determined self-consistently by the data, prior, and architecture.
Let be the class-averaging membership matrix, if and 0 otherwise, and set and , so that the rows of are the centered class means.
Theorem 1 (Kernel forms of the neural-collapse observables). Assume balanced classes and nonzero normalizations. Then NC1, angular NC2 and kernel-ridge NC3 are functions of feature kernel K and the class labels alone:
where is the cosine-normalized Gram matrix of the centered class means, built from and , and is the Gram matrix of a unit-norm C-vertex simplex ETF. For the bias-free ridge readout with regularization , set and ; then
The NC1 identity is due to Kothapalli and Tirer [2025]; the NC2 and NC3 kernel forms are new. They quantify within-class compression, angular deviation from a simplex ETF, and readout class mean misalignment, respectively (Appendix A). NC4 additionally requires a test-train cross kernel. These identities hold for arbitrary representations; predicting their layerwise evolution requires a theory of the learned kernels.
3 Exact depth law for exchangeable deep linear networks
We build on the finite-width feature-learning theory of Fischer et al. [2024], which derives coupled forward–backward self-consistency equations for the maximum-a-posteriori (MAP) layerwise kernels, i.e. the most probable kernels conditioned on the training data. The underlying large-deviation theory is exact in the proportional limit . We adopt their Bayesian setting, with Gaussian weight priors of variance , bias variance , and Gaussian observation noise of variance .
Writing and for the forward and conjugate kernels, respectively, the deep-linear equations of Fischer et al. [2024] take the closed form
(4)
For training inputs , the fixed forward boundary is . These equations are self-consistent: forward kernels depend on conjugate kernels propagated from the output, while the terminal conjugate kernel depends on , so both families must be solved jointly.
Fischer et al. [2024] consider a scalar output. To study multiclass NC, we extend the terminal condition to independent outputs. For ,
The bulk equations are unchanged. For C-class one-hot targets, ; see Appendix B.
Exchangeable class geometry. To obtain an analytic solution, we assume that the input kernel is invariant under permutations within classes and across classes, a natural idealization of the permutation-symmetric geometry approached under NC. Such kernels lie in the algebra spanned by , , and , which have ranks 1, , and . This algebra is closed under the sums, products and inverses appearing in Eq. 4 and both the bias and lie in the same algebra, so every kernel generated by the recursion has the form
and likewise for . Thus the matrix problem decouples into three scalar channels; E drops out of centered NC observables. Under this symmetry, the angular class-mean and readout-alignment conditions are already ideal, so NC2 and NC3 vanish; the nontrivial layerwise observable is NC1.
Theorem 2 (Channel conservation and geometric depth law). For , is independent of . Hence is layer-independent and
Feature learning therefore acts through two fixed factors: for within-class fluctuations and for the centered between-class subspace. The common weight-variance factors cancel from their ratio, so NC1 decreases geometrically whenever . The input geometry fixes , while the self-consistent feature-learning solution determines the depthwise contraction.
Corollary 1 (Depth–width scaling). At small , with ,
This small- form applies while remains negligible relative to the terminal channel eigenvalues; otherwise the exact finite- fixed point applies. The leading contraction rate is , leaving as the controlling architectural variable, with determined self-consistently by the data, prior, and architecture through the reduced scalar closure (Appendix D.4). The reduced fixed-point equations can therefore be used to select a depth-to-width ratio for a target level of representation compression without training each candidate architecture. This complements Wang et al. [2025], who obtain geometric within-class compression under nearly orthogonal inputs and structural assumptions on trained weights; here the contraction follows from the self-consistent finite-width feature-learning equations, making its data and width dependence explicit.
Input geometry and empirical verification. For balanced Gaussian classes with isotropic within-class noise, the population input value is
and hence

Figure 1: Verification of the exchangeable linear theory. (a) Geometric depth law for and : normalized NC1, , versus layer for , comparing Theorem 2 with the numerical fixed-point solution. (b) Data dependence of the contraction rate for , , , and : versus SNR. (c) Depth-width scaling for and : terminal normalized NC1 versus , showing the predicted leading dependence on . (d) Layerwise NC1 for a sampled four-class Gaussian task and a contractive linear network (), comparing the closed-form prediction with an SGLD-trained finite-width network.

Figure 2: NC1, NC2 and NC3 on four-class XOR ( , ), computed from the self-consistent kernel theory and from trained finite-width networks. Error bars denote variation across seeds.
Thus the terminal collapse separates into an input-geometry contribution and a network-induced contraction controlled by depth relative to width.
Figure 1 separates verification of the analytic solution from its comparison with trained networks. Panels (a)–(c) consider the exactly exchangeable population-kernel setting: the closed-form geometric law agrees with the numerical fixed-point solution across depth, reproduces the data-dependent contraction rate, and exhibits the predicted leading dependence on under . Panel (d) asks the distinct question of whether this behavior persists in a finite trained network. The SGLD-trained network shows approximately geometric layerwise decay over several orders of magnitude, despite deviations from the idealized population-kernel setting.
Beyond the solvable regime. The kernel identities of Theorem 1 are not restricted to linear or exchangeable networks. We therefore ask whether they remain informative when the exact depth law no longer applies. On nonlinear four-class XOR, Figure 2 shows that NC1, NC2 and NC3 evolve in the same direction across depth in the self-consistent kernel solution and in trained finite-width networks. Agreement is strongest in the earlier layers, while trained networks typically reach stronger terminal collapse. We therefore interpret this experiment not as a validation of the exact L/N law outside the linear exchangeable setting, but as evidence that the kernel observables continue to capture the qualitative evolution of learned representation geometry. Implementation details, solver tolerances, SGLD hyperparameters, seed counts are given in Appendix E.
4 Conclusion
We showed that NC1–NC3 can be evaluated directly from the feature kernel and class labels, without explicitly forming the feature coordinates. Combining these kernel observables with self-consistent feature-learning theory makes representation geometry predictable from the data, prior, and architecture without training each candidate network. For exchangeable deep linear networks, we further derived an exact geometric law for the layerwise evolution of NC1. At large width, the accumulated compression is controlled at leading order by , with its rate determined self-consistently by the data, prior, and architecture. This provides a tractable representation-level scaling law that links architectural choices directly to learned geometry. Extending such predictive laws to nonlinear networks and general data geometry remains an important direction.
Acknowledgments and Disclosure of Funding
This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No. 101125506 – DOG-AMP) [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

References
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.
Boris Hanin and Mihai Nica. Finite depth and width corrections to the neural tangent kernel. In International Conference on Learning Representations, 2020.
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.
Hangfeng He and Weijie J. Su. A law of data separation in deep learning, 2023. URL https://arxiv.org/abs/2210.17020.
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.
Vignesh Kothapalli and Tom Tirer. Can kernel methods explain how the data affects neural collapse? Transactions on Machine Learning Research, 2025. ISSN 2835-8856. URL https://openreview.net/forum?id=MbF1gYfI1Y.
Qianyi Li and Haim Sompolinsky. Statistical mechanics of deep linear neural networks: The backpropagating kernel renormalization. Physical Review X, 11(3):031059, 2021. doi: 10.1103/PhysRevX.11.031059.
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.
Akshay Rangamani, Marius Lindegaard, 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.
Tom Tirer, Haoxiang Huang, and Jonathan Niles-Weed. Perturbation analysis of neural collapse. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 34301–34329. PMLR, 2023.
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.
A Derivation of the kernel neural-collapse observables [Theorem 1]
We prove that the neural-collapse observables in Theorem 1 can be written entirely in terms of the feature kernel and the class labels. We work at an arbitrary fixed layer and make no assumption here on the network architecture, training dynamics, or exchangeability of the data.
Let
where is the representation of training sample . We consider balanced classes with samples per class and one-hot label matrix . Denote by the mean representation of class and by the global mean. We use the sample- and class-centering matrices
and the centered label matrix
For balanced classes,
The proof consists of three independent steps, corresponding to the three observables in Theorem 1. For NC1, we show that fixed label-dependent projectors separate the representation into its within-class residual and centered class-mean components; their squared norms are therefore traces of projected kernel matrices. For NC2, we show that the Gram matrix of the centered class means is obtained by applying the class-averaging and centering operators directly to K. For NC3, we first derive the representer form of the bias-free ridge readout and then express its cosine alignment with the centered class means through kernel inner products. Together these three constructions show that NC1, angular NC2, and ridge-readout NC3 require no explicit coordinates for the representation once K and the labels are known.
The NC1 kernel identity was previously derived by Kothapalli and Tirer [2025]; we reproduce it in our notation because the same sample-space decomposition is used later in the exchangeable linear analysis. The kernel forms of angular NC2 and ridge-readout NC3 are new.
A.1 Proof of the NC1 identity
Recall the class and global feature means
The within- and between-class covariance matrices are
and
The projector onto the centered class-indicator subspace is
Since and ,
(14)
Let sample belong to class c. Then
and therefore
(16)
Thus consists exactly of the centered class means repeated over the samples of each class.
Now define
Since
we obtain
(19)
Hence consists exactly of the within-class residuals.
Using , symmetry and idempotence of ,
Using Eq. (16),
Since , Eq. (12) gives
Likewise,
(23)
Consequently,
This proves the NC1 identity.
A.2 Proof of the NC2 identity
Let
Then
Centering across classes gives
and hence
Therefore the Gram matrix of the centered class means is
Let
and assume all centered class means are nonzero. Then
with entries
Thus is exactly the cosine Gram matrix of the centered class means. A unit-norm C-class simplex ETF has Gram matrix
By the definition of the angular NC2 observable,
Hence angular NC2 is completely determined by K and the class labels. This proves the NC2 identity.
A.3 Proof of the NC3 identity
For NC3 we use the bias-free ridge readout associated with the feature matrix Z. Let
minimize
The first-order condition is
or equivalently
Hence
Using the push-through identity
and , we obtain
Define
Then
NC3 compares the class-specific readout directions after removing their common class component. Therefore define
From Eq. (28), the centered class means are
Let denote row of , and row of . Their inner product is
(46)
Similarly,
and
Therefore
Averaging the cosine misalignment over classes gives
Here
Every quantity on the right-hand side is therefore determined by K, Y, and . This proves the NC3 identity and completes the proof of Theorem 1.
B Multi-output terminal condition
The feature-learning theory of Fischer et al. [2024] is formulated for a scalar network output. Since our neural-collapse setting uses C-class one-hot targets, we first extend the terminal boundary condition to C independent output channels. This extension is needed before proving Theorem 2, because the terminal conjugate kernel provides the backward boundary condition for the feature-learning equations.
The key point is that the bulk forward–backward equations are unchanged: all output coordinates share the same scalar feature kernel . The output dimension enters only through the data-dependent part of the action.
Let the network output for training sample be , and let the readout matrix satisfy with independent rows
The labels are one-hot encoded in , with . Assuming independent Gaussian observation noise of variance for each output coordinate,
Conditioned on the penultimate representations, the output channels are independent Gaussian processes with common covariance . Marginalizing the readout weights therefore gives
(53)
Relative to the scalar-output case, the trace term is unchanged, while the log-determinant acquires the factor C.
The terminal conjugate kernel follows from the corresponding equation of state of Fischer et al. [2024, App. A, Eq. (68)]. Differentiating Eq. (53) with respect to yields
Thus, relative to the scalar-output terminal condition, only the subtraction term acquires the factor C; the two outer resolvents are unchanged. Equation (54) reduces to the scalar-output condition of Fischer et al. [2024] at . For C-class one-hot targets, , which we use from here on. Since the bulk feature-learning equations are unaffected by the number of output channels, Eq. (54) is the only modification required for the multiclass analysis below.
C Proof of Theorem 2
We now prove the exact geometric depth law of Theorem 2. The argument has three steps. First, we recall the exact forward–backward MAP equations for a deep linear network. Second, exchangeability reduces all matrix-valued kernels to independent scalar channels corresponding to the global mean, centered class means, and within-class fluctuations. Third, the scalar forward and backward recursions imply a conserved product, which makes the transfer factor in each channel independent of layer. The NC1 depth law then follows directly from the ratio of the within- and between-class channel eigenvalues.
C.1 Exact deep-linear feature-learning equations
Consider an L-layer deep linear network conditioned on training samples from C balanced classes. Let
denote respectively the forward feature kernel and conjugate kernel at layer l.
For a linear network, the MAP equations of Fischer et al. [2024] close exactly:
Eq (56) follows from differentiating at , and is the case of Fischer et al. [2024]. Their Eq.(93) has the product in the reverse order; the two agree whenever and commute, including the exchangeable setting of Theorem 2. We assume throughout that the required inverses exist. Define the transfer matrix
Then Eqs. (55)–(56) become
The forward boundary is fixed by the input data. The backward boundary is given by the multiclass terminal condition derived in Appendix B,
C.2 Exchangeable projector decomposition
We now impose the exchangeability assumption of Theorem 2: the input kernel is invariant under permutations of samples within each class and under permutations of the classes. Under this symmetry, every kernel has three entry types: a diagonal value d, a common within-class off-diagonal value w, and a common between-class value b. Hence
Introduce the mutually orthogonal projectors
They project respectively onto the global-mean direction, the centered class-mean subspace, and the within-class fluctuation subspace, with
Equation (60) can therefore be written as
with
The matrices form a commuting projector basis. Their span
is therefore closed under addition, multiplication, and inversion whenever the inverse exists. Moreover,
and the bias term is purely global,
Thus the initial kernel, the target kernel, the bias, and the terminal condition all lie in . Consequently every , , and remains in the same commuting algebra. The matrix equations therefore decouple into scalar equations in the three fixed eigenspaces. Since the global-mean channel drops out of centered NC observables, only is needed below.
C.3 Channel conservation law
Write
for the eigenvalues of , , and in channel . Equation (58) becomes
where
From Eq. (67),
Multiplying through shows that
so the product is conserved across depth.
Using
inside Eq. (68) gives
Rearranging,
Hence the transfer factor is independent of the layer index.
Iterating the forward recursion in Eq. (67) therefore yields
Equations (70), (73), and (74) establish the channel conservation and geometric propagation statements in Theorem 2.
C.4 Geometric depth law for NC1
By Theorem 1,
Since acts as the scalar on each projector subspace,
Therefore
Using Eq. (74),
The common product of weight-variance factors cancels in their ratio, giving
This completes the proof of Theorem 2.
D Proof of Corollary 1
Theorem 2 is exact and shows that NC1 evolves geometrically with the ratio . Corollary 1 specializes this result to the small- , large-width regime and shows that the leading accumulated contraction is controlled by .
We first derive the exact scalar terminal closure, then simplify the within- and between-class transfer factors for , and finally expand their ratio at large width.
D.1 Exact scalar terminal closure
Let
denote the terminal feature eigenvalue in channel . Because Eq. (59) is diagonal in the exchangeable projector basis,
where is the eigenvalue of in channel . The factor multiplying is , and in is the between-class target eigenvalue . For another target coding replace and ; a scalar output for two classes has , . Since
and , we obtain the exact transfer factor
From the geometric profile of Theorem 2,
Combining Eqs. (83) and (84) yields the exact scalar fixed-point equation
No small- or large-N approximation has been made so far.
D.2 Small- transfer factors
For the within-class channel, the target kernel has no component in , so
Equation (82) therefore gives
and hence
When ,
so
For the between-class channel,
Define
Then
For ,
and therefore
D.3 Large-width depth-width scaling
Neglecting the regularization corrections in Eqs. (90) and (95),
At large N,
or equivalently
Substitution into the exact geometric law Eq. (80) at gives
Hence, to leading order,
This proves the stated depth–width scaling in Corollary 1.
D.4 Self-consistent determination of the rate
For completeness, we make explicit how the rate parameter r is determined. In the between-class channel,
and define the dimensionless target drive
Since
and ,
Using the small- expression Eq. (95),
Thus the contraction rate r is not an externally fitted parameter: it is determined self-consistently by the input channel scale, prior variance schedule, depth, and width.
Under the convention used in the depth–width experiments, is independent of depth, so the architectural dependence of this closure is carried by and through the ratio entering the large-width limit.
E Experimental and numerical details
Synthetic data. We consider two balanced four-class Gaussian-mixture tasks in with and isotropic class-conditional noise . For XOR-multi, the class centers are
whereas Gaussian-multi uses
Both datasets use , with training samples ( per class) and 1000 test samples generated from disjoint random seeds.
Network training. Finite-width experiments use depth-L, width-N MLPs with a P-style feature-learning parameterization of strength . Weights and biases are initialized from zero-mean Gaussian priors with implementation-level variances and . Training uses full-batch stochastic gradient Langevin dynamics (SGLD) with summed squared-error loss. For a parameter , one update is
where
is the per-step learning rate for P training samples. Since L is summed over the full training set, this normalization makes the deterministic data-gradient step equivalent to using learning rate lr on the per-sample averaged loss. The weight-decay coefficients are matched to the Gaussian prior,
with the fan-in of the corresponding weight matrix. Each configuration is trained for epochs with one full-batch update per epoch and repeated over 10 independent data/initialization seeds. Reported empirical values are the across-seed mean and standard deviation.
Kernel NC observables. At each layer we compute the post-activation feature kernel and evaluate NC1–NC3 using the kernel expressions of Theorem 1. For the NNGP-rescaled kernel convention used by the theory, the ridge strength in NC3 is
matching the regularization of the terminal readout. We additionally report a raw-feature estimate, denoted “Empirics (features)”, obtained from the literal Gram matrix without NNGP rescaling. Under the global kernel rescaling used here, NC1 and angular NC2 are unchanged. NC3 depends explicitly on the ridge scale, so for the raw-feature kernel we rescale according to the corresponding kernel-trace scale, ensuring comparable ridge regularization between the two conventions.
Nonlinear XOR experiment (Fig. 2). For Fig. 2 we use XOR-multi with , , , erf activations, , , , and . The theoretical curves are obtained from the nonlinear self-consistent mean-field recursion. Forward and conjugate kernels are propagated jointly, with the required four-point interaction tensor estimated using quasi-Monte Carlo samples per layer. The resulting equations are solved by Anderson acceleration with tolerance and at most 20 iterations per continuation step. To improve convergence at the target finite width, the solution is annealed from an auxiliary width to over 50 width-continuation steps.
Exchangeable linear experiments (Fig. 1(a)–(c)). Panels 1(a)–(c) use an idealized exactly exchangeable population kernel, so no finite dataset is sampled and no seed averaging is required. We use , , input dimension , , , , , and class-mean squared norm . Throughout these experiments we set
so that the lazy/NNGP channel eigenvalues do not acquire an additional depth dependence through . Consequently, varying isolates the dependence on the architectural ratio . The closed-form prediction uses Theorem 2,
with and obtained from the exact finite- scalar self-consistency equations. These scalar equations are solved by continuation from the unique shallow-depth solution, which prevents numerical switching between distinct roots when the closure becomes multi-rooted at larger depth.
As an independent check, we solve the full forward–backward matrix equations in Eq. (4) using width-annealed Anderson acceleration with tolerance . The closed-form and full-matrix solutions agree to numerical precision for all widths shown, .
Panel 1(a) fixes L = 16 and compares the layerwise geometric law across widths. Panel 1(b) fixes N = 256 and L = 16 and varies
testing the data dependence of the contraction rate . Panel 1(c) varies depth at each width so that all curves reach : for , respectively.
Trained linear-network comparison (Fig. 1(d)). Panel 1(d) departs from the exactly exchangeable population setting and uses a sampled Gaussian-multi dataset together with a finite-width trained linear network. We use the contractive initialization and compare the SGLD-trained layerwise NC1 values with the closed-form exchangeable prediction evaluated using the measured input channel eigenvalues of the sample. Thus, unlike panels 1(a)–(c), which compare two solutions of the same theoretical equations, panel 1(d) provides a direct comparison between the analytic law and representations learned by a trained finite-width network.