[Paper Review] Unsupervised Anomaly Detection with Adversarial Mirrored AutoEncoders
This paper proposes Adversarial Mirrored Autoencoders (AMA), a novel unsupervised anomaly detection method that improves reconstruction quality via a mirrored Wasserstein loss and enhances latent space compactness through simplex interpolation and atypical selection. AMA outperforms state-of-the-art methods on multiple OOD detection benchmarks, achieving up to 3.7% higher AUROC on CIFAR-10 and 1.7% on MNIST in class-agnostic anomaly detection settings.
Detecting out of distribution (OOD) samples is of paramount importance in all Machine Learning applications. Deep generative modeling has emerged as a dominant paradigm to model complex data distributions without labels. However, prior work has shown that generative models tend to assign higher likelihoods to OOD samples compared to the data distribution on which they were trained. First, we propose Adversarial Mirrored Autoencoder (AMA), a variant of Adversarial Autoencoder, which uses a mirrored Wasserstein loss in the discriminator to enforce better semantic-level reconstruction. We also propose a latent space regularization to learn a compact manifold for in-distribution samples. The use of AMA produces better feature representations that improve anomaly detection performance. Second, we put forward an alternative measure of anomaly score to replace the reconstruction-based metric which has been traditionally used in generative model-based anomaly detection methods. Our method outperforms the current state-of-the-art methods for anomaly detection on several OOD detection benchmarks.
Motivation & Objective
- To address the poor reconstruction quality of autoencoders on diverse datasets like CIFAR-10, where standard adversarial losses fail to preserve semantic structure.
- To improve latent space compactness for in-distribution samples, enabling better generalization and anomaly detection.
- To replace traditional reconstruction-based anomaly scores with a likelihood-like metric derived from training reconstruction scores.
- To develop a more robust latent space regularizer that pushes OOD samples away from the in-distribution manifold.
Proposed method
- Introduces a mirrored Wasserstein loss that compares the joint distribution of (x, x) and (x, x̂) to enforce pixel- and structure-level reconstruction fidelity.
- Applies simplex interpolation in the latent space to generate realistic intermediate codes, ensuring smooth and compact in-distribution manifolds.
- Uses atypical selection to sample synthetic negative latent codes near the boundary of the in-distribution latent space, improving generalization.
- Proposes a new anomaly score metric based on the likelihood of a sample’s reconstruction error within the distribution of training reconstruction errors.
- Combines adversarial training with the mirrored Wasserstein GAN objective to improve generator quality without relying on pixel-wise Lp loss.
- Trains the autoencoder with a discriminator that distinguishes between real image pairs (x, x) and reconstructed pairs (x, x̂), focusing on semantic consistency.
Experimental results
Research questions
- RQ1Can a mirrored Wasserstein loss improve reconstruction quality on diverse datasets like CIFAR-10, where standard GANs fail to preserve semantic structure?
- RQ2Does latent space regularization via simplex interpolation and atypical selection lead to a more compact and generalizable representation for in-distribution samples?
- RQ3Can a likelihood-like anomaly score based on reconstruction error distributions outperform traditional reconstruction-based metrics in OOD detection?
- RQ4How does the proposed method compare to state-of-the-art approaches in challenging OOD detection scenarios, especially when anomalies come from the same data manifold?
Key findings
- AMA achieves a 3.7% AUROC gain over the next best method on CIFAR-10 when detecting anomalies from SVHN, ImageNet, and CIFAR-100.
- On MNIST, AMA achieves a 1.7% AUROC improvement over the second-best method when detecting anomalies from other MNIST-like datasets.
- The ablation study shows that removing the mirrored Wasserstein loss reduces AUROC by approximately 0.1 points, indicating its critical role in reconstruction quality.
- Atypical selection outperforms standard negative sampling methods, achieving 0.993 AUROC on SVHN vs CIFAR-10 with interpolation, compared to 0.896 with standard sampling.
- The new anomaly scoring metric significantly improves performance when the normal distribution is more diverse than the OOD distribution, such as in CIFAR-10 vs SVHN.
- AMA maintains strong performance even in the challenging CIFAR-10 vs CIFAR-100 setting, though all models, including AMA, show limited performance due to high data similarity.
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.