Distribution Alignment Optimization through Neural Collapse for Long-tailed Classification

Jintong Gao, He Zhao, Dan dan Guo, Hongyuan Zha

In the world of deep learning, balance is a luxury. While standard benchmarks like ImageNet are relatively well-distributed, real-world data is almost always "long-tailed"—a few majority classes have plenty of samples, while a "tail" of minority classes has very few. This imbalance usually leads to models that are great at identifying common objects but fail miserably at identifying rare ones.

A new paper from ICML 2024, "Distribution Alignment Optimization through Neural Collapse for Long-tailed Classification," proposes a clever geometric solution to this problem. By using Optimal Transport to "force" the model's internal representations into a perfectly balanced structure, the authors show we can significantly boost performance for neglected minority classes.

TL;DR

The authors introduce Distribution Alignment Optimization (DisA), a plug-and-play regularization loss that induces "Neural Collapse"—a state of ideal geometric symmetry—in models trained on imbalanced data. By aligning imbalanced feature distributions with a balanced "Simplex Equiangular Tight Frame" (ETF) via Optimal Transport, DisA helps minority classes stand out and improves overall classification accuracy.

What Problem Does This Paper Address?

When you train a neural network on a perfectly balanced dataset, something beautiful happens near the end of training: Neural Collapse (NC). In this state, the features of all samples in a class "collapse" to their mean, and the means of all classes spread out to form a Simplex ETF—essentially the most equidistant and symmetrical shape possible in high-dimensional space.

However, in long-tailed classification, Neural Collapse breaks down. Because the majority classes dominate the loss function, the minority classes get "squashed." Their features don't converge to distinct points; instead, they often get entangled with other classes or drift toward the majority, a phenomenon known as "Minority Collapse."

The challenge is: How do we induce the benefits of Neural Collapse when the data itself is fundamentally lopsided?

Methods

The authors propose DisA, which treats the problem as one of distribution matching.

Framework of DisA
  1. The Target (Q): They define an "ideal" distribution $Q$ based on a Simplex ETF. Imagine a set of points in space where every point is exactly the same distance from every other point. This is the "perfect" balanced structure for classification.
  2. The Source (P): They take the actual last-layer features (representations) produced by the model as a discrete distribution $P$.
  3. The Alignment (Optimal Transport): To bridge the gap, they use Optimal Transport (OT). Specifically, they minimize the "cost" of moving the imbalanced distribution $P$ to the balanced target $Q$.
  4. The Loss Function: They implement this using the Sinkhorn algorithm, which allows for fast, differentiable OT computation in mini-batches. This DisA loss is added as a regularizer to standard classification losses (like Cross-Entropy).

Crucially, DisA is plug-and-play. It doesn't care if your classifier is fixed as an ETF or if it's being learned alongside the features; it simply acts as a guide to ensure the feature extractor is learning a balanced latent space.

Datasets

The researchers evaluated DisA on four standard long-tailed benchmarks:

  • CIFAR-LT-10 & CIFAR-LT-100: Long-tailed versions of the classic CIFAR datasets with varying "imbalance factors" (up to a 200:1 ratio between the most and least frequent classes).
  • ImageNet-LT: A large-scale long-tailed version of ImageNet with 1,000 classes.
  • Places-LT: A long-tailed dataset for scene recognition.

Key Insights and Ideas

  • Adaptive Weighting via OT: One of the core insights is that Optimal Transport naturally acts as an adaptive sampler. Because the target distribution $Q$ is balanced, the OT plan is forced to assign relatively higher "transport weights" to minority samples to fill the target slots. This effectively tells the model to pay more attention to rare samples so they can represent an entire class vertex.
  • Geometric Regularization: Unlike previous methods that try to re-weight the loss or re-sample the data, DisA focuses on the geometry of the feature space. It provides a global structural constraint that prevents minority features from being subsumed by majority ones.
  • Complementary Nature: The paper shows that DisA isn't a replacement for existing long-tailed methods (like LDAM or BBN) but a supplement. Adding DisA consistently improved the performance of almost every baseline it was tested against.

Key Results

The quantitative results show that DisA provides a consistent "lift" across the board:

  • CIFAR-LT-10: On a highly imbalanced set (factor of 200), adding DisA to a standard Cross-Entropy baseline improved Top-1 accuracy from 67.3% to 69.2%. When combined with more advanced methods like INC-DRW, it reached 79.1%.
  • ImageNet-LT: The method showed significant gains in the "Few-shot" category (classes with very few samples), which is the hardest part of the long-tailed problem.
  • Visual Evidence: t-SNE visualizations clearly show that with DisA, class clusters are tighter and more distinct, and the classifier weights are better aligned with the feature means compared to baseline methods.
t-SNE visualization comparing baseline and DisA

Limitations and Future Work

While DisA is powerful, the authors note a few hurdles:

  • The Dimension Constraint: For a Simplex ETF to exist, the feature dimension ($d$) must be greater than or equal to the number of classes ($K-1$). For datasets with a massive number of classes (e.g., hundreds of thousands), this becomes computationally and architecturally expensive.
  • Computational Overhead: While the Sinkhorn algorithm is efficient, calculating OT for every mini-batch still adds a bit of training time compared to simple Cross-Entropy.
  • Scaling to Huge Datasets: The authors suggest that satisfying the NC conditions in extremely large-scale or high-dimensional settings remains an open problem.

Overall, DisA offers a mathematically grounded and effective way to bring the "beauty" of balanced geometric structures to the messy reality of imbalanced data.

Summary updated

BibTeX
@inproceedings{gao2024distribution,
  author = {Jintong Gao and He Zhao and Dan dan Guo and Hongyuan Zha},
  title = {{Distribution Alignment Optimization through Neural Collapse for Long-tailed Classification}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=Hjwx3H6Vci},
}
Figure