Class-Balanced Loss Based on Effective Number of Samples

By Yin Cui, Menglin Jia, Tsung-Yi Lin, Yang Song, Serge J. Belongie. 2019

3,183 citations recorded by the source corpus.

With the rapid increase of large-scale, real-world datasets, it becomes critical to address the problem of long-tailed data distribution (i.e., a few classes account for most of the data, while most classes are under-represented). Existing solutions typically adopt class re-balancing strategies such as re-sampling and re-weighting based on the number of observations for each class. In this work, we argue that as the number of samples increases, the additional benefit of a newly added data point will diminish. We introduce a novel theoretical framework to measure data overlap by associating with each sample a small neighboring region rather than a single point. The effective number of samples is defined as the volume of samples and can be calculated by a simple formula $(1-\beta^{n})/(1-\beta)$, where $n$ is the number of samples and $\beta \in [0,1)$ is a hyperparameter. We design a re-weighting scheme that uses the effective number of samples for each class to re-balance the loss, thereby yielding a class-balanced loss. Comprehensive experiments are conducted on artificially induced long-tailed CIFAR datasets and large-scale datasets including ImageNet and iNaturalist. Our results show that when trained with the proposed class-balanced loss, the network is able to achieve significant performance gains on long-tailed datasets.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Radiology, Nuclear Medicine and Imaging, Optimization & Training

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Quoc V. Le
  2. Jianfeng Gao
  3. Mohit Bansal
  4. Percy Liang
  5. Jiashi Feng
  6. Dacheng Tao
  7. Trevor Darrell
  8. Graham Neubig

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Ming-Hsuan Yang
  3. Dacheng Tao
  4. Xiaogang Wang
  5. Trevor Darrell
  6. Jitendra Malik
  7. Bernt Schiele
  8. Alan L. Yuille

In Radiology, Nuclear Medicine and Imaging

  1. Han-Jia Ye
  2. De-chuan Zhan
  3. Da-Wei Zhou
  4. Hexiang Hu
  5. Fei Sha
  6. Jiashi Feng
  7. Ziwei Liu
  8. Ekin Dogus Cubuk

In Optimization & Training

  1. Jiashi Feng
  2. Quoc V. Le
  3. Alan L. Yuille
  4. Ekin Dogus Cubuk
  5. Percy Liang
  6. Jinwoo Shin
  7. Barret Zoph
  8. Sung Ju Hwang

Citations in the corpus