The class imbalance problem in deep learning

Kushankur Ghosh, Colin Bellinger, Roberto Corizzo, Paula Branco, Bartosz Krawczyk, Nathalie JapkowiczMachine Learning 2024 · DOI

Abstract

Deep learning is often perceived as a robust solution to classical machine learning challenges. However, research indicates that class imbalance remains a significant hurdle. This paper investigates how deep architectures, specifically Multi-Layer Perceptrons (MLPs) and Convolutional Neural Networks (CNNs), respond to data skew, concept complexity, and data scarcity. The findings suggest that increased network depth and standard regularization techniques offer limited relief against the "deadly trio" of imbalance factors.

Introduction

In traditional machine learning, the "class imbalance problem"—where one class significantly outnumbers another—is a well-documented issue. Its impact is often compounded by concept complexity (the difficulty of the decision boundary) and data scarcity (limited total samples). While deep learning (DL) has revolutionized many fields, it remains unclear whether its inherent properties, such as depth and advanced regularization, naturally mitigate these issues. This study systematically explores whether "going deeper" provides robustness or merely scales existing problems.

Methodology

The researchers employed a dual approach: a comprehensive literature survey and a series of controlled experiments. The literature survey highlights the diverse range of architectures and datasets previously used to study this phenomenon, as shown in the following summary of existing research.

Summary of literature survey on class imbalance in deep learning.

Experimental Framework

The experimental framework focused on the "imbalance/complexity/scarcity triangle." Key variables included:

  • Architectures: MLPs for tabular/text data and CNNs for image data.
  • Network Depth: Models varied from 1 to 5 hidden or convolutional layers.
  • Regularization: Techniques such as Dropout, "Reduce on Plateau" learning rates, and Early Stopping were evaluated.
  • Evaluation Metrics: The study prioritized G-Mean (the geometric mean of class-specific accuracies) to avoid the misleading nature of standard accuracy in skewed datasets.

Experimental Setup and Datasets

To isolate specific variables, the study utilized both synthetic and real-world benchmarks:

  • Synthetic Domains: A 1D "Backbone" domain for controlling sub-concept complexity and a "Shapes" domain (polygons) where complexity is defined by visual similarity.
  • Real-World Domains: Text datasets (20Newsgroups, Job Classification) and image datasets (Fashion-MNIST, CIFAR-10). T-SNE projections were used to rank the complexity of these real-world sets.

Key Findings

The Impact of Depth

For MLPs, increasing depth provides marginal benefits in complex, imbalanced scenarios, but performance gains plateau quickly. In contrast, deeper CNNs often exhibited instability and performance degradation when faced with high imbalance.

CNN Resilience and Data Hunger

While CNNs generally handle imbalance better than MLPs, they are highly sensitive to data scarcity. A small total dataset size can lead to poor performance even if the classes are balanced.

Regularization Limitations

Standard deep learning regularization techniques, such as Dropout, showed negligible impact on robustness to class imbalance. While they prevent general overfitting, they do not address the fundamental issue of gradient dominance by the majority class.

Discussion and Results

In the synthetic "Backbone" domain, G-Mean scores plummeted as imbalance increased. Shallow MLPs often failed completely (G-Mean of 0) at high imbalance levels, whereas deeper models maintained some predictive capability. In image tasks, severe undersampling of the minority class caused high variance in results; deeper CNNs frequently failed to converge because majority class gradients dominated weight updates.

One effective strategy identified in the literature is post-processing thresholding. Adjusting the decision threshold based on prior class probabilities remains a computationally efficient and effective method for improving minority class recognition.

Conclusion and Future Work

The "deadly trio" of high imbalance, high complexity, and low sample size remains a critical challenge for deep learning. Future research should focus on:

  • Oversampling for Non-Image Data: Developing robust synthetic data generation (like GANs) for tabular and text data.
  • Explainability (XAI): Investigating how imbalance affects feature learning and model interpretability.
  • Mathematical Foundations: Exploring the relationship between class imbalance and the vanishing gradient problem.

Summary updated

BibTeX
@article{ghosh2024class,
  author = {Kushankur Ghosh and Colin Bellinger and Roberto Corizzo and Paula Branco and Bartosz Krawczyk and Nathalie Japkowicz},
  title = {{The class imbalance problem in deep learning}},
  journal = {Machine Learning},
  year = {2024},
  doi = {10.1007/s10994-022-06268-8},
}
Figure