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

08/22/2023
by   Masato Tamura, et al.
0

This paper presents a novel method that leverages a visual-language model, CLIP, as a data source for zero-shot anomaly detection. Tremendous efforts have been put towards developing anomaly detectors due to their potential industrial applications. Considering the difficulty in acquiring various anomalous samples for training, most existing methods train models with only normal samples and measure discrepancies from the distribution of normal samples during inference, which requires training a model for each object category. The problem of this inefficient training requirement has been tackled by designing a CLIP-based anomaly detector that applies prompt-guided classification to each part of an image in a sliding window manner. However, the method still suffers from the labor of careful prompt ensembling with known object categories. To overcome the issues above, we propose leveraging CLIP as a data source for training. Our method generates text embeddings with the text encoder in CLIP with typical prompts that include words of normal and anomaly. In addition to these words, we insert several randomly generated words into prompts, which enables the encoder to generate a diverse set of normal and anomalous samples. Using the generated embeddings as training data, a feed-forward neural network learns to extract features of normal and anomaly from CLIP's embeddings, and as a result, a category-agnostic anomaly detector can be obtained without any training images. Experimental results demonstrate that our method achieves state-of-the-art performance without laborious prompt ensembling in zero-shot setups.

READ FULL TEXT

page 1

page 2

research
03/26/2023

WinCLIP: Zero-/Few-Shot Anomaly Classification and Segmentation

Visual anomaly classification and segmentation are vital for automating ...
research
08/09/2023

Multi-Scale Memory Comparison for Zero-/Few-Shot Anomaly Detection

Anomaly detection has gained considerable attention due to its broad ran...
research
07/15/2022

Registration based Few-Shot Anomaly Detection

This paper considers few-shot anomaly detection (FSAD), a practical yet ...
research
10/28/2021

Generalized Anomaly Detection

We study anomaly detection for the case when the normal class consists o...
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
11/25/2022

MAEDAY: MAE for few and zero shot AnomalY-Detection

The goal of Anomaly-Detection (AD) is to identify outliers, or outlying ...

Please sign up or login with your details

Forgot password? Click here to reset