Lune

ICCV2023Top-tier venue

DiffGuard: Semantic Mismatch-Guided Out-of-Distribution Detection using Pre-trained Diffusion Models

Ruiyuan Gao, Chenchen Zhao, Lanqing Hong, Qiang Xu

Abstract

Given a classifier, the inherent property of semantic Out-of-Distribution (OOD) samples is that their contents differ from all legal classes in terms of semantics, namely semantic mismatch. There is a recent work that directly applies it to OOD detection, which employs a conditional Generative Adversarial Network (cGAN) to enlarge semantic mismatch in the image space. While achieving remarkable OOD detection performance on small datasets, it is not applicable to ImageNet-scale datasets due to the difficulty in training cGANs with both input images and labels as conditions.As diffusion models are much easier to train and amenable to various conditions compared to cGANs, in this work, we propose to directly use pre-trained diffusion models for semantic mismatch-guided OOD detection, named DiffGuard. Specifically, given an OOD input image and the predicted label from the classifier, we try to enlarge the semantic difference between the reconstructed OOD image under these conditions and the original input image. We also present several test-time techniques to further strengthen such differences. Experimental results show that DiffGuard is effective on both Cifar-10 and hard cases of the large-scale ImageNet, and it can be easily combined with existing OOD detection techniques to achieve state-of-the-art OOD detection results.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • MagicDrive: Street View Generation with Diverse 3D Geometry Control cites High-Resolution Image Synthesis with Latent Diffusion Models
  • MagicDrive: Street View Generation with Diverse 3D Geometry Control cites Adding Conditional Control to Text-to-Image Diffusion Models
  • MagicDrive: Street View Generation with Diverse 3D Geometry Control cites Denoising Diffusion Probabilistic Models
  • High-Resolution Image Synthesis with Latent Diffusion Models cites Diffusion Models Beat GANs on Image Synthesis
  • High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Probabilistic Models
  • High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Implicit Models
  • DetDiffusion: Synergizing Generative and Perceptive Models for Enhanced Data Generation and Perception cites MagicDrive: Street View Generation with Diverse 3D Geometry Control
  • DetDiffusion: Synergizing Generative and Perceptive Models for Enhanced Data Generation and Perception cites High-Resolution Image Synthesis with Latent Diffusion Models
  • DetDiffusion: Synergizing Generative and Perceptive Models for Enhanced Data Generation and Perception cites Adding Conditional Control to Text-to-Image Diffusion Models
  • DetDiffusion: Synergizing Generative and Perceptive Models for Enhanced Data Generation and Perception cites Denoising Diffusion Probabilistic Models
  • DetDiffusion: Synergizing Generative and Perceptive Models for Enhanced Data Generation and Perception cites Denoising Diffusion Implicit Models
  • Adding Conditional Control to Text-to-Image Diffusion Models cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Adding Conditional Control to Text-to-Image Diffusion Models cites Diffusion Models Beat GANs on Image Synthesis
  • Diffusion Models Beat GANs on Image Synthesis cites Denoising Diffusion Probabilistic Models
  • Diffusion Models Beat GANs on Image Synthesis cites Denoising Diffusion Implicit Models
  • Denoising Diffusion Implicit Models cites Denoising Diffusion Probabilistic Models
  • Diffusion-based Layer-wise Semantic Reconstruction for Unsupervised Out-of-Distribution Detection cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Diffusion-based Layer-wise Semantic Reconstruction for Unsupervised Out-of-Distribution Detection cites Denoising Diffusion Probabilistic Models
  • Diffusion-based Layer-wise Semantic Reconstruction for Unsupervised Out-of-Distribution Detection cites Denoising Diffusion Implicit Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. MagicDrive: Street View Generation with Diverse 3D Geometry ControlRuiyuan Gao, Kai Chen, Enze Xie, Lanqing Hong et al.ICLR 2024 · 248 citations
  2. DetDiffusion: Synergizing Generative and Perceptive Models for Enhanced Data Generation and PerceptionYibo Wang, Ruiyuan Gao, Kai Chen, Kaiqiang Zhou et al.CVPR 2024 · 14 citations
  3. Optimizing OOD Detection in Molecular Graphs: A Novel Approach with Diffusion ModelsXu Shen, Yili Wang, Kaixiong Zhou, Shirui Pan et al.KDD 2024 · 12 citations
  4. An Information-theoretical Framework for Understanding Out-of-distribution Detection with Pretrained Vision-Language ModelsBo Peng, Jie Lu, Guangquan Zhang, Zhen FangNeurIPS 2025 · 9 citations
  5. Diffusion-based Layer-wise Semantic Reconstruction for Unsupervised Out-of-Distribution DetectionYing Yang, De Cheng, Chaowei Fang, Yubiao Wang et al.NeurIPS 2024 · 9 citations

Builds on23

  1. Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
  2. Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations
  3. High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
  4. Denoising Diffusion Implicit ModelsJiaming Song, Chenlin Meng, Stefano ErmonICLR 2021 · 11,743 citations
  5. Adding Conditional Control to Text-to-Image Diffusion ModelsLvmin Zhang, Anyi Rao, Maneesh AgrawalaICCV 2023 · 6,759 citations

Related papers

  1. GOOD: Training-Free Guided Diffusion Sampling for Out-of-Distribution DetectionXin Gao, Jiyao Liu, Guanghao Li, Yueming Lyu et al.NeurIPS 2025 · 9 citations
  2. Diffusion-based Semantic Outlier Generation via Nuisance Awareness for Out-of-Distribution DetectionSuhee Yoon, Sanghyu Yoon, Ye Seul Sim, Sungik Choi et al.AAAI 2025 · 3 citations
  3. BOOD: Boundary-based Out-Of-Distribution Data GenerationQilin Liao, Shuo Yang, Bo Zhao, Ping Luo et al.ICML 2025
  4. GDA: Generalized Diffusion for Robust Test-Time AdaptationYun-Yun Tsai, Fu-Chen Chen, Albert Y. C. Chen, Junfeng Yang et al.CVPR 2024 · 11 citations
  5. Out-of-Distribution Detection with a Single Unconditional Diffusion ModelAlvin Heng, Alexandre H. Thiery, Harold SohNeurIPS 2024 · 35 citations
Dusk over the sea between two cliffs drawn in fine vertical lines