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

SubspaceAD:通过子空间建模实现无训练少样本异常检测

SubspaceAD: Training-Free Few-Shot Anomaly Detection via Subspace Modeling

AIMS Group, Department of Electrical Engineering, Eindhoven University of Technology(AIMS组,电气工程系,埃因霍温理工大学)

Camile Lendering, Erkut Akdag, Egor Bondarev

AI总结:

SubspaceAD提出一种无需训练的少样本异常检测方法,通过冻结DINOv2模型提取正常图像的补丁特征,并利用PCA建模估计正常变化的低维子空间,从而在无训练、提示微调或内存库的情况下实现最先进的性能。

摘要:

在工业检测中,检测视觉异常通常需要仅用少量正常图像进行训练。最近的少样本方法通过使用基础模型特征取得良好效果,但通常依赖内存库、辅助数据集或视觉-语言模型的多模态调优。为此,我们质疑在视觉基础模型的特征表示下是否需要如此复杂的方案。为此,我们引入SubspaceAD,一种无需训练的方法,其操作分为两个简单阶段。首先,通过冻结的DINOv2主干从少量正常图像中提取补丁级特征。其次,将PCA模型拟合到这些特征上,以估计正常变化的低维子空间。在推理阶段,通过相对于该子空间的重建残差检测异常,产生可解释且统计上可靠的异常评分。尽管其简单性,SubspaceAD在无训练、提示微调或内存库的情况下,在单样本和少样本设置中实现了最先进的性能。在单样本异常检测设置中,SubspaceAD在MVTec-AD数据集上实现了图像级和像素级AUROC分别为97.1%和97.5%,在VisA数据集上分别达到93.2%和98.2%,超越了先前的最佳结果。代码和演示可在https://github.com/CLendering/SubspaceAD上获得。

英文摘要:

Detecting visual anomalies in industrial inspection often requires training with only a few normal images per category. Recent few-shot methods achieve strong results employing foundation-model features, but typically rely on memory banks, auxiliary datasets, or multi-modal tuning of vision-language models. We therefore question whether such complexity is necessary given the feature representations of vision foundation models. To answer this question, we introduce SubspaceAD, a training-free method, that operates in two simple stages. First, patch-level features are extracted from a small set of normal images by a frozen DINOv2 backbone. Second, a Principal Component Analysis (PCA) model is fit to these features to estimate the low-dimensional subspace of normal variations. At inference, anomalies are detected via the reconstruction residual with respect to this subspace, producing interpretable and statistically grounded anomaly scores. Despite its simplicity, SubspaceAD achieves state-of-the-art performance across one-shot and few-shot settings without training, prompt tuning, or memory banks. In the one-shot anomaly detection setting, SubspaceAD achieves image-level and pixel-level AUROC of 97.1% and 97.5% on the MVTec-AD dataset, and 93.2% and 98.2% on the VisA dataset, respectively, surpassing prior state-of-the-art results. Code and demo are available at https://github.com/CLendering/SubspaceAD.

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

↑