Dream the Impossible: Outlier Imagination with Diffusion Models

Xuefeng Du, Yiyou Sun, Xiaojin Zhu, Yixuan Li
2/12/2026

Official code: deeplearning-wisc/dream-ood (71 stars, last commit 2025-04-15).

Abstract

Utilizing auxiliary outlier datasets to regularize the machine learning model has demonstrated promise for out-of-distribution (OOD) detection and safe prediction. Due to the labor intensity in data collection and cleaning, automating outlier data generation has been a long-desired alternative. Despite the appeal, generating photo-realistic outliers in the high dimensional pixel space has been an open challenge for the field. To tackle the problem, this paper proposes a new framework DREAM-OOD, which enables imagining photo-realistic outliers by way of diffusion models, provided with only the in-distribution (ID) data and classes. Specifically, DREAM-OOD learns a text-conditioned latent space based on ID data, and then samples outliers in the low-likelihood region via the latent, which can be decoded into images by the diffusion model. Different from prior works, DREAM-OOD enables visualizing and understanding the imagined outliers, directly in the pixel space. We conduct comprehensive quantitative and qualitative studies to understand the efficacy of DREAM-OOD, and show that training with the samples generated by DREAM-OOD can benefit OOD detection performance. Code is publicly available at https://github.com/deeplearning-wisc/dream-ood.

View on arXivView PDF

Code Implementations(1)

source code for NeurIPS'23 paper "Dream the Impossible: Outlier Imagination with Diffusion Models"

712PythonSep 22, 20231 years agoNOASSERTION

Similar Papers

Cite this paper

@article{du2026dream,
  title  = {Dream the Impossible: Outlier Imagination with Diffusion Models},
  author = {Xuefeng Du and Yiyou Sun and Xiaojin Zhu and Yixuan Li},
  year   = {2026},
  eprint = {2309.13415},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2309.13415},
  journal = {NEURIPS 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/2309.13415.svg)](https://codeofpaper.com/paper/2309.13415)

Discussion