Out-of-Distribution Example Detection in Deep Neural Networks using Distance to Modelled Embedding
arXiv:2108.10673
Abstract
Adoption of deep learning in safety-critical systems raise the need for understanding what deep neural networks do not understand after models have been deployed. The behaviour of deep neural networks is undefined for so called out-of-distribution examples. That is, examples from another distribution than the training set. Several methodologies to detect out-of-distribution examples during prediction-time have been proposed, but these methodologies constrain either neural network architecture, how the neural network is trained, suffer from performance overhead, or assume that the nature of out-of-distribution examples are known a priori. We present Distance to Modelled Embedding (DIME) that we use to detect out-of-distribution examples during prediction time. By approximating the training set embedding into feature space as a linear hyperplane, we derive a simple, unsupervised, highly performant and computationally efficient method. DIME allows us to add prediction-time detection of out-of-distribution examples to neural network models without altering architecture or training while imposing minimal constraints on when it is applicable. In our experiments, we demonstrate that by using DIME as an add-on after training, we efficiently detect out-of-distribution examples during prediction and match state-of-the-art methods while being more versatile and introducing negligible computational overhead.
arXiv comment15 pages, 5 figures
References in corpus (9)
- Improving neural networks by preventing co-adaptation of feature detectors
- Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms
- A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networks
- A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attacks
- Using Pre-Training Can Improve Model Robustness and Uncertainty
- Deep Anomaly Detection with Outlier Exposure
- Outlier Exposure with Confidence Control for Out-of-Distribution Detection
- Distance-based Confidence Score for Neural Network Classifiers
- PsyPhy: A Psychophysics Driven Evaluation Framework for Visual Recognition