Skip to main content
QUICK REVIEW

[Paper Review] Handling Inter-class and Intra-class Imbalance in Class-imbalanced Learning

Zhining Liu, Pengfei Wei|arXiv (Cornell University)|Nov 24, 2021
Imbalanced Data Classification TechniquesComputer Science50 references9 citations
TL;DR

This paper proposes DuBE (Duple-Balanced Ensemble), a unified framework for handling both inter-class and intra-class imbalance in imbalanced learning. By explicitly modeling sample difficulty through error-based intra-class balancing and integrating it with inter-class resampling/reweighting, DuBE improves model robustness and performance across diverse data complexities, outperforming existing methods on benchmark datasets with significant gains in minority-class F1 scores.

ABSTRACT

Class-imbalance is a common problem in machine learning practice. Typical Imbalanced Learning (IL) methods balance the data via intuitive class-wise resampling or reweighting. However, previous studies suggest that beyond class-imbalance, intrinsic data difficulty factors like overlapping, noise, and small disjuncts also play critical roles. To handle them, many solutions have been proposed (e.g., noise removal, borderline sampling, hard example mining) but are still confined to a specific factor and cannot generalize to broader scenarios, which raises an interesting question: how to handle both class-agnostic difficulties and the class-imbalance in a unified way? To answer this, we consider both class-imbalance and its orthogonal: intra-class imbalance, i.e., the imbalanced distribution over easy and hard samples. Such distribution naturally reflects the complex influence of class-agnostic intrinsic data difficulties thus providing a new unified view for identifying and handling these factors during learning. From this perspective, we discuss the pros and cons of existing IL solutions and further propose new balancing techniques for more robust and efficient IL. Finally, we wrap up all solutions into a generic ensemble IL framework, namely DuBE (Duple-Balanced Ensemble). It features explicit and efficient inter-\&intra-class balancing as well as easy extension with standardized APIs. Extensive experiments validate the effectiveness of DuBE. Code, examples, and documentation are available at https://github.com/AnonAuthorAI/duplebalance and https://duplebalance.readthedocs.io.

Motivation & Objective

  • To address the limitations of existing imbalanced learning methods that focus only on inter-class imbalance and ignore intra-class difficulty variations.
  • To identify and unify orthogonal data complexity factors—such as noise, overlap, and small disjuncts—under the concept of intra-class imbalance.
  • To develop a generic, extensible ensemble framework that explicitly balances both inter-class and intra-class imbalances for improved robustness and generalization.
  • To provide a systematic evaluation of existing inter- and intra-class balancing techniques and their trade-offs in real-world scenarios.

Proposed method

  • Introduces intra-class imbalance as a higher-level indicator of data complexity, reflecting the distribution of easy and hard samples within each class.
  • Proposes a dual-balancing mechanism: explicit inter-class resampling/reweighting and error-driven intra-class hard example mining based on model prediction uncertainty.
  • Designs DuBE as a generic iterative ensemble framework that combines multiple base classifiers with adaptive sampling and loss reweighting.
  • Employs a standardized API for easy integration of various balancing strategies, enabling plug-and-play extension of inter- and intra-class components.
  • Uses prediction error as a proxy for sample difficulty, dynamically identifying and emphasizing hard examples during training.
  • Applies iterative training with error-based reweighting to progressively refine model focus on difficult samples while maintaining class-level balance.

Experimental results

Research questions

  • RQ1How do intrinsic data difficulty factors like noise, overlap, and small disjuncts contribute to model bias beyond class cardinality imbalance?
  • RQ2Can intra-class imbalance—defined as the uneven distribution of easy and hard samples within a class—serve as a unifying indicator for diverse data complexity factors?
  • RQ3What are the limitations of existing inter-class and intra-class balancing methods when applied in isolation or in combination?
  • RQ4Can a unified framework explicitly balancing both inter-class and intra-class imbalances achieve better generalization and robustness?

Key findings

  • DuBE achieves state-of-the-art performance on multiple imbalanced benchmark datasets, with significant improvements in minority-class F1 scores over baseline methods.
  • Intra-class imbalance, measured via prediction error distribution, effectively captures the combined impact of data complexity factors such as noise, overlap, and small disjuncts.
  • Hard example mining alone degrades performance on noisy datasets, confirming the need for adaptive, error-aware balancing strategies.
  • The proposed framework enables easy extension and plug-in of various balancing components through a standardized API, enhancing reproducibility and usability.
  • Empirical results show that joint inter- and intra-class balancing leads to more stable and accurate models, especially in real-world scenarios with complex data distributions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.