[Paper Review] Novelty Detection with GAN
This paper proposes a novel GAN-based framework for simultaneous image classification and novelty detection by training a multi-class discriminator on a mixture of real nominal data and generated novel data. The discriminator becomes an optimal novelty detector, outperforming conventional methods like k-NN and max-probability thresholding, especially on challenging CIFAR-100 novel categories, with ND-GAN achieving AUROC scores up to 0.893 on certain classes.
The ability of a classifier to recognize unknown inputs is important for many classification-based systems. We discuss the problem of simultaneous classification and novelty detection, i.e. determining whether an input is from the known set of classes and from which specific class, or from an unknown domain and does not belong to any of the known classes. We propose a method based on the Generative Adversarial Networks (GAN) framework. We show that a multi-class discriminator trained with a generator that generates samples from a mixture of nominal and novel data distributions is the optimal novelty detector. We approximate that generator with a mixture generator trained with the Feature Matching loss and empirically show that the proposed method outperforms conventional methods for novelty detection. Our findings demonstrate a simple, yet powerful new application of the GAN framework for the task of novelty detection.
Motivation & Objective
- Address the critical need for classification systems to detect unknown or novel inputs, which conventional models fail to recognize.
- Overcome limitations of existing novelty detection methods that scale poorly on high-dimensional data or require costly background-class sampling.
- Integrate novelty detection directly into the classification pipeline to reduce system complexity and improve performance through shared feature learning.
- Eliminate the need for manually collected background-class data by generating novel examples during GAN training.
- Demonstrate that a GAN discriminator trained on a mixture of nominal and synthetic novel data becomes an optimal novelty detector under theoretical conditions.
Proposed method
- Train a multi-class GAN where the discriminator classifies inputs as one of K known classes or as 'fake' (novel) to enable simultaneous classification and novelty detection.
- Use a mixture generator that produces samples from both the nominal data distribution and a learned novel data distribution during training.
- Approximate the ideal mixture generator using Feature Matching loss to encourage the generator to produce samples in low-density regions of the data manifold.
- At inference, classify inputs using the discriminator’s K+1 class probabilities; if the top class is the 'fake' (novel) class, the input is flagged as novel.
- Leverage the discriminator’s decision boundary as a novelty detector, proven theoretically to be optimal for a given false positive rate.
- Train the model end-to-end using standard GAN objectives, with the generator learning to produce realistic novel-like samples that challenge the discriminator.
Experimental results
Research questions
- RQ1Can a GAN-based framework effectively detect novel inputs without requiring explicit background-class data collection?
- RQ2Is a multi-class discriminator trained on a mixture of real nominal and generated novel data an optimal novelty detector under theoretical conditions?
- RQ3How does the performance of the proposed ND-GAN method compare to conventional novelty detection baselines like k-NN, entropy, and max-probability thresholding?
- RQ4Can the generator’s ability to produce samples in low-density regions enhance the discriminator’s novelty detection capability?
- RQ5Does the proposed method generalize across diverse and complex datasets such as CIFAR-10 vs. CIFAR-100?
Key findings
- The ND-GAN method achieves state-of-the-art performance on the CIFAR-10 vs. CIFAR-100 novelty detection benchmark, with AUROC scores up to 0.893 on the 'trees' coarse category.
- In 13 out of 20 CIFAR-100 coarse categories, ND-GAN outperforms all baseline methods, including 5-NN and max-probability thresholding.
- The method achieves a balanced AUROC of 0.971 across all 20 CIFAR-100 coarse categories, outperforming 5-NN (0.924) and max-probability (0.958).
- Theoretical analysis proves that the multi-class discriminator trained on a mixture of nominal and novel data is an optimal novelty detector for a given false positive rate.
- The use of Feature Matching loss enables effective approximation of the ideal mixture generator, producing samples in low-density regions that improve detector generalization.
- Empirical results show that the proposed framework reduces reliance on expensive background-class sampling while maintaining or improving detection accuracy.
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.