Comparing Importance Sampling Based Methods for Mitigating the Effect of Class Imbalance

Indu Panigrahi, Richard Zhu
2/28/2024
cs.CV

Official code: RichardZhu123/514-class-imbalance (3 stars, last commit 2024-02-29).

Abstract

Most state-of-the-art computer vision models heavily depend on data. However, many datasets exhibit extreme class imbalance which has been shown to negatively impact model performance. Among the training-time and data-generation solutions that have been explored, one subset that leverages existing data is importance sampling. A good deal of this work focuses primarily on the CIFAR-10 and CIFAR-100 datasets which fail to be representative of the scale, composition, and complexity of current state-of-the-art datasets. In this work, we explore and compare three techniques that derive from importance sampling: loss reweighting, undersampling, and oversampling. Specifically, we compare the effect of these techniques on the performance of two encoders on an impactful satellite imagery dataset, Planet's Amazon Rainforest dataset, in preparation for another work. Furthermore, we perform supplemental experimentation on a scene classification dataset, ADE20K, to test on a contrasting domain and clarify our results. Across both types of encoders, we find that up-weighting the loss for and undersampling has a negigible effect on the performance on underrepresented classes. Additionally, our results suggest oversampling generally improves performance for the same underrepresented classes. Interestingly, our findings also indicate that there may exist some redundancy in data in the Planet dataset. Our work aims to provide a foundation for further work on the Planet dataset and similar domain-specific datasets. We open-source our code at https://github.com/RichardZhu123/514-class-imbalance for future work on other satellite imagery datasets as well.

View on arXivView PDF

Code Implementations(1)

Comparing Importance Sampling Based Methods for Mitigating the Effect of Class Imbalance

30Python, Jupyter NotebookNov 27, 20232 years ago

Similar Papers

Cite this paper

@article{panigrahi2024comparing,
  title  = {Comparing Importance Sampling Based Methods for Mitigating the Effect of Class Imbalance},
  author = {Indu Panigrahi and Richard Zhu},
  year   = {2024},
  eprint = {2402.18742},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.18742v1}
}

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

Discussion