CoChat

Prevalence of neural collapse during the terminal phase of deep learning training

Open access
Papyan, Vardan, Han, X. Y., Donoho, David L. · 2020 · Proceedings of the National Academy of Sciences

The DOI matches its Crossref record; 52 of the 54 references it cites were found in a registry or an index.

Abstract

Significance: Modern deep neural networks for image classification have achieved superhuman performance. Yet, the complex details of trained networks have forced most practitioners and researchers to regard them as black boxes with little that could be understood. This paper considers in detail a now-standard training methodology: driving the cross-entropy loss to zero, continuing long after the classification error is already zero. Applying this methodology to an authoritative collection of standard deepnets and datasets, we observe the emergence of a simple and highly symmetric geometry of the deepnet features and of the deepnet classifier, and we document important benefits that the geometry conveys—thereby helping us understand an important component of the modern deep learning training paradigm.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1073/pnas.2015509117

Cites

52 of 52 references verified0 citation errors · 0 not checkable

Statistics

Figures

Fig. 1. Visualization of NC. The figure depicts, in three dimensions, NC as training proceeds from top to bottom. Green spheres represent the vertices of the standard simplex, see Definition (Simplex ETF), red ball and sticks represent linear classifiers, blue ball and sticks represent class means, and small blue spheres represent last-layer features. For all objects, we distinguish different classes via the shade of the color. As training proceeds, last-layer features collapse onto their class means (NC1), class means converge to the vertices of the simplex ETF (NC2), and the linear classifiers approach their corresponding class means (NC3). An animation can be found at https://purl.stanford.edu/br193mh4244.
Fig. 1. Visualization of NC. The figure depicts, in three dimensions, NC as training proceeds from top to bottom. Green spheres represent the vertices of the standard simplex, see Definition (Simplex ETF), red ball and sticks represent linear classifiers, blue ball and sticks represent class means, and small blue spheres represent last-layer features. For all objects, we distinguish different classes via the shade of the color. As training proceeds, last-layer features collapse onto their class means (NC1), class means converge to the vertices of the simplex ETF (NC2), and the linear classifiers approach their corresponding class means (NC3). An animation can be found at https://purl.stanford.edu/br193mh4244.CC BY-NC-ND · PubMed Central
Fig. 2. Train class means become equinorm. The formatting and technical details are as described in Section 3. In each array cell, the vertical axis shows the coefficient of variation of the centered class-mean norms as well as the network classifiers norms. In particular, the blue lines show Stdc(‖μc−μG‖2)/Avgc(‖μc−μG‖2) where {μc} are the class means of the last-layer activations of the training data and μG is the corresponding train global mean; the orange lines show Stdc(‖wc‖2)/Avgc(‖wc‖2) where wc is the last-layer classifier of the cth class. As training progresses, the coefficients of variation of both class means and classifiers decrease.
Fig. 2. Train class means become equinorm. The formatting and technical details are as described in Section 3. In each array cell, the vertical axis shows the coefficient of variation of the centered class-mean norms as well as the network classifiers norms. In particular, the blue lines show Stdc(‖μc−μG‖2)/Avgc(‖μc−μG‖2) where {μc} are the class means of the last-layer activations of the training data and μG is the corresponding train global mean; the orange lines show Stdc(‖wc‖2)/Avgc(‖wc‖2) where wc is the last-layer classifier of the cth class. As training progresses, the coefficients of variation of both class means and classifiers decrease.CC BY-NC-ND · PubMed Central
Fig. 3. Classifiers and train class means approach equiangularity. The formatting and technical details are as described in Section 3. In each array cell, the vertical axis shows the SD of the cosines between pairs of centered class means and classifiers across all distinct pairs of classes c and c^(′). Mathematically, denote cosμ(c,c^(′))=⟨μc−μG,μc^(′)−μG⟩/(‖μc−μG‖2‖μc^(′)−μG‖2 and cosw(c,c^(′))=⟨wc,wc^(′)⟩/(‖wc‖2‖wc^(′)‖2) where ({wc})c=1^C, ({μc})c=1^C, and μG are as in Fig. 2. We measure Stdc,c^(′)≠c(cosμ(c,c^(′))) (blue) and Stdc,c^(′)≠c(cosw(c,c^(′))) (orange). As training progresses, the SDs of the cosines approach zero, indicating equiangularity.
Fig. 3. Classifiers and train class means approach equiangularity. The formatting and technical details are as described in Section 3. In each array cell, the vertical axis shows the SD of the cosines between pairs of centered class means and classifiers across all distinct pairs of classes c and c^(′). Mathematically, denote cosμ(c,c^(′))=⟨μc−μG,μc^(′)−μG⟩/(‖μc−μG‖2‖μc^(′)−μG‖2 and cosw(c,c^(′))=⟨wc,wc^(′)⟩/(‖wc‖2‖wc^(′)‖2) where ({wc})c=1^C, ({μc})c=1^C, and μG are as in Fig. 2. We measure Stdc,c^(′)≠c(cosμ(c,c^(′))) (blue) and Stdc,c^(′)≠c(cosw(c,c^(′))) (orange). As training progresses, the SDs of the cosines approach zero, indicating equiangularity.CC BY-NC-ND · PubMed Central
Fig. 4. Classifiers and train class means approach maximal-angle equiangularity. The formatting and technical details are as described in Section 3. We plot in the vertical axis of each cell the quantities Avgc,c^(′)|cosμ(c,c^(′))+1/(C−1)| (blue) and Avgc,c^(′)|cosw(c,c^(′))+1/(C−1)| (orange), where cosμ(c,c^(′)) and cosw(c,c^(′)) are as in Fig. 3. As training progresses, the convergence of these values to zero implies that all cosines converge to −1/(C−1). This corresponds to the maximum separation possible for globally centered, equiangular vectors.
Fig. 4. Classifiers and train class means approach maximal-angle equiangularity. The formatting and technical details are as described in Section 3. We plot in the vertical axis of each cell the quantities Avgc,c^(′)|cosμ(c,c^(′))+1/(C−1)| (blue) and Avgc,c^(′)|cosw(c,c^(′))+1/(C−1)| (orange), where cosμ(c,c^(′)) and cosw(c,c^(′)) are as in Fig. 3. As training progresses, the convergence of these values to zero implies that all cosines converge to −1/(C−1). This corresponds to the maximum separation possible for globally centered, equiangular vectors.CC BY-NC-ND · PubMed Central
Fig. 5. Classifier converges to train class means. The formatting and technical details are as described in Section 3. In the vertical axis of each cell, we measure the distance between the classifiers and the centered class means, both rescaled to unit norm. Mathematically, denote M∼=M⋅/‖M⋅‖F where M⋅=[μc−μG:c=1,…,C]∈R^(p×C) is the matrix whose columns consist of the centered train class means; denote W∼=W/‖W‖F where W∈R^(C×p) is the last-layer classifier of the network. We plot the quantity ‖(W∼)^(⊤)−(M∼‖)F² on the vertical axis. This value decreases as a function of training, indicating that the network classifier and the centered-means matrices become proportional to each other (self-duality).
Fig. 5. Classifier converges to train class means. The formatting and technical details are as described in Section 3. In the vertical axis of each cell, we measure the distance between the classifiers and the centered class means, both rescaled to unit norm. Mathematically, denote M∼=M⋅/‖M⋅‖F where M⋅=[μc−μG:c=1,…,C]∈R^(p×C) is the matrix whose columns consist of the centered train class means; denote W∼=W/‖W‖F where W∈R^(C×p) is the last-layer classifier of the network. We plot the quantity ‖(W∼)^(⊤)−(M∼‖)F² on the vertical axis. This value decreases as a function of training, indicating that the network classifier and the centered-means matrices become proportional to each other (self-duality).CC BY-NC-ND · PubMed Central
Fig. 6. Training within-class variation collapses. The formatting and technical details are as described in Section 3. In each array cell, the vertical axis (log scaled) shows the magnitude of the between-class covariance compared with the within-class covariance of the train activations. Mathematically, this is represented by Tr(ΣWΣB^(†)/C) where Tr(⋅) is the trace operator, ΣW is the within-class covariance of the last-layer activations of the training data, ΣB is the corresponding between-class covariance, C is the total number of classes, and ([⋅])^(†) is Moore–Penrose pseudoinverse. This value decreases as a function of training—indicating collapse of within-class variation.
Fig. 6. Training within-class variation collapses. The formatting and technical details are as described in Section 3. In each array cell, the vertical axis (log scaled) shows the magnitude of the between-class covariance compared with the within-class covariance of the train activations. Mathematically, this is represented by Tr(ΣWΣB^(†)/C) where Tr(⋅) is the trace operator, ΣW is the within-class covariance of the last-layer activations of the training data, ΣB is the corresponding between-class covariance, C is the total number of classes, and ([⋅])^(†) is Moore–Penrose pseudoinverse. This value decreases as a function of training—indicating collapse of within-class variation.CC BY-NC-ND · PubMed Central
Fig. 7. Classifier behavior approaches that of NCC. The formatting and technical details are as described in Section 3. In each array cell, we plot the proportion of examples (vertical axis) in the testing set where network classifier disagrees with the result that would have been obtained by choosing argminc‖h−μc‖2 where h is a last-layer test activation, and ({μc})c=1^C are the class means of the last-layer train activations. As training progresses, the disagreement tends to zero, showing the classifier’s behavioral simplification to the nearest train class-mean decision rule.
Fig. 7. Classifier behavior approaches that of NCC. The formatting and technical details are as described in Section 3. In each array cell, we plot the proportion of examples (vertical axis) in the testing set where network classifier disagrees with the result that would have been obtained by choosing argminc‖h−μc‖2 where h is a last-layer test activation, and ({μc})c=1^C are the class means of the last-layer train activations. As training progresses, the disagreement tends to zero, showing the classifier’s behavioral simplification to the nearest train class-mean decision rule.CC BY-NC-ND · PubMed Central
Fig. 8. Training beyond zero error improves adversarial robustness. The formatting and technical details are as described in Section 3. For each dataset and network, we sample without replacement 100 test images—constructing for each an adversarial example using the DeepFool method proposed in ref. 23. In each array cell, we plot on the vertical axis the robustness measure, Avei‖r(xi)‖2/‖xi‖2, from the same paper—where r(xi) is the minimal perturbation required to change the class predicted by the classifier, for a given input image xi. As training progresses, larger xi. As training progresses, larger perturbations are required to fool the deepnet. Across all array cells, the median improvement in the robustness measure in the last epoch over the first epoch achieving zero training error is 0.0252; the mean improvement is 0.2452.
Fig. 8. Training beyond zero error improves adversarial robustness. The formatting and technical details are as described in Section 3. For each dataset and network, we sample without replacement 100 test images—constructing for each an adversarial example using the DeepFool method proposed in ref. 23. In each array cell, we plot on the vertical axis the robustness measure, Avei‖r(xi)‖2/‖xi‖2, from the same paper—where r(xi) is the minimal perturbation required to change the class predicted by the classifier, for a given input image xi. As training progresses, larger xi. As training progresses, larger perturbations are required to fool the deepnet. Across all array cells, the median improvement in the robustness measure in the last epoch over the first epoch achieving zero training error is 0.0252; the mean improvement is 0.2452.CC BY-NC-ND · PubMed Central

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Show all 52 references

Research works printed but not linked: 3

  1. Belkin M., Beyond Empirical Risk Minimization: The Lessons of Deep Learning (colloquium recording, MIT CBMM, 2019).
  2. LeCun Y., Cortes C., Burges C., MNIST handwritten digit database. AT&T Labs (2010). http://yann.lecun.com/exdb/mnist/. Accessed 1 July 2020. 7584903
  3. Monajemi H., Donoho D. L., Stodden V., “ Making massive computational experiments painless” in 2016 IEEE International Conference on Big Data (Big Data) (IEEE, 2016), pp. 2368– 2373. · DOI

Cited by

Items 701–800 of 1,001

Metadata

Authors
Papyan, V., Han, X. Y., & Donoho, D. L.
Affiliations
  • Stanford University (US)
  • Cornell University (US)
Corresponding author
Donoho, David L.
Venue
Proceedings of the National Academy of Sciences
Published
2020-09-21
Volume
117
Issue
40
Pages
24652-24663
ISSN
  • 0027-8424 (ISSN-L)
  • 1091-6490
OpenAlex
W3065974826
Cited by
403
References
54
Citations by year
2026: 109 · 2025: 99 · 2024: 81 · 2023: 52 · 2022: 26 · 2021: 26 · 2020: 10
FWCI
11.20
Type
journal article
Language
en
Open access
Locations
  • Proceedings of the National Academy of Sciences (publishedVersion, cc-by-nc-nd)
  • PubMed Central (publishedVersion, cc-by-nc-nd)
  • PubMed (publishedVersion)
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University)
Funders
National Science Foundation (DMS 1418362, DMS 1407813, DMS 1811614)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Stochastic Gradient Optimization Techniques
  • Physical Sciences › Computer Science › Artificial Intelligence › Domain Adaptation and Few-Shot Learning
  • Physical Sciences › Computer Science › Artificial Intelligence › Neural Networks and Applications
Keywords
neural collapse, deep learning, equiangular tight frames, simplex, generalization, robustness, interpretability

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.