Beyond Perceptual Distance: Discrepancy Assessment on Deep Representation for Out-of-Distribution Detection with Diffusion Model
On the map: Diffusion models → Medical imaging and segmentation
Abstract (arXiv)
Out-of-Distribution (OoD) detection aims to justify whether a given sample is from the training distribution of the classifier-under-protection, i.e., In-Distribution (InD), or from an unknown out distribution. Recent researches have leveraged Diffusion Models (DMs) for OoD detection due to their powerful distribution modeling capability. Given an input image, an InD-pretrained DM produces a corresponding InD-aligned counterpart, which serves as a generative reference for comparison. However, existing DM-based methods typically assess this underlying discrepancy through visual-level distances in the raw image space, which may be misaligned with the distributional discrepancy relevant to OoD detection. In this work, we investigate the fundamentals of discrepancy assessment in DM-based OoD detection, asking how the discrepancy between an input and its DM-generated counterpart should be formulated, and in which representation spaces and with which metrics it should be measured. To this end, we propose to assess the discrepancy in a classifier-relative manner by exploiting the representation spaces of the classifier-under-protection, whose training on InD data encodes rich task-relevant InD knowledge. In particular, we quantify two types of discrepancy: feature-level covariate discrepancy in deep feature representations and logit-level concept discrepancy in output logits, enabling effective differentiation between InD and OoD samples. Moreover, a subspace-based strategy is devised to refine representations of the DM generation to promote discrepancy assessment. Together, these designs form our novel detection framework, namely DDR. Extensive experiments on the challenging large-scale ImageNet-1K dataset demonstrate the superior detection performance of DDR over both DM-based and non-DM-based methods.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Medical imaging and segmentation, one of 14 directions in Diffusion models. Builds on 40 of its 57 references that are in the map. First posted on arXiv 16 Sep 2024.
Builds on
40 of 57 references.
Closest ancestors · 5
Same direction, newest first
- 2024Out-of-Distribution Detection with a Single Unconditional Diffusion Model20 May
- 2023Dream the Impossible: Outlier Imagination with Diffusion Models23 Sep
- 2023DiffGuard: Semantic Mismatch-Guided Out-of-Distribution Detection using Pre-trained Diffusion Models15 Aug
- 2023Unsupervised Out-of-Distribution Detection with Diffusion Inpainting20 Feb
- 2022Denoising diffusion models for out-of-distribution detection14 Nov
Other references · 35
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2018The Unreasonable Effectiveness of Deep Features as a Perceptual Metriccited by 11,029
- 2020Denoising Diffusion Implicit Modelscited by 9,655
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 8,964
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,185
- 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,005
- 2016Densely Connected Convolutional Networkscited by 6,691
- 2014Deep Learning Face Attributes in the Wildcited by 3,679
- 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,841
23 more
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
- 2013Describing Textures in the Wildcited by 2,110
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,472
- 2019Natural Adversarial Examplescited by 1,401
- 2020Energy-based Out-of-distribution Detectioncited by 1,296
- 2021Generalized Out-of-Distribution Detection: A Surveycited by 796
- 2020Image Quality Assessment: Unifying Structure and Texture Similaritycited by 792
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 596
- 2021ReAct: Out-of-distribution Detection With Rectified Activationscited by 486
- 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 465
- 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 404
- 2021Open-Set Recognition: a Good Closed-Set Classifier is All You Need?cited by 351
- 2021On the Importance of Gradients for Detecting Distributional Shifts in the Wildcited by 338
- 2022OpenOOD: Benchmarking Generalized Out-of-Distribution Detectioncited by 267
- 2023In or Out? Fixing ImageNet Out-of-Distribution Detection Evaluationcited by 132
- 2023Nearest Neighbor Guidance for Out-of-Distribution Detectioncited by 64
- 2024Kernel PCA for Out-of-Distribution Detectioncited by 24
- 2023From Global to Local: Multi-scale Out-of-distribution Detectioncited by 18
- 2023VRA: Variational Rectified Activation for Out-of-distribution Detectioncited by 15
- 2023Species196: A One-Million Semi-supervised Dataset for Fine-grained Species Recognitioncited by 11
- 2023Revisiting Deep Ensemble for Out-of-Distribution Detection: A Loss Landscape Perspectivecited by 10
- 2024A Unified Approach Towards Active Learning and Out-of-Distribution Detectioncited by 7
- 2024Diffusion based Semantic Outlier Generation via Nuisance Awareness for Out-of-Distribution Detectioncited by 4
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2022Diffusion Denoising Process for Perceptron Bias in Out-of-distribution Detection
- 2025Revisiting Likelihood-Based Out-of-Distribution Detection by Modeling Representations
- 2025Beyond Binary Out-of-Distribution Detection: Characterizing Distributional Shifts with Multi-Statistic Diffusion Trajectories
- 2025Probability Density from Latent Diffusion Models for Out-of-Distribution Detection
- 2024NODI: Out-Of-Distribution Detection with Noise from Diffusion
- 2026Geometry over Density: Few-Shot Cross-Domain OOD Detection
- 2024Exploiting Diffusion Prior for Out-of-Distribution Detection
- 2025GOOD: Training-Free Guided Diffusion Sampling for Out-of-Distribution Detection