TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/WinCLIP: Zero-/Few-Shot Anomaly Classification and Segment...

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

Jongheon Jeong, Yang Zou, Taewan Kim, Dongqing Zhang, Avinash Ravichandran, Onkar Dabeer

2023-03-26CVPR 2023 1zero-shot anomaly detectionSegmentationAnomaly DetectionClassificationAnomaly ClassificationLanguage Modelling
PaperPDFCodeCodeCodeCode

Abstract

Visual anomaly classification and segmentation are vital for automating industrial quality inspection. The focus of prior research in the field has been on training custom models for each quality inspection task, which requires task-specific images and annotation. In this paper we move away from this regime, addressing zero-shot and few-normal-shot anomaly classification and segmentation. Recently CLIP, a vision-language model, has shown revolutionary generality with competitive zero-/few-shot performance in comparison to full-supervision. But CLIP falls short on anomaly classification and segmentation tasks. Hence, we propose window-based CLIP (WinCLIP) with (1) a compositional ensemble on state words and prompt templates and (2) efficient extraction and aggregation of window/patch/image-level features aligned with text. We also propose its few-normal-shot extension WinCLIP+, which uses complementary information from normal images. In MVTec-AD (and VisA), without further tuning, WinCLIP achieves 91.8%/85.1% (78.1%/79.6%) AUROC in zero-shot anomaly classification and segmentation while WinCLIP+ does 93.1%/95.2% (83.8%/96.4%) in 1-normal-shot, surpassing state-of-the-art by large margins.

Results

TaskDatasetMetricValueModel
Anomaly DetectionMVTec ADDetection AUROC95.2WinCLIP+ (4-shot)
Anomaly DetectionMVTec ADSegmentation AUPRO89WinCLIP+ (4-shot)
Anomaly DetectionMVTec ADDetection AUROC94.4WinCLIP+ (2-shot)
Anomaly DetectionMVTec ADSegmentation AUPRO88.4WinCLIP+ (2-shot)
Anomaly DetectionMVTec ADDetection AUROC93.1WinCLIP+ (1-shot)
Anomaly DetectionMVTec ADSegmentation AUPRO87.1WinCLIP+ (1-shot)
Anomaly DetectionMVTec ADDetection AUROC91.8WinCLIP (0-shot)
Anomaly DetectionMVTec ADSegmentation AUPRO64.6WinCLIP (0-shot)
Anomaly DetectionVisADetection AUROC87.3WinCLIP+ (4-shot)
Anomaly DetectionVisASegmentation AUPRO87.6WinCLIP+ (4-shot)
Anomaly DetectionVisASegmentation AUPRO (until 30% FPR)87.6WinCLIP+ (4-shot)
Anomaly DetectionVisADetection AUROC84.6WinCLIP+ (2-shot)
Anomaly DetectionVisASegmentation AUPRO86.2WinCLIP+ (2-shot)
Anomaly DetectionVisASegmentation AUPRO (until 30% FPR)86.2WinCLIP+ (2-shot)
Anomaly DetectionVisADetection AUROC83.8WinCLIP+ (1-shot)
Anomaly DetectionVisASegmentation AUPRO85.1WinCLIP+ (1-shot)
Anomaly DetectionVisASegmentation AUPRO (until 30% FPR)85.1WinCLIP+ (1-shot)
Anomaly DetectionVisADetection AUROC78.1WinCLIP (0-shot)
Anomaly DetectionVisASegmentation AUPRO56.8WinCLIP (0-shot)
Anomaly DetectionVisASegmentation AUPRO (until 30% FPR)56.8WinCLIP (0-shot)

Related Papers

SeC: Advancing Complex Video Object Segmentation via Progressive Concept Construction2025-07-21Multi-Stage Prompt Inference Attacks on Enterprise LLM Systems2025-07-21Visual-Language Model Knowledge Distillation Method for Image Quality Assessment2025-07-21Deep Learning-Based Fetal Lung Segmentation from Diffusion-weighted MRI Images and Lung Maturity Evaluation for Fetal Growth Restriction2025-07-17DiffOSeg: Omni Medical Image Segmentation via Multi-Expert Collaboration Diffusion Model2025-07-17From Variability To Accuracy: Conditional Bernoulli Diffusion Models with Consensus-Driven Correction for Thin Structure Segmentation2025-07-17Unleashing Vision Foundation Models for Coronary Artery Segmentation: Parallel ViT-CNN Encoding and Variational Fusion2025-07-17SCORE: Scene Context Matters in Open-Vocabulary Remote Sensing Instance Segmentation2025-07-17