Abstract
Class imbalance presents a significant challenge in machine learning, often leading Generative Adversarial Networks (GANs) toward mode collapse or local optima when modeling rare minority classes. We present the Annealing Genetic GAN (AGGAN), a novel framework that combines evolutionary strategies with simulated annealing. By employing a multi-objective offspring generation process and a Metropolis-based acceptance criterion, AGGAN enables the generator to escape local optima and accurately capture the distribution of minority classes. Experimental results across six benchmark datasets demonstrate that AGGAN significantly outperforms existing oversampling and GAN-based methods, particularly in high-imbalance scenarios.
1. Introduction
In domains such as medical diagnosis and fraud detection, the scarcity of minority class samples often causes standard classifiers to bias toward the majority class. While GANs offer a mechanism for synthetic data generation, they are prone to "getting stuck" in local optima when data is sparse, resulting in low-quality or repetitive samples (mode collapse).
The AGGAN framework addresses this by treating the generator's optimization as a path-finding problem in a complex solution space, utilizing simulated annealing to ensure global convergence. By allowing the model to occasionally accept "worse" training steps early on, it can jump out of local valleys to find the true global optimum.
2. Methodology
The core of AGGAN lies in its two-step generator update cycle, which integrates evolutionary computation with the Metropolis criterion from simulated annealing.
2.1 Evolutionary Offspring Generation
In each iteration, the generator $G$ produces multiple "offspring" ($G_{c1}, G_{c2}, \dots, G_{cn}$) using diverse adversarial objectives, such as minimax loss, modified minimax loss, and least-squares loss. This diversity prevents the model from being limited by the weaknesses of any single loss function. The offspring are evaluated for "fitness" based on the quality and diversity of their generated samples, and the best-fit candidate ($G_{cBest}$) is retained.
2.2 Simulated Annealing Update
Unlike traditional gradient descent which only accepts improvements, AGGAN applies a probabilistic update rule. If $G_{cBest}$ improves upon the current $G$, it is accepted ($P=1$). If it is worse, it may still be accepted with a probability $P=q$, which is controlled by a decreasing "temperature" parameter $T$. This allows the model to explore the solution space more thoroughly in early training stages before converging as the temperature "cools."
3. Experimental Evaluation
The authors evaluated AGGAN on six image datasets: MNIST, Fashion-MNIST, SVHN, CIFAR-10, CelebA, and LSUN. Imbalance ratios (IR) were varied from 10 to 100 to simulate extreme data scarcity.
3.1 Performance Metrics and Results
The model was compared against baselines including ACGAN, Evolutionary-GAN (E-GAN), and standard oversampling techniques. Key results include:
- High-Imbalance Scenarios: On the SVHN dataset with an IR of 100, AGGAN achieved 77.70% accuracy, a significant improvement over standard GANs (70.55%) and E-GAN (75.50%).
- Distribution Coverage: t-SNE visualizations confirmed that AGGAN-generated samples cover the full distribution of the minority class, whereas baseline methods often produced narrow "islands" of data.
- Robustness: The method consistently outperformed competitors across all tested datasets, demonstrating its generalizability to different image domains and varying levels of imbalance.
4. Discussion and Conclusion
AGGAN's success stems from its ability to navigate the loss landscape more effectively than traditional gradient-based methods. By incorporating simulated annealing, the model gains a mathematical guarantee of converging to the global optimum with a probability of 1 as training progresses. While the computational cost is higher due to the generation of multiple offspring per iteration, the gains in minority class recall and overall classifier robustness make it a powerful tool for imbalanced learning. Future work will explore scaling this approach to higher-resolution imagery and more complex data types.
Summary updated