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

CADet:基于对比学习的完全自监督分布外检测

CADet: Fully Self-Supervised Out-Of-Distribution Detection With Contrastive Learning

ServiceNow Research(ServiceNow研究院);Mila(米拉实验室);Université de Montréal(蒙特利尔大学)

Charles Guille-Escuret, Pau Rodriguez, David Vazquez, Ioannis Mitliagkas, Joao Monteiro

AI总结:

针对机器学习系统实际部署中分布外(OOD)样本检测问题,提出完全自监督的CADet方法,结合对比学习与MMD思想,同时检测未见类别和对抗性扰动样本,在多个基准上性能优于或媲美现有方法。

摘要:

处理分布外(OOD)样本已成为机器学习系统实际部署中的关键问题。本研究探索了自监督对比学习在同时检测两类OOD样本(未见类别和对抗性扰动)中的应用。首先,我们将自监督对比学习与最大均值差异(MMD)双样本检验相结合,该方法能可靠地测试两组独立样本是否来自同一分布,并通过区分CIFAR-10和CIFAR-10.1展示了其有效性,置信度高于以往工作。受此成功启发,我们提出CADet(对比异常检测),一种用于单样本OOD检测的新方法。CADet借鉴MMD的思想,但利用同一样本的对比变换之间的相似性。在ImageNet上识别对抗性扰动样本时,CADet优于现有对抗检测方法;在ImageNet-O和iNaturalist两个具有挑战性的基准上,其性能与未见类别检测方法相当。重要的是,CADet是完全自监督的,既不需要分布内样本的标签,也不需要访问OOD示例。

英文摘要:

Handling out-of-distribution (OOD) samples has become a major stake in the real-world deployment of machine learning systems. This work explores the use of self-supervised contrastive learning to the simultaneous detection of two types of OOD samples: unseen classes and adversarial perturbations. First, we pair self-supervised contrastive learning with the maximum mean discrepancy (MMD) two-sample test. This approach enables us to robustly test whether two independent sets of samples originate from the same distribution, and we demonstrate its effectiveness by discriminating between CIFAR-10 and CIFAR-10.1 with higher confidence than previous work. Motivated by this success, we introduce CADet (Contrastive Anomaly Detection), a novel method for OOD detection of single samples. CADet draws inspiration from MMD, but leverages the similarity between contrastive transformations of a same sample. CADet outperforms existing adversarial detection methods in identifying adversarially perturbed samples on ImageNet and achieves comparable performance to unseen label detection methods on two challenging benchmarks: ImageNet-O and iNaturalist. Significantly, CADet is fully self-supervised and requires neither labels for in-distribution samples nor access to OOD examples.

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

↑