Multiscale Score Matching for Out-of-Distribution Detection

Ahsan Mahmood, Junier Oliva, Martin Styner
10/25/2020
cs.LG

Official code: ahsanMah/msma (12 stars, Jupyter Notebook, last commit 2023-01-19).

Abstract

We present a new methodology for detecting out-of-distribution (OOD) images by utilizing norms of the score estimates at multiple noise scales. A score is defined to be the gradient of the log density with respect to the input data.

Show full abstract

Our methodology is completely unsupervised and follows a straight forward training scheme. First, we train a deep network to estimate scores for levels of noise. Once trained, we calculate the noisy score estimates for N in-distribution samples and take the L2-norms across the input dimensions (resulting in an NxL matrix). Then we train an auxiliary model (such as a Gaussian Mixture Model) to learn the in-distribution spatial regions in this L-dimensional space. This auxiliary model can now be used to identify points that reside outside the learned space. Despite its simplicity, our experiments show that this methodology significantly outperforms the state-of-the-art in detecting out-of-distribution images. For example, our method can effectively separate CIFAR-10 (inlier) and SVHN (OOD) images, a setting which has been previously shown to be difficult for deep likelihood models.

View on arXivView PDF

Code Implementations(1)

ahsanMah/msmaOfficial100%

Multiscale Score Matching Analysis

120Jupyter Notebook, PythonOct 8, 20203 years ago

Similar Papers

Cite this paper

@article{mahmood2020multiscale,
  title  = {Multiscale Score Matching for Out-of-Distribution Detection},
  author = {Ahsan Mahmood and Junier Oliva and Martin Styner},
  year   = {2020},
  eprint = {2010.13132},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.13132}
}

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/2010.13132.svg)](https://codeofpaper.com/paper/2010.13132)

Discussion