Neural collapse with unconstrained features

Dustin G. Mixon, Hans Parshall, Jianzong PiarXiv 2020

TL;DR

This paper introduces a simplified "unconstrained features model" to explain the phenomenon of "neural collapse" observed in deep learning. By analyzing this model, the authors provide insights into why neural collapse, a set of emergent properties in the terminal phase of training, arises from minimizing empirical risk.

What Problem Does This Paper Address?

Deep learning models, particularly neural networks, have achieved remarkable success in various domains, especially image classification. However, the theoretical understanding of why they work so well, especially in the later stages of training, lags behind their empirical performance. A recent observation, termed "neural collapse," describes a set of emergent properties that appear when a neural network's classifier has achieved perfect accuracy on the training data. These properties include feature vectors collapsing to class means, a specific geometric structure among these means, and a self-duality between features and classifier weights. While these phenomena are well-documented, the underlying reasons for their emergence from the standard optimization process (empirical risk minimization) remain largely unexplained. This paper aims to bridge this gap by proposing a simplified model where neural collapse can be studied and its emergence understood.

Methods

The authors propose an "unconstrained features model" where the feature map $h$ is not restricted to a specific family of neural networks but is instead represented by a matrix $H$ whose columns are the feature representations of the training data. This model is highly over-parameterized, allowing for perfect interpolation of the training data. They then analyze the gradient descent dynamics for a simplified squared error loss function. A key aspect of their method is the introduction of "strong neural collapse" conditions, which are stricter versions of the observed neural collapse properties. They demonstrate that these strong conditions are a subset of the global minimizers of the empirical risk. Furthermore, they analyze the gradient flow of the system and identify an invariant subspace that the dynamics tend to follow, which is crucial for understanding the emergence of neural collapse.

Datasets

The paper does not use specific external datasets for training or evaluation. Instead, it focuses on a theoretical model with synthetic data implicitly defined by the training set $\{(x_i, c_i)\}_{i \in I}$. The properties of this synthetic dataset are controlled by parameters like the number of classes $C$, the number of data points $N$, and the feature dimension $p$.

Key Insights and Ideas

  • Simplifying Complexity: By abstracting the feature map to a matrix $H$ that only needs to represent the training data, the authors create a tractable model to study neural collapse. This allows for a deeper theoretical analysis than is possible with complex neural network architectures.
  • Strong Neural Collapse as a Target: The introduction of "strong neural collapse" conditions provides a concrete target for the optimization process. The paper shows that these strong conditions are not only achievable but are also global minimizers of the empirical risk in their model.
  • Invariant Subspace Dynamics: The gradient descent dynamics are shown to be confined to a specific invariant subspace. This subspace is key to understanding why the optimization process naturally leads to neural collapse, as it guides the parameters towards the desired configuration.
  • "Unreasonable Effectiveness" Explained: The paper offers a theoretical explanation for the "unreasonable effectiveness" of gradient descent in driving neural networks towards collapse, suggesting it's an artifact of the optimization landscape itself rather than a specific architectural choice.

Key Results

  • The proposed unconstrained features model empirically exhibits strong neural collapse.
  • The conditions for strong neural collapse are shown to be a subset of the global minimizers of the empirical risk.
  • The gradient flow dynamics are analyzed, revealing an invariant subspace that encourages convergence to strong neural collapse.
  • The paper provides theoretical justification for why neural collapse emerges from empirical risk minimization, particularly in the context of over-parameterized models.

Limitations and Future Work

  • Model Simplification: The unconstrained features model is a simplification. While it captures the essence of neural collapse, it does not account for the full complexity of real-world neural networks, such as generalization to unseen data or the specific inductive biases of different architectures.
  • Full Dynamics Characterization: The authors suggest that a more complete characterization of the gradient flow dynamics in the unconstrained features model is desirable. Specifically, understanding how the distance from the invariant subspace behaves over the entire trajectory and the behavior of the limit point when initialization is close to the origin are open questions.
  • Alternative Optimization Methods: The paper focuses on gradient descent. Investigating the behavior of other popular optimization methods, like Adam, in this context is suggested.
  • Alternative Models: Exploring other theoretical models beyond the unconstrained features model that are amenable to theoretical treatment is also proposed as future work.

Summary updated

Abstract

Neural collapse is an emergent phenomenon in deep learning that was recently discovered by Papyan, Han and Donoho. We propose a simple "unconstrained features model" in which neural collapse also emerges empirically. By studying this model, we provide some explanation for the emergence of neural collapse in terms of the landscape of empirical risk.
BibTeX
@misc{mixon2020neural,
  author = {Dustin G. Mixon and Hans Parshall and Jianzong Pi},
  title = {{Neural collapse with unconstrained features}},
  year = {2020},
  eprint = {2011.11619},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.11619},
}
Figure