arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2207.08210cs.CVcs.AIcs.LG
收藏

分布外检测的一种简单测试时间方法

A Simple Test-Time Method for Out-of-Distribution Detection

Fudan University(复旦大学);Beihang University(北京航空航天大学);Samsung AI Center(三星人工智能中心)

Ke Fan, Yikai Wang, Qian Yu, Da Li, Yanwei Fu

摘要:

已知神经网络对输入图像产生过度自信的预测,即使这些图像是分布外(OOD)样本。这限制了神经网络模型在存在面向对象样本的真实世界场景中的应用。许多现有的方法通过利用各种线索来识别OOD实例,例如在图像的特征空间、logits空间、梯度空间或原始空间中发现不规则模式。相比之下,本文提出了一种简单的测试时线性训练(ETLT)方法OOD检测。从经验上讲,我们发现,输入图像的概率是出的分布是令人惊讶的线性相关的神经网络提取的特征。具体来说,许多最先进的OOD算法,虽然被设计为以不同的方式测量可靠性,但实际上导致OOD分数大多与其图像特征线性相关。因此,通过简单地学习从成对的图像特征和在测试时推断的OOD分数训练的线性回归模型,我们可以对测试实例进行更精确的OOD预测。我们进一步提出了一个在线的变体所提出的方法,实现了有前途的性能,在现实世界中的应用更实用。值得注意的是,我们将FPR 95从$51.37\%$改进为CIFAR-10数据集上的$12.30\%$,并以最大softmax概率作为基本OOD检测器。在多个基准数据集上的实验表明了ETLT在面向对象检测任务中的有效性。

英文摘要:

Neural networks are known to produce over-confident predictions on input images, even when these images are out-of-distribution (OOD) samples. This limits the applications of neural network models in real-world scenarios, where OOD samples exist. Many existing approaches identify the OOD instances via exploiting various cues, such as finding irregular patterns in the feature space, logits space, gradient space or the raw space of images. In contrast, this paper proposes a simple Test-time Linear Training (ETLT) method for OOD detection. Empirically, we find that the probabilities of input images being out-of-distribution are surprisingly linearly correlated to the features extracted by neural networks. To be specific, many state-of-the-art OOD algorithms, although designed to measure reliability in different ways, actually lead to OOD scores mostly linearly related to their image features. Thus, by simply learning a linear regression model trained from the paired image features and inferred OOD scores at test-time, we can make a more precise OOD prediction for the test instances. We further propose an online variant of the proposed method, which achieves promising performance and is more practical in real-world applications. Remarkably, we improve FPR95 from $51.37\%$ to $12.30\%$ on CIFAR-10 datasets with maximum softmax probability as the base OOD detector. Extensive experiments on several benchmark datasets show the efficacy of ETLT for OOD detection task.

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

↑