Skip to main content
QUICK REVIEW

[Paper Review] Restoring balance: principled under/oversampling of data for optimal classification

Emanuele Loffredo, Mauro Pastore|arXiv (Cornell University)|May 15, 2024
Statistical Methods and InferenceMathematics5 citations
TL;DR

The paper derives exact analytical generalization curves for high-dimensional linear classifiers under class imbalance, identifies optimal mixed under/oversampling strategies, and validates predictions on real and deep models.

ABSTRACT

Class imbalance in real-world data poses a common bottleneck for machine learning tasks, since achieving good generalization on under-represented examples is often challenging. Mitigation strategies, such as under or oversampling the data depending on their abundances, are routinely proposed and tested empirically, but how they should adapt to the data statistics remains poorly understood. In this work, we determine exact analytical expressions of the generalization curves in the high-dimensional regime for linear classifiers (Support Vector Machines). We also provide a sharp prediction of the effects of under/oversampling strategies depending on class imbalance, first and second moments of the data, and the metrics of performance considered. We show that mixed strategies involving under and oversampling of data lead to performance improvement. Through numerical experiments, we show the relevance of our theoretical predictions on real datasets, on deeper architectures and with sampling strategies based on unsupervised probabilistic models.

Motivation & Objective

  • Motivate and formalize the class-imbalance problem in high-dimensional supervised learning.
  • Develop exact analytical expressions for generalization performance of linear classifiers under imbalance using statistical mechanics methods.
  • Identify optimal under/oversampling strategies, including mixed approaches, to maximize performance metrics.
  • Validate theoretical predictions with experiments on real datasets and with deeper architectures and advanced sampling methods.

Proposed method

  • Model training as Empirical Risk Minimization with hinge loss under spherical regularization (soft-margin SVM).
  • Characterize data with first- and second-morder statistics (means M, shifts δ, covariance C) and assume high-dimensional limit (L→∞).
  • Apply replica method to derive saddle-point equations yielding performance metrics as functions of data statistics and imbalance ratios.
  • Derive exact asymptotic predictions for test metrics (e.g., confusion matrix, ACC, BA, AUC) via test-preactivation distributions Δ± with parameters solved from saddle points.
  • Analyze influence of imbalance on metrics and compute optimal mixing parameter for under/oversampling (mixing percentage).
  • Extend theory to deeper models via numerical experiments and explore unsupervised RBM-based sampling (LIS) and simple oversampling/undersampling strategies.

Experimental results

Research questions

  • RQ1How does class imbalance affect generalization performance of linear classifiers in the high-dimensional regime?
  • RQ2What sampling strategy (undersampling, oversampling, or mixtures) optimally mitigates imbalance for different performance metrics?
  • RQ3Do mixed under/oversampling approaches outperform pure undersampling or oversampling under realistic data statistics?
  • RQ4Do the theoretical predictions hold for deeper architectures and more sophisticated sampling methods?

Key findings

  • AUC is relatively insensitive to class imbalance, while BA is more informative and favors balanced training.
  • Best generalization performance under imbalance often requires mixed under/oversampling rather than pure undersampling or oversampling.
  • Full undersampling is sub-optimal; mixed strategies yield higher balanced accuracy (BA) across tested scenarios.
  • RBM-based Likelihood-Informed Sampling (LIS) improves performance over random sampling in both linear SVMs and MNIST-like tasks.
  • Balanced training improves deep classifier performance (e.g., ResNet-50 finetuned on binarized CIFAR-10) and yields clearer decision boundaries.
  • The theory quantitatively predicts BA curves on benchmark datasets (MNIST variants, CelebA) under reasonable covariance assumptions.

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.