Skip to main content
QUICK REVIEW

[Paper Review] Dream the Impossible: Outlier Imagination with Diffusion Models

Xuefeng Du, Yiyou Sun|arXiv (Cornell University)|Sep 23, 2023
Anomaly Detection Techniques and ApplicationsComputer Science8 citations
TL;DR

Dream-ood generates photo-realistic outliers in pixel space using diffusion models conditioned on in-distribution data, and uses them to regularize and improve OOD detection. It also shows potential gains for ID generalization.

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.

Motivation & Objective

  • Motivate and address out-of-distribution (OOD) detection by reducing overconfidence through auxiliary data regularization.
  • Automate outlier data generation without manual curation, enabling high-resolution, human-interpretable outliers.
  • Leverage a text-conditioned latent space to enable sampling of informative outliers in pixel space.
  • Show that synthesis-guided regularization improves OOD detection on standard benchmarks.

Proposed method

  • Learn a text-conditioned latent space for in-distribution data by training an image encoder to align image embeddings with diffusion model token embeddings across classes.
  • Sample low-likelihood embeddings in the text-conditioned latent space and decode them into pixel-space outliers using a diffusion model.
  • Regularize the ID classifier with a loss that encourages separation between ID and generated OOD images (L_ood), combined with standard cross-entropy (L_CE).
  • Use a k-NN based sampling strategy around boundary ID embeddings to generate near-OOD samples.
  • Optionally extend Dream-ood to Dream-id by sampling ID-like inliers to improve generalization on distribution shifts.

Experimental results

Research questions

  • RQ1Can diffusion models be guided to imaginatively generate high-resolution, photo-realistic outliers conditioned on ID data?
  • RQ2Do outliers synthesized in pixel space improve OOD detection compared to latent-space or random prompts?
  • RQ3Does the proposed text-conditioned latent space enable interpretable visualization of imagined outliers?
  • RQ4Can synthetic outliers also improve ID generalization when used as data augmentation?

Key findings

  • Dream-ood generates meaningful, high-resolution outliers that deviate from ID data and are human-interpretable.
  • Training with Dream-ood generated samples improves OOD detection across multiple datasets and baselines, often outperforming prior synthesis methods.
  • Dream-ood enables visualization of imagined outliers, unlike prior latent-space approaches, and shows advantages in pixel-space realism.
  • A mild regularization weight yields the best OOD performance, while excessive regularization can hurt results.
  • Dream-id demonstrates that the synthesis framework can also improve ID generalization on distribution-shift benchmarks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.