MAEDAY: MAE for few and zero shot AnomalY-Detection

11/25/2022
by   Eli Schwartz, et al.
0

The goal of Anomaly-Detection (AD) is to identify outliers, or outlying regions, from some unknown distribution given only a set of positive (good) examples. Few-Shot AD (FSAD) aims to solve the same task with a minimal amount of normal examples. Recent embedding-based methods, that compare the embedding vectors of queries to a set of reference embeddings, have demonstrated impressive results for FSAD, where as little as one good example is provided. A different approach, image-reconstruction-based, has been historically used for AD. The idea is to train a model to recover normal images from corrupted observations, assuming that the model will fail to recover regions when encountered with an out-of-distribution image. However, image-reconstruction-based methods were not yet used in the low-shot regime as they need to be trained on a diverse set of normal images in order to properly perform. We suggest using Masked Auto-Encoder (MAE), a self-supervised transformer model trained for recovering missing image regions based on their surroundings for FSAD. We show that MAE performs well by pre-training on an arbitrary set of natural images (ImageNet) and only fine-tuning on a small set of normal images. We name this method MAEDAY. We further find that MAEDAY provides an orthogonal signal to the embedding-based methods and the ensemble of the two approaches achieves very strong SOTA results. We also present a novel task of Zero-Shot AD (ZSAD) where no normal samples are available at training time. We show that MAEDAY performs surprisingly well at this task. Finally, we provide a new dataset for detecting foreign objects on the ground and demonstrate superior results for this task as well. Code is available at https://github.com/EliSchwartz/MAEDAY .

READ FULL TEXT

page 2

page 6

page 7

page 8

research
02/15/2023

Zero-Shot Anomaly Detection without Foundation Models

Anomaly detection (AD) tries to identify data instances that deviate fro...
research
07/28/2022

SPot-the-Difference Self-Supervised Pre-training for Anomaly Detection and Segmentation

Visual anomaly detection is commonly used in industrial quality inspecti...
research
05/23/2022

Exposing Outlier Exposure: What Can Be Learned From Few, One, and Zero Outlier Images

Traditionally anomaly detection (AD) is treated as an unsupervised probl...
research
03/01/2022

Omni-frequency Channel-selection Representations for Unsupervised Anomaly Detection

Density-based and classification-based methods have ruled unsupervised a...
research
08/29/2023

AnomalyGPT: Detecting Industrial Anomalies using Large Vision-Language Models

Large Vision-Language Models (LVLMs) such as MiniGPT-4 and LLaVA have de...
research
08/22/2023

Random Word Data Augmentation with CLIP for Zero-Shot Anomaly Detection

This paper presents a novel method that leverages a visual-language mode...
research
11/15/2022

Heatmap-based Out-of-Distribution Detection

Our work investigates out-of-distribution (OOD) detection as a neural ne...

Please sign up or login with your details

Forgot password? Click here to reset