Deep Residual Flow for Out of Distribution Detection

Ev Zisselman, Aviv Tamar
1/15/2020
cs.LGcs.CVstat.ML

Official code: EvZissel/Residual-Flow (31 stars, Python, last commit 2026-03-01).

Abstract

The effective application of neural networks in the real-world relies on proficiently detecting out-of-distribution examples. Contemporary methods seek to model the distribution of feature activations in the training data for adequately distinguishing abnormalities, and the state-of-the-art method uses Gaussian distribution models.

Show full abstract

In this work, we present a novel approach that improves upon the state-of-the-art by leveraging an expressive density model based on normalizing flows. We introduce the residual flow, a novel flow architecture that learns the residual distribution from a base Gaussian distribution. Our model is general, and can be applied to any data that is approximately Gaussian. For out of distribution detection in image datasets, our approach provides a principled improvement over the state-of-the-art. Specifically, we demonstrate the effectiveness of our method in ResNet and DenseNet architectures trained on various image datasets. For example, on a ResNet trained on CIFAR-100 and evaluated on detection of out-of-distribution samples from the ImageNet dataset, holding the true positive rate (TPR) at $95\%$, we improve the true negative rate (TNR) from $56.7\%$ (current state-of-the-art) to $77.5\%$ (ours).

View on arXivView PDF

Code Implementations(1)

An implementation of the Residual Flow algorithm for out-of-distribution detection.

314PythonMar 14, 20209 months ago

Similar Papers

Cite this paper

@article{zisselman2020deep,
  title  = {Deep Residual Flow for Out of Distribution Detection},
  author = {Ev Zisselman and Aviv Tamar},
  year   = {2020},
  eprint = {2001.05419},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2001.05419}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2001.05419.svg)](https://codeofpaper.com/paper/2001.05419)

Discussion