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

为什么CNN中的分布外检测不像Mahalanobis -以及使用什么来代替

Why Out-of-distribution Detection in CNNs Does Not Like Mahalanobis -- and What to Use Instead

Wrocław University of Science and Technology(弗罗茨瓦夫理工大学)

Kamil Szyc, Tomasz Walkowiak, Henryk Maciejewski

摘要:

应用于真实世界分类任务的卷积神经网络需要识别相对于已知或训练数据远离或分布外(OoD)的输入。为了实现这一点,许多方法估计类条件后验概率,并使用从后验分布获得的置信度得分。最近的工作提出使用多变量高斯分布作为CNN的不同层处的后验分布的模型(即,对于低级和高级特征),这导致基于Mahalanobis距离的置信度分数。然而,这个过程涉及到使用不足够数量的观测值来估计高维数据中的概率密度(例如,ResNet-101模型中最后两层的特征维数分别为2048和1024,约为1024)。用于估计密度的每类1000个观测值)。在这项工作中,我们希望解决这个问题。我们发现,在许多高维数据的OoD研究中,基于LOF(局部离群因子)的方法优于基于参数的马氏距离方法。这促使我们提出了非参数的,基于LOF的方法来生成CNN的置信度得分。我们进行了几项可行性研究,涉及ResNet-101和EffcientNet-B3,基于CIFAR-10和ImageNet(作为已知数据),以及CIFAR-100,SVHN,ImageNet 2010,Places 365或ImageNet-O(作为离群值)。我们证明,非参数LOF的置信估计可以改善目前基于马氏SOTA或以更简单的方式获得类似的性能。

英文摘要:

Convolutional neural networks applied for real-world classification tasks need to recognize inputs that are far or out-of-distribution (OoD) with respect to the known or training data. To achieve this, many methods estimate class-conditional posterior probabilities and use confidence scores obtained from the posterior distributions. Recent works propose to use multivariate Gaussian distributions as models of posterior distributions at different layers of the CNN (i.e., for low- and upper-level features), which leads to the confidence scores based on the Mahalanobis distance. However, this procedure involves estimating probability density in high dimensional data using the insufficient number of observations (e.g. the dimensionality of features at the last two layers in the ResNet-101 model are 2048 and 1024, with ca. 1000 observations per class used to estimate density). In this work, we want to address this problem. We show that in many OoD studies in high-dimensional data, LOF-based (Local Outlierness-Factor) methods outperform the parametric, Mahalanobis distance-based methods. This motivates us to propose the nonparametric, LOF-based method of generating the confidence scores for CNNs. We performed several feasibility studies involving ResNet-101 and EffcientNet-B3, based on CIFAR-10 and ImageNet (as known data), and CIFAR-100, SVHN, ImageNet2010, Places365, or ImageNet-O (as outliers). We demonstrated that nonparametric LOF-based confidence estimation can improve current Mahalanobis-based SOTA or obtain similar performance in a simpler way.

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

↑