计算机科学
规范化(社会学)
分类器(UML)
人工智能
公制(单位)
训练集
人工神经网络
数据挖掘
机器学习
模式识别(心理学)
探测器
人类学
运营管理
电信
社会学
经济
作者
Xin Dong,Junfeng Guo,Ang Li,Wei-Te Ting,Cong Liu,H.T. Kung
出处
期刊:
日期:2022-06-01
卷期号:: 19195-19205
被引量:40
标识
DOI:10.1109/cvpr52688.2022.01862
摘要
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) minibatches, 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.
科研通智能强力驱动
Strongly Powered by AbleSci AI