Subclass-balancing Contrastive Learning for Long-tailed Recognition

Chengkai Hou, Jieyu Zhang, Hong Wang, Tianyi Zhou
2/14/2026

No official code found. Best implementation: JackHck/SBCL (18 stars, last commit 2023-10-30).

Abstract

Long-tailed recognition with imbalanced class distribution naturally emerges in practical machine learning applications. Existing methods such as data reweighing, resampling, and supervised contrastive learning enforce the class balance with a price of introducing imbalance between instances of head class and tail class, which may ignore the underlying rich semantic substructures of the former and exaggerate the biases in the latter. We overcome these drawbacks by a novel "subclass-balancing contrastive learning (SBCL)" approach that clusters each head class into multiple subclasses of similar sizes as the tail classes and enforce representations to capture the two-layer class hierarchy between the original classes and their subclasses. Since the clustering is conducted in the representation space and updated during the course of training, the subclass labels preserve the semantic substructures of head classes. Meanwhile, it does not overemphasize tail class samples, so each individual instance contribute to the representation learning equally. Hence, our method achieves both the instance- and subclass-balance, while the original class labels are also learned through contrastive learning among subclasses from different classes. We evaluate SBCL over a list of long-tailed benchmark datasets and it achieves the state-of-the-art performance. In addition, we present extensive analyses and ablation studies of SBCL to verify its advantages. Our code is available at https://github.com/JackHck/subclass-balancing-contrastive-learning.

View on arXivView PDF

Code Implementations(1)

JackHck/SBCLCommunity100%

[ICCV 2023] Subclass-balancing contrastive learning for long-tailed recognition

182PythonMay 22, 20222 years ago

Similar Papers

Cite this paper

@article{hou2026subclassbalancing,
  title  = {Subclass-balancing Contrastive Learning for Long-tailed Recognition},
  author = {Chengkai Hou and Jieyu Zhang and Hong Wang and Tianyi Zhou},
  year   = {2026},
  eprint = {2306.15925},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2306.15925},
  journal = {ICCV 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.15925.svg)](https://codeofpaper.com/paper/2306.15925)

Discussion