Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networks
About
We consider the problem of detecting out-of-distribution images in neural networks. We propose ODIN, a simple and effective method that does not require any change to a pre-trained neural network. Our method is based on the observation that using temperature scaling and adding small perturbations to the input can separate the softmax score distributions between in- and out-of-distribution images, allowing for more effective detection. We show in a series of experiments that ODIN is compatible with diverse network architectures and datasets. It consistently outperforms the baseline approach by a large margin, establishing a new state-of-the-art performance on this task. For example, ODIN reduces the false positive rate from the baseline 34.7% to 4.3% on the DenseNet (applied to CIFAR-10) when the true positive rate is 95%.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Image Classification | ImageNet-1K | -- | 524 | |
| Out-of-Distribution Detection | iNaturalist | FPR@956.58 | 200 | |
| Out-of-Distribution Detection | SUN OOD with ImageNet-1k In-distribution (test) | FPR@9529.05 | 159 | |
| Out-of-Distribution Detection | Textures | AUROC0.8785 | 141 | |
| Out-of-Distribution Detection | ImageNet OOD Average 1k (test) | FPR@9554.2 | 137 | |
| Out-of-Distribution Detection | Places | FPR9555.06 | 110 | |
| Out-of-Distribution Detection | Texture | AUROC93.01 | 109 | |
| Out-of-Distribution Detection | OpenImage-O | AUROC96.86 | 107 | |
| Out-of-Distribution Detection | CIFAR-100 | AUROC85.16 | 107 | |
| Out-of-Distribution Detection | CIFAR-10 | AUROC93.86 | 105 |