Skip to main content
QUICK REVIEW

[Paper Review] Adversarially Learned Anomaly Detection

Houssam Zenati, Manon Romain|arXiv (Cornell University)|Dec 6, 2018
Anomaly Detection Techniques and ApplicationsComputer Science35 references23 citations
TL;DR

This paper proposes Adversarially Learned Anomaly Detection (ALAD), a GAN-based method that uses a bi-directional GAN with an encoder to learn adversarially trained features for anomaly detection. By leveraging these features and reconstruction errors, ALAD achieves state-of-the-art performance on image and tabular datasets while being hundreds of times faster at inference than prior GAN-based methods.

ABSTRACT

Anomaly detection is a significant and hence well-studied problem. However, developing effective anomaly detection methods for complex and high-dimensional data remains a challenge. As Generative Adversarial Networks (GANs) are able to model the complex high-dimensional distributions of real-world data, they offer a promising approach to address this challenge. In this work, we propose an anomaly detection method, Adversarially Learned Anomaly Detection (ALAD) based on bi-directional GANs, that derives adversarially learned features for the anomaly detection task. ALAD then uses reconstruction errors based on these adversarially learned features to determine if a data sample is anomalous. ALAD builds on recent advances to ensure data-space and latent-space cycle-consistencies and stabilize GAN training, which results in significantly improved anomaly detection performance. ALAD achieves state-of-the-art performance on a range of image and tabular datasets while being several hundred-fold faster at test time than the only published GAN-based method.

Motivation & Objective

  • Address the challenge of detecting anomalies in complex, high-dimensional data such as images and tabular data.
  • Overcome the computational inefficiency of existing GAN-based anomaly detection methods that require optimization at test time.
  • Improve training stability and feature quality in GANs for anomaly detection using recent architectural advances.
  • Develop a method that enables fast, feed-forward inference at test time while maintaining high detection accuracy.

Proposed method

  • Employ a bi-directional GAN framework that jointly trains a generator, discriminator, and encoder during the training phase.
  • Use the encoder to map input data directly to latent space, enabling fast inference via a single forward pass at test time.
  • Introduce a reconstruction discriminator that evaluates the similarity between original and reconstructed samples in feature space.
  • Compute anomaly scores based on the L1 norm of the difference between real and reconstructed features in the discriminator's intermediate layer.
  • Apply spectral normalization and additional discriminators in the latent space to stabilize GAN training and improve feature quality.
  • Enforce cycle-consistency between data and latent spaces to ensure meaningful reconstructions and robust feature learning.

Experimental results

Research questions

  • RQ1Can a GAN-based anomaly detection method achieve state-of-the-art performance while enabling fast inference, avoiding iterative optimization at test time?
  • RQ2How do adversarially learned features compare to traditional reconstruction errors (L1, L2) or discriminator logits in anomaly detection performance?
  • RQ3To what extent do training stabilizers like spectral normalization and auxiliary discriminators improve anomaly detection performance?
  • RQ4Does the inclusion of latent-space discriminators and cycle-consistency constraints enhance feature quality and detection accuracy?

Key findings

  • ALAD achieves state-of-the-art AUROC of 0.6072 ± 0.1201 on CIFAR-10 and 0.5753 ± 0.0268 on SVHN, outperforming baseline GANs and other reconstruction-based methods.
  • On the KDD99 and Arrhythmia tabular datasets, the adversarially learned feature-based anomaly score achieves an F1 score of 0.9501 ± 0.0018 and 0.5152 ± 0.0214, respectively, surpassing L1, L2, and logits-based scores.
  • The use of spectral normalization and latent-space discriminators improves performance on SVHN and CIFAR-10, with spectral normalization showing the strongest positive impact.
  • ALAD is several hundred times faster at test time than the only comparable GAN-based method (AnoGAN), due to eliminating the need for iterative latent code optimization.
  • Ablation studies confirm that both the reconstruction discriminator and latent-space discriminators contribute significantly to performance gains, especially on image data.
  • The method generalizes well across data modalities, demonstrating strong performance on both high-dimensional images and tabular data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.