Abstract
One-class novelty detection aims to identify data points that deviate from a single known training class. Traditional auto-encoder (AE) based methods often fail because the model learns to reconstruct out-of-class data too effectively, leading to low reconstruction errors for novel samples. This paper introduces OCGAN (One-Class GAN), a framework that constrains the latent space to be exclusive to the in-class distribution. By employing a multi-adversarial training strategy and informative-negative mining, OCGAN ensures that any point in the bounded latent space decodes into an in-class image. Experimental results on MNIST, Fashion-MNIST, COIL-100, and CIFAR-10 demonstrate that OCGAN achieves state-of-the-art performance in novelty detection.
Introduction
The core challenge in one-class novelty detection is training a model on a single class (e.g., the digit "8") such that it can reliably flag any other class as "novel." The standard approach utilizes Auto-encoders (AEs), where a high reconstruction error serves as the novelty signal. However, AEs are often "too good" at their task; if a target class is complex (like an "8"), the learned latent space is frequently flexible enough to reconstruct simpler out-of-class shapes (like a "1") with high fidelity. This overlap in reconstruction capability leads to false negatives in novelty detection.
Methodology
OCGAN addresses the "complex shape trap" by making the latent space exclusive to the target class. The architecture consists of four key components:
- Denoising Auto-encoder (AE): Maps images to a latent space constrained by a
tanhactivation to a bounded hypercube ($[-1, 1]^d$). - Latent Discriminator ($D_l$): Forces the encoder to distribute in-class representations uniformly across the latent hypercube, preventing "dead zones" that could be exploited by novel data.
- Visual Discriminator ($D_v$): Ensures that any random sample from the latent hypercube decodes into an image that visually matches the training class.
- Informative-negative Mining: A classifier $C$ actively identifies regions in the latent space that generate poor in-class representations. The decoder is then specifically trained to correct these "weak spots," ensuring no part of the latent space can represent out-of-class data.
Experimental Results
OCGAN was evaluated using the Area Under the Curve (AUC) metric across several benchmarks:
- MNIST: Achieved a state-of-the-art average AUC of 0.977.
- COIL-100: Reached an AUC of 0.995, demonstrating high precision on object-based datasets.
- CIFAR-10: On this challenging natural image dataset, OCGAN outperformed competitors with an AUC of 0.6566.
Ablation studies confirmed that the combination of latent space constraints and informative-negative mining is critical for performance, as removing these components led to significant drops in AUC (e.g., from 0.975 down to 0.957 on MNIST).
Conclusion
OCGAN represents a shift from focusing on representation to focusing on exclusivity in one-class learning. By forcing the entire latent space to map to the target class, the model effectively eliminates the possibility of low-error reconstructions for novel data. While highly effective for single-concept detection, future work will focus on extending these constraints to more diverse and complex natural image distributions.
Summary updated