arXiv:2605.10628cs.CV2026-05

无需训练和语言提示,用稀疏匹配实现高效少样本异常检测

Hyper-FSAD: Training-Free and Language-Free Few-Shot Anomaly Detection via Sparse Hyper Matching

论文配图:Hyper-FSAD: Training-Free and Language-Free Few-Shot Anomaly Detection via Sparse Hyper Matching
图 1 · 摘自论文原文
  • 通过稀疏max自适应选择支持图像块,自动过滤干扰项
  • 在1/2/4样本设置下全场景领先,单图仅需52.6毫秒
  • 适合工业与医疗领域快速部署,无额外标注成本

少样本异常检测(FSAD)在新领域仅有少量正常图像、异常样本稀少且多样时尤为关键。现有方法常依赖任务特定微调或语言提示,且局部检索多采用脆弱的最近邻或固定Top-p规则。我们提出超少样本异常检测(Hyper-FSAD),一种无需训练、不依赖语言提示的框架,仅使用冻结的视觉编码器进行支持集推理。将FSAD建模为冻结特征空间中的支持集评分,并建立稀疏检索的选择性稳定性及正常-异常分离的充分条件。基于此分析,提出稀疏超匹配(Sparse Hyper Matching),利用sparsemax自适应选择每个查询块的支持块,精确抑制低于阈值的干扰项,无需人工设定检索超参数。双分支图像评分进一步融合局部重建差异与支持条件下的全局<CLS>偏差。在四个工业和两个医学基准上,Hyper-FSAD在1/2/4样本设置下均取得最优整体性能,单图推理仅需52.6毫秒,占用0.89GB GPU内存。代码将公开。

原文摘要 · Abstract (English)

Few-shot anomaly detection (FSAD) is particularly valuable when only a few normal images are available in a new target domain, while anomalous cases are rare, diverse, and difficult to enumerate in advance. However, existing methods often still require task-specific fitting or language prompts, and their patch-level retrieval commonly relies on brittle nearest-neighbor or fixed Top-$p$ rules. We propose \textbf{Hyper-FSAD}, a training-free and language-free framework that performs support-only inference with a frozen visual encoder. We formulate FSAD as support-only scoring in frozen feature space and establish the selective stability of sparse retrieval and sufficient conditions for normal--anomaly separation. Guided by this analysis, \textbf{Sparse Hyper Matching} uses \textit{sparsemax} to adaptively select support patches for each query patch, exactly suppressing below-threshold distractors without a manually specified retrieval hyperparameter. \textbf{Dual-Branch Image Scoring} further combines local reconstruction discrepancies with support-conditioned global <CLS> deviation. Across four industrial and two medical benchmarks, Hyper-FSAD achieves the best overall performance across the 1/2/4-shot settings, while requiring only 52.6\,ms per image and 0.89\,GB GPU memory. The code will be released.

异常检测少样本学习稀疏匹配工业质检

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。