2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2022 · 41 citations · 52 references
ComputingComputer ScienceComputer VisionMachine LearningNatural Language ProcessingDeep LearningNeural NetworksPattern RecognitionRepresentation LearningSupervised LearningAccuracyActivationDropoutEmpirical EvaluationMini-batch LearningMini-batch TrainingNormalizationOut-of-distribution Detection
Various approaches have been proposed for out‑of‑distribution detection by augmenting models, inputs, training sets, and objectives. The study tests whether standard off‑the‑shelf models contain enough information for OOD detection and proposes the Neural Mean Discrepancy metric and a lightweight detector. The method computes training activation means offline or from batch‑normalization layers, compares them to input means using the Neural Mean Discrepancy metric, and classifies examples with a lightweight post‑processing classifier. Experiments show that OOD samples have activation means that deviate more from training means, and that the Neural Mean Discrepancy metric outperforms state‑of‑the‑art OOD detectors in accuracy and speed.
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.
52
Deep Residual Learning for Image Recognition
Kaiming He, Xiangyu Zhang, Shaoqing Ren et al. · 2016 · 222.1K citations · Full text
Densely Connected Convolutional Networks
Gao Huang, Zhuang Liu, Laurens van der Maaten et al. · 2017 · 44.7K citations
Momentum Contrast for Unsupervised Visual Representation Learning
Kaiming He, Haoqi Fan, Yuxin Wu et al. · 2020 · 12K citations