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 distance 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 . 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 be the activations of a layer with units on the training samples of class . The class connectome is the complete graph on the units with edge weights , where is the Pearson correlation. Following Songdechakraiwut and Chung (2023), let retain only edges whose weight exceeds . As grows, the number of connected components increases. The 0-dimensional persistence diagram consists of the 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 and of two classes with the same number of nodes, the squared 2-Wasserstein distance () between their diagrams reduces to the squared Euclidean distance between the sorted birth vectors (for ) or sorted death vectors (for ):
In this paper, we report the per-entry mean squared distance MSD for TNC2, where is the length of the vector. We restrict our analysis to and (connected components and cycles), following Songdechakraiwut and Wu (2025), who use these two dimensions to characterize connectome topology. For simplicity, we mainly focus on , while 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 be the MSD between the two connectomes of class , and let be the mean of over classes. We then compare with , the mean MSD between half-size connectomes of different classes. The ratio 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 , the mean MSD among 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. is the mean of MSD 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 , 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 = , 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 . After training begins, NC1 decreases both with depth and with continued training at every layer.
| Dataset | NC1 | NC2 | () | CV* | ||
| MNIST | 1.25 .004 | .70 .27 | 0.7 59 | .01 .72 | .0056 .0090 | 1.64 1.15 |
| Fashion-MNIST | 2.85 .002 | .84 .19 | 0.7 169 | .01 .26 | .0051 .0618 | 1.14 .79 |
| CIFAR-10 | 21.3 .034 | 1.01 .19 | 1.0 59 | .03 .63 | .0031 .0074 | .98 .82 |
| CIFAR-100 | 48.1 .0013 | 1.27 .19 | 4.7 68 | .11 .28 | .0043 .0225 | 1.01 .96 |
Table 1. Last hidden layer (fc6), mean over 10 seeds; two-value entries are initialization terminal phase (TPT). *Coefficient of variation of the pairwise distances.
TNC1: within-class variability rises as NC1 falls. At fc6, 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 rises from 0.01–0.11 to 0.26–0.72 (Table 1) while NC1 falls. Plotting NC1 against yields a strong anti-correlation (Spearman , , , ; 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 s.d.). Top: split-half within-class variability (TNC1), log scale Bottom: mean pairwise distance between class connectomes (TNC2).
Figure 2. NC1 against (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 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 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, 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 and write 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 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 rises from 0.01–0.03 to 0.34–0.70; NC1 and remain anti-correlated (, , ). On CIFAR-100, the correction contains only 161 of 4096 units, so its results are less reliable. In this set, shows no early drop (rising 1.9× before terminal phase) and ends 11× above its initial value; rises 9.4×, but moves only from 0.57 to 0.68 and its anti-correlation with NC1 is weak (). 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.
| Dataset | Dead units, fc6 per class: init → 90% → TPT | selective* | , all units init → TPT | on the corrected unit set, fc6 init → TPT | units† | ||
| MNIST | 781 → 570 → 1058 | 2446 | .0056 → .0090 | .97 | .0066 → .0074 | .95 | 2577 |
| Fashion-MNIST | 857 → 412 → 1207 | 3230 | .0051 → .0618 | .99 | .0064 → .0375 | .98 | 2232 |
| CIFAR-10 | 569 → 124 → 998 | 2082 | .0031 → .0074 | .94 | .0036 → .0033 | .57 | 2624 |
| CIFAR-100 | 819 → 227 → 2278 | 4095 | .0043 → .0225 | .95 | .0027 → .0301 | .40 | 161 |
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. : Spearman correlation over class pairs between the dead-unit gap and the 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 are similar: the fc6 distance ends 1.9–6.6× above its initial value, and the 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.
Results
This appendix repeats the analysis of the main text with the death vectors in place of the birth vectors: , and are defined as , and , with the MSD taken over deaths.
Connectome Signatures
Figure 4 and Table 3 are the counterparts of Figure 1 and Table 1. As for , both signatures rise in the terminal phase at fc6: grows 34–805× its initial value and 1.9–6.6×, while rises from at most 0.04 to 0.20–0.94. At TPT the spread of the pairwise distances is 1.0–1.9, so the distances are no closer to uniform than the distances.
Figure 4. connectome signatures (mean s.d.). Top: split-half within-class variability (TNC1), log scale. Bottom: mean pairwise distance between class connectomes (TNC2). Compare Figure 1.
| Dataset | () | CV* | ||
| MNIST | 0.9 354 | .001 .33 | .0007 .0013 | 1.74 1.19 |
| Fashion-MNIST | 2.8 2291 | .002 .20 | .0015 .0098 | 1.17 1.02 |
| CIFAR-10 | 6.4 772 | .011 .31 | .0006 .0019 | 1.07 1.08 |
| CIFAR-100 | 45.5 1539 | .043 .94 | .0011 .0022 | 1.56 1.91 |
Table 3. counterpart of Table 1: last hidden layer (fc6), all units, mean over 10 seeds; entries are initialization terminal phase (TPT). *Coefficient of variation of the pairwise 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 distance (– at TPT, against 0.94–0.99 for ), consistent with dead units mainly adding zero births rather than changing the cycle structure. After the correction, still ends above its initial value on every dataset and still rises.
Figure 5. signatures after the dead-unit correction (mean s.d.). Compare the bottom two rows of Figure 3.
| Dataset | , all units init TPT | Corrected unit set, fc6 : init TPT | () | |||
| MNIST | .0007 .0013 | .45 | .0011 .0013 | .28 | 1.5 383 | .001 .29 |
| Fashion-MNIST | .0015 .0098 | .71 | .0026 .0130 | .48 | 4.8 3507 | .002 .22 |
| CIFAR-10 | .0006 .0019 | .22 | .0009 .0048 | .08 | 9.5 1734 | .010 .29 |
| CIFAR-100 | .0011 .0022 | .11 | .0001 .0086 | .31 | 20.1 5602 | .307 .79 |
Table 4. counterpart of Table 2: the dead-unit correction at fc6, mean over 10 seeds. : Spearman correlation over class pairs between the dead-unit gap and the distance at TPT. The corrected unit sets are those of Table 2.
References
- [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]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]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
- [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
- [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
- [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
- [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
- [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
- [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




