DiffGuard: Semantic Mismatch-Guided Out-of-Distribution Detection using Pre-trained Diffusion Models
On the map: Diffusion models → Medical imaging and segmentation
Abstract (arXiv)
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.
Key facts. Cited by 26 papers in the map (data through 14 Oct 2026). Placed in Medical imaging and segmentation, one of 14 directions in Diffusion models. Builds on 46 of its 53 references that are in the map. First posted on arXiv 15 Aug 2023.
Builds on
46 of 53 references.
Closest ancestors · 1
Same direction, newest first
Other references · 45
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020Denoising Diffusion Probabilistic Modelscited by 21,076
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2020Denoising Diffusion Implicit Modelscited by 9,781
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,255
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,733
- 2022Classifier-Free Diffusion Guidancecited by 5,847
- 2023Adding Conditional Control to Text-to-Image Diffusion Modelscited by 5,503
- 2017On Calibration of Modern Neural Networkscited by 4,960
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,448
- 2019Generative Modeling by Estimating Gradients of the Data Distributioncited by 4,101
33 more
- 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,614
- 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,431
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
- 2021SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equationscited by 1,937
- 2019Natural Adversarial Examplescited by 1,408
- 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,405
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
- 2020Energy-based Out-of-distribution Detectioncited by 1,299
- 2020Image Quality Assessment: Unifying Structure and Texture Similaritycited by 811
- 2021Generalized Out-of-Distribution Detection: A Surveycited by 802
- 2014Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Imagescited by 776
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
- 2017Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discoverycited by 566
- 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 465
- 2018Do Deep Generative Models Know What They Don't Know?cited by 443
- 2020CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instancescited by 441
- 2020Generalized ODIN: Detecting Out-of-distribution Image without Learning from Out-of-distribution Datacited by 408
- 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 405
- 2021GAN Inversion: A Surveycited by 367
- 2022Diffusion Models already have a Semantic Latent Spacecited by 328
- 2022OpenOOD: Benchmarking Generalized Out-of-Distribution Detectioncited by 268
- 2021SSD: A Unified Framework for Self-Supervised Outlier Detectioncited by 264
- 2021MOS: Towards Scaling Out-of-distribution Detection for Large Semantic Spacecited by 233
- 2020Why Normalizing Flows Fail to Detect Out-of-Distribution Datacited by 221
- 2013Gradient Magnitude Similarity Deviation: A Highly Efficient Perceptual Image Quality Indexcited by 195
- 2019Input complexity and out-of-distribution detection with likelihood-based generative modelscited by 186
- 2019Addressing Failure Prediction by Learning Model Confidencecited by 186
- 2018Generative Probabilistic Novelty Detection with Adversarial Autoencoderscited by 99
- 2018Improving Reconstruction Autoencoder Out-of-distribution Detection with Mahalanobis Distancecited by 74
- 2022MagicMix: Semantic Mixing with Diffusion Modelscited by 63
- 2022PyTorch Image Quality: Metrics for Image Quality Assessmentcited by 34
- 2022Out-of-Distribution Detection with Semantic Mismatch under Maskingcited by 22
- 2018Building robust classifiers through generation of confident out of distribution examplescited by 20
Built on by
Citing papers per year: 2023: 2; 2024: 11; 2025: 6; 2026: 7.
26 papers.
Sort:
By area:
- 2023MagicDrive: Street View Generation with Diverse 3D Geometry Controlcited by 252
- 2024DetDiffusion: Synergizing Generative and Perceptive Models for Enhanced Data Generation and Perceptioncited by 32
- 2024Out-of-Distribution Detection: A Task-Oriented Survey of Recent Advancescited by 26
- 2024Optimizing OOD Detection in Molecular Graphs: A Novel Approach with Diffusion Modelscited by 22
- 2024Detecting Out-Of-Distribution Earth Observation Images with Diffusion Modelscited by 14
- 2024Diffusion for Out-of-Distribution Detection on Road Scenes and Beyondcited by 9
- 2025AdaSCALE: Adaptive Scaling for OOD Detectioncited by 7
- 2024Diffusion-based Layer-wise Semantic Reconstruction for Unsupervised Out-of-Distribution Detectioncited by 5
- 2024Diffusion based Semantic Outlier Generation via Nuisance Awareness for Out-of-Distribution Detectioncited by 4
- 2025Attention in Diffusion Model: A Surveycited by 4
- 2025Unsupervised Detection of Distribution Shift in Inverse Problems using Diffusion Modelscited by 4
- 2025EigenScore: OOD Detection using Covariance in Diffusion Modelscited by 4
14 more
- 2023Non-Cross Diffusion for Semantic Consistencycited by 2
- 2024Reflexive Guidance: Improving OoDD in Vision-Language Models via Self-Guided Image-Adaptive Concept Generationcited by 2
- 2024Detecting Out-of-Distribution Objects through Class-Conditioned Inpaintingcited by 1
- 2025Hi-OSCAR: Hierarchical Open-set Classifier for Human Activity Recognitioncited by 1
- 2026Uncertainty-Aware Distribution-to-Distribution Flow Matching for Scientific Imagingcited by 1
- 2024Resilience and Security of Deep Neural Networks Against Intentional and Unintentional Perturbations: Survey and Research Challengescited by 0
- 2024Beyond Perceptual Distance: Discrepancy Assessment on Deep Representation for Out-of-Distribution Detection with Diffusion Modelcited by 0
- 2025Bayesian model selection and misspecification testing in imaging inverse problems only from noisy and partial measurementscited by 0
- 2026Enhancing Few-Shot Out-of-Distribution Detection via the Refinement of Foreground and Backgroundcited by 0
- 2026Backbone-Equated Diffusion OOD via Sparse Internal Snapshotscited by 0
- 2026Learning Hyperspherical Time-Frequency Representations for Time-Series Out-of-Distribution Detectioncited by 0
- 2026Local Diagnostics of Continuous Normalizing Flow for Out-of-Distribution Detectioncited by 0
- 2026SAM3-O2D2: Zero-Shot Object Out-of-Distribution Detection by Object Class Prompting of the SAM3-Image Modelcited by 0
- 2026Safe Image Generation via Reinforcement Learningcited by 0
- 2026Safe Image Generation via Reinforcement Learning5 Oct 2026
- 2026SAM3-O2D2: Zero-Shot Object Out-of-Distribution Detection by Object Class Prompting of the SAM3-Image Model8 Sep 2026
- 2026Local Diagnostics of Continuous Normalizing Flow for Out-of-Distribution Detection30 May 2026
- 2026Learning Hyperspherical Time-Frequency Representations for Time-Series Out-of-Distribution Detection29 May 2026
- 2026Backbone-Equated Diffusion OOD via Sparse Internal Snapshots10 May 2026
- 2026Uncertainty-Aware Distribution-to-Distribution Flow Matching for Scientific Imaging23 Mar 2026
- 2026Enhancing Few-Shot Out-of-Distribution Detection via the Refinement of Foreground and Background21 Jan 2026
- 2025Bayesian model selection and misspecification testing in imaging inverse problems only from noisy and partial measurements31 Oct 2025
- 2025Hi-OSCAR: Hierarchical Open-set Classifier for Human Activity Recognition8 Oct 2025
- 2025EigenScore: OOD Detection using Covariance in Diffusion Models8 Oct 2025
- 2025Unsupervised Detection of Distribution Shift in Inverse Problems using Diffusion Models16 May 2025
- 2025Attention in Diffusion Model: A Survey1 Apr 2025
14 more
- 2025AdaSCALE: Adaptive Scaling for OOD Detection11 Mar 2025
- 2024Diffusion-based Layer-wise Semantic Reconstruction for Unsupervised Out-of-Distribution Detection16 Nov 2024
- 2024Reflexive Guidance: Improving OoDD in Vision-Language Models via Self-Guided Image-Adaptive Concept Generation19 Oct 2024
- 2024Out-of-Distribution Detection: A Task-Oriented Survey of Recent Advances18 Sep 2024
- 2024Beyond Perceptual Distance: Discrepancy Assessment on Deep Representation for Out-of-Distribution Detection with Diffusion Model16 Sep 2024
- 2024Diffusion based Semantic Outlier Generation via Nuisance Awareness for Out-of-Distribution Detection27 Aug 2024
- 2024Resilience and Security of Deep Neural Networks Against Intentional and Unintentional Perturbations: Survey and Research Challenges31 Jul 2024
- 2024Diffusion for Out-of-Distribution Detection on Road Scenes and Beyond22 Jul 2024
- 2024Optimizing OOD Detection in Molecular Graphs: A Novel Approach with Diffusion Models24 Apr 2024
- 2024Detecting Out-Of-Distribution Earth Observation Images with Diffusion Models19 Apr 2024
- 2024DetDiffusion: Synergizing Generative and Perceptive Models for Enhanced Data Generation and Perception20 Mar 2024
- 2024Detecting Out-of-Distribution Objects through Class-Conditioned Inpainting5 Feb 2024
- 2023Non-Cross Diffusion for Semantic Consistency30 Nov 2023
- 2023MagicDrive: Street View Generation with Diverse 3D Geometry Control4 Oct 2023
- 2023MagicDrive: Street View Generation with Diverse 3D Geometry Controlcited by 252
- 2024Optimizing OOD Detection in Molecular Graphs: A Novel Approach with Diffusion Modelscited by 22
- 2024Detecting Out-Of-Distribution Earth Observation Images with Diffusion Modelscited by 14
- 2024Diffusion-based Layer-wise Semantic Reconstruction for Unsupervised Out-of-Distribution Detectioncited by 5
- 2025Attention in Diffusion Model: A Surveycited by 4
- 2025Unsupervised Detection of Distribution Shift in Inverse Problems using Diffusion Modelscited by 4
- 2025EigenScore: OOD Detection using Covariance in Diffusion Modelscited by 4
- 2023Non-Cross Diffusion for Semantic Consistencycited by 2
- 2026Uncertainty-Aware Distribution-to-Distribution Flow Matching for Scientific Imagingcited by 1
- 2024Beyond Perceptual Distance: Discrepancy Assessment on Deep Representation for Out-of-Distribution Detection with Diffusion Modelcited by 0
- 2026Uncertainty-Aware Distribution-to-Distribution Flow Matching for Scientific Imaging23 Mar 2026
- 2025EigenScore: OOD Detection using Covariance in Diffusion Models8 Oct 2025
- 2025Unsupervised Detection of Distribution Shift in Inverse Problems using Diffusion Models16 May 2025
- 2025Attention in Diffusion Model: A Survey1 Apr 2025
- 2024Diffusion-based Layer-wise Semantic Reconstruction for Unsupervised Out-of-Distribution Detection16 Nov 2024
- 2024Beyond Perceptual Distance: Discrepancy Assessment on Deep Representation for Out-of-Distribution Detection with Diffusion Model16 Sep 2024
- 2024Optimizing OOD Detection in Molecular Graphs: A Novel Approach with Diffusion Models24 Apr 2024
- 2024Detecting Out-Of-Distribution Earth Observation Images with Diffusion Models19 Apr 2024
- 2023Non-Cross Diffusion for Semantic Consistency30 Nov 2023
- 2023MagicDrive: Street View Generation with Diverse 3D Geometry Control4 Oct 2023
- 2026Safe Image Generation via Reinforcement Learningcited by 0
- 2026Safe Image Generation via Reinforcement Learning5 Oct 2026
- 2024DetDiffusion: Synergizing Generative and Perceptive Models for Enhanced Data Generation and Perceptioncited by 32
- 2024Out-of-Distribution Detection: A Task-Oriented Survey of Recent Advancescited by 26
- 2024Diffusion for Out-of-Distribution Detection on Road Scenes and Beyondcited by 9
- 2025AdaSCALE: Adaptive Scaling for OOD Detectioncited by 7
- 2024Diffusion based Semantic Outlier Generation via Nuisance Awareness for Out-of-Distribution Detectioncited by 4
- 2024Detecting Out-of-Distribution Objects through Class-Conditioned Inpaintingcited by 1
- 2025Hi-OSCAR: Hierarchical Open-set Classifier for Human Activity Recognitioncited by 1
- 2024Resilience and Security of Deep Neural Networks Against Intentional and Unintentional Perturbations: Survey and Research Challengescited by 0
- 2025Bayesian model selection and misspecification testing in imaging inverse problems only from noisy and partial measurementscited by 0
- 2026Enhancing Few-Shot Out-of-Distribution Detection via the Refinement of Foreground and Backgroundcited by 0
- 2026Backbone-Equated Diffusion OOD via Sparse Internal Snapshotscited by 0
- 2026Learning Hyperspherical Time-Frequency Representations for Time-Series Out-of-Distribution Detectioncited by 0
12 most cited of 14 All 14 (JSON)
- 2026SAM3-O2D2: Zero-Shot Object Out-of-Distribution Detection by Object Class Prompting of the SAM3-Image Model8 Sep 2026
- 2026Local Diagnostics of Continuous Normalizing Flow for Out-of-Distribution Detection30 May 2026
- 2026Learning Hyperspherical Time-Frequency Representations for Time-Series Out-of-Distribution Detection29 May 2026
- 2026Backbone-Equated Diffusion OOD via Sparse Internal Snapshots10 May 2026
- 2026Enhancing Few-Shot Out-of-Distribution Detection via the Refinement of Foreground and Background21 Jan 2026
- 2025Bayesian model selection and misspecification testing in imaging inverse problems only from noisy and partial measurements31 Oct 2025
- 2025Hi-OSCAR: Hierarchical Open-set Classifier for Human Activity Recognition8 Oct 2025
- 2025AdaSCALE: Adaptive Scaling for OOD Detection11 Mar 2025
- 2024Out-of-Distribution Detection: A Task-Oriented Survey of Recent Advances18 Sep 2024
- 2024Diffusion based Semantic Outlier Generation via Nuisance Awareness for Out-of-Distribution Detection27 Aug 2024
- 2024Resilience and Security of Deep Neural Networks Against Intentional and Unintentional Perturbations: Survey and Research Challenges31 Jul 2024
- 2024Diffusion for Out-of-Distribution Detection on Road Scenes and Beyond22 Jul 2024
12 newest of 14 All 14 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025GOOD: Training-Free Guided Diffusion Sampling for Out-of-Distribution Detection
- 2025OT-DETECTOR: Delving into Optimal Transport for Zero-shot Out-of-Distribution Detection
- 2025Out-of-Distribution Detection with Positive and Negative Prompt Supervision Using Large Language Models
- 2023Adapting Contrastive Language-Image Pretrained (CLIP) Models for Out-of-Distribution Detection
- 2024Exploiting Diffusion Prior for Out-of-Distribution Detection
- 2024NODI: Out-Of-Distribution Detection with Noise from Diffusion
- 2025Probability Density from Latent Diffusion Models for Out-of-Distribution Detection
- 2025Revisiting Likelihood-Based Out-of-Distribution Detection by Modeling Representations