arXiv:2611.01230cs.CVOct 2026

Manuscript Offprint

arXiv:2611.01230

Reproducing INP-Former: Reconstructing Intrinsic Normal Prototypes for Industrial Anomaly Detection

Yunfei Liang, Juan Pablo Osorio Rivera

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We reproduce the central claims of Luo et al. (2025), which introduces INP-Former, a reconstruction-based method for multi-class industrial anomaly detection. INP-Former extracts Intrinsic Normal Prototypes (INPs) from each test image and uses them to guide a decoder that reconstructs normal features, without a stored memory bank. Using the authors' released code, we reproduce the reported performance on MVTec AD and VisA and extend the evaluation to MVTec AD 2, where image AUROC with the default settings is 63.4, compared with 99.7 on MVTec AD. On MVTec AD, a five-seed ablation shows that most of the performance comes from the INP mechanism, while the two auxiliary losses add small changes whose direction depends on the metric. A paired comparison with both losses disabled confirms the benefit of INP on MVTec AD 2. The default of six prototypes transfers less well: the plateau beyond four prototypes reproduces on MVTec AD and VisA, but on MVTec AD 2 a single prototype outperforms six in AU-PRO on the public split and on both hidden test splits. We also measure practical trade-offs in resolution, backbone size, training length, and LoRA adaptation, and examine performance by defect size, lighting condition, and a stricter AU-PRO limit. Several conclusions from the original benchmarks, including the default prototype count, do not carry over to harder data.

The code we used for reproducing the study can be found here: https://github.com/garasnote/Repro-INPFormer

1 Introduction

Industrial anomaly detection (AD) aims to identify defective products in manufacturing using only normal training samples. Recent reconstruction-based approaches learn to encode and reconstruct normal patterns; at test time, anomalies produce high reconstruction error and are thus detected. A key challenge in multi-class settings where a single model handles all product categories is that the model must capture diverse normal appearances without conflating them.

Luo et al. (2025) propose INP-Former, which addresses this by extracting Intrinsic Normal Prototypes (INPs) directly from test images via cross-attention aggregation, rather than relying on stored memory banks or class-specific models. The INPs capture the dominant normal patterns present in each test image and guide a prototype-based decoder to reconstruct features. Anomalous regions, which deviate from the extracted normal prototypes, yield high reconstruction error. The method additionally introduces a soft-mining loss Lsm\mathcal{L}_{sm}, which reweights the gradient contribution of hard-to-reconstruct normal patches, and a coherence loss Lc\mathcal{L}_{c}, which keeps the extracted prototypes close to the encoder features they are drawn from.

In this reproducibility study, we:

  1. Verify the main performance claims on MVTec AD (Bergmann et al., 2019) and VisA (Zou et al., 2022) using the authors' released code and pretrained DINOv2 backbone (Oquab et al., 2024).

  2. Extend the evaluation to MVTec AD 2 (Heckler-Kram et al., 2026), a newer and more challenging benchmark.

  3. Extend the loss and module ablation of the original paper with additional configurations and multiple random seeds on MVTec AD.

  4. Conduct additional ablations on the number of INP tokens, input resolution, and backbone size, on MVTec AD, VisA, and MVTec AD 2 as indicated per experiment.

  5. Report analyses beyond the original paper: parameter-efficient adaptation with LoRA (Hu et al., 2022), anomaly area versus detection performance, inference speed benchmarks, convergence behaviour, AU-PRO evaluated at a stricter false-positive-rate limit on AD2, and a lighting-condition analysis on AD2.

We organize our experiments around four questions. We first ask whether the original findings reproduce on the benchmarks the authors used (RQ1), and then whether they hold on the harder MVTec AD 2 dataset (RQ2). The remaining analyses ask what it costs to run the model in practice (RQ3) and under what conditions it is fragile (RQ4). So we first reproduce the experiment with the first question, while the other three test how far the conclusions extend.