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

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

4 Mar 2025CVPR 2025 1arXiv:2503.02424archive 2025-07-28

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

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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2503.02424")

Code

Syntology Ran 4 of 5 code samples harvested from 2 repositories linked to this paper; 1 has no recorded run. Of those that ran: 3 ran · our draft was wrong; 1 ran with no contract checked.

By repository: official repository: 1 sample from 1 repository, 1 ran; community (archive-listed): 4 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

luow23/inp-former officialmentioned in papermentioned on GitHubpytorchMIT report
septmars/DL pytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

5 samples harvested; 4 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · our draft was wrong
1ran
1unverified

Licence: 0 of the 5 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

INP_Former luow23/INP-Former/models/uad.py official repository ran MIT (permissive) · ea7fb411e7e6b7ea · report
conv1x1 septmars/DL/ReContrast/de_resnet.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 2a80220dabcb742a · report
conv3x3 septmars/DL/ReContrast/de_resnet.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 600ff2c45e0de056 · report
deconv2x2 septmars/DL/ReContrast/de_resnet.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 8d035278d5e4a82a · report
resnet18 septmars/DL/ReContrast/resnet.py community (archive-listed) unverified MIT (permissive) · a631c312fa4d7cbd · report

Tasks

Anomaly DetectionMulti-class Anomaly Detection

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Anomaly Detection MVTec AD INP-Fomer ViT-L (model-unified multi-class) Detection AUROC 99.8 #5 of 148 Archive leaderboard report
Anomaly Detection MVTec AD INP-Fomer ViT-L (model-unified multi-class) Segmentation AP 72.1 #5 of 148 Archive leaderboard report
Anomaly Detection MVTec AD INP-Fomer ViT-L (model-unified multi-class) Segmentation AUPRO 95.6 #5 of 148 Archive leaderboard report
Anomaly Detection MVTec AD INP-Fomer ViT-L (model-unified multi-class) Segmentation AUROC 98.6 #5 of 148 Archive leaderboard report
Anomaly Detection VisA INP-Former ViT-B (model-unified multi-class) Detection AUROC 98.9 #5 of 50 Archive leaderboard report
Anomaly Detection VisA INP-Former ViT-B (model-unified multi-class) F1-Score 96.6 #5 of 50 Archive leaderboard report
Anomaly Detection VisA INP-Former ViT-B (model-unified multi-class) Segmentation AUPRO 94.4 #5 of 50 Archive leaderboard report
Anomaly Detection VisA INP-Former ViT-B (model-unified multi-class) Segmentation AUPRO (until 30% FPR) 94.4 #5 of 50 Archive leaderboard report
Anomaly Detection VisA INP-Former ViT-B (model-unified multi-class) Segmentation AUROC 98.9 #5 of 50 Archive leaderboard report
Multi-class Anomaly Detection MVTec AD INP-Former-Large Detection AUROC 99.8 #1 of 13 Archive leaderboard report
Multi-class Anomaly Detection MVTec AD INP-Former-Large Segmentation AUROC 98.6 #1 of 13 Archive leaderboard report
Multi-class Anomaly Detection MVTec AD INP-Former-Base Detection AUROC 99.7 #3 of 13 Archive leaderboard report
Multi-class Anomaly Detection MVTec AD INP-Former-Base Segmentation AUROC 98.5 #3 of 13 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections