Abstract
Imbalance learning is a subfield of machine learning that focuses on learning tasks in the presence of class imbalance. Nearly all existing studies refer to class imbalance as a proportion imbalance, where the proportion of training samples in each class is not balanced. The ignorance of the proportion imbalance will result in unfairness between/among classes and poor generalization capability. Previous literature has presented numerous methods for either theoretical/empirical analysis or new methods for imbalance learning. This study presents a new taxonomy of class imbalance in machine learning with a broader scope. Four other types of imbalance, namely, variance, distance, neighborhood, and quality imbalances between/among classes, which may exist in machine learning tasks, are summarized. Two different levels of imbalance including global and local are also presented. Theoretical analysis is used to illustrate the significant impact of the new imbalance types on learning fairness. Moreover, our taxonomy and theoretical conclusions are used to analyze the shortcomings of several classical methods. As an example, we propose a new logit perturbation-based imbalance learning loss when proportion, variance, and distance imbalances exist simultaneously. Several classical losses become the special case of our proposed method. Meta learning is utilized to infer the hyper-parameters related to the three types of imbalance. Experimental results on several benchmark corpora validate the effectiveness of the proposed method.
Introduction
In machine learning, "long-tailed" data distributions—where a few "head" classes dominate while many "tail" classes have sparse representation—pose a significant challenge. Standard algorithms typically favor majority classes, leading to poor generalization on the minority. Historically, research has focused almost exclusively on proportion imbalance, or the ratio of sample counts between classes.
However, this paper argues that proportion is only one facet of a multi-dimensional problem. Two classes with identical sample counts can still be imbalanced if their underlying distributions differ in spread (variance) or their proximity to other classes (distance). Ignoring these factors leads to models that are fundamentally "unfair" to certain categories, even when sample sizes appear balanced.
A New Taxonomy of Class Imbalance
The core contribution of this work is a comprehensive taxonomy that expands the definition of class imbalance. It identifies five primary types and two distinct levels of imbalance.
Types of Imbalance:
- Proportion: Disparities in sample counts.
- Variance: Differences in the "spread" or co-variance structures of classes.
- Distance: Variations in how close classes are to one another in the feature space.
- Neighborhood: Specific to graph-based learning, referring to the proportion of heterophilous neighbors.
- Quality: Discrepancies in feature noise or label reliability.
Levels of Imbalance:
- Global Imbalance: Affects the entire class across the dataset.
- Local Imbalance: Occurs within specific sub-regions of the feature space.
MetaLAD: Meta Logit Adjustment
To address these complexities, the authors propose MetaLAD (Meta Logit Adjustment). This method builds upon traditional logit adjustment—which shifts model outputs based on class frequency—by introducing perturbation terms for proportion, variance, and distance imbalances simultaneously.
Because manually tuning these parameters for every class is infeasible, MetaLAD employs meta-learning. The model is trained on the primary imbalanced dataset, while a separate set of hyper-parameters is optimized on a small, balanced "meta-set." This allows the algorithm to dynamically learn the optimal adjustment for each class's unique imbalance profile, ensuring that variance and distance are compensated for alongside sample count.
Experimental Evaluation
MetaLAD was evaluated against state-of-the-art methods on several benchmarks:
- CIFAR-10/100-LT: On CIFAR100-LT (100:1 ratio), MetaLAD achieved a top-1 error of 51.55%, significantly outperforming standard Logit Adjustment (56.11%) and meta-learning alternatives like MetaSAug.
- iNaturalist 2017/2018: On these large-scale, naturally imbalanced datasets, MetaLAD reached a top-1 error of 35.08% (iNaturalist 2017), the lowest among all compared methods.
- Balanced Data: Even on balanced CIFAR-10, MetaLAD reduced error from 3.82% to 2.56%, confirming that hidden variance and distance imbalances exist even when sample counts are equal.
Conclusion
By rethinking class imbalance beyond simple sample counts, this research provides a more robust framework for achieving fairness and accuracy in machine learning. While MetaLAD effectively addresses global proportion, variance, and distance imbalances, future work will focus on tackling the more granular challenges of local and neighborhood-level imbalances to create even more robust models.
Summary updated