计算机科学 > 计算机视觉与模式识别
[提交于 2026年11月25日]
标题:Beyond Isolated Patch Matching: Dual-Scale Common-Mode Suppression for Training-Free Few-Shot Anomaly Detection
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Nearest-neighbor patch retrieval over frozen DINOv2 features offers a strong training-free baseline for few-shot anomaly detection. Yet isolated memory-bank cosine matching suffers from two forms of common-mode interference on the unit hypersphere. First, within each image, self-attention smoothing injects a shared neighborhood average, or spatial common mode, into intermediate tokens. When a defective component remains locally normal in appearance yet violates pose or layout, isolated retrieval still finds a normal match and misses the defect. Second, across the reference bank, strongly anisotropic normal variance, or distributional common mode, inflates baseline cosine similarity and compresses the angular margin for subtle defects, whereas full whitening amplifies tail noise under scarce exemplars. We unify both remedies as dual-scale common-mode suppression of the form I - alpha P followed by unit-sphere re-normalization in a single frozen DINOv2 forward pass. At the micro scale, hard spatial removal (alpha=1, P = c_i c_i^T) strips each mid-layer token's attended context to expose patch-to-context structural contrast, scored via reference-only calibration over only the top-5 appearance matches. At the macro scale, soft distributional attenuation (0 < alpha < 1, P = U U^T) dampens dominant reference variance offline while preserving mean orientation and coarse part alignment. Across MVTec-AD and VisA from 1-shot to 16-shot, our method consistently outperforms prior training-free baselines such as AnomalyDINO and SubspaceAD-B, achieving up to 98.9% I-AUROC on MVTec-AD and +3.6 pixel F1-max on VisA at under 8% runtime overhead.
提交历史
来自:Ning Zhu[v1] 2026年11月25日 星期三 11:37:55 UTC (5,251 KB)