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/Exploring Intrinsic Normal Prototypes within a Single Imag...

Exploring Intrinsic Normal Prototypes within a Single Image for Universal Anomaly Detection

Wei Luo, Yunkang Cao, Haiming Yao, Xiaotian Zhang, Jianan Lou, Yuqi Cheng, Weiming Shen, Wenyong Yu

2025-03-04CVPR 2025 1Anomaly DetectionMulti-class Anomaly Detection
PaperPDFCodeCode(official)

Abstract

Anomaly detection (AD) is essential for industrial inspection, yet existing methods typically rely on ``comparing'' test images to normal references from a training set. However, variations in appearance and positioning often complicate the alignment of these references with the test image, limiting detection accuracy. We observe that most anomalies manifest as local variations, meaning that even within anomalous images, valuable normal information remains. We argue that this information is useful and may be more aligned with the anomalies since both the anomalies and the normal information originate from the same image. Therefore, rather than relying on external normality from the training set, we propose INP-Former, a novel method that extracts Intrinsic Normal Prototypes (INPs) directly from the test image. Specifically, we introduce the INP Extractor, which linearly combines normal tokens to represent INPs. We further propose an INP Coherence Loss to ensure INPs can faithfully represent normality for the testing image. These INPs then guide the INP-Guided Decoder to reconstruct only normal tokens, with reconstruction errors serving as anomaly scores. Additionally, we propose a Soft Mining Loss to prioritize hard-to-optimize samples during training. INP-Former achieves state-of-the-art performance in single-class, multi-class, and few-shot AD tasks across MVTec-AD, VisA, and Real-IAD, positioning it as a versatile and universal solution for AD. Remarkably, INP-Former also demonstrates some zero-shot AD capability. Code is available at:https://github.com/luow23/INP-Former.

Results

TaskDatasetMetricValueModel
Anomaly DetectionMVTec ADDetection AUROC99.8INP-Fomer ViT-L (model-unified multi-class)
Anomaly DetectionMVTec ADSegmentation AP72.1INP-Fomer ViT-L (model-unified multi-class)
Anomaly DetectionMVTec ADSegmentation AUPRO95.6INP-Fomer ViT-L (model-unified multi-class)
Anomaly DetectionMVTec ADSegmentation AUROC98.6INP-Fomer ViT-L (model-unified multi-class)
Anomaly DetectionVisADetection AUROC98.9INP-Former ViT-B (model-unified multi-class)
Anomaly DetectionVisAF1-Score96.6INP-Former ViT-B (model-unified multi-class)
Anomaly DetectionVisASegmentation AUPRO94.4INP-Former ViT-B (model-unified multi-class)
Anomaly DetectionVisASegmentation AUPRO (until 30% FPR)94.4INP-Former ViT-B (model-unified multi-class)
Anomaly DetectionVisASegmentation AUROC98.9INP-Former ViT-B (model-unified multi-class)
Anomaly DetectionMVTec ADDetection AUROC99.8INP-Former-Large
Anomaly DetectionMVTec ADSegmentation AUROC98.6INP-Former-Large
Anomaly DetectionMVTec ADDetection AUROC99.7INP-Former-Base
Anomaly DetectionMVTec ADSegmentation AUROC98.5INP-Former-Base

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