[Paper Review] OMASGAN: Out-of-Distribution Minimum Anomaly Score GAN for Sample Generation on the Boundary
OMASGAN is a novel GAN-based anomaly detection framework that generates out-of-distribution (OoD) samples with minimum anomaly scores on the data distribution boundary using only normal-class data. By performing self-supervised retraining with these adversarial OoD samples and a discriminator trained on real and generated data, OMASGAN improves anomaly detection performance without requiring invertibility, likelihood, or feature engineering, achieving state-of-the-art AUROC improvements of 0.24 on MNIST and 0.07 on CIFAR-10 under leave-one-out evaluation.
Generative models trained in an unsupervised manner may set high likelihood and low reconstruction loss to Out-of-Distribution (OoD) samples. This increases Type II errors and leads to missed anomalies, overall decreasing Anomaly Detection (AD) performance. In addition, AD models underperform due to the rarity of anomalies. To address these limitations, we propose the OoD Minimum Anomaly Score GAN (OMASGAN). OMASGAN generates, in a negative data augmentation manner, anomalous samples on the estimated distribution boundary. These samples are then used to refine an AD model, leading to more accurate estimation of the underlying data distribution including multimodal supports with disconnected modes. OMASGAN performs retraining by including the abnormal minimum-anomaly-score OoD samples generated on the distribution boundary in a self-supervised learning manner. For inference, for AD, we devise a discriminator which is trained with negative and positive samples either generated (negative or positive) or real (only positive). OMASGAN addresses the rarity of anomalies by generating strong and adversarial OoD samples on the distribution boundary using only normal class data, effectively addressing mode collapse. A key characteristic of our model is that it uses any f-divergence distribution metric in its variational representation, not requiring invertibility. OMASGAN does not use feature engineering and makes no assumptions about the data distribution. The evaluation of OMASGAN on image data using the leave-one-out methodology shows that it achieves an improvement of at least 0.24 and 0.07 points in AUROC on average on the MNIST and CIFAR-10 datasets, respectively, over other benchmark and state-of-the-art models for AD.
Motivation & Objective
- To address the limitation in unsupervised anomaly detection where generative models assign high likelihood to OoD samples, leading to Type II errors and missed anomalies.
- To overcome the rarity of anomalies in training by generating strong, adversarial OoD samples on the estimated data distribution boundary using only normal-class data.
- To improve the learning of multimodal data distributions with disconnected supports by retraining with generated boundary samples to avoid mode collapse.
- To develop a self-supervised, data- and architecture-agnostic method that does not require feature engineering, likelihood, or invertibility.
- To achieve state-of-the-art performance in anomaly detection using a discriminator trained on real positive and generated negative samples, enabling robust inference.
Proposed method
- OMASGAN trains a f-divergence-based GAN to model the normal data distribution, using any f-divergence in its variational representation without requiring invertibility.
- It introduces a boundary generator $B(\mathbf{z})$ to produce OoD samples with minimum anomaly scores on the estimated data distribution boundary, using statistical divergence between the generator and boundary distributions.
- The model performs negative retraining by incorporating these minimum-anomaly-score OoD samples into the training process, refining the generator $G'(\mathbf{z})$ to better represent the true data support.
- A discriminator $J(\mathbf{x})$ is trained using both real positive samples and generated negative samples (from $B(\mathbf{z})$) to distinguish between in-distribution and OoD data during inference.
- The anomaly score for a test sample $\mathbf{x}^*$ is computed using f-divergence between the learned generator and the Dirac delta at $\mathbf{x}^*$, enabling robust detection.
- The framework uses self-supervised learning to improve both distribution learning and anomaly detection, with no assumptions about data distribution or need for manual feature engineering.
Experimental results
Research questions
- RQ1Can a GAN-based method generate meaningful, adversarial OoD samples on the data distribution boundary using only normal-class data to improve anomaly detection?
- RQ2How does incorporating minimum-anomaly-score OoD samples during retraining affect the generalization and robustness of anomaly detection models?
- RQ3Can a discriminator trained on real and generated negative samples achieve superior performance compared to standard GAN- and AE-based anomaly detection models?
- RQ4To what extent does OMASGAN improve AUROC on benchmark datasets like MNIST and CIFAR-10 under leave-one-out evaluation, which better reflects real-world anomaly detection scenarios?
- RQ5Does OMASGAN maintain performance stability across different random seeds and data distributions, including those with disconnected or multimodal supports?
Key findings
- OMASGAN achieves an average AUROC improvement of at least 0.24 points on the MNIST dataset compared to benchmark and state-of-the-art models under leave-one-out evaluation.
- On CIFAR-10, OMASGAN improves AUROC by at least 0.07 points over existing models under the same evaluation protocol, demonstrating consistent gains on complex data.
- The model achieves an average AUROC of 0.85 on CIFAR-10 using One-Class Classification (OCC) evaluation, outperforming GAN-based models (AnoGAN, MinLGAN), AE-based models (VAE, DeepSVDD), and the DROCC discriminator-based model.
- OMASGANaug, which includes data augmentation via geometric transformations, slightly improves performance and shows robustness across different random seeds, with a mean standard deviation of 0.06 across classes and seeds.
- The ablation study confirms that the use of the discriminator $J(\mathbf{x})$ for inference significantly improves performance over base models, with gradual improvement from Task 1 to OMASGAN.
- OMASGAN demonstrates low sensitivity to initialization, with a mean standard deviation of 0.06 across seeds—lower than the 0.1 reported in prior work—indicating strong training stability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.