betaFeedback

WorksAgricultural and Biological Sciences

Topological Neural Collapse

Abstract

Neural collapse (NC) predicts that, late in training, last-layer class features concentrate at their means and the means form a simplex equiangular tight frame (ETF). We ask whether NC also leaves a signature in the functional connectome of each layer: the graph of Pearson correlations between hidden-unit activations, built per class and summarized by persistent graph homology. Using deep MLPs, we observe two topological phenomena that co-occur with the well-studied geometric NC in the final layers during the terminal phase. Contrary to NC1, the split-half variability of a class connectome increases (TNC1). The mean pairwise H0H_0 distance Dˉ\bar{D} between class connectomes also rises (TNC2), but unevenly across class pairs, unlike the equidistance of NC2. We find that 24-56% of last-layer units become dead for some classes yet stay active for others, which inflates Dˉ\bar{D}. After correcting for these units, both signatures remain elevated. These results from MNIST, Fashion-MNIST, CIFAR-10, and CIFAR-100 provide preliminary evidence that a topological mechanism may accompany the geometric signatures of NC.

Introduction

Neural collapse (Papyan, Han, and Donoho [5]) describes the geometry of last-layer features in the terminal phase of training (TPT): within-class variability vanishes (NC1), class means form a simplex equiangular tight frame (NC2), the classifier aligns with the means (NC3), and the classifier utilizes a nearest-class-mean rule (NC4). The phenomenon matters because collapse has been linked to generalization and the ability of a network to transfer to new classes (Papyan, Han, and Donoho [5]; [2]). Subsequent work has also found NC, though weaker, in intermediate layers (Parker et al. [6]).

Inspired by functional connectomes in functional magnetic resonance imaging (fMRI) studies of biological networks, Zhang et al. [13] proposed examining a network through its functional connectome: a weighted graph of Pearson correlations among unit activations, summarized by persistent homology. In this paper we construct class-specific, per-layer connectomes and ask whether NC leaves a topological trace. Here, we observe two topological patterns that co-occur with NC1 and NC2: (TNC1) each class connectome becomes more variable within its own class, and (TNC2) the class-connectome means move farther apart in the terminal phase of training.

::: Contributions. (i) We define and observe the two connectome signatures and track them, together with NC1–NC4, across layers and training checkpoints. (ii) We find that both TNC1 and TNC2 increase as training progresses, deviating from NC1 and violating the equidistance property of NC2 (iii) We report an unexpected by-product: a surge of class-selective dead units in the terminal phase.

:::

Background: Persistent Graph Homology

Let Xc∈Rnc×pX_c \in\mathbb{R}^{n_c \times p} be the activations of a layer with pp units on the ncn_c training samples of class cc. The class connectome GcG_c is the complete graph on the pp units with edge weights wij=∣r(Xc,i,Xc,j)∣w_{ij} = \lvert r(X_{c,i}, X_{c,j}) \rvert, where rr is the Pearson correlation. Following Songdechakraiwut and Chung (2023), let GϵG_\epsilon retain only edges whose weight exceeds ϵ\epsilon. As ϵ\epsilon grows, the number of connected components β0(Gϵ)\beta_0(G_\epsilon) increases. The 0-dimensional persistence diagram consists of the p−1p-1 weights of the maximum spanning tree (MST), the births, while the 1-dimensional diagram consists of the remaining non-tree weights (the deaths). The births represent the births of connected components, while the deaths represent the death of cycles.

Songdechakraiwut and Wu (2025), and later adapted by Wu, He, and Songdechakraiwut (2025) to track intermediate stages of training, demonstrated that, for the connectomes GcG_c and Gc′G_{c'} of two classes c≠c′c \ne c' with the same number of nodes, the squared 2-Wasserstein distance (W22W_2^2) between their diagrams reduces to the squared Euclidean distance between the sorted birth vectors b(c)\mathbf{b}^{(c)} (for H0H_0) or sorted death vectors d(c)\mathbf{d}^{(c)} (for H1H_1):

W22(H0(c),H0(c′))=∥b(c)−b(c′)∥22,(1)W_2^2\left(H_0^{(c)}, H_0^{(c')}\right) = \left\lVert\mathbf{b}^{(c)} - \mathbf{b}^{(c')} \right\rVert_2^2, \tag*{(1)}
W22(H1(c),H1(c′))=∥d(c)−d(c′)∥22.(2)W_2^2\left(H_1^{(c)}, H_1^{(c')}\right) = \left\lVert\mathbf{d}^{(c)} - \mathbf{d}^{(c')} \right\rVert_2^2. \tag*{(2)}

In this paper, we report the per-entry mean squared distance MSD =W22/m= W_2^2/m for TNC2, where mm is the length of the vector. We restrict our analysis to H0H_0 and H1H_1 (connected components and cycles), following Songdechakraiwut and Wu (2025), who use these two dimensions to characterize connectome topology. For simplicity, we mainly focus on H0H_0, while H1H_1 results are summarized in the Discussion.

Topological Connectome Signatures

TNC1: within-class variability. To obtain a topological analogue of within-class variability (NC1) we use split-half resampling, a method adopted from the fMRI literature to track measurement reliability ([9, 11]). For each seed we randomly partition every class into two halves and build a connectome from each half. Let VcV_c be the MSD between the two connectomes of class cc, and let Vˉ\bar{V} be the mean of VcV_c over classes. We then compare Vˉ\bar{V} with Dˉhalf\bar{D}_{\mathrm{half}}, the mean MSD between half-size connectomes of different classes. The ratio Vˉ/Dˉhalf\bar{V}/\bar{D}_{\mathrm{half}} is the topological counterpart of the NC1 ratio of within- to between-class spread ([5]). To see whether the observed variability is due to noise alone, we also compute Dˉnull\bar{D}_{\mathrm{null}}, the mean MSD among CC random, class-agnostic groups of the same size to determine the expected noise in the variability. Split-half variability is required because a connectome is a property of a group of samples. Unlike the geometric features of NC1, TNC1 cannot be measured on individual samples.

TNC2: between-class distance. Dˉ\bar{D} is the mean of MSD(H0(c),H0(c′))(H_0^{(c)}, H_0^{(c')}) over all class pairs. If the classes are exchangeable (as expected under an ETF in NC2) pairwise distances should be nearly equal. We quantify departures from equality by the coefficient of variation (CV) of the pairwise distances: the standard deviation divided by the mean.

The CV equals zero when every pair is equally far apart and grows as the distances become more uneven. Our goal is that, by measuring the magnitude of pairwise distances as well as the variation in pairwise distances, we can observe a topological analogue to NC2.

Experiments

Setup. We train MLPs with six hidden layers of width 4096 (ReLU), following Parker et al. [6], using MSE loss. Optimization uses SGD with momentum 0.9, a one-cycle schedule (peak learning rate 0.05), batch size 128, weight decay 10−510^{-5}, and 300 epochs. MSE is preferred over cross-entropy because it both encourages NC and is mathematically clearer ([3]). We use 500 (CIFAR-100), 5000 (MNIST, CIFAR-10) or 6000 (Fashion-MNIST) training images per class and average over 10 random seeds.

All quantities are evaluated on the training set at initialization, multiple intermediate stages of training, and at the terminal phase. At the same checkpoints we compute NC1 = tr⁡(ΣWΣB−1)/C\operatorname{tr}(\Sigma_W\Sigma_B^{-1})/C, NC2 (Frobenius distance of the normalized Gram matrix of centered class means to that of a simplex ETF), NC3 (distance between the normalized classifier and class-mean matrices), and NC4 (disagreement with the nearest-class-mean rule). See Papyan, Han, and Donoho [5] and Han, Papyan, and Donoho [3] for further explanation on the derivations. Throughout these experiments, we name hidden layers 1 to 6 fc1 to fc6.

The networks collapse. At the final hidden layer (fc6), NC1 falls by two to three orders of magnitude and NC2 by 2.6–5.2× (Table 1); NC4 falls from roughly 0.9 to below 10−310^{-3}. After training begins, NC1 decreases both with depth and with continued training at every layer.

DatasetNC1NC2Vˉ\bar{V} (×10−4\times10^{-4})Vˉ/Dˉhalf\bar{V}/\bar{D}_{\mathrm{half}}Dˉ\bar{D}CV*
MNIST1.25 →\to .004.70 →\to .270.7 →\to 59.01 →\to .72.0056 →\to .00901.64 →\to 1.15
Fashion-MNIST2.85 →\to .002.84 →\to .190.7 →\to 169.01 →\to .26.0051 →\to .06181.14 →\to .79
CIFAR-1021.3 →\to .0341.01 →\to .191.0 →\to 59.03 →\to .63.0031 →\to .0074.98 →\to .82
CIFAR-10048.1 →\to .00131.27 →\to .194.7 →\to 68.11 →\to .28.0043 →\to .02251.01 →\to .96

Table 1. Last hidden layer (fc6), mean over 10 seeds; two-value entries are initialization →\to terminal phase (TPT). *Coefficient of variation of the pairwise distances.

TNC1: within-class variability rises as NC1 falls. At fc6, V‾\overline{V} grows by at most 14× before the terminal phase, and then reaches 81×, 242×, 61× and 14× its initial value in the terminal phase (Figure 1, top). The increase becomes more pronounced with depth from fc3 onward (fc4 on CIFAR-100). The ratio V‾/D‾half\overline{V}/\overline{D}_{\mathrm{half}} rises from 0.01–0.11 to 0.26–0.72 (Table 1) while NC1 falls. Plotting NC1 against V‾/D‾half\overline{V}/\overline{D}_{\mathrm{half}} yields a strong anti-correlation (Spearman ρ=−0.90\rho= -0.90, −0.89-0.89, −0.89-0.89, −0.21-0.21; Figure 2). This is the opposite of the behavior expected from NC1, under which within-class variability steadily declines.

Figure 1. Layer-wise connectome signatures (mean ±\pm s.d.). Top: split-half within-class variability Vˉ\bar{V} (TNC1), log scale Bottom: mean pairwise H0H_0 distance Dˉ\bar{D} between class connectomes (TNC2).

Figure 2. NC1 against V‾/D‾half\overline{V}/\overline{D}_{\mathrm{half}} (TNC1) at fc6. One point per seed and checkpoint.

TNC2: distance drops early, then rises in the terminal phase. In the intermediate stages of training, the fc6 value of D‾\overline{D} falls 3.8× on MNIST and 8.6× on CIFAR-10, while on Fashion-MNIST it had risen slightly (Figure 1, bottom; Table 1). In the terminal phase D‾\overline{D} rises on every dataset, finishing 1.6×, 12× and 2.4× above its initial value. On MNIST and CIFAR-10 the rebound is concentrated in the last two layers: at fc1–fc4 the terminal-phase distance remains below its initial value. On Fashion-MNIST the terminal-phase distance exceeds the initial value at every layer. The CV of the pairwise distances stays between 0.7 and 1.2 after initialization, indicating that the pairwise connectome distances never approach uniformity as expected under NC2. On CIFAR-100, D‾\overline{D} shows no early drop: the fc6 value already rises 2.4× during the intermediate training stages and finishes 5.3× above its initial value, with the terminal-phase rebound confined to fc4–fc6. Its CV stays between 0.93 and 1.14 at fc6, again far from uniform.

Class-Selective Dead Units Confounding Class Connectome Distance

Although between-class distances initially decrease, they balloon in the terminal phase. While investigating the cause of this increase, we noticed a substantial population of dead neurons in fc6 during the terminal phase (units that never activate for any sample; Figure 3). Such units have zero variance, so their correlations are undefined. For this study, we set those correlations to zero. We call a unit dead in class cc and write kck_c for their number. Prior work has attributed this artifact to ReLU, which collapses some units to zero variance (Lu et al. 2020).

Figure 3. Units dead for a class as a fraction of the layer, and dead-unit corrected values for TNC1 and TNC2, (mean ± s.d.).

Dead units surge in the terminal phase and are class-selective. At fc6, the dead fraction then jumps in the terminal phase (Figure 3): 19 → 26% on MNIST, 21 → 29% on Fashion-MNIST, 14 → 24% on CIFAR-10, and 20 → 56% on CIFAR-100. Most of these units are not dead across every class: 51–79% of the layer is dead for some classes and alive for others. Thus, the dead units are class-selective.

Dead units inflate the distance. A class with more dead units possesses more zero births and is therefore farther from other classes regardless of the behavior of the remaining units. Empirically, the Spearman correlation (over class pairs) between the dead-unit gap ∣kc−kc′∣|k_c-k_{c'}| and the fc6 distance rises from 0.12–0.65 at initialization to 0.94–0.99 in the terminal phase. Consequently, the dead units inflate between-class distances and confound any purely topological signature of NC (Figure 1).

Dead units are not the whole explanation. Here we recompute both signatures after retaining only those neurons that are dead for fewer than 20% of classes. After this correction, the topological patterns persisted, though they were attenuated. The fc6 distance still falls throughout the intermediate training stages by 11× on MNIST, 1.9× on Fashion-MNIST and 15× on CIFAR-10 (Figure 3; Table 2). In the terminal phase it climbs back to its initial value on MNIST and CIFAR-10 and to 5.9× that value on Fashion-MNIST. Applying the 20% rule independently at each checkpoint yields the same pattern (except that Fashion-MNIST then shows no early drop). Within-class variability on the corrected set of neurons rises to 63×, 217× and 47× its initial value, and V‾/D‾half\overline{V}/\overline{D}_{\mathrm{half}} rises from 0.01–0.03 to 0.34–0.70; NC1 and V‾/D‾half\overline{V}/\overline{D}_{\mathrm{half}} remain anti-correlated (ρ=−0.86\rho= -0.86, −0.88-0.88, −0.82-0.82). On CIFAR-100, the correction contains only 161 of 4096 units, so its results are less reliable. In this set, D‾\overline{D} shows no early drop (rising 1.9× before terminal phase) and ends 11× above its initial value; VV rises 9.4×, but V‾/D‾half\overline{V}/\overline{D}_{\mathrm{half}} moves only from 0.57 to 0.68 and its anti-correlation with NC1 is weak (ρ=−0.21\rho= -0.21). Taken together, these results indicate that a mechanism beyond dead units is driving the terminal-phase increase of between-class distances in the final layers.

DatasetDead units, fc6 per class: init → 90% → TPTselective*Dˉ\bar{D}, all units init → TPTρ\rhoDˉ\bar{D} on the corrected unit set, fc6 init → TPTρ\rhounits†
MNIST781 → 570 → 10582446.0056 → .0090.97.0066 → .0074.952577
Fashion-MNIST857 → 412 → 12073230.0051 → .0618.99.0064 → .0375.982232
CIFAR-10569 → 124 → 9982082.0031 → .0074.94.0036 → .0033.572624
CIFAR-100819 → 227 → 22784095.0043 → .0225.95.0027 → .0301.40161

Table 2. Dead units and the dead-unit correction at fc6, mean over 10 seeds. Dead units are counts per class out of 4096. ∗Units dead in some but not all classes at TPT. ρ\rho: Spearman correlation over class pairs between the dead-unit gap and the H0H_0 distance at TPT. †Size of the corrected unit set.

Discussion and Limitations

The networks collapse by the standard geometric metrics, yet in the terminal phase both between-class distance and within-class variability rise in the topological connectomes.

Moreover, the increase in between-class distance is not uniform across pairs, contrary to the prediction of NC2. Results for H1H_1 are similar: the fc6 H1H_1 distance ends 1.9–6.6× above its initial value, and the H1H_1 split-half ratio rises from at most 0.04 to 0.20–0.94 (Appendix § 6).

We see two possible explanations. First, NC itself may be responsible, but it may affect topology differently from geometry, simultaneously increasing both between-class distance and within-class variability. Second, it is possible that, when features collapse onto non-negative class means, ReLU units can become silent for entire classes. ReLU feature models predict collapsed means with little overlap ([10, 1]), which would generate class-selective dead units. Dying-ReLU effects already present at initialization ((Lu et al. 2020)) may account for the dead units observed before training begins. Future work should extend these results to other activation functions to see whether these results are due to ReLU effects or a consequence of NC.

Limitations. TNC1 relies on a single random split per seed. Future work should average over multiple splits. All experiments use MSE loss and ReLU MLPs. We did not vary sample size, activation function, or weight decay, any of which could shed light on the mechanisms underlying these findings. Finally, the results are purely correlational, so no causal claim that the observed topological changes are produced by NC can be made.

Conclusion and Future Directions. These results suggest that a topological counterpart of NC may occur alongside geometric NC. Future work should test whether they generalize to other loss functions and activation functions, especially ones such as LeakyReLU and GELU that never output exact zeros and so avoid the dead-unit confound. Inducing topological collapse directly could also be tested for the generalization benefits associated with NC.

AI Disclosure. We used Claude Opus 5.5 to edit and polish the grammar and clarity of the author-written text in this paper. All outputs were reviewed and edited by the authors, who take full responsibility for the content. Additionally, we used Claude Code for debugging. The authors validated and executed all final code used in our experiments, and all experimental design decisions were made by the authors.

H1H_1 Results

This appendix repeats the H0H_0 analysis of the main text with the H1H_1 death vectors d(c)\mathbf{d}^{(c)} in place of the birth vectors: Vˉ1\bar{V}_1, Dˉ1,half\bar{D}_{1,\mathrm{half}} and Dˉ1\bar{D}_1 are defined as VV, Dˉhalf\bar{D}_{\mathrm{half}} and Dˉ\bar{D}, with the MSD taken over deaths.

Connectome Signatures

Figure 4 and Table 3 are the H1H_1 counterparts of Figure 1 and Table 1. As for H0H_0, both signatures rise in the terminal phase at fc6: Vˉ1\bar{V}_1 grows 34–805× its initial value and Dˉ1\bar{D}_1 1.9–6.6×, while Vˉ1/Dˉ1,half\bar{V}_1/\bar{D}_{1,\mathrm{half}} rises from at most 0.04 to 0.20–0.94. At TPT the spread of the pairwise H1H_1 distances is 1.0–1.9, so the H1H_1 distances are no closer to uniform than the H0H_0 distances.

Figure 4. H1H_1 connectome signatures (mean ±\pm s.d.). Top: split-half within-class variability Vˉ1\bar{V}_1 (TNC1), log scale. Bottom: mean pairwise H1H_1 distance Dˉ1\bar{D}_1 between class connectomes (TNC2). Compare Figure 1.

DatasetVˉ1\bar{V}_1 (×10−6\times10^{-6})Vˉ1/Dˉ1,half\bar{V}_1/\bar{D}_{1,\mathrm{half}}Dˉ1\bar{D}_1CV*
MNIST0.9 →\rightarrow 354.001 →\rightarrow .33.0007 →\rightarrow .00131.74 →\rightarrow 1.19
Fashion-MNIST2.8 →\rightarrow 2291.002 →\rightarrow .20.0015 →\rightarrow .00981.17 →\rightarrow 1.02
CIFAR-106.4 →\rightarrow 772.011 →\rightarrow .31.0006 →\rightarrow .00191.07 →\rightarrow 1.08
CIFAR-10045.5 →\rightarrow 1539.043 →\rightarrow .94.0011 →\rightarrow .00221.56 →\rightarrow 1.91

Table 3. H1H_1 counterpart of Table 1: last hidden layer (fc6), all units, mean over 10 seeds; entries are initialization →\rightarrow terminal phase (TPT). *Coefficient of variation of the pairwise H1H_1 distances.

Dead-Unit Correction

Figure 5 and Table 4 repeat the dead-unit correction of Section 5 on the same corrected unit sets. The dead-unit gap is only weakly tied to the H1H_1 distance (ρ=0.11\rho= 0.11–0.710.71 at TPT, against 0.94–0.99 for H0H_0), consistent with dead units mainly adding zero births rather than changing the cycle structure. After the correction, Dˉ1\bar{D}_1 still ends above its initial value on every dataset and Vˉ1/Dˉ1,half\bar{V}_1/\bar{D}_{1,\mathrm{half}} still rises.

Figure 5. H1H_1 signatures after the dead-unit correction (mean ±\pm s.d.). Compare the bottom two rows of Figure 3.

DatasetDˉ1\bar{D}_1, all units init →\rightarrow TPTρ\rhoCorrected unit set, fc6 Dˉ1\bar{D}_1: init →\rightarrow TPTρ\rhoVˉ1\bar{V}_1 (×10−6\times10^{-6})Vˉ1/Dˉ1,half\bar{V}_1/\bar{D}_{1,\mathrm{half}}
MNIST.0007 →\rightarrow .0013.45.0011 →\rightarrow .0013.281.5 →\rightarrow 383.001 →\rightarrow .29
Fashion-MNIST.0015 →\rightarrow .0098.71.0026 →\rightarrow .0130.484.8 →\rightarrow 3507.002 →\rightarrow .22
CIFAR-10.0006 →\rightarrow .0019.22.0009 →\rightarrow .0048.089.5 →\rightarrow 1734.010 →\rightarrow .29
CIFAR-100.0011 →\rightarrow .0022.11.0001 →\rightarrow .0086.3120.1 →\rightarrow 5602.307 →\rightarrow .79

Table 4. H1H_1 counterpart of Table 2: the dead-unit correction at fc6, mean over 10 seeds. ρ\rho: Spearman correlation over class pairs between the dead-unit gap and the H1H_1 distance at TPT. The corrected unit sets are those of Table 2.

References

  1. [1]Dang, H.; Tran, T.; Nguyen, T.; and Ho, N. 2024. Neural Collapse for Cross-entropy Class-Imbalanced Learning with Unconstrained ReLU Feature Model. arXiv preprint arXiv:2401.02058.arxiv.org/abs/2401.02058
  2. [2]Galanti, T.; György, A.; and Hutter, M. 2022. On the Role of Neural Collapse in Transfer Learning. In International Conference on Learning Representations.arxiv.org/abs/2112.15121
  3. [3]Han, X. Y.; Papyan, V.; and Donoho, D. L. 2022. Neural Collapse Under MSE Loss: Proximity to and Dynamics on the Central Path. In International Conference on Learning Representations.arxiv.org/abs/2106.02073
  4. [5]Papyan, V.; Han, X. Y.; and Donoho, D. L. 2020. Prevalence of neural collapse during the terminal phase of deep learning training. Proceedings of the National Academy of Sciences, 117(40): 24652–24663.DOI
  5. [6]Parker, L.; Onal, E.; Stengel, A.; and Intrater, J. 2023. Neural Collapse in the Intermediate Hidden Layers of Classification Neural Networks. arXiv preprint arXiv:2308.02760.arxiv.org/abs/2308.02760
  6. [9]Teeuw, J.; Hulshoff Pol, H. E.; Boomsma, D. I.; and Brouwer, R. M. 2021. Reliability modelling of resting-state functional connectivity. NeuroImage, 231: 117842.DOI
  7. [10]Tirer, T.; and Bruna, J. 2022. Extended Unconstrained Features Model for Exploring Deep Neural Collapse. In International Conference on Machine Learning.arxiv.org/abs/2202.08087
  8. [11]Walther, A.; Nili, H.; Ejaz, N.; Alink, A.; Kriegeskorte, N.; and Diedrichsen, J. 2016. Reliability of dissimilarity measures for multi-voxel pattern analysis. NeuroImage, 137: 188–200.DOI
  9. [13]Zhang, B.; Dong, Z.; Zhang, J.; and Lin, H. 2023. Functional Network: A Novel Framework for Interpretability of Deep Neural Networks. Neurocomputing, 519: 94–103.arxiv.org/abs/2205.11702

Paper details

vlnc:W_pwjfs4bw
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Agricultural and Biological Sciences

Not recorded for this paper

View statement
Looking for related papers…
Contents