Abstract
Class imbalance is a long-standing problem relevant to a number of real-world applications of deep learning. Oversampling techniques, which are effective for handling class imbalance in classical learning systems, can not be directly applied to end-to-end deep learning systems. We propose a three-player adversarial game between a convex generator, a multi-class classifier network, and a real/fake discriminator to perform oversampling in deep learning systems. The convex generator generates new samples from the minority classes as convex combinations of existing instances, aiming to fool both the discriminator as well as the classifier into misclassifying the generated samples. Consequently, the artificial samples are generated at critical locations near the peripheries of the classes. This, in turn, adjusts the classifier induced boundaries in a way which is more likely to reduce misclassification from the minority classes. Extensive experiments on multiple class imbalanced image datasets establish the efficacy of our proposal.
Introduction
Class imbalance is a pervasive issue in real-world machine learning, where majority classes often dwarf minority classes by orders of magnitude. In scenarios like fraud detection or rare disease diagnosis, standard deep learning models tend to be "lazy," achieving high overall accuracy by simply ignoring the minority class and favoring the majority.
While classical techniques like SMOTE (Synthetic Minority Over-sampling Technique) work well for tabular data, they struggle with the high-dimensional, end-to-end nature of deep learning. Standard Generative Adversarial Networks (GANs) often fail in this context due to "mode collapse" or "boundary distortion," where synthetic minority points inadvertently "bleed" into the territory of the majority class, further confusing the classifier.
The GAMO Framework
The authors propose a three-player adversarial game called GAMO. Unlike a standard two-player GAN, GAMO involves a Multi-class Classifier ($M$), a Real/Fake Discriminator ($D$), and a Convex Generator ($G$).
Instead of generating samples from pure noise, $G$ generates new points as convex combinations of existing minority instances. The generator is incentivized to fool both other players: it must produce points that look like the real distribution to fool the discriminator, and it must produce points that the classifier currently miscategorizes. This forces the generator to "spawn" new data points specifically at the tricky peripheries and decision boundaries of the minority class.
Key Insights and Ideas
- Convexity as a Constraint: By forcing the generator to work within the "convex hull" of existing points, the framework prevents the creation of "impossible" data points that lie far outside the actual class distribution.
- Adversarial Guidance: The classifier acts as a scout, identifying areas where it is currently confused. The generator then populates those specific areas with more data, forcing the classifier to learn a more robust and accurate boundary.
- Stability via Least-Squares: The research found that using a Least-Squares (LS) loss function instead of standard Cross-Entropy made the three-player game significantly more stable and improved the quality of the generated samples.
Experimental Results
GAMO was evaluated across seven diverse image datasets, including MNIST, SVHN, CIFAR10, and CelebA, with manually induced imbalance ratios up to 100:1. The framework consistently outperformed baseline classifiers and existing oversampling methods across two key metrics: Average Class Specific Accuracy (ACSA) and Geometric Mean (GM).
- SVHN: Reached an ACSA of 0.76, significantly higher than the baseline (0.74) and standard data augmentation (0.69).
- Image Quality: In CelebA and LSUN tests, an extension called GAMO2pix produced much more realistic and diverse images than conditional GANs, which often suffered from mode collapse when learning from very few minority samples.
Limitations and Future Work
While GAMO is powerful, it introduces higher computational overhead than standard classifiers. Additionally, there is a potential for overfitting if the initial minority class is extremely sparse (e.g., fewer than 10 samples), as the convex hull would be too limited. Future research may explore hybridizing GAMO with other GAN variants to further improve the visual fidelity of generated images.
Summary updated