On the Role of Neural Collapse in Transfer Learning

Tomer Galanti, András György, Marcus Hutter

Abstract

We study the ability of foundation models to learn representations for classification that are transferable to new, unseen classes. Recent results in the literature show that representations learned by a single classifier over many classes are competitive on few-shot learning problems with representations learned by special-purpose algorithms designed for such problems. In this paper, we provide an explanation for this behavior based on the recently observed phenomenon that the features learned by overparameterized classification networks show an interesting clustering property, called neural collapse. We demonstrate both theoretically and empirically that neural collapse generalizes to new samples from the training classes, and -- more importantly -- to new classes as well, allowing foundation models to provide feature maps that work well in transfer learning and, specifically, in the few-shot setting.

Introduction

In modern machine learning, the standard recipe for success is transfer learning: pretrain a "foundation model" on a massive dataset and repurpose its internal representations for a smaller, specific task. Surprisingly, simply training a linear classifier on top of these fixed features often outperforms complex, specialized "meta-learning" algorithms designed specifically for few-shot learning. This paper investigates the geometric properties of the feature space to explain why features optimized for source tasks are so effective for entirely different target tasks.

The Neural Collapse Phenomenon

The authors attribute this success to Neural Collapse (NC). In a "collapsed" state, four key properties emerge at the end of training:

  1. Within-class variation vanishes: Samples of a class map to nearly the same point in feature space.
  2. Geometric Symmetry: Class means arrange themselves into a Simplex Equiangular Tight Frame (ETF).
  3. Alignment: Classifier weights align with these class means.
  4. Simplification: The network effectively becomes a simple "nearest class mean" classifier.

To quantify this, the researchers introduce Class-Distance Normalized Variance (CDNV). They provide mathematical proofs showing that if a model achieves NC on many source classes, this structure likely persists for new samples and new classes.

Key Insights: The "More is Better" Rule

A critical finding is that Neural Collapse is a structural property that carries over to unseen categories. The degree of collapse on the target task improves as the number of source classes increases. This explains why models trained on vast varieties of data provide such robust features.

CDNV and Accuracy vs. Iterations for varying numbers of source classes.

As shown in Figure 1, there is a clear negative correlation between CDNV and accuracy. As the variance within classes drops relative to the distance between classes (lower CDNV), the few-shot accuracy on the target task predictably climbs. This empirical validation confirms that the "collapsed" structure of the feature space directly facilitates easier classification of new classes.

Results and Performance

The authors validated their theory using benchmarks like Mini-ImageNet, CIFAR-FS, FC-100, and EMNIST. Their results show that a simple linear classifier (ridge regression) on top of a "collapsed" foundation model achieves state-of-the-art or near-SOTA results, often outperforming frameworks like MAML or Prototypical Networks. For instance, on the FC-100 dataset, this approach achieved a competitive 45.81% 1-shot accuracy, demonstrating that complex meta-learning is often unnecessary if the feature space has collapsed cleanly.

Limitations and Future Directions

While the study provides strong evidence for NC in transfer learning, it primarily focuses on the penultimate layer. Future work could explore "progressive collapse" through the network's depth. Additionally, the theoretical bounds assume source and target classes share a broad distribution; extreme distributional shifts might degrade collapse generalization. Finally, the impact of fine-tuning on existing NC structures remains an open question.

Summary updated

BibTeX
@misc{galanti2021role,
  author = {Tomer Galanti and András György and Marcus Hutter},
  title = {{On the Role of Neural Collapse in Transfer Learning}},
  year = {2021},
  eprint = {2112.15121},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.15121},
}
Figure