Learning From Long-Tailed Data With Noisy Labels

Shyamgopal Karthik, Jérôme Revaud, Chidlovskii BorisOpenReview 2021 · OpenReview

TL;DR

This paper tackles the common real-world problem of training deep learning models on datasets that are both class-imbalanced (long-tailed) and contain noisy labels. They propose a two-stage approach: first, self-supervised pre-training to learn robust representations, followed by fine-tuning with specialized loss functions that handle imbalance and noise. Surprisingly, existing self-supervised methods are found to be highly effective even with severe class imbalance, leading to state-of-the-art performance when combined with their proposed fine-tuning strategy.

What Problem Does This Paper Address?

Modern deep learning models often assume that training data is perfectly balanced across all classes and that all labels are accurate. However, in practice, many large-scale datasets suffer from two major issues: class imbalance (where a few classes have many samples, and many classes have very few – the "long tail") and noisy labels (where a significant portion of the annotations are incorrect). Existing methods tend to address these problems in isolation, making simplifying assumptions that are violated when both issues are present simultaneously. This leads to underperformance. This paper aims to bridge this gap by developing a unified approach that can effectively handle both class imbalance and label noise.

Methods

The proposed solution is a two-stage learning framework:

  1. Task-Agnostic Self-Supervised Pre-training: The model (an encoder network, specifically a ResNet18 in their experiments) is first trained using self-supervised learning (SSL) techniques. Crucially, this stage discards the noisy instance labels. The goal is to learn general-purpose visual representations that are invariant to image augmentations. They experiment with several popular SSL methods like SimCLR, BYOL, SimSiam, and Barlow Twins.
  2. Task-Specific Fine-tuning: After pre-training, the learned encoder is frozen, and a projection head is trained using the noisy and imbalanced labels. To handle these challenges, they combine two loss functions:
  3. Logit Adjustment (LA) loss [33]: A modification of the standard Cross-Entropy loss that accounts for class imbalance by adjusting the logits based on the class distribution.
  4. SuperLoss [7]: A loss function designed for curriculum learning that downweights samples with high loss values, making it robust to noisy labels by preventing memorization.

This combination, referred to as LA+SL, is used for fine-tuning.

Datasets

The authors evaluate their method on:

  • CIFAR-10 and CIFAR-100: Standard image classification datasets. They create imbalanced versions by down-sampling classes according to an exponential profile (with imbalance ratios $\gamma=50, 100$ for CIFAR-10 and $\gamma=5, 10$ for CIFAR-100) and introduce synthetic label noise (up to 90%).
  • Clothing1M: A large-scale, real-world dataset with inherent label noise (estimated 38.5% errors) and class imbalance (imbalance ratios $\gamma=50, 100$).

Key Insights and Ideas

  • SSL Robustness to Imbalance: Perhaps the most surprising finding is that existing self-supervised learning methods, which were not designed for imbalanced data, are remarkably robust to severe class imbalance. This suggests that SSL is a powerful tool for learning generalizable representations even when data distribution is skewed.
  • Two-Stage Approach Effectiveness: Decoupling representation learning (via SSL) from classifier training (with specialized losses) is highly effective. The SSL pre-training stage provides a strong foundation that makes the subsequent fine-tuning more resilient to noise and imbalance.
  • LA+SL Synergy: The combination of Logit Adjustment and SuperLoss during fine-tuning proves to be a potent strategy for jointly mitigating class imbalance and label noise, consistently outperforming individual losses or standard Cross-Entropy.
  • Single-Stage vs. Two-Stage: While single-stage training (training from scratch) can perform comparably to two-stage SSL training in clean, balanced settings, the two-stage approach dramatically outperforms single-stage methods as soon as noise or imbalance is introduced.

Key Results

  • State-of-the-Art Performance: The proposed two-stage approach (specifically using BYOL or SimSiam for pre-training and LA+SL for fine-tuning) achieves state-of-the-art results on CIFAR-10 and CIFAR-100 under severe noise and imbalance conditions. For instance, on CIFAR-100 with 90% noise and $\gamma=10$, they achieve 53.0% accuracy, a significant improvement over prior methods.
  • Clothing1M Success: On the challenging Clothing1M dataset, their SimSiam-based method, trained from scratch without complex tricks like ensembling, achieves competitive results and significantly outperforms specialized methods like DivideMix and ELR when imbalance is introduced.
  • Accuracy Gains: The LA+SL fine-tuning strategy alone can provide accuracy gains of over 10% compared to standard Cross-Entropy fine-tuning.
  • T-SNE Visualization: t-SNE plots show that the learned representations from SSL remain well-clustered and class-separable even under severe imbalance, supporting the robustness of the pre-training stage.

Limitations and Future Work

  • Limitations: The paper notes that while their self-supervised models perform well, in moderate imbalance and noise scenarios, fully-supervised specialized methods like DivideMix and ELR can still achieve slightly higher performance. This suggests that for less extreme cases, specialized supervised methods might still have an edge.
  • Future Work: The authors express hope that their work serves as a strong baseline for future exploration in this area. The success of SSL in handling imbalance opens avenues for further research into SSL architectures and pre-training strategies specifically tailored for long-tailed and noisy data. The paper also implicitly suggests exploring other combinations of robust loss functions for the fine-tuning stage.

Summary updated

Abstract

Class imbalance and noisy labels are the norm rather than the exception in many large-scale classification datasets. Nevertheless, most works in machine learning typically assume balanced and clean data. There have been some recent attempts to tackle, on one side, the problem of learning from noisy labels and, on the other side, learning from long-tailed data. Each group of methods make simplifying assumptions about the other. Due to this separation, the proposed solutions often underperform when both assumptions are violated. In this work, we present a simple two-stage approach based on recent advances in self-supervised learning to treat both challenges simultaneously. It consists of, first, task-agnostic self-supervised pre-training, followed by task-specific fine-tuning using an appropriate loss. Most significantly, we find that self-supervised learning approaches are effectively able to cope with severe class imbalance. In addition, the resulting learned representations are also remarkably robust to label noise, when fine-tuned with an imbalance- and noise-resistant loss function. We validate our claims with experiments on CIFAR-10 and CIFAR-100 augmented with synthetic imbalance and noise, as well as the large-scale inherently noisy Clothing-1M dataset.
BibTeX
@misc{karthik2021learning,
  author = {Shyamgopal Karthik and Jérôme Revaud and Chidlovskii Boris},
  title = {{Learning From Long-Tailed Data With Noisy Labels}},
  year = {2021},
  eprint = {2108.11096},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.11096},
  howpublished = {OpenReview},
}
Figure