AnomalyCLIP: Object-agnostic prompt learning for zero-shot anomaly detection
Zero-shot anomaly detection (ZSAD) requires detection models trained using auxiliary data to detect anomalies without any training sample in a target dataset. It is a crucial task when training data is not accessible due to various concerns, e.g., data privacy, yet it is challenging since the models...
Saved in:
Main Authors: | , , , , |
---|---|
Format: | text |
Language: | English |
Published: |
Institutional Knowledge at Singapore Management University
2024
|
Subjects: | |
Online Access: | https://ink.library.smu.edu.sg/sis_research/9279 https://ink.library.smu.edu.sg/context/sis_research/article/10279/viewcontent/9222_AnomalyCLIP_Object_agnost.pdf |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Institution: | Singapore Management University |
Language: | English |
id |
sg-smu-ink.sis_research-10279 |
---|---|
record_format |
dspace |
spelling |
sg-smu-ink.sis_research-102792024-09-09T06:58:00Z AnomalyCLIP: Object-agnostic prompt learning for zero-shot anomaly detection ZHOU, Qihang PANG, Guansong TIAN, Yu HE, Shibo CHEN, Jiming Zero-shot anomaly detection (ZSAD) requires detection models trained using auxiliary data to detect anomalies without any training sample in a target dataset. It is a crucial task when training data is not accessible due to various concerns, e.g., data privacy, yet it is challenging since the models need to generalize to anomalies across different domains where the appearance of foreground objects, abnormal regions, and background features, such as defects/tumors on different products/ organs, can vary significantly. Recently large pre-trained vision-language models (VLMs), such as CLIP, have demonstrated strong zero-shot recognition ability in various vision tasks, including anomaly detection. However, their ZSAD performance is weak since the VLMs focus more on modeling the class semantics of the foreground objects rather than the abnormality/normality in the images. In this paper we introduce a novel approach, namely AnomalyCLIP, to adapt CLIP for accurate ZSAD across different domains. The key insight of AnomalyCLIP is to learn object-agnostic text prompts that capture generic normality and abnormality in an image regardless of its foreground objects. This allows our model to focus on the abnormal image regions rather than the object semantics, enabling generalized normality and abnormality recognition on diverse types of objects. Large-scale experiments on 17 real-world anomaly detection datasets show that AnomalyCLIP achieves superior zero-shot performance of detecting and segmenting anomalies in datasets of highly diverse class semantics from various defect inspection and medical imaging domains. Code will be made available at https://github.com/zqhang/AnomalyCLIP. 2024-05-01T07:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/9279 https://ink.library.smu.edu.sg/context/sis_research/article/10279/viewcontent/9222_AnomalyCLIP_Object_agnost.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University Anomaly detection Zero-shot anomaly detection CLIP Industrial defect inspection Databases and Information Systems |
institution |
Singapore Management University |
building |
SMU Libraries |
continent |
Asia |
country |
Singapore Singapore |
content_provider |
SMU Libraries |
collection |
InK@SMU |
language |
English |
topic |
Anomaly detection Zero-shot anomaly detection CLIP Industrial defect inspection Databases and Information Systems |
spellingShingle |
Anomaly detection Zero-shot anomaly detection CLIP Industrial defect inspection Databases and Information Systems ZHOU, Qihang PANG, Guansong TIAN, Yu HE, Shibo CHEN, Jiming AnomalyCLIP: Object-agnostic prompt learning for zero-shot anomaly detection |
description |
Zero-shot anomaly detection (ZSAD) requires detection models trained using auxiliary data to detect anomalies without any training sample in a target dataset. It is a crucial task when training data is not accessible due to various concerns, e.g., data privacy, yet it is challenging since the models need to generalize to anomalies across different domains where the appearance of foreground objects, abnormal regions, and background features, such as defects/tumors on different products/ organs, can vary significantly. Recently large pre-trained vision-language models (VLMs), such as CLIP, have demonstrated strong zero-shot recognition ability in various vision tasks, including anomaly detection. However, their ZSAD performance is weak since the VLMs focus more on modeling the class semantics of the foreground objects rather than the abnormality/normality in the images. In this paper we introduce a novel approach, namely AnomalyCLIP, to adapt CLIP for accurate ZSAD across different domains. The key insight of AnomalyCLIP is to learn object-agnostic text prompts that capture generic normality and abnormality in an image regardless of its foreground objects. This allows our model to focus on the abnormal image regions rather than the object semantics, enabling generalized normality and abnormality recognition on diverse types of objects. Large-scale experiments on 17 real-world anomaly detection datasets show that AnomalyCLIP achieves superior zero-shot performance of detecting and segmenting anomalies in datasets of highly diverse class semantics from various defect inspection and medical imaging domains. Code will be made available at https://github.com/zqhang/AnomalyCLIP. |
format |
text |
author |
ZHOU, Qihang PANG, Guansong TIAN, Yu HE, Shibo CHEN, Jiming |
author_facet |
ZHOU, Qihang PANG, Guansong TIAN, Yu HE, Shibo CHEN, Jiming |
author_sort |
ZHOU, Qihang |
title |
AnomalyCLIP: Object-agnostic prompt learning for zero-shot anomaly detection |
title_short |
AnomalyCLIP: Object-agnostic prompt learning for zero-shot anomaly detection |
title_full |
AnomalyCLIP: Object-agnostic prompt learning for zero-shot anomaly detection |
title_fullStr |
AnomalyCLIP: Object-agnostic prompt learning for zero-shot anomaly detection |
title_full_unstemmed |
AnomalyCLIP: Object-agnostic prompt learning for zero-shot anomaly detection |
title_sort |
anomalyclip: object-agnostic prompt learning for zero-shot anomaly detection |
publisher |
Institutional Knowledge at Singapore Management University |
publishDate |
2024 |
url |
https://ink.library.smu.edu.sg/sis_research/9279 https://ink.library.smu.edu.sg/context/sis_research/article/10279/viewcontent/9222_AnomalyCLIP_Object_agnost.pdf |
_version_ |
1814047871524143104 |