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

分布外检测的单层预测归一化最大似然法

Single Layer Predictive Normalized Maximum Likelihood for Out-of-Distribution Detection

Tel Aviv University(特拉维夫大学);Facebook AI

Koby Bibas, Meir Feder, Tal Hassner

摘要:

检测分布外(OOD)样本对于开发基于机器学习的关键安全系统模型至关重要。OOD检测的常见方法假设在训练期间访问一些OOD样本,这在现实场景中可能不可用。相反,我们利用{ \em预测归一化最大似然}(pNML)学习器,其中没有对测试输入进行假设。对于单层神经网络,我们导出了pNML及其泛化误差的显式表达式,表示为{ \em regret}。我们表明,这种学习者推广良好时(i)测试向量驻留在一个子空间与大的特征值的经验相关矩阵的训练数据的特征向量,或(ii)测试样本是远离决策边界。此外,我们描述了如何有效地将派生的pNML遗憾应用于任何预训练的深度NN,方法是在最后一层使用显式pNML,然后使用softmax函数。将导出的后悔应用于深度NN既不需要额外的可调参数,也不需要额外的数据。我们使用DenseNet-100,ResNet-34和WideResNet-40模型对74个OOD检测基准进行了广泛的评估,这些模型使用CIFAR-100,CIFAR-10,SVHN和ImageNet-30进行了训练,与最近的领先方法相比,显示出高达15.6%的显着改进。

英文摘要:

Detecting out-of-distribution (OOD) samples is vital for developing machine learning based models for critical safety systems. Common approaches for OOD detection assume access to some OOD samples during training which may not be available in a real-life scenario. Instead, we utilize the {\em predictive normalized maximum likelihood} (pNML) learner, in which no assumptions are made on the tested input. We derive an explicit expression of the pNML and its generalization error, denoted as the {\em regret}, for a single layer neural network (NN). We show that this learner generalizes well when (i) the test vector resides in a subspace spanned by the eigenvectors associated with the large eigenvalues of the empirical correlation matrix of the training data, or (ii) the test sample is far from the decision boundary. Furthermore, we describe how to efficiently apply the derived pNML regret to any pretrained deep NN, by employing the explicit pNML for the last layer, followed by the softmax function. Applying the derived regret to deep NN requires neither additional tunable parameters nor extra data. We extensively evaluate our approach on 74 OOD detection benchmarks using DenseNet-100, ResNet-34, and WideResNet-40 models trained with CIFAR-100, CIFAR-10, SVHN, and ImageNet-30 showing a significant improvement of up to 15.6\% over recent leading methods.

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

↑