[Paper Review] OLED: One-Class Learned Encoder-Decoder Network with Adversarial Context Masking for Novelty Detection
This paper proposes OLED, a one-class novelty detection framework that uses an adversarially trained Mask Module to learn optimal, semantically informed image masking for improved reconstruction in autoencoder-based anomaly detection. By jointly training a Reconstructor to minimize reconstruction error and the Mask Module to maximize it, OLED learns richer representations, achieving state-of-the-art performance with a 99.02% AUC on UCSD video data and 98.45% AUC on MNIST.
Novelty detection is the task of recognizing samples that do not belong to the distribution of the target class. During training, the novelty class is absent, preventing the use of traditional classification approaches. Deep autoencoders have been widely used as a base of many unsupervised novelty detection methods. In particular, context autoencoders have been successful in the novelty detection task because of the more effective representations they learn by reconstructing original images from randomly masked images. However, a significant drawback of context autoencoders is that random masking fails to consistently cover important structures of the input image, leading to suboptimal representations - especially for the novelty detection task. In this paper, to optimize input masking, we have designed a framework consisting of two competing networks, a Mask Module and a Reconstructor. The Mask Module is a convolutional autoencoder that learns to generate optimal masks that cover the most important parts of images. Alternatively, the Reconstructor is a convolutional encoder-decoder that aims to reconstruct unperturbed images from masked images. The networks are trained in an adversarial manner in which the Mask Module generates masks that are applied to images given to the Reconstructor. In this way, the Mask Module seeks to maximize the reconstruction error that the Reconstructor is minimizing. When applied to novelty detection, the proposed approach learns semantically richer representations compared to context autoencoders and enhances novelty detection at test time through more optimal masking. Novelty detection experiments on the MNIST and CIFAR-10 image datasets demonstrate the proposed approach's superiority over cutting-edge methods. In a further experiment on the UCSD video dataset for novelty detection, the proposed approach achieves state-of-the-art results.
Motivation & Objective
- Address the limitation of random masking in context autoencoders, which fails to consistently cover semantically important image structures.
- Improve representation learning for one-class novelty detection by optimizing masking strategy during training.
- Develop an end-to-end trainable framework that enhances reconstruction fidelity for inliers while degrading it for outliers.
- Demonstrate superior performance on image and video anomaly detection benchmarks compared to state-of-the-art methods.
Proposed method
- Introduce a Mask Module (MM) as a convolutional autoencoder that generates activation maps and produces binary masks via thresholding.
- Train the Reconstructor (R) and Mask Module (MM) in an adversarial setting: R minimizes reconstruction error, MM maximizes it.
- Use the reconstruction error of masked inputs as the anomaly score, with optimal masking improving representation quality.
- Apply masking at test time to further enhance detection performance by focusing on critical image structures.
- Train the entire system end-to-end using standard backpropagation, enabling seamless integration into existing autoencoder pipelines.
- Leverage the adversarial dynamic to encourage the MM to identify and mask semantically salient regions, leading to more robust representations.
Experimental results
Research questions
- RQ1Can adversarial training between a mask generator and a reconstructor improve representation quality for one-class novelty detection?
- RQ2Does learned, context-aware masking outperform random masking in context autoencoders for anomaly detection?
- RQ3To what extent does test-time masking improve detection performance in one-class settings?
- RQ4Can the proposed framework generalize across diverse data modalities, including images and video?
- RQ5How does the proposed method compare to state-of-the-art approaches on standard benchmark datasets?
Key findings
- OLED achieves a 99.02% Area Under the Curve (AUC) on the UCSD video anomaly detection benchmark, significantly outperforming recent SOTA models.
- On the MNIST dataset, OLED attains a 98.45% AUC using the average anomaly score, surpassing the baseline context autoencoder (CAE) by 5.7 percentage points.
- The ablation study confirms that learned masking improves performance over random masking, with OLED’s AUC being 98.45% versus CAE’s 87.68% on MNIST.
- The Mask Module demonstrates strong semantic segmentation ability, effectively identifying key image structures in both inlier and outlier samples.
- Test-time masking further boosts OLED’s performance, while it degrades CAE’s performance, confirming that suboptimal random masking introduces noise in reconstruction scores.
- The method generalizes well, achieving high reconstruction fidelity for inliers and poor reconstruction for outliers, validating its core design principle.
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.