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

基于神经网络的分布外检测

Neural Mean Discrepancy for Efficient Out-of-Distribution Detection

Harvard University(哈佛大学);UT Dallas(德克萨斯大学达拉斯分校);Google DeepMind(谷歌DeepMind)

Xin Dong, Junfeng Guo, Ang Li, Wei-Te Ting, Cong Liu, H. T. Kung

摘要:

已经提出了通过增强模型、输入示例、训练集和优化目标来进行分布外(OOD)检测的各种方法。偏离现有的工作,我们有一个简单的假设,标准的现成的模型可能已经包含足够的信息,训练集的分布,可以利用可靠的OOD检测。我们的实证研究验证这一假设,测量模型激活的平均OOD和分布(ID)的小批量,令人惊讶地发现,OOD小批量的激活手段一贯偏离更多的训练数据。此外,训练数据的激活手段可以有效地离线计算或从批量归一化层检索作为“免费午餐”。基于这一观察,我们提出了一种新的度量称为神经平均离散(NMD),它比较输入的例子和训练数据的神经手段。利用NMD的简单性,我们提出了一个高效的OOD检测器,它通过标准的前向传递和轻量级分类器来计算神经均值。大量的实验表明,NMD优于国家的最先进的面向对象的方法在多个数据集和模型架构的检测精度和计算成本。

英文摘要:

Various approaches have been proposed for out-of-distribution (OOD) detection by augmenting models, input examples, training sets, and optimization objectives. Deviating from existing work, we have a simple hypothesis that standard off-the-shelf models may already contain sufficient information about the training set distribution which can be leveraged for reliable OOD detection. Our empirical study on validating this hypothesis, which measures the model activation's mean for OOD and in-distribution (ID) mini-batches, surprisingly finds that activation means of OOD mini-batches consistently deviate more from those of the training data. In addition, training data's activation means can be computed offline efficiently or retrieved from batch normalization layers as a 'free lunch'. Based upon this observation, we propose a novel metric called Neural Mean Discrepancy (NMD), which compares neural means of the input examples and training data. Leveraging the simplicity of NMD, we propose an efficient OOD detector that computes neural means by a standard forward pass followed by a lightweight classifier. Extensive experiments show that NMD outperforms state-of-the-art OOD approaches across multiple datasets and model architectures in terms of both detection accuracy and computational cost.

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

↑