Learning Imbalanced Datasets with Label-Distribution-Aware Margin Loss

Kaidi Cao, Colin Wei, Adrien Gaidon, Nikos Arechiga, Tengyu Ma
6/18/2019
cs.LGcs.CVstat.ML

Official code: kaidic/LDAM-DRW (701 stars, MIT, last commit 2021-12-25).

Abstract

Deep learning algorithms can fare poorly when the training dataset suffers from heavy class-imbalance but the testing criterion requires good generalization on less frequent classes. We design two novel methods to improve performance in such scenarios. First, we propose a theoretically-principled label-distribution-aware margin (LDAM) loss motivated by minimizing a margin-based generalization bound. This loss replaces the standard cross-entropy objective during training and can be applied with prior strategies for training with class-imbalance such as re-weighting or re-sampling. Second, we propose a simple, yet effective, training schedule that defers re-weighting until after the initial stage, allowing the model to learn an initial representation while avoiding some of the complications associated with re-weighting or re-sampling. We test our methods on several benchmark vision tasks including the real-world imbalanced dataset iNaturalist 2018. Our experiments show that either of these methods alone can already improve over existing techniques and their combination achieves even better performance gains.

View on arXivView PDF

Code Implementations(1)

kaidic/LDAM-DRWOfficial100%
MIT

[NeurIPS 2019] Learning Imbalanced Datasets with Label-Distribution-Aware Margin Loss

701113PythonJun 16, 20194 years agoMIT

Similar Papers

Cite this paper

@article{cao2019learning,
  title  = {Learning Imbalanced Datasets with Label-Distribution-Aware Margin Loss},
  author = {Kaidi Cao and Colin Wei and Adrien Gaidon and Nikos Arechiga and Tengyu Ma},
  year   = {2019},
  eprint = {1906.07413},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1906.07413}
}

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/1906.07413.svg)](https://codeofpaper.com/paper/1906.07413)

Discussion