Skip to main navigation Skip to search Skip to main content

CLIP-FSAC: Boosting CLIP for Few-Shot Anomaly Classification with Synthetic Anomalies

  • Zuo Zuo
  • , Yao Wu
  • , Baoqiang Li
  • , Jiahao Dong
  • , You Zhou
  • , Lei Zhou
  • , Yanyun Qu
  • , Zongze Wu
  • Xi'an Jiaotong University
  • Guangdong Laboratory of Artificial Intelligence and Digital Economy (SZ)
  • Xiamen University
  • Shenzhen University

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

15 Scopus citations

Abstract

Few-shot anomaly classification (FSAC) is a vital task in manufacturing industry.Recent methods focus on utilizing CLIP in zero/few normal shot anomaly detection instead of custom models.However, there is a lack of specific text prompts in anomaly classification and most of them ignore the modality gap between image and text.Meanwhile, there is distribution discrepancy between the pre-trained and the target data.To provide a remedy, in this paper, we propose a method to boost CLIP for few-normal-shot anomaly classification, dubbed CLIP-FSAC, which contains two-stage of training and alternating fine-tuning with two modality-specific adapters.Specifically, in the first stage, we train image adapter with text representation output from text encoder and introduce an image-to-text tuning to enhance multi-modal interaction and facilitate a better language-compatible visual representation.In the second stage, we freeze the image adapter to train the text adapter.Both of them are constrained by fusion-text contrastive loss.Comprehensive experiment results are provided for evaluating our method in few-normal-shot anomaly classification, which outperforms the state-of-the-art method by 12.2%, 10.9%, 10.4% AUROC on VisA for 1, 2, and 4-shot settings.

Original languageEnglish
Title of host publicationProceedings of the 33rd International Joint Conference on Artificial Intelligence, IJCAI 2024
EditorsKate Larson
PublisherInternational Joint Conferences on Artificial Intelligence
Pages1834-1842
Number of pages9
ISBN (Electronic)9781956792041
StatePublished - 2024
Event33rd International Joint Conference on Artificial Intelligence, IJCAI 2024 - Jeju, Korea, Republic of
Duration: 3 Aug 20249 Aug 2024

Publication series

NameIJCAI International Joint Conference on Artificial Intelligence
ISSN (Print)1045-0823

Conference

Conference33rd International Joint Conference on Artificial Intelligence, IJCAI 2024
Country/TerritoryKorea, Republic of
CityJeju
Period3/08/249/08/24

Fingerprint

Dive into the research topics of 'CLIP-FSAC: Boosting CLIP for Few-Shot Anomaly Classification with Synthetic Anomalies'. Together they form a unique fingerprint.

Cite this