HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

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

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

Abstract

Anomaly detection (AD) is essential for industrial inspection, yet existingmethods typically rely on ``comparing'' test images to normal references from atraining set. However, variations in appearance and positioning oftencomplicate the alignment of these references with the test image, limitingdetection accuracy. We observe that most anomalies manifest as localvariations, meaning that even within anomalous images, valuable normalinformation remains. We argue that this information is useful and may be morealigned with the anomalies since both the anomalies and the normal informationoriginate from the same image. Therefore, rather than relying on externalnormality from the training set, we propose INP-Former, a novel method thatextracts Intrinsic Normal Prototypes (INPs) directly from the test image.Specifically, we introduce the INP Extractor, which linearly combines normaltokens to represent INPs. We further propose an INP Coherence Loss to ensureINPs can faithfully represent normality for the testing image. These INPs thenguide the INP-Guided Decoder to reconstruct only normal tokens, withreconstruction errors serving as anomaly scores. Additionally, we propose aSoft 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 aversatile and universal solution for AD. Remarkably, INP-Former alsodemonstrates some zero-shot AD capability. Code is availableat:https://github.com/luow23/INP-Former.

Code Repositories

luow23/inp-former
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
anomaly-detection-on-mvtec-adINP-Fomer ViT-L (model-unified multi-class)
Detection AUROC: 99.8
Segmentation AP: 72.1
Segmentation AUPRO: 95.6
Segmentation AUROC: 98.6
anomaly-detection-on-visaINP-Former ViT-B (model-unified multi-class)
Detection AUROC: 98.9
F1-Score: 96.6
Segmentation AUPRO: 94.4
Segmentation AUPRO (until 30% FPR): 94.4
Segmentation AUROC: 98.9

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Exploring Intrinsic Normal Prototypes within a Single Image for Universal Anomaly Detection | Papers | HyperAI