arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2209.15246cs.CVcs.LG
收藏

您的分布外检测方法不稳健!

Your Out-of-Distribution Detection Method is Not Robust!

Sharif University of Technology(谢里夫理工大学)

Mohammad Azizmalayeri, Arshia Soltani Moakhar, Arman Zarei, Reihaneh Zohrabi, Mohammad Taghi Manzuri, Mohammad Hossein Rohban

摘要:

由于识别域外样本在可靠性和安全性方面的重要性,分布外(OOD)检测最近获得了大量关注。尽管OOD检测方法已经有了很大的进步,但它们仍然容易受到对抗性示例的影响,这违背了它们的目的。为了缓解这个问题,最近提出了几种防御措施。然而,这些努力仍然无效,因为它们的评估是基于小扰动大小或弱攻击。在这项工作中,我们重新检查这些防御措施,以防止对具有较大扰动大小的输入/输出数据的端到端PGD攻击,例如CIFAR-10数据集的常用$ε=8/255$。令人惊讶的是,几乎所有这些防御在对抗性设置下的表现都比随机检测差。接下来,我们的目标是提供一个强大的OOD检测方法。在理想的防御中,训练应该使模型暴露于几乎所有可能的对抗性扰动,这可以通过对抗性训练来实现。也就是说,这种训练扰动应该基于分布内和分布外样本。因此,与标准设置中的OOD检测不同,访问OOD以及分布中的样本在对抗训练设置中听起来是必要的。这些提示引导我们采用生成式OOD检测方法,例如OpenGAN,作为基线。随后,我们提出了逆向训练鉴别器(ATD),它利用预先训练的鲁棒模型来提取鲁棒特征,并利用生成器模型来创建OOD样本。使用ATD与CIFAR-10和CIFAR-100作为分布内数据,我们可以显着优于所有以前的方法在鲁棒的AUROC,同时保持高标准的AUROC和分类精度。代码存储库可在https://github.com/rohban-lab/ATD上获得。

英文摘要:

Out-of-distribution (OOD) detection has recently gained substantial attention due to the importance of identifying out-of-domain samples in reliability and safety. Although OOD detection methods have advanced by a great deal, they are still susceptible to adversarial examples, which is a violation of their purpose. To mitigate this issue, several defenses have recently been proposed. Nevertheless, these efforts remained ineffective, as their evaluations are based on either small perturbation sizes, or weak attacks. In this work, we re-examine these defenses against an end-to-end PGD attack on in/out data with larger perturbation sizes, e.g. up to commonly used $ε=8/255$ for the CIFAR-10 dataset. Surprisingly, almost all of these defenses perform worse than a random detection under the adversarial setting. Next, we aim to provide a robust OOD detection method. In an ideal defense, the training should expose the model to almost all possible adversarial perturbations, which can be achieved through adversarial training. That is, such training perturbations should based on both in- and out-of-distribution samples. Therefore, unlike OOD detection in the standard setting, access to OOD, as well as in-distribution, samples sounds necessary in the adversarial training setup. These tips lead us to adopt generative OOD detection methods, such as OpenGAN, as a baseline. We subsequently propose the Adversarially Trained Discriminator (ATD), which utilizes a pre-trained robust model to extract robust features, and a generator model to create OOD samples. Using ATD with CIFAR-10 and CIFAR-100 as the in-distribution data, we could significantly outperform all previous methods in the robust AUROC while maintaining high standard AUROC and classification accuracy. The code repository is available at https://github.com/rohban-lab/ATD .

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

↑