Skip to main content
QUICK REVIEW

[Paper Review] Do We Really Need to Learn Representations from In-domain Data for Outlier Detection?

Zhisheng Xiao, Qing Yan|arXiv (Cornell University)|May 19, 2021
Anomaly Detection Techniques and ApplicationsComputer Science84 references6 citations
TL;DR

This paper demonstrates that pre-trained ImageNet representations—specifically those from self-supervised learning—can serve as universal feature extractors for outlier detection without fine-tuning on in-domain data. Using a single pre-trained network and simple parametric detectors like Mahalanobis distance on the feature space, the method achieves competitive or superior performance across multiple benchmarks, challenging the necessity of task-specific representation learning.

ABSTRACT

Unsupervised outlier detection, which predicts if a test sample is an outlier or not using only the information from unlabelled inlier data, is an important but challenging task. Recently, methods based on the two-stage framework achieve state-of-the-art performance on this task. The framework leverages self-supervised representation learning algorithms to train a feature extractor on inlier data, and applies a simple outlier detector in the feature space. In this paper, we explore the possibility of avoiding the high cost of training a distinct representation for each outlier detection task, and instead using a single pre-trained network as the universal feature extractor regardless of the source of in-domain data. In particular, we replace the task-specific feature extractor by one network pre-trained on ImageNet with a self-supervised loss. In experiments, we demonstrate competitive or better performance on a variety of outlier detection benchmarks compared with previous two-stage methods, suggesting that learning representations from in-domain data may be unnecessary for outlier detection.

Motivation & Objective

  • To investigate whether learning task-specific representations from in-domain data is truly necessary for effective unsupervised outlier detection.
  • To evaluate the performance of a universal feature extractor—pre-trained on ImageNet—on diverse outlier detection benchmarks without any adaptation to the target in-distribution data.
  • To establish a simple, zero-cost baseline for outlier detection that avoids expensive representation learning on in-domain data.
  • To assess the impact of input pre-processing and feature space outlier detection methods on performance when using pre-trained features.

Proposed method

  • Utilizes a single pre-trained deep neural network (e.g., MoCo, SimCLR) trained on ImageNet using self-supervised contrastive learning as a universal feature extractor.
  • Applies a fixed, pre-trained feature extractor to input images without any fine-tuning, regardless of the in-distribution data source.
  • Employs input pre-processing including bi-cubic up-sampling (from 32×32 to 224×224) to match ImageNet input dimensions, with ablation on up-sampling methods.
  • Applies a Mahalanobis distance-based outlier detector with a tied covariance matrix in the feature space, selected for its balance of performance and efficiency.
  • Conducts ablation studies on input perturbation (ε=0.01) and detector hyperparameters, though perturbation is excluded in main results due to inference cost.
  • Uses standard outlier detection metrics (AUROC) across multiple benchmarks (e.g., CIFAR-10, SVHN, Tiny ImageNet) to evaluate performance.

Experimental results

Research questions

  • RQ1Can a pre-trained ImageNet representation, without any fine-tuning on in-domain data, achieve competitive outlier detection performance?
  • RQ2How does the performance of a universal pre-trained feature extractor compare to state-of-the-art two-stage methods that require in-domain representation learning?
  • RQ3What is the impact of input pre-processing (e.g., up-sampling method) on the final outlier detection performance when using pre-trained features?
  • RQ4Does the choice of outlier detector in the feature space (e.g., parametric vs. non-parametric) affect performance when using pre-trained features?
  • RQ5Is input perturbation during inference beneficial for performance, and does the trade-off in computational cost justify its use?

Key findings

  • The proposed method achieves state-of-the-art or competitive AUROC scores across multiple outlier detection benchmarks without any training on in-domain data.
  • Using bi-cubic up-sampling instead of nearest neighbor up-sampling improves AUROC from 80.7% to 92.6%, demonstrating the importance of pre-processing quality.
  • The Mahalanobis distance detector with a tied covariance matrix achieves the highest AUROC of 92.6% on the ablation study, outperforming both non-parametric and separate-covariance variants.
  • Input perturbation (ε=0.01) improves AUROC to 93.7% but is not used in main results due to increased inference cost, indicating a potential performance gain at the cost of efficiency.
  • The method outperforms or matches state-of-the-art two-stage approaches that require expensive in-domain representation learning, suggesting that domain-specific representation learning may be unnecessary.
  • The compact structure of ImageNet-pretrained features allows effective modeling by simple parametric detectors, indicating that these features capture discriminative, low-dimensional inlier structure.

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.