Abstract
Anomaly detection remains a challenging task due to the rarity of outliers and the complexity of modeling "normal" data distributions. While Generative Adversarial Networks (GANs) offer a powerful framework for this task, they often suffer from training instability and mode collapse. This paper proposes a robust GAN Ensemble framework that utilizes multiple generators and discriminators with cross-feedback. By averaging scores across the ensemble, the model achieves superior manifold coverage and significantly improves detection accuracy across diverse benchmarks, including image and non-image datasets.
Introduction
Anomaly detection is the process of identifying rare items, events, or observations which raise suspicions by differing significantly from the majority of the data. In machine learning, this is often framed as learning the distribution of "normal" instances to flag outliers. Generative Adversarial Networks (GANs) are theoretically well-suited for this, as the discriminator learns to distinguish normal data from synthetic approximations.
However, single-GAN approaches face two primary hurdles:
- Instability and Mode Collapse: GANs frequently fail to capture the entire variety of the normal data distribution, leading to false positives where legitimate data is flagged as anomalous.
- The Theory-Practice Gap: While ideal discriminators should eventually reach a state of random guessing, in practice, their internal features are highly effective for anomaly detection. There is a lack of a unified framework to leverage these features reliably.
Methodology
The proposed framework extends existing GAN-based anomaly detection models (such as f-AnoGAN or GANomaly) into an ensemble architecture.
Architecture and Cross-Feedback
Instead of a single generator-discriminator pair, the model employs $I$ generators and $J$ discriminators. A critical innovation is the cross-feedback mechanism: every generator receives gradients from every discriminator, and every discriminator is trained on synthetic samples from every generator. This prevents individual models from converging on local optima or "cheating" by exploiting specific weaknesses in a single opponent.
Efficient Training and Scoring
To manage computational costs, the authors utilize a stochastic batch training approach. In each iteration, a single generator-discriminator pair is randomly selected for updates, keeping training time manageable (approximately linear with the number of models) while retaining ensemble benefits. The final anomaly score for a test point is the average of scores produced by all possible pairs in the ensemble, which smooths out individual model errors and provides a more generalized representation of normalcy.
Key Insights
- Manifold Coverage: Multiple generators are better equipped to cover the multi-dimensional "manifold" of normal data. If one generator misses a specific sub-distribution, another is likely to capture it, reducing false positives.
- Discriminator as a Distance Metric: The authors provide theoretical evidence that in a Wasserstein GAN context, the optimal discriminator effectively calculates the distance between a test sample and the nearest training samples.
- Latent Space Sensitivity: While encoders may produce "normal-looking" reconstructions for anomalies, the discriminator's hidden layers remain sensitive to the subtle differences that define an outlier.
Experimental Results
The ensemble versions (denoted with an en superscript) were evaluated against their base counterparts on MNIST, CIFAR-10, OCT (medical imaging), and KDD99 datasets.
As shown in the ROC curves, the ensemble approach consistently shifts the performance frontier upward. Notable gains include:
- MNIST: f-AnoGAN AUROC improved from 0.799 to 0.857.
- CIFAR-10: Skip-GANomaly saw a significant jump from 0.731 to 0.868.
- Medical Imaging (OCT): On the "DRUSEN" anomaly class, Skip-GANomaly's performance soared from 0.609 to 0.952.
Conclusion
The GAN Ensemble framework provides a robust solution to the common pitfalls of single-GAN anomaly detection. By leveraging multiple models and cross-feedback, the system achieves better stability and higher accuracy. While it introduces additional hyperparameters and computational overhead, the significant performance gains—especially in sensitive fields like medical imaging—make it a compelling choice for high-stakes anomaly detection tasks.
Summary updated