mlsanityData to 14 Oct 2026

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

arXiv 2308.07687 ↗First posted 15 Aug 2023cs.CV cs.AI cs.LGcited by 26

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

  1. 2022Denoising diffusion models for out-of-distribution detection14 Nov

Other references · 45

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2020Denoising Diffusion Probabilistic Modelscited by 21,076
  3. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  4. 2020Denoising Diffusion Implicit Modelscited by 9,781
  5. 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
  6. 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,255
  7. 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,733
  8. 2022Classifier-Free Diffusion Guidancecited by 5,847
  9. 2023Adding Conditional Control to Text-to-Image Diffusion Modelscited by 5,503
  10. 2017On Calibration of Modern Neural Networkscited by 4,960
  11. 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,448
  12. 2019Generative Modeling by Estimating Gradients of the Data Distributioncited by 4,101
33 more
  1. 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,614
  2. 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,431
  3. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
  4. 2021SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equationscited by 1,937
  5. 2019Natural Adversarial Examplescited by 1,408
  6. 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,405
  7. 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
  8. 2020Energy-based Out-of-distribution Detectioncited by 1,299
  9. 2020Image Quality Assessment: Unifying Structure and Texture Similaritycited by 811
  10. 2021Generalized Out-of-Distribution Detection: A Surveycited by 802
  11. 2014Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Imagescited by 776
  12. 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
  13. 2017Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discoverycited by 566
  14. 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 465
  15. 2018Do Deep Generative Models Know What They Don't Know?cited by 443
  16. 2020CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instancescited by 441
  17. 2020Generalized ODIN: Detecting Out-of-distribution Image without Learning from Out-of-distribution Datacited by 408
  18. 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 405
  19. 2021GAN Inversion: A Surveycited by 367
  20. 2022Diffusion Models already have a Semantic Latent Spacecited by 328
  21. 2022OpenOOD: Benchmarking Generalized Out-of-Distribution Detectioncited by 268
  22. 2021SSD: A Unified Framework for Self-Supervised Outlier Detectioncited by 264
  23. 2021MOS: Towards Scaling Out-of-distribution Detection for Large Semantic Spacecited by 233
  24. 2020Why Normalizing Flows Fail to Detect Out-of-Distribution Datacited by 221
  25. 2013Gradient Magnitude Similarity Deviation: A Highly Efficient Perceptual Image Quality Indexcited by 195
  26. 2019Input complexity and out-of-distribution detection with likelihood-based generative modelscited by 186
  27. 2019Addressing Failure Prediction by Learning Model Confidencecited by 186
  28. 2018Generative Probabilistic Novelty Detection with Adversarial Autoencoderscited by 99
  29. 2018Improving Reconstruction Autoencoder Out-of-distribution Detection with Mahalanobis Distancecited by 74
  30. 2022MagicMix: Semantic Mixing with Diffusion Modelscited by 63
  31. 2022PyTorch Image Quality: Metrics for Image Quality Assessmentcited by 34
  32. 2022Out-of-Distribution Detection with Semantic Mismatch under Maskingcited by 22
  33. 2018Building robust classifiers through generation of confident out of distribution examplescited by 20

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 2; 2024: 11; 2025: 6; 2026: 7.

26 papers.

Sort:

By area:

  1. 2023MagicDrive: Street View Generation with Diverse 3D Geometry Controlcited by 252
  2. 2024DetDiffusion: Synergizing Generative and Perceptive Models for Enhanced Data Generation and Perceptioncited by 32
  3. 2024Out-of-Distribution Detection: A Task-Oriented Survey of Recent Advancescited by 26
  4. 2024Optimizing OOD Detection in Molecular Graphs: A Novel Approach with Diffusion Modelscited by 22
  5. 2024Detecting Out-Of-Distribution Earth Observation Images with Diffusion Modelscited by 14
  6. 2024Diffusion for Out-of-Distribution Detection on Road Scenes and Beyondcited by 9
  7. 2025AdaSCALE: Adaptive Scaling for OOD Detectioncited by 7
  8. 2024Diffusion-based Layer-wise Semantic Reconstruction for Unsupervised Out-of-Distribution Detectioncited by 5
  9. 2024Diffusion based Semantic Outlier Generation via Nuisance Awareness for Out-of-Distribution Detectioncited by 4
  10. 2025Attention in Diffusion Model: A Surveycited by 4
  11. 2025Unsupervised Detection of Distribution Shift in Inverse Problems using Diffusion Modelscited by 4
  12. 2025EigenScore: OOD Detection using Covariance in Diffusion Modelscited by 4
14 more
  1. 2023Non-Cross Diffusion for Semantic Consistencycited by 2
  2. 2024Reflexive Guidance: Improving OoDD in Vision-Language Models via Self-Guided Image-Adaptive Concept Generationcited by 2
  3. 2024Detecting Out-of-Distribution Objects through Class-Conditioned Inpaintingcited by 1
  4. 2025Hi-OSCAR: Hierarchical Open-set Classifier for Human Activity Recognitioncited by 1
  5. 2026Uncertainty-Aware Distribution-to-Distribution Flow Matching for Scientific Imagingcited by 1
  6. 2024Resilience and Security of Deep Neural Networks Against Intentional and Unintentional Perturbations: Survey and Research Challengescited by 0
  7. 2024Beyond Perceptual Distance: Discrepancy Assessment on Deep Representation for Out-of-Distribution Detection with Diffusion Modelcited by 0
  8. 2025Bayesian model selection and misspecification testing in imaging inverse problems only from noisy and partial measurementscited by 0
  9. 2026Enhancing Few-Shot Out-of-Distribution Detection via the Refinement of Foreground and Backgroundcited by 0
  10. 2026Backbone-Equated Diffusion OOD via Sparse Internal Snapshotscited by 0
  11. 2026Learning Hyperspherical Time-Frequency Representations for Time-Series Out-of-Distribution Detectioncited by 0
  12. 2026Local Diagnostics of Continuous Normalizing Flow for Out-of-Distribution Detectioncited by 0
  13. 2026SAM3-O2D2: Zero-Shot Object Out-of-Distribution Detection by Object Class Prompting of the SAM3-Image Modelcited by 0
  14. 2026Safe Image Generation via Reinforcement Learningcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025GOOD: Training-Free Guided Diffusion Sampling for Out-of-Distribution Detection
  2. 2025OT-DETECTOR: Delving into Optimal Transport for Zero-shot Out-of-Distribution Detection
  3. 2025Out-of-Distribution Detection with Positive and Negative Prompt Supervision Using Large Language Models
  4. 2023Adapting Contrastive Language-Image Pretrained (CLIP) Models for Out-of-Distribution Detection
  5. 2024Exploiting Diffusion Prior for Out-of-Distribution Detection
  6. 2024NODI: Out-Of-Distribution Detection with Noise from Diffusion
  7. 2025Probability Density from Latent Diffusion Models for Out-of-Distribution Detection
  8. 2025Revisiting Likelihood-Based Out-of-Distribution Detection by Modeling Representations