arXiv:2501.15434cs.CV2025-01中稿 · the 13th Internati…被引 3

通过消除虚假负样本对,提升工业异常检测在对抗攻击下的鲁棒性。

Mitigating Spurious Negative Pairs for Robust Industrial Anomaly Detection

  • 构建伪异常组并使用对比损失实现组内组间对抗扰动。
  • 在多个基准数据集上,对抗场景下检测性能提升26.1%。
  • 适合关注工业缺陷检测安全性的研究人员与工程师。

尽管异常检测(AD)取得显著进展,现有方法在对抗攻击下的鲁棒性仍不足,影响其在自动驾驶等关键场景中的可靠性。问题根源在于训练仅依赖无标签正常样本,导致测试时易受对抗异常样本干扰。传统对抗训练因缺乏标签难以设计有效目标函数。我们提出从正常样本中构造伪异常组,并证明对比损失可同时生成组内与组间强扰动,构成理想目标函数。但发现虚假负样本对会破坏对比损失,引入噪声并误导扰动方向。为此,我们定义反向配对并主动拉远它们,强化组间扰动。实验表明,在多种挑战性基准数据集上,该方法在干净与对抗场景下均表现优异,鲁棒检测性能提升26.1%。代码已开源:https://github.com/rohban-lab/COBRA。

原文摘要 · Abstract (English)

Despite significant progress in Anomaly Detection (AD), the robustness of existing detection methods against adversarial attacks remains a challenge, compromising their reliability in critical real-world applications such as autonomous driving. This issue primarily arises from the AD setup, which assumes that training data is limited to a group of unlabeled normal samples, making the detectors vulnerable to adversarial anomaly samples during testing. Additionally, implementing adversarial training as a safeguard encounters difficulties, such as formulating an effective objective function without access to labels. An ideal objective function for adversarial training in AD should promote strong perturbations both within and between the normal and anomaly groups to maximize margin between normal and anomaly distribution. To address these issues, we first propose crafting a pseudo-anomaly group derived from normal group samples. Then, we demonstrate that adversarial training with contrastive loss could serve as an ideal objective function, as it creates both inter- and intra-group perturbations. However, we notice that spurious negative pairs compromise the conventional contrastive loss to achieve robust AD. Spurious negative pairs are those that should be closely mapped but are erroneously separated. These pairs introduce noise and misguide the direction of inter-group adversarial perturbations. To overcome the effect of spurious negative pairs, we define opposite pairs and adversarially pull them apart to strengthen inter-group perturbations. Experimental results demonstrate our superior performance in both clean and adversarial scenarios, with a 26.1% improvement in robust detection across various challenging benchmark datasets. The implementation of our work is available at: https://github.com/rohban-lab/COBRA.

异常检测对抗鲁棒性对比学习

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