arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.15434cs.CV
收藏

缓解伪负样本对以实现鲁棒的工业异常检测

Mitigating Spurious Negative Pairs for Robust Industrial Anomaly Detection

École Polytechnique Fédérale de Lausanne (EPFL)(洛桑联邦理工学院);Sharif University of Technology(谢里夫理工大学);Okinawa Institute of Science and Technology(冲绳科学技术大学院大学)

Hossein Mirzaei, Mojtaba Nafez, Jafar Habibi, Mohammad Sabokrou, Mohammad Hossein Rohban

AI总结:

针对无标签异常检测中对抗训练易受伪负样本对影响的问题,提出基于对比损失构建伪异常组并定义对立样本对以增强组间扰动,在多基准数据集上实现26.1%的鲁棒检测提升。

摘要:

尽管在异常检测(AD)方面取得了重大进展,但现有检测方法对抗对抗性攻击的鲁棒性仍然是一个挑战,这损害了其在自动驾驶等关键现实应用中的可靠性。这个问题主要源于AD的设定,即假设训练数据仅限于一组无标签的正常样本,使得检测器在测试期间容易受到对抗性异常样本的攻击。此外,将对抗性训练作为一种保护措施也遇到了困难,例如在无法获取标签的情况下制定有效的目标函数。AD中对抗性训练的理想目标函数应当在正常组和异常组内部及之间促进强烈的扰动,以最大化正常分布与异常分布之间的间隔。为了解决这些问题,我们首先提出从正常组样本中构建一个伪异常组。然后,我们证明使用对比损失的对抗性训练可以作为理想的目标函数,因为它能产生组间和组内的扰动。然而,我们注意到伪负样本对会损害传统的对比损失,从而阻碍实现鲁棒的AD。伪负样本对是指那些本应被紧密映射却被错误分离的样本对。这些样本对引入了噪声,并误导了组间对抗性扰动的方向。为了克服伪负样本对的影响,我们定义了对立样本对,并通过对抗性方式将它们拉开以增强组间扰动。实验结果证明了我们在干净和对抗性场景下的卓越性能,在各种具有挑战性的基准数据集上,鲁棒检测提升了26.1%。我们工作的实现可在以下地址获取:https://github.com/rohban-lab/COBRA。

英文摘要:

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.

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

↑