Improving SMOTE via fusing conditional VAE for data-adaptive noise filtering

Sungchul Hong, Seunghwan An, Jong-June Jeon · DOI

TL;DR

The authors introduce SMOTE-CLS, a hybrid oversampling framework that uses a Conditional Variational Autoencoder (CVAE) to "clean" imbalanced datasets before generating new data. By disentangling "easy" and "hard" samples in a customized latent space, the method filters out noise and outliers, allowing the classic SMOTE algorithm to produce higher-quality synthetic samples that actually improve classifier performance.

What Problem Does This Paper Address?

In machine learning, the class imbalance problem is everywhere—think fraud detection, where 99.9% of transactions are legitimate, or medical diagnosis, where the disease is rare. Standard models tend to ignore the "minority" class because they are designed to minimize overall error.

To fix this, researchers often use oversampling, with the Synthetic Minority Oversampling Technique (SMOTE) being the gold standard since 2002. SMOTE creates new data points by interpolating between existing minority samples. However, SMOTE has a fatal flaw: it is blind to noise. If a minority sample is actually an outlier or a mislabeled point (a "noise" sample), SMOTE will happily generate a bunch of new synthetic noise around it, further confusing the classifier.

While modern Deep Generative Models (DGMs) like VAEs and GANs were expected to solve this, they often struggle with tabular data or fail to accurately estimate the density of the minority class. This paper tackles the "small-disjunct" problem—the difficulty of distinguishing between small, legitimate clusters of minority data and random noise.

Methods

The authors propose SMOTE-CLS (SMOTE with Customizing Latent Space), which proceeds in four distinct stages:

  1. Difficulty Labeling: Using a K-Nearest Neighbor (KNN) classifier, every data point is labeled not just by its class (Major/Minor), but by its difficulty (Easy vs. Hard). A "Hard" sample is one where the neighbors belong to the opposite class.
  2. Customized Latent Space: They train a CVAE with a specific twist. Instead of a standard normal distribution, they use a Gaussian Mixture Model (GMM) as the prior. This forces the VAE to "disentangle" the latent space into four distinct quadrants: Easy-Major, Hard-Major, Easy-Minor, and Hard-Minor.
  3. Adaptive Noise Filtering: Once the latent space is organized, they apply Kernel Density Estimation (KDE) within the minority clusters. Samples in the "Hard-Minor" quadrant that have very low density are flagged as noise and discarded.
  4. Data-Space Interpolation: Finally, they apply the original SMOTE algorithm to the filtered minority samples. Crucially, they perform the oversampling in the original data space, not the latent space, which they argue better preserves the relationships between variables.

Datasets

The researchers evaluated their method on:

  • 12 Benchmark Datasets: A mix of UCI and LIBSVM datasets (e.g., ecoli, yeast, abalone, isolet) ranging from 336 to nearly 8,000 samples and 7 to 617 features.
  • MNIST: Used specifically to test robustness to label noise by intentionally mislabeling similar digits (e.g., labeling an '8' as a '3') to see if the filtering algorithm could catch the "imposter" samples.

Key Insights and Ideas

  • The "Aha" Moment on Disentanglement: Most VAEs just try to reconstruct data. By forcing the latent space to separate "easy" from "hard" samples, the authors created a "diagnostic" space. If a sample is labeled "minority" but sits far away from the minority cluster in this customized space, it’s almost certainly noise.
  • Data Space vs. Latent Space: A major finding was that interpolating in the data space (using SMOTE) often outperforms interpolating in the latent space (using DGMs). This is because DGMs can struggle with "data reproducibility"—they might generate samples that look plausible but don't follow the precise local logic of the original features.
  • Tree-Based VAEs: The authors used tree-based classifiers (like XGBoost) within the VAE training loop. This improved performance on tabular data and reduced the computational cost compared to using pure neural networks for every component.

Key Results

  • Superior Ranking: In a head-to-head comparison against 9 other models (including standard SMOTE and deep learning competitors like DeepSMOTE and DDHS), SMOTE-CLS achieved the best Average Rank (2.08) across 12 datasets for the Area Under the Precision-Recall Curve (AUPRC).
  • Noise Detection: In the MNIST experiments, SMOTE-CLS significantly outperformed other methods in "Noise Recall." It was much better at identifying which samples were intentionally mislabeled, achieving F1-scores for noise detection that were often 3x higher than competing methods.
  • Visual Proof: t-SNE visualizations showed that while other methods often generated synthetic samples that overlapped heavily with the majority class (creating more confusion), SMOTE-CLS generated clean, distinct clusters that respected the true decision boundaries.

Limitations and Future Work

  • Multi-class Complexity: The current "quadrant" approach is designed for binary classification. Extending this to multi-class problems (where you might have "Hard-Class-A-but-looks-like-Class-C") is significantly more complex.
  • High-Dimensional KDE: As the number of features grows, Kernel Density Estimation becomes less reliable (the "curse of dimensionality"). The authors suggest that extremely high-dimensional datasets might require even more sophisticated latent space mapping.
  • Prior Selection: While the GMM prior is robust, the authors suggest future work could involve learning the prior distribution dynamically rather than fixing it at the start.

Summary updated

BibTeX
@article{hong2025improving,
  author = {Sungchul Hong and Seunghwan An and Jong-June Jeon},
  title = {{Improving SMOTE via fusing conditional VAE for data-adaptive noise filtering}},
  journal = {Applied Intelligence},
  year = {2025},
  doi = {10.1007/s10489-025-06692-y},
}
Figure