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

Jianhong Bai, Zuozhu Liu, Hualiang Wang, Jin Hao, Yang Feng, Huanpeng Chu, Haoji Hu · DOI

TL;DR

This paper introduces COLT, a novel self-supervised learning (SSL) framework that leverages readily available out-of-distribution (OOD) data to effectively address the challenges of long-tailed datasets. By dynamically re-balancing feature spaces and improving minority class representation, COLT significantly boosts SSL performance on imbalanced data, even outperforming methods that rely on expensive in-domain data.

What Problem Does This Paper Address?

Self-supervised learning (SSL) has shown great promise for learning powerful visual representations without labeled data. However, a significant challenge arises when applying SSL to real-world datasets that exhibit a "long-tail" distribution, where a few classes (head classes) have abundant data, while many others (tail classes) have very little. This imbalance causes SSL models to become biased towards the majority classes, leading to poor performance on minority classes. Existing solutions often involve collecting more in-domain (ID) data to rebalance the classes, but this is costly and often impractical. This paper tackles the problem of improving SSL on long-tailed datasets by exploring a more accessible alternative: utilizing readily available out-of-distribution (OOD) data.

Methods

The proposed method, COLT (Contrastive with Out-of-distribution data for Long-Tail learning), introduces several key innovations:

  • Unsupervised Tailness Score: To identify tail samples without labels, COLT assigns a "tailness score" to each ID sample based on the sparsity of its neighborhood in the learned feature space. This score helps distinguish between head and tail classes.
  • Online OOD Sampling Strategy: COLT dynamically samples OOD data to rebalance the feature space. It first clusters ID data and then uses the tailness scores to determine how many OOD samples should be sampled to augment each cluster, prioritizing tail classes. This sampling is done online and periodically to avoid overfitting to OOD data.
  • Distribution-Level Supervised Contrastive Loss: To make the model aware of the different data domains, an additional supervised contrastive loss is introduced. This loss encourages the model to distinguish between ID and OOD samples, further refining the learned representations.

COLT is designed to be a plug-in module that can be integrated with existing SSL frameworks like SimCLR.

Datasets

The authors evaluate COLT on several long-tailed datasets and their corresponding OOD counterparts:

  • CIFAR-10-LT and CIFAR-100-LT: Long-tailed subsets of CIFAR-10 and CIFAR-100, respectively, with an imbalance ratio of 100.
  • OOD Datasets: 300K Random Images (used in previous work), STL-10, Gaussian Noise.
  • ImageNet-100-LT: A long-tailed subset of ImageNet-100.
  • OOD Datasets: ImageNet-R.
  • Places-LT: A long-tailed subset of Places.
  • OOD Datasets: Places-Extra69.
  • Open Images: A large-scale dataset used as an OOD source.

Key Insights and Ideas

  • Counter-intuitive Usefulness of OOD Data: The paper demonstrates that OOD data, often considered noise or irrelevant, can be surprisingly effective in improving performance on long-tailed ID datasets when used strategically.
  • Dynamic Re-balancing is Key: Simply adding OOD data is not enough. COLT's success hinges on its dynamic sampling strategy, which intelligently selects OOD samples to specifically address the under-representation of tail classes.
  • Tailness Score as a Proxy: The unsupervised "tailness score" effectively identifies minority classes in the feature space, enabling targeted OOD data augmentation.
  • Distribution Awareness Matters: Explicitly training the model to distinguish between ID and OOD data (via the distribution-level loss) further enhances representation quality and class separability.

Key Results

  • Significant Performance Gains: COLT consistently improves accuracy and balancedness on various long-tailed datasets. For instance, it achieves about a 10% improvement on CIFAR-10-LT and a 5% gain on ImageNet-100-LT compared to baselines like SimCLR.
  • Improved Minority Class Performance: The gains are particularly pronounced for minority classes (Median & Few), with improvements of up to 12% on CIFAR-100-LT.
  • More Balanced Feature Space: COLT significantly reduces the standard deviation of accuracy across Many, Median, and Few classes, indicating a more balanced feature space.
  • Outperforms ID-based Methods: COLT achieves comparable or better performance than methods that use external in-domain tail samples, demonstrating its cost-effectiveness.
  • Versatility: COLT effectively boosts the performance of other state-of-the-art SSL methods like SDCLR and BCL, highlighting its robustness.

Limitations and Future Work

  • Theoretical Understanding: The authors acknowledge that more theoretical analysis is needed to fully understand why OOD data is so effective for long-tail SSL.
  • OOD Dataset Selection: Identifying the "best" OOD dataset for a given long-tail ID dataset remains an open question for future exploration.
  • Computational Cost: While COLT is more efficient than methods requiring extensive ID data collection and re-training, it still adds some computational overhead due to the sampling and additional loss. The paper suggests that the sampling process itself is less time-consuming than re-training.

Summary updated

BibTeX
@inproceedings{bai2023effectiveness,
  author = {Jianhong Bai and Zuozhu Liu and Hualiang Wang and Jin Hao and Yang Feng and Huanpeng Chu and Haoji Hu},
  title = {{On the Effectiveness of Out-of-Distribution Data in Self-Supervised Long-Tail Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=v8JIQdiN9Sh},
}
Figure