Shaken, and Stirred: Long-Range Dependencies Enable Robust Outlier Detection with PixelCNN++

Barath Mohan Umapathi, Kushal Chauhan, Pradeep Shenoy, Devarajan Sridharan
8/29/2022
cs.LG

Official code: coglabiisc/googleresearch (0 stars, Python, last commit 2023-05-27).

Abstract

Reliable outlier detection is critical for real-world deployment of deep learning models. Although extensively studied, likelihoods produced by deep generative models have been largely dismissed as being impractical for outlier detection.

Show full abstract

First, deep generative model likelihoods are readily biased by low-level input statistics. Second, many recent solutions for correcting these biases are computationally expensive, or do not generalize well to complex, natural datasets. Here, we explore outlier detection with a state-of-the-art deep autoregressive model: PixelCNN++. We show that biases in PixelCNN++ likelihoods arise primarily from predictions based on local dependencies. We propose two families of bijective transformations -- ``stirring'' and ``shaking'' -- which ameliorate low-level biases and isolate the contribution of long-range dependencies to PixelCNN++ likelihoods. These transformations are inexpensive and readily computed at evaluation time. We test our approaches extensively with five grayscale and six natural image datasets and show that they achieve or exceed state-of-the-art outlier detection, particularly on datasets with complex, natural images. We also show that our solutions work well with other types of generative models (generative flows and variational autoencoders) and that their efficacy is governed by each model's reliance on local dependencies. In sum, lightweight remedies suffice to achieve robust outlier detection on image data with deep generative models.

View on arXivView PDF

Code Implementations(1)

Collaboration with Google Research India

00Python, Jupyter NotebookMay 18, 20233 years ago

Similar Papers

Cite this paper

@article{umapathi2022shaken,
  title  = {Shaken, and Stirred: Long-Range Dependencies Enable Robust Outlier Detection with PixelCNN++},
  author = {Barath Mohan Umapathi and Kushal Chauhan and Pradeep Shenoy and Devarajan Sridharan},
  year   = {2022},
  eprint = {2208.13579},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2208.13579}
}

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

Discussion