Local Distribution-Based Adaptive Oversampling for Imbalanced Regression

Shayan Alahyari, Mike Domaratzki

Abstract

Imbalanced regression occurs when continuous target variables have skewed distributions, creating sparse regions that are difficult for machine learning models to predict accurately. This issue particularly affects neural networks, which often struggle with imbalanced data. While class imbalance in classification has been extensively studied, imbalanced regression remains relatively unexplored. Existing approaches often rely on arbitrary thresholds to categorize samples as rare or frequent, ignoring the continuous nature of target distributions. To address these limitations, we propose LDAO (Local Distribution-based Adaptive Oversampling), a novel data-level approach that avoids categorizing individual samples. Instead, LDAO learns the global distribution structure by decomposing the dataset into a mixture of local distributions, each preserving its statistical characteristics. LDAO then models and samples from each local distribution independently before merging them into a balanced training set. In extensive evaluations on 45 imbalanced datasets, LDAO outperforms state-of-the-art oversampling methods on both frequent and rare target values.

Introduction

In machine learning, "imbalance" is a well-known challenge in classification tasks. However, imbalanced regression is equally critical but significantly harder to solve. It occurs when a continuous target variable—such as home prices, chemical concentrations, or financial yields—has a skewed distribution. This leaves "sparse regions" where models have very few examples to learn from, often leading to poor generalization in those critical ranges.

Traditional solutions like SMOGN or SMOTER typically suffer from two major flaws. First, they rely on arbitrary thresholds to define which target values are "rare," which ignores the continuous nature of the data. Second, they often use linear interpolation to create synthetic data, which can introduce linear distortions or unrealistic "ridges" in the feature space that do not reflect the true, non-linear distribution of the data.

The LDAO Framework

To overcome these hurdles, we introduce LDAO (Local Distribution-Based Adaptive Oversampling). LDAO moves away from rigid categorizations and linear assumptions, providing a more statistically sound way to augment datasets. The framework follows a four-step pipeline:

  1. Joint Space Embedding: Data points are embedded into a $(d+1)$-dimensional space that includes both the input features and the target variable.
  2. Clustering: The algorithm uses $k$-means clustering to partition this joint space into "local distributions." The optimal number of clusters is determined automatically using the elbow method.
  3. Local Density Estimation: Instead of connecting dots, LDAO fits a Multivariate Kernel Density Estimation (KDE) model to each cluster. This captures the local covariance and statistical "shape" of that specific region.
  4. Adaptive Sampling & Merging: Synthetic samples are drawn directly from these KDE models. Sparser clusters can be given higher oversampling multipliers to achieve a balanced representation across the entire target range.
The LDAO process begins by decomposing the global imbalanced distribution into distinct local distributions to preserve statistical structure.

Experimental Evaluation and Results

LDAO was rigorously tested on 45 different imbalanced datasets across various sizes and dimensions, including high-dimensional tabular data and large-scale time-series datasets. We compared LDAO against four baselines: a standard MLP, SMOGN, G-SMOTE, and DenseLoss.

Superior Performance and Natural Dispersion

A key advantage of LDAO is its ability to preserve the "natural dispersion" of the data. While older methods like SMOGN create narrow, artificial lines of synthetic data due to linear interpolation, LDAO creates a natural "cloud" that matches the original data's dispersion and local statistical properties (mean, variance, and skewness).

PCA visualization comparing synthetic data generation: LDAO (green) creates a natural dispersion matching the original data (blue), whereas SMOGN (red) creates artificial linear clusters.

LDAO achieved the lowest mean rank across three major metrics: RMSE (overall error), MAE (average error), and SERA (Squared Error-Relevance Area). Notably, LDAO avoids the "free lunch" tax; improving performance on rare cases did not degrade performance on common cases. In pairwise comparisons, LDAO outperformed SMOGN in 86% of tests for RMSE and 93% for MAE.

Conclusion

LDAO represents a significant step forward in imbalanced regression by treating the target variable as a dimension for clustering rather than a label to be thresholded. This data-driven approach eliminates the need for domain expertise to define rarity and respects the local statistical properties of the feature-target space. Future work will explore more advanced density-based sampling to handle even more complex, multi-modal distributions and further optimize the computational overhead associated with multivariate KDE fitting.

Summary updated

BibTeX
@article{alahyari2025local,
  author = {Shayan Alahyari and Mike Domaratzki},
  title = {{Local Distribution-Based Adaptive Oversampling for Imbalanced Regression}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=6qYTR9iJdm},
}
Figure