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/MuSc: Zero-Shot Industrial Anomaly Classification and Segm...

MuSc: Zero-Shot Industrial Anomaly Classification and Segmentation with Mutual Scoring of the Unlabeled Images

Xurui Li, Ziming Huang, Feng Xue, Yu Zhou

2024-01-30Anomaly DetectionAnomaly Classification
PaperPDFCode(official)

Abstract

This paper studies zero-shot anomaly classification (AC) and segmentation (AS) in industrial vision. We reveal that the abundant normal and abnormal cues implicit in unlabeled test images can be exploited for anomaly determination, which is ignored by prior methods. Our key observation is that for the industrial product images, the normal image patches could find a relatively large number of similar patches in other unlabeled images, while the abnormal ones only have a few similar patches. We leverage such a discriminative characteristic to design a novel zero-shot AC/AS method by Mutual Scoring (MuSc) of the unlabeled images, which does not need any training or prompts. Specifically, we perform Local Neighborhood Aggregation with Multiple Degrees (LNAMD) to obtain the patch features that are capable of representing anomalies in varying sizes. Then we propose the Mutual Scoring Mechanism (MSM) to leverage the unlabeled test images to assign the anomaly score to each other. Furthermore, we present an optimization approach named Re-scoring with Constrained Image-level Neighborhood (RsCIN) for image-level anomaly classification to suppress the false positives caused by noises in normal images. The superior performance on the challenging MVTec AD and VisA datasets demonstrates the effectiveness of our approach. Compared with the state-of-the-art zero-shot approaches, MuSc achieves a $\textbf{21.1%}$ PRO absolute gain (from 72.7% to 93.8%) on MVTec AD, a $\textbf{19.4%}$ pixel-AP gain and a $\textbf{14.7%}$ pixel-AUROC gain on VisA. In addition, our zero-shot approach outperforms most of the few-shot approaches and is comparable to some one-class methods. Code is available at https://github.com/xrli-U/MuSc.

Results

TaskDatasetMetricValueModel
Anomaly DetectionBTADDetection AUROC96.16MuSc (zero-shot)
Anomaly DetectionBTADSegmentation AP57.15MuSc (zero-shot)
Anomaly DetectionBTADSegmentation AUPRO83.43MuSc (zero-shot)
Anomaly DetectionBTADSegmentation AUROC97.35MuSc (zero-shot)
Anomaly DetectionMVTec ADDetection AUROC97.8MuSc (zero-shot)
Anomaly DetectionMVTec ADSegmentation AP62.7MuSc (zero-shot)
Anomaly DetectionMVTec ADSegmentation AUPRO93.8MuSc (zero-shot)
Anomaly DetectionMVTec ADSegmentation AUROC97.3MuSc (zero-shot)
Anomaly DetectionVisADetection AUROC92.8MuSc (zero-shot)
Anomaly DetectionVisASegmentation AUPRO92.7MuSc (zero-shot)
Anomaly DetectionVisASegmentation AUPRO (until 30% FPR)92.7MuSc (zero-shot)
Anomaly DetectionVisASegmentation AUROC98.8MuSc (zero-shot)
Anomaly DetectionMVTec LOCO ADAvg. Detection AUROC75.9MuSc (zero-shot)
Anomaly DetectionMVTec LOCO ADDetection AUROC (only logical)67.47MuSc (zero-shot)
Anomaly DetectionMVTec LOCO ADDetection AUROC (only structural)84.3MuSc (zero-shot)
Anomaly DetectionMVTec LOCO ADSegmentation AU-sPRO (until FPR 5%)63.04MuSc (zero-shot)

Related Papers

Multi-Stage Prompt Inference Attacks on Enterprise LLM Systems2025-07-213DKeyAD: High-Resolution 3D Point Cloud Anomaly Detection via Keypoint-Guided Point Clustering2025-07-17A Semi-Supervised Learning Method for the Identification of Bad Exposures in Large Imaging Surveys2025-07-17A Privacy-Preserving Framework for Advertising Personalization Incorporating Federated Learning and Differential Privacy2025-07-16Bridge Feature Matching and Cross-Modal Alignment with Mutual-filtering for Zero-shot Anomaly Detection2025-07-15Adversarial Activation Patching: A Framework for Detecting and Mitigating Emergent Deception in Safety-Aligned Transformers2025-07-12Towards High-Resolution 3D Anomaly Detection: A Scalable Dataset and Real-Time Framework for Subtle Industrial Defects2025-07-10seMCD: Sequentially implemented Monte Carlo depth computation with statistical guarantees2025-07-08