Abstract
Class imbalance poses a significant challenge in deep learning, particularly for high-dimensional image data where minority classes are often overlooked by standard classifiers. This paper introduces a novel framework, SLPPL-GAN, which utilizes Supervised Latent Preserving Prior Learning to stabilize the generative process. By integrating a domain-constrained autoencoder with a three-player adversarial game, the proposed method effectively generates high-quality synthetic samples that respect class boundaries. Experimental results on MNIST, Fashion-MNIST, and CelebA demonstrate that the Adversarial Data Space Oversampling (ADSO) strategy significantly outperforms existing state-of-the-art methods in both accuracy and minority class recall.
Introduction
In real-world applications, datasets are frequently characterized by severe class imbalance. Whether detecting rare medical conditions or identifying fraudulent transactions, the minority class often carries the highest importance. However, standard deep learning models tend to be biased toward the majority class, achieving high overall accuracy while failing to identify rare instances—a phenomenon known as the class imbalance problem.
While traditional oversampling techniques like SMOTE are effective for low-dimensional data, they struggle with the complexity of images. Generative Adversarial Networks (GANs) offer a potential solution by generating synthetic minority samples, but they often suffer from "boundary distortion," where generated images are too noisy or too similar to the majority class to be useful for training. This paper addresses these limitations through a structured latent space approach.
Methodology
The researchers propose a two-stage framework called Supervised Latent Preserving Prior Learning (SLPPL) combined with a specialized GAN architecture.
Stage 1: Supervised Latent Preserving Prior Learning
The foundation of the model is a domain-constrained autoencoder. Unlike standard autoencoders that focus solely on image reconstruction, this model employs a joint loss function. It minimizes reconstruction error while simultaneously ensuring that the latent code—the compressed representation of the image—is highly predictive of the class label. This creates a bounded and well-separated latent space, providing a stable and structured "prior" for the subsequent generative stage.
Stage 2: The Three-Player Adversarial Game
Standard GANs consist of a Generator (G) and a Discriminator (D). The SLPPL-GAN framework introduces a third player: a Classifier (Q).
In this three-player game:
- The Generator attempts to produce images that fool the Discriminator into seeing them as "real" and fool the Classifier into categorizing them as the specific minority class.
- The Discriminator distinguishes between real and synthetic images.
- The Classifier ensures the generated samples are class-distinctive.
The authors compared two specific strategies within this framework:
- Adversarial Minority Oversampling (AMO): Mitigating bias primarily through loss functions during training.
- Adversarial Data Space Oversampling (ADSO): Repeating minority class samples to create a balanced dataset before the adversarial game begins.
ADSO emerged as the superior strategy, as it forces the generator to focus on the specific subsets of samples most relevant to the classifier's decision boundary.
Experimental Setup
The model was evaluated against several state-of-the-art baselines, including BAGAN, GAMO, and DGC. Testing was conducted on three standard benchmarks modified to an Imbalance Ratio (IR) of 100 (where the majority class is 100 times larger than the minority):
- MNIST: Handwritten digits.
- Fashion-MNIST: Clothing items.
- CelebA: Celebrity face attributes (using a 5-class imbalanced subset).
Results and Discussion
The proposed ADSO method consistently outperformed baselines across multiple metrics, particularly in areas critical for imbalanced learning.
Accuracy and Recall
On the complex CelebA dataset, ADSO achieved an Average Class Specific Accuracy (ACSA) of 0.7595, a substantial improvement over the next best baseline, DGC (0.6755).
More importantly, the model excelled in Minority Recall ($R_{min}$). On the MNIST dataset, ADSO reached a minority recall of 0.8840, whereas the popular BAGAN method only achieved 0.5354. This indicates that SLPPL-GAN is significantly more effective at identifying rare cases without sacrificing the precision of the majority class.
Stability
By initializing the Generator and Discriminator weights from the pre-trained SLPPL autoencoder, the framework avoids the "mode collapse" issues common in GAN training. The structured latent space ensures that the generator starts with a clear "map" of class features, leading to higher-quality synthetic data.
Conclusion
SLPPL-GAN represents a significant step forward in tackling class imbalance for high-dimensional data. By preserving a supervised latent space and employing a three-player adversarial strategy, the model generates synthetic data that effectively clarifies class boundaries. While the computational complexity is higher than simple oversampling, the gains in minority recall and overall accuracy make it a compelling choice for high-stakes applications like medical diagnosis and industrial fault detection. Future work will focus on optimizing these architectures for real-world, non-benchmark datasets.
Summary updated