On the Effectiveness of Out-of-Distribution Data in Self-Supervised Long-Tail Learning

Jianhong Bai, Zuozhu Liu, Hualiang Wang, Jinxiang Hao, Yang Feng +2 more
2/12/2026

No official code found. Best implementation: JianhongBai/COLT (15 stars, MIT, last commit 2023-07-15).

Abstract

Though Self-supervised learning (SSL) has been widely studied as a promising technique for representation learning, it doesn't generalize well on long-tailed datasets due to the majority classes dominating the feature space. Recent work shows that the long-tailed learning performance could be boosted by sampling extra in-domain (ID) data for self-supervised training, however, large-scale ID data which can rebalance the minority classes are expensive to collect. In this paper, we propose an alternative but easy-to-use and effective solution, Contrastive with Out-of-distribution (OOD) data for Long-Tail learning (COLT), which can effectively exploit OOD data to dynamically re-balance the feature space. We empirically identify the counter-intuitive usefulness of OOD samples in SSL long-tailed learning and principally design a novel SSL method. Concretely, we first localize the `head' and `tail' samples by assigning a tailness score to each OOD sample based on its neighborhoods in the feature space. Then, we propose an online OOD sampling strategy to dynamically re-balance the feature space. Finally, we enforce the model to be capable of distinguishing ID and OOD samples by a distribution-level supervised contrastive loss. Extensive experiments are conducted on various datasets and several state-of-the-art SSL frameworks to verify the effectiveness of the proposed method. The results show that our method significantly improves the performance of SSL on long-tailed datasets by a large margin, and even outperforms previous work which uses external ID data. Our code is available at https://github.com/JianhongBai/COLT.

View on arXivView PDF

Code Implementations(1)

JianhongBai/COLTCommunity100%
MIT

Official implementation of "On the Effectiveness of Out-of-Distribution Data in Self-Supervised Long-Tail Learning" (ICLR 2023)

153Shell, PythonJan 18, 20233 years agoMIT

Similar Papers

Cite this paper

@article{bai2026effectiveness,
  title  = {On the Effectiveness of Out-of-Distribution Data in Self-Supervised Long-Tail Learning},
  author = {Jianhong Bai and Zuozhu Liu and Hualiang Wang and Jinxiang Hao and Yang Feng and Huanpeng Chu and Haoji Hu},
  year   = {2026},
  eprint = {2306.04934},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2306.04934},
  journal = {ICLR 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.04934.svg)](https://codeofpaper.com/paper/2306.04934)

Discussion