Skip to main content
QUICK REVIEW

[Paper Review] Rethinking Assumptions in Deep Anomaly Detection

Lukas Ruff, Robert A. Vandermeulen|arXiv (Cornell University)|May 30, 2020
Anomaly Detection Techniques and ApplicationsComputer Science77 references14 citations
TL;DR

This paper challenges the conventional assumption that deep anomaly detection (AD) in images must be unsupervised. It demonstrates that a simple supervised classifier trained on nominal data and just 64 random natural images as outliers (outlier exposure, OE) outperforms state-of-the-art unsupervised methods on ImageNet and CIFAR-10 benchmarks, leveraging multiscale structural information in images to make few OE samples highly informative for anomaly detection.

ABSTRACT

Though anomaly detection (AD) can be viewed as a classification problem (nominal vs. anomalous) it is usually treated in an unsupervised manner since one typically does not have access to, or it is infeasible to utilize, a dataset that sufficiently characterizes what it means to be "anomalous." In this paper we present results demonstrating that this intuition surprisingly seems not to extend to deep AD on images. For a recent AD benchmark on ImageNet, classifiers trained to discern between normal samples and just a few (64) random natural images are able to outperform the current state of the art in deep AD. Experimentally we discover that the multiscale structure of image data makes example anomalies exceptionally informative.

Motivation & Objective

  • To challenge the long-standing assumption that deep image anomaly detection must be unsupervised due to the difficulty of characterizing anomalous data.
  • To investigate whether a small number of random natural images—commonly considered non-nominal—can serve as effective outliers for training deep anomaly detectors.
  • To evaluate whether supervised outlier exposure (OE) with minimal, non-tailored anomalous data can surpass state-of-the-art unsupervised and semi-supervised AD methods.
  • To examine the role of multiscale image structure in making random images highly informative for anomaly detection.

Proposed method

  • Training a standard deep neural network with binary cross-entropy loss to classify nominal images versus a small set of random natural images as outliers.
  • Using the same outlier exposure (OE) setup as Hendrycks et al. (2019b), where OE data consists of random images from ImageNet or ImageNet-22K not seen during training.
  • Evaluating performance on standard one-vs.-rest anomaly detection benchmarks using AUC as the primary metric across multiple datasets (MNIST, CIFAR-10, ImageNet-1K).
  • Varying the number of OE samples from as few as 64 to 128 and assessing their impact on detection performance.
  • Testing generalization across different OE data sources, including EMNIST-Letters and CIFAR-100, to assess robustness and transferability.
  • Analyzing the influence of multiscale features in images by observing how each random OE image contributes diverse spatial-scale anomalies to the training signal.

Experimental results

Research questions

  • RQ1Can a supervised classification approach with minimal outlier exposure outperform state-of-the-art unsupervised deep anomaly detection methods on image benchmarks?
  • RQ2How few outlier samples are required to achieve competitive or superior performance compared to unsupervised methods?
  • RQ3Why do random natural images—lacking any semantic similarity to true anomalies—still serve as highly effective outliers in deep image AD?
  • RQ4To what extent does the multiscale structure of images enable random images to convey informative representations of anomalousness?

Key findings

  • A supervised classifier using only 64 random natural images as outliers outperforms all unsupervised and semi-supervised state-of-the-art methods on the ImageNet one-vs.-rest anomaly detection benchmark, achieving a mean AUC of 97.7%.
  • With 128 OE samples, the supervised approach achieves competitive performance (mean AUC 97.5%) on the CIFAR-10 benchmark, matching or exceeding the performance of prior unsupervised methods.
  • The method generalizes across different OE data sources: using 10 classes from EMNIST-Letters or 100 classes from CIFAR-100 as OE data still yields strong detection performance, indicating robustness to OE data composition.
  • The performance gain is attributed to the multiscale structural properties of images, where each random image contains features at various spatial scales that collectively represent diverse forms of anomalousness.
  • The results contradict the common belief that thousands of samples are needed for deep models to learn a class and that anomalies are inherently unconcentrated and hard to characterize.
  • Even without any ground-truth anomaly examples in the training data, the model learns to detect anomalies effectively, suggesting that random images are not just noise but carry rich, discriminative information for anomaly detection.

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.