arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.32964cs.CVcs.LG
收藏

Flownomaly:用于小样本异常检测的单步条件均值恢复

Flownomaly: Single-Step Conditional-Mean Recovery for Few-Shot Anomaly Detection

Eindhoven University of Technology(埃因霍温理工大学)

Bernardo Perrone Ribeiro, Erkut Akdag, Egor Bondarev

AI总结:

Flownomaly将小样本异常检测转化为冻结DINOv2特征空间中的正常对应物恢复,通过条件流匹配学习速度场,在多基准测试中实现最先进性能,1-shot下VisA图像级AUROC较基线提升2.1个百分点。

摘要:

小样本工业异常检测需要仅从少量无缺陷图像中建模特定类别的正常性。常见方法将推理与存储的示例绑定、施加刚性线性结构,或有重现异常内容的风险。Flownomaly则将该问题视为在冻结的DINOv2特征空间中恢复正常对应物。给定正常支持集,通过在冻结的patch tokens上进行条件流匹配学习速度场,以将高斯噪声传输到正常特征。沿直线路径,使用最优场的一次评估进行单次恢复步骤,无需轨迹积分即可得到干净正常token的后验均值。操作时间控制恢复对查询token的修改强度。由于没有用于调优的异常验证样本,仅使用正常的雅可比增益-噪声准则从支持集中选择该时间。查询token与其恢复对应物之间的平方残差产生异常信号,用于密集定位和图像级检测。在MVTec-AD和VisA的1、2、4-shot基准测试,以及Real-IAD的样本shot评估中,Flownomaly在最近的特定类别方法中达到了最先进的性能。在1-shot设置下,MVTec-AD的图像级和像素级AUROC分别达到97.8%和98.0%,VisA的分别达到95.3%和98.7%,在VisA上比最强基线的图像级AUROC提升2.1个百分点。代码可在该https URL获取。

英文摘要:

Few-shot industrial anomaly detection requires modeling category-specific normality from only a handful of defect-free images. Common approaches tie inference to stored exemplars, impose rigid linear structure, or risk reproducing anomalous content. Flownomaly instead casts the problem as normal-counterpart recovery in frozen DINOv2 feature space. Given normal supports, a velocity field is learned through conditional flow matching over frozen patch tokens to transport Gaussian noise toward normal features. Along straight paths, a single recovery step using one evaluation of the optimal field yields the posterior mean of the clean normal token without trajectory integration. The operating time governs how strongly recovery modifies a query token. With no anomalous validation samples available for tuning, a normal-only Jacobian gain-to-noise criterion selects this time from the supports alone. Squared residuals between query tokens and their recovered counterparts yield anomaly signals for both dense localization and image-level detection. Across 1-, 2-, and 4-shot benchmarks on MVTec-AD and VisA, together with sample-shot evaluations on Real-IAD, Flownomaly achieves state-of-the-art performance against recent category-specific methods. In the 1-shot setting, image- and pixel-level AUROC reach 97.8% and 98.0% on MVTec-AD and 95.3% and 98.7% on VisA, with a 2.1-point image-level AUROC improvement over the strongest baseline on VisA. Code is available at https://github.com/b-rbmp/Flownomaly.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑