Unsupervised Out-of-Distribution Detection with Diffusion Inpainting

Zhenzhen Liu, Jin Peng Zhou, Yufan Wang, Kilian Q. Weinberger
2/20/2023
cs.CVcs.LG

Official code: zhenzhel/lift_map_detect (29 stars, Apache-2.0, last commit 2023-08-16).

Abstract

Unsupervised out-of-distribution detection (OOD) seeks to identify out-of-domain data by learning only from unlabeled in-domain data. We present a novel approach for this task - Lift, Map, Detect (LMD) - that leverages recent advancement in diffusion models. Diffusion models are one type of generative models. At their core, they learn an iterative denoising process that gradually maps a noisy image closer to their training manifolds. LMD leverages this intuition for OOD detection. Specifically, LMD lifts an image off its original manifold by corrupting it, and maps it towards the in-domain manifold with a diffusion model. For an out-of-domain image, the mapped image would have a large distance away from its original manifold, and LMD would identify it as OOD accordingly. We show through extensive experiments that LMD achieves competitive performance across a broad variety of datasets. Code can be found at https://github.com/zhenzhel/lift_map_detect.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

The official code release for Unsupervised Out-of-distribution Detection with Diffusion Inpainting (ICML 2023)

292C++, CudaMay 26, 20233 years agoApache-2.0

Similar Papers

Cite this paper

@article{liu2023unsupervised,
  title  = {Unsupervised Out-of-Distribution Detection with Diffusion Inpainting},
  author = {Zhenzhen Liu and Jin Peng Zhou and Yufan Wang and Kilian Q. Weinberger},
  year   = {2023},
  eprint = {2302.10326},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.10326v2},
  journal = {ICML 2023 2023}
}

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

Discussion