仅用8张正常图像,就能让工业缺陷检测在光照变化时保持高精度。
SPARC: Subspace Position-Aware Robust Few-Shot Calibration for Distribution-Shifted Industrial Anomaly Detection

- 通过逐像素子空间投影,从特征图中直接消除环境干扰
- 在7种检测器上平均提升13.8%图像检测准确率
- 无需反向传播,适合部署在资源受限的工厂场景
基于视觉的工业缺陷检测器通常在特定分布下校准,但实际部署时可能面临光照、工装位置或传感器特性差异,导致性能显著下降。由于异常标签稀缺,需仅用少量已验证的正常图像进行校准。现有方法依赖反向传播、检测器特化调参或难以由少数样本支撑的特征方向选择。本文提出SPARC,一种少样本校准方法:在编码器与检测器之间拦截局部特征块,通过每单元子空间投影,以闭式解去除部署时的干扰因素。仅需k ≤ 8张正常图像,并利用编码器原始特征网格的代数饱和秩r = k − 1。该修正无需梯度或权重更新,兼容内存库、密度、原型及互信息类检测器。在易受分布偏移影响的基准上,所有七种依赖修正特征的检测器,在图像AUROC和AU-PRO$_{0.3}$上分别平均提升13.8和3.5个百分点;在无人为偏移的基准上,提升微小且不一致。控制实验表明,这些提升源于每单元子空间结构而非图像本身。进一步消融分析验证了饱和秩选择的有效性,并刻画了对主干网络与校准条件的敏感性。
原文摘要 · Abstract (English)
Vision-based industrial anomaly detectors are calibrated on one distribution but may be deployed on another that differs in illumination, fixture placement, or sensor characteristics, sharply degrading an otherwise accurate detector. Adapting to the incoming lot is a natural response, but labeled anomalies are scarce. We therefore consider calibration using only a handful of verified-normal images available before scoring the rest of the lot. Existing fixes require backpropagation, detector-specific tuning, or choices about feature directions that few calibration samples cannot justify. We present SPARC, a few-shot calibration method that intercepts patch features between encoder and detector and removes a closed-form, spatially indexed estimate of deployment-time nuisance through per-cell subspace projection. It needs only $k \le 8$ verified-normal images and uses the algebraic saturation rank $r{=}k{-}1$ on the encoder's native patch grid. The correction requires no gradient or weight updates and works with memory-bank, density, prototype, and mutual detectors. On the shift-prone benchmarks, SPARC improves pooled Image AUROC and AU-PRO$_{0.3}$ for all seven detectors whose image scores depend on corrected patch features by $+13.8$ and $+3.5$ percentage points (pp), respectively; on benchmarks without engineered shift, the changes are small and mixed. Controls that give competing corrections the same calibration images attribute these gains to the per-cell subspace structure rather than the images alone. Further ablations support the saturation-rank choice and characterize sensitivity to backbone and calibration conditions.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。