Generalized Oversampling for Learning from Imbalanced datasets and Associated Theory: Application in Regression

Samuel Stocksieker, Denys Pommeret, Arthur Charpentier

TL;DR

Learning from continuous data with rare or extreme values—imbalanced regression—is notoriously tricky because existing tools often force continuous targets into artificial binary categories. GOLIATH provides a unified mathematical framework that treats both perturbation (e.g., Gaussian noise) and interpolation (e.g., SMOTE) as forms of smoothed bootstrap / kernel density estimation. By combining support-aware kernels with a novel Random Forest-guided wild bootstrap to generate continuous target labels, GOLIATH outperforms standard imbalanced regression baselines without binarizing the data.

What Problem Does This Paper Address?

In classification, dealing with imbalanced datasets is routine (e.g., oversampling the minority class using SMOTE). But in regression, the target variable $Y$ is continuous and infinite. This introduces two major roadblocks:

  1. Defining "rarity": There are no clean class labels. Historically, practitioners use an arbitrary "relevance function" to threshold continuous values into "normal" vs. "extreme" bins, which discards crucial continuous information.
  2. Generating synthetic labels ($Y^*$): When augmenting synthetic feature vectors $X^*$, generating an appropriate continuous target label $Y^*$ that preserves complex input-output relationships is difficult.

Methods

GOLIATH (Generalized Oversampling for Learning from Imbalanced datAsets and Associated THeory) addresses both covariates and targets in a two-step framework:

  • Unified Covariate Generation as Smoothed Bootstrap: GOLIATH formulates synthetic covariate generation as a weighted kernel density estimate: $$g_{X^*}(x^* \mid \tilde{x}) = \sum_{i \in I} \omega_i K_i(x^*, \tilde{x})$$ The authors show that Gaussian Noise, ROSE, and standard SMOTE are simply special cases of this equation.

  • New Generator Families:

  • Nearest Neighbors Smoothed Bootstrap (NNSB): Generalizes SMOTE’s uniform interpolation between points to arbitrary Beta distributions.
  • Extended NNSB (eNNSB): Adds a Gaussian perturbation around the Beta-interpolated segment, letting synthetic points explore the feature space around neighbors rather than being trapped strictly on 1D line segments.
  • Non-Classical Kernels: Uses distribution-tailored kernels (e.g., Binomial for discrete features; Beta, Gamma, or truncated Gaussian for bounded/asymmetric variables).
  • Generating Continuous Target Values ($Y^*$): Instead of thresholding into bins, GOLIATH weights seed observations $\omega_i \propto 1 / \hat{f}_Y(y_i)$ using the inverse of a continuous kernel density estimate. It then generates synthetic targets $Y^*$ using a wild bootstrap guided by a Random Forest: $$y_s^* := y_s + |\epsilon_k| v_s \times \text{sign}(\hat{y}_s - \hat{y}_s^*)$$ where $\hat{y}_s$ and $\hat{y}_s^*$ are Random Forest predictions on the seed and synthetic feature vectors, and $\epsilon_k$ is a sampled residual.

  • "Mix" Sampling Mode: To prevent overfitting from duplicating points while minimizing bias, GOLIATH retains the real observation on its first draw and generates a synthetic counterpart for subsequent draws.

Datasets

The authors evaluated GOLIATH across multiple tabular regression benchmarks:

  • SML2010 (UCI Repository): 4,137 instances and 24 attributes, predicting indoor room temperature (used as an illustrative testbed).
  • Established Imbalanced Regression Benchmarks: Five public real-world datasets from Branco et al. (2019): NO2, cpuSm, Boston, Bank8FM, and Abalone.

Key Insights and Ideas

  • SMOTE and Noise Perturbation Share the Same DNA: Rather than treating SMOTE and Gaussian perturbation as fundamentally different heuristics, GOLIATH demonstrates they are both instances of smoothed bootstrap drawing from specific kernel mixtures.
  • No Need to Discretize: Weighting observations by the inverse estimated density ($1/\hat{f}_Y$) naturally pushes the target distribution toward uniformity without setting arbitrary thresholds or losing continuous detail.
  • Bridging Interpolation and Perturbation: Standard SMOTE cannot leave the straight line connecting neighbors, while standard Gaussian noise ignores local geometry. The hybrid Extended NNSB bridges this gap by orienting Gaussian perturbations toward the neighborhood manifold.

Key Results

Evaluations used 10-fold train-test splits tested across an automated machine learning suite (H2O AutoML with 10 algorithms, including Gradient Boosting, Random Forests, and Neural Networks):

  • SML2010 Benchmark: GOLIATH variants produced lower Root Mean Squared Error (RMSE) than the imbalanced baseline and all external oversamplers (UBL-SMOTE, UBL-GN, UBL-SMOGN, UBL-WERCS, IRL-ADASYN).
  • Multi-Dataset Benchmark: Across the 5 benchmark datasets, GOLIATH variants (especially G-eNNSB and G-NCSB) consistently achieved top ranks and substantial RMSE reductions compared to imbalanced training:
  • Bank8FM: -29% RMSE gain (median rank 1.5).
  • Abalone: -21% RMSE gain (median rank 1.0).
  • NO2: -15% RMSE gain (median rank 2.0).

Limitations and Future Work

  • Independent Feature Kernels: In its perturbation form, GOLIATH currently uses a diagonal bandwidth matrix, assuming conditional independence across features and missing complex cross-feature correlations.
  • Hyperparameter Selection: Parameters such as $k$ (nearest neighbors) and kernel bandwidths are currently fixed globally rather than adapted dynamically to local neighborhood densities.
  • Computational Cost: Balloon kernels ($k$-NN variable bandwidth estimators) proved too computationally expensive for practical use.
  • Scope: The approach is tailored to tabular data; adapting it to deep generative setups or image domains (deep imbalanced regression) remains an open challenge.

Summary updated

BibTeX
@article{stocksieker2024generalized,
  author = {Samuel Stocksieker and Denys Pommeret and Arthur Charpentier},
  title = {{Generalized Oversampling for Learning from Imbalanced datasets and Associated Theory: Application in Regression}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=DLqPhQxgYu},
}
Figure