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

基于深度近邻的分布外检测

Out-of-Distribution Detection with Deep Nearest Neighbors

University of Wisconsin-Madison(威斯康星大学麦迪逊分校)

Yiyou Sun, Yifei Ming, Xiaojin Zhu, Yixuan Li

摘要:

分发外(OOD)检测是在开放世界中部署机器学习模型的关键任务。基于距离的方法已被证明是有希望的,其中如果测试样品相对远离分布(ID)数据,则将其检测为OOD。然而,现有的方法强加了一个强大的分布假设的基础特征空间,这可能并不总是成立。在本文中,我们探讨了非参数最近邻距离OOD检测,这在很大程度上被忽视的文献中的功效。与以前的工作,我们的方法不施加任何分布假设,因此提供了更强的灵活性和通用性。我们证明了最近邻为基础的OOD检测的有效性在几个基准,并建立优越的性能。在ImageNet-1 k上训练的相同模型下,与强基线SSD+相比,我们的方法将假阳性率(FPR@TPR95)大幅降低了24.77%,SSD+在检测中使用参数化方法Mahalanobis距离。代码可用:https://github.com/deeplearning-wisc/knn-ood。

英文摘要:

Out-of-distribution (OOD) detection is a critical task for deploying machine learning models in the open world. Distance-based methods have demonstrated promise, where testing samples are detected as OOD if they are relatively far away from in-distribution (ID) data. However, prior methods impose a strong distributional assumption of the underlying feature space, which may not always hold. In this paper, we explore the efficacy of non-parametric nearest-neighbor distance for OOD detection, which has been largely overlooked in the literature. Unlike prior works, our method does not impose any distributional assumption, hence providing stronger flexibility and generality. We demonstrate the effectiveness of nearest-neighbor-based OOD detection on several benchmarks and establish superior performance. Under the same model trained on ImageNet-1k, our method substantially reduces the false positive rate (FPR@TPR95) by 24.77% compared to a strong baseline SSD+, which uses a parametric approach Mahalanobis distance in detection. Code is available: https://github.com/deeplearning-wisc/knn-ood.

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

↑