Skip to main content

ORIGINAL RESEARCH article

Front. Artif. Intell.
Sec. Machine Learning and Artificial Intelligence
Volume 7 - 2024 | doi: 10.3389/frai.2024.1255566

Leveraging Diffusion Models for Unsupervised Out-of-Distribution Detection on Image Manifold Provisionally Accepted

 Zhenzhen Liu1*  Jin Peng Zhou1* Kilian Q. Weinberger1
  • 1Cornell University, United States

The final, formatted version of the article will be published soon.

Receive an email when it is updated
You just subscribed to receive the final version of the article

Most machine learning models expect that the data distributions at training time and test time are identical. If this condition is not met, algorithms can exhibit unexpected behaviors. This motivates the task of out of distribution detection. In the image domain, one hypothesis is that images lie on manifolds characterized by latent properties such as color, position, and shape.We can leverage this assumption to test whether a data point belongs to the training manifold.Recent advancement in generative models show that the diffusion models have strong ability to learn a mapping onto an image manifold corresponding to a training data set. Diffusion models involve a forward process of corrupting an image by iteratively adding noise, and learn the reverse manifold mapping of iteratively removing noise. Latter gives them the capability to generate new plausible images from noise, or to reconstruct images after corruption. We propose the use of pretrained diffusion models to identify images that are not from the training distribution.Concretely, we corrupt and denoise an image, which the diffusion model fails to do successfully if it is out-of-distribution. We show through extensive experiments that our method has consistent and strong performance on a variety of image datasets.

Keywords: Out-of-Distribution Detection, diffusion models, score-based models, Generative modeling, Manifold Learning

Received: 09 Jul 2023; Accepted: 25 Mar 2024.

Copyright: © 2024 Liu, Zhou and Weinberger. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence:
Mx. Zhenzhen Liu, Cornell University, Ithaca, United States
Mx. Jin Peng Zhou, Cornell University, Ithaca, United States