Dream the Impossible: Outlier Imagination with Diffusion Models
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Image Classification | ImageNet V2 (test) | Top-1 Accuracy80.4 | 181 | |
| Image Classification | ImageNet-A (test) | -- | 154 | |
| Image Classification | ImageNet-100 (test) | Clean Accuracy88.46 | 109 | |
| Image Classification | ImageNet-100 | -- | 84 | |
| OOD Detection | CIFAR-100 IND SVHN OOD | AUROC (%)87.01 | 74 | |
| OOD Detection | CIFAR-100 ID Average (OOD) | FPR@9540.31 | 36 | |
| OOD Detection | CIFAR-100 | Average FPR9546.6 | 31 | |
| OOD Detection | CIFAR-100 vs Places365 (test) | AUROC79.94 | 30 | |
| OOD Detection | CIFAR-100 vs ISUN (test) | FPR @ 0.05 FNR1.1 | 27 | |
| OOD Detection | CIFAR-100 LSUN IND R OOD | AUROC95.23 | 24 |