INP-Former 复现报告:在 MVTec AD 2 上表现明显下滑
Reproducing INP-Former: Reconstructing Intrinsic Normal Prototypes for Industrial Anomaly Detection
有人用作者代码完整复现了 INP-Former,MVTec AD 上 99.7 AUROC 没问题,但 MVTec AD 2 只有 63.4,连默认 6 个原型都不如 1 个,原文结论没全站得住。
一项复现工作验证了 INP-Former 在多类工业异常检测上的核心机制:从测试图像中提取 Intrinsic Normal Prototypes 来引导解码器重建正常特征,不需要存储 memory bank。复现使用作者公开代码,在 MVTec AD 上达到 99.7 的图像 AUROC,在 VisA 上也基本复现了原文结果。但在扩展评测的 MVTec AD 2 上,默认设置的图像 AUROC 仅为 63.4,与 MVTec AD 相差约 36 个百分点。五种子消融显示性能主要来自 INP 机制本身,两个辅助损失的影响很小且方向随指标变化。原文默认的六个原型数量在 MVTec AD 2 的 AU-PRO 指标上被单个原型超越,说明部分原文结论无法迁移到更难的数据。
Reproducing INP-Former: Reconstructing Intrinsic Normal Prototypes for Industrial Anomaly Detection
We reproduce the central claims of 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. Code: https://github.com/garasnote/Repro-INPFormer