T-distributed Spherical Feature Representation for Imbalanced Classification

Xiaoyu Yang, Yufei Chen, Xiaodong Yue, Shaoxun Xu, Chao Ma

Introduction: The Crowding Problem

In real-world machine learning, datasets are frequently "long-tailed": a few "head" categories possess thousands of samples, while many "tail" categories have only a handful. Standard classification models, which typically employ a "winner-take-all" softmax strategy, struggle significantly with this imbalance.

The authors of this paper identify a specific phenomenon called the crowding problem. In a standard hyperspherical eigenspace—where features are mapped onto a sphere—head categories tend to expand their decision boundaries due to their sample abundance. These head classes often occupy a disproportionately large angular area (sometimes exceeding 100°), which "squeezes" the tail categories into tiny, crowded slivers of the eigenspace. This makes it nearly impossible for the model to distinguish between rare classes.

Angular distribution of categories: The left plot shows how head categories dominate the eigenspace in standard models, while the right plot shows the balanced distribution achieved by tSP.

Methodology: T-distributed Spherical Metric (tSP)

To address this, the paper introduces the T-distributed Spherical Metric (tSP). The core innovation lies in replacing the standard von Mises-Fisher (vMF) distribution—which underlies common cosine similarity—with a high-kurtosis T-distribution.

High Kurtosis for Fairer Representation

Inspired by the success of t-SNE in dimensionality reduction, the authors utilize a T-distribution with one degree of freedom. This distribution is characterized by high kurtosis, meaning it is extremely "peaky." As shown in the visualization below, the tSP metric only produces a high logit when a feature vector is very close to its category center (μ).

Comparison of probability distributions: The tSP distribution (red/blue peak) is much narrower and "peakier" than the standard vMF distribution (purple curve), restricting the influence zone of each category.

By narrowing the "influence zone" of each category center, head categories are prevented from exerting a strong negative bias against other classes. This naturally "equalizes" the eigenspace, providing tail categories with the "breathing room" necessary to occupy distinct regions without being crowded out.

Experimental Evaluation

The tSP classifier was evaluated across a diverse range of benchmarks and real-world applications:

  • Computer Vision Benchmarks: On CIFAR-100-LT (imbalance ratio of 100), tSP achieved 51.7% Top-1 accuracy, a massive jump from the 38.3% baseline. On the large-scale ImageNet-LT, it reached 52.3% accuracy, improving by over 10% compared to standard methods.
  • Large-Scale Species Recognition: On the iNaturalist 2018 dataset (8,000+ categories), the method scaled effectively, achieving 70.3% accuracy.
  • Clinical Case Study: In a study of pancreatic tumor subtypes, where some rare subtypes had as few as 8 cases, the tSP model maintained distinct boundaries for these rare classes. While other methods often "crashed" by predicting everything as the majority class, tSP achieved 69.04% accuracy and successfully identified rare subtypes.

Conclusion

The T-distributed Spherical Metric offers a novel perspective on imbalanced learning by focusing on "eigenspace real estate." By moving away from greedy, wide-margin distributions toward a more selective, high-kurtosis metric, the model ensures a fairer allocation of feature space. This approach not only sets new state-of-the-art results on standard benchmarks but also demonstrates critical viability in sensitive clinical domains where rare class detection is paramount.

Summary updated

BibTeX
@inproceedings{yang2023t,
  author = {Xiaoyu Yang and Yufei Chen and Xiaodong Yue and Shaoxun Xu and Chao Ma},
  title = {{T-distributed Spherical Feature Representation for Imbalanced Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i9.26284},
}
Figure