Skip to main content
QUICK REVIEW

[Paper Review] Exposing Outlier Exposure: What Can Be Learned From Few, One, and Zero Outlier Images

Philipp Liznerski, Lukas Ruff|arXiv (Cornell University)|May 23, 2022
Anomaly Detection Techniques and ApplicationsComputer Science13 citations
TL;DR

This paper challenges the assumption that deep anomaly detection (AD) requires unsupervised methods or large-scale outlier exposure (OE) data. It demonstrates that standard classifiers trained on just 256 random images or even a single well-chosen outlier sample can outperform state-of-the-art AD models on ImageNet and CIFAR-10 benchmarks, while CLIP-based zero-shot representations achieve SOTA performance without any training data.

ABSTRACT

Due to the intractability of characterizing everything that looks unlike the normal data, anomaly detection (AD) is traditionally treated as an unsupervised problem utilizing only normal samples. However, it has recently been found that unsupervised image AD can be drastically improved through the utilization of huge corpora of random images to represent anomalousness; a technique which is known as Outlier Exposure. In this paper we show that specialized AD learning methods seem unnecessary for state-of-the-art performance, and furthermore one can achieve strong performance with just a small collection of Outlier Exposure data, contradicting common assumptions in the field of AD. We find that standard classifiers and semi-supervised one-class methods trained to discern between normal samples and relatively few random natural images are able to outperform the current state of the art on an established AD benchmark with ImageNet. Further experiments reveal that even one well-chosen outlier sample is sufficient to achieve decent performance on this benchmark (79.3% AUC). We investigate this phenomenon and find that one-class methods are more robust to the choice of training outliers, indicating that there are scenarios where these are still more useful than standard classifiers. Additionally, we include experiments that delineate the scenarios where our results hold. Lastly, no training samples are necessary when one uses the representations learned by CLIP, a recent foundation model, which achieves state-of-the-art AD results on CIFAR-10 and ImageNet in a zero-shot setting.

Motivation & Objective

  • To investigate whether large-scale outlier exposure is necessary for state-of-the-art performance in deep anomaly detection.
  • To evaluate the effectiveness of minimal outlier data—few, one, or zero samples—in training anomaly detection models.
  • To compare the robustness and performance of standard classifiers versus one-class methods under varying outlier exposure regimes.
  • To assess the viability of zero-shot anomaly detection using pre-trained CLIP representations without any fine-tuning.
  • To identify the conditions under which supervised OE with minimal data outperforms traditional unsupervised or semi-supervised approaches.

Proposed method

  • Training standard binary classifiers to distinguish between normal data and a small set of random natural images as outlier exposure (OE) data.
  • Using 256, 64, 16, or even a single OE sample to train classifiers on ImageNet and CIFAR-10 benchmarks.
  • Evaluating performance using the one-vs-rest anomaly detection benchmark, a standard litmus test in the field.
  • Applying data augmentation via low-pass and high-pass filtering to explore robustness of OE samples.
  • Employing CLIP’s vision encoder to extract features for zero-shot anomaly detection without any training data.
  • Comparing performance across different OE data types (e.g., natural images, filtered images) and optimization objectives (HSC, BCE).

Experimental results

Research questions

  • RQ1Can a standard classifier trained on just 256 random images outperform state-of-the-art unsupervised anomaly detection methods on ImageNet?
  • RQ2Is one well-chosen outlier sample sufficient to achieve competitive anomaly detection performance?
  • RQ3How does the performance of supervised OE compare to unsupervised OE when outlier data is limited or poorly representative?
  • RQ4In what scenarios do one-class methods outperform standard classifiers in anomaly detection with minimal OE data?
  • RQ5Can CLIP-based representations enable state-of-the-art zero-shot anomaly detection without any training data?

Key findings

  • A standard classifier trained on only 256 random outlier images outperforms the current state of the art on the ImageNet one-vs-rest anomaly detection benchmark.
  • With just one well-chosen outlier sample, a classifier achieves 79.3% AUC on the ImageNet benchmark, demonstrating strong performance with minimal data.
  • One-class methods are more robust to poor outlier selection than standard classifiers, indicating their utility in data-scarce or skewed outlier regimes.
  • Low-pass and high-pass filtering of OE data reveals that image frequency content significantly affects model generalization and performance.
  • CLIP-based zero-shot representations achieve state-of-the-art results on CIFAR-10 and ImageNet without any training data, outperforming supervised and unsupervised baselines.
  • The results challenge the long-held assumption that unsupervised or semi-supervised methods are necessary for deep AD, showing that supervised OE with minimal data can be highly effective.

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.