Dynamic Curriculum Learning for Imbalanced Data Classification

Yiru Wang, Weihao Gan, Jie Yang, Wei Wu, Junjie YanICCV 2019

Introduction

In real-world computer vision, particularly human attribute analysis, data often follows a "long-tailed" distribution. For example, in a dataset of facial images, the "Not Bald" class significantly outnumbers the "Bald" class. Standard training objectives often fail in these scenarios, as models tend to ignore minority classes to minimize overall error. Researchers at SenseTime have proposed Dynamic Curriculum Learning (DCL) to address this by adaptively scheduling data sampling and loss functions throughout the training process.

The DCL Framework

DCL moves away from static balancing techniques like oversampling or cost-sensitive weighting. Instead, it employs a two-level curriculum that evolves over time:

  1. Sampling Scheduler: Training begins with the natural, imbalanced distribution. This allows the model to first learn stable, general-purpose features from the abundant majority data. As training progresses, the scheduler gradually shifts toward a balanced distribution to refine the model's understanding of minority classes.
  2. Loss Scheduler: The framework transitions from a focus on representation learning to classification. Early stages prioritize metric learning to shape the feature space, while later stages focus on classification loss to fine-tune decision boundaries.
Figure 1: Various scheduling functions (exponential, linear, cosine, and composite) used to transition sampling and loss weights during training.

Technical Innovations: DSL and TEA

The DCL framework is powered by two specific loss components:

  • Dynamic Selective Learning (DSL): A classification loss that dynamically re-weights samples according to the current sampling schedule.
  • Metric Learning with Easy Anchors (TEA): Traditional triplet losses often use "hard" anchors, which can be unstable in imbalanced settings due to noise. TEA instead uses "easy anchors" — high-confidence minority samples — to pull other positive samples closer and push negative samples away, creating a more robust feature space.

Experimental Results

The authors evaluated DCL on major benchmarks including CelebA and the RAP pedestrian dataset. On CelebA, which contains 40 attributes with imbalance ratios up to 1:48, DCL achieved a mean Accuracy (mA) of 89.05%, surpassing previous state-of-the-art methods like CLMLE and CRL.

Figure 6: Detailed performance comparison on the CelebA dataset. DCL (bottom row) achieves the highest average accuracy across 40 diverse facial attributes.

On the RAP dataset, where imbalance ratios can reach an extreme 1:1800, DCL showed even more dramatic improvements, reaching 83.7% mA — a 5% absolute jump over previous best results. Notably, for the most imbalanced attributes (ratio > 1:50), DCL improved accuracy by 17.5% over a standard ResNet-50 baseline.

Conclusion

Dynamic Curriculum Learning demonstrates that "how" a model learns is just as important as "what" it learns. By starting with the natural data distribution and gradually focusing on minority nuances through intelligent scheduling and stable metric learning, DCL provides a powerful framework for tackling extreme class imbalance in computer vision.

Summary updated

BibTeX
@inproceedings{wang2019dynamic,
  author = {Yiru Wang and Weihao Gan and Jie Yang and Wei Wu and Junjie Yan},
  title = {{Dynamic Curriculum Learning for Imbalanced Data Classification}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00512},
}
Figure