All-Around Neural Collapse for Imbalanced Classification

Enhao Zhang, Chaohua Li, Chuanxing Geng, Songcan Chen

TL;DR

This paper discovers that in imbalanced (long-tailed) learning, "minority collapse" affects both classifier weights and feature means, breaking the inherent symmetry of deep networks. The authors introduce AllNC, a unified framework that restores this geometric harmony across features, class means, and classifiers, achieving state-of-the-art results on major imbalanced benchmarks.

What Problem Does This Paper Address?

In the "terminal phase" of training on balanced datasets, deep neural networks exhibit a fascinating phenomenon called Neural Collapse (NC). Essentially, the network's internal representations and its final classifier weights "collapse" into a perfectly symmetrical geometric structure (a Simplex Equirectangular Tight Frame, or ETF). In this state, class means and classifier vectors are perfectly aligned and maximally separated.

However, when data is imbalanced—where a few "majority" classes have many samples and "minority" classes have very few—this symmetry shatters. Previous research identified "minority collapse," where classifier vectors for rare classes are squeezed together. Most existing fixes try to repair this by forcing the classifier into an ETF shape.

The authors of this paper point out a critical oversight: the collapse isn't just in the classifier. They show that the feature means of minority classes are also squeezed. If you only fix the classifier, you create a mismatch (violating "self-duality"), which prevents the network from generalizing well to rare classes.

Methods

The authors propose the All-around Neural Collapse (AllNC) framework to restore symmetry from three angles:

  1. Hybrid Contrastive Loss (HyCon): To ensure individual activations (features) cluster tightly around their class means, the authors use a contrastive approach. Unlike standard contrastive learning, HyCon doesn't require "negative samples," which often cause issues in imbalanced settings. It simply pulls features toward their respective class means.
  2. Peer-to-Peer Loss (P2P): This is the "bridge." It simultaneously constrains both the class means and the classifier vectors to align with a fixed Simplex ETF. This ensures that the features and the weights "see" the same optimal geometric target.
  3. Generalized Bilateral-Branch Network (GBBN): Instead of a clunky two-stage training process, AllNC uses a single-branch network with a dynamic weighting parameter ($\eta$). Early in training, the model focuses on learning robust features; as training progresses, it shifts focus toward rebalancing the classifier for minority classes.

Datasets

The researchers evaluated AllNC on several standard and long-tailed benchmarks:

  • Balanced: CIFAR-10 and CIFAR-100.
  • Imbalanced (Long-Tailed): CIFAR-10-LT and CIFAR-100-LT (with varying imbalance ratios from 10 to 200).
  • Large-scale Imbalanced: ImageNet-LT (1,000 classes) and iNaturalist 2018 (8,142 classes, notoriously difficult).

Key Insights and Ideas

  • Complete Minority Collapse: The most significant "aha moment" is the empirical proof that minority class means are just as corrupted as classifier vectors. Fixing one without the other is like trying to align a key to a lock when the lock itself is deformed.
  • The Failure of One-Sided Fixes: The paper demonstrates that using a fixed ETF classifier on imbalanced data actually increases the gap between features and weights, explaining why previous NC-based fixes often underperformed.
  • Self-Duality as a Regularizer: By forcing the network to maintain "self-duality" (where class means $\approx$ classifier weights), the model is naturally discouraged from over-fitting to majority classes.

Key Results

AllNC consistently outperformed existing state-of-the-art methods across all tested datasets:

  • CIFAR-100-LT: At an imbalance factor of 200, AllNC achieved 51.50% top-1 accuracy, a significant jump over the previous best methods.
  • ImageNet-LT: AllNC reached 56.5% overall accuracy, outperforming specialized NC-recovery methods like NC+DRW+cRT (54.2%).
  • iNaturalist 2018: The method achieved 71.5% accuracy, showing it scales well to massive, real-world imbalanced distributions.
  • Balanced Performance: Interestingly, AllNC also improved performance on balanced CIFAR datasets (e.g., reaching 97.57% on CIFAR-10), suggesting that encouraging Neural Collapse is a universally beneficial inductive bias.

Limitations and Future Work

While highly effective for classification, the authors note that their current framework is specifically designed for the last layer of the network. They suggest that exploring how Neural Collapse manifests in intermediate layers—and how to restore it there—could be a promising next step. Additionally, the authors mention that extending this "all-around" restoration to other tasks like object detection and instance segmentation remains an open challenge.

Summary updated

BibTeX
@article{zhang2025all,
  author = {Enhao Zhang and Chaohua Li and Chuanxing Geng and Songcan Chen},
  title = {{All-Around Neural Collapse for Imbalanced Classification}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2025},
  url = {https://openreview.net/forum?id=9HSwvoAa2J},
}
Figure