Approximations to the Fisher Information Metric of Deep Generative Models for Out-Of-Distribution Detection
On the map: Diffusion models → Medical imaging and segmentation
Abstract (arXiv)
Likelihood-based deep generative models such as score-based diffusion models and variational autoencoders are state-of-the-art machine learning models approximating high-dimensional distributions of data such as images, text, or audio. One of many downstream tasks they can be naturally applied to is out-of-distribution (OOD) detection. However, seminal work by Nalisnick et al. which we reproduce showed that deep generative models consistently infer higher log-likelihoods for OOD data than data they were trained on, marking an open problem. In this work, we analyse using the gradient of a data point with respect to the parameters of the deep generative model for OOD detection, based on the simple intuition that OOD data should have larger gradient norms than training data. We formalise measuring the size of the gradient as approximating the Fisher information metric. We show that the Fisher information matrix (FIM) has large absolute diagonal values, motivating the use of chi-square distributed, layer-wise gradient norms as features. We combine these features to make a simple, model-agnostic and hyperparameter-free method for OOD detection which estimates the joint density of the layer-wise gradient norms for a given data point. We find that these layer-wise gradient norms are weakly correlated, rendering their combined usage informative, and prove that the layer-wise gradient norms satisfy the principle of (data representation) invariance. Our empirical results indicate that this method outperforms the Typicality test for most deep generative models and image dataset pairings.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Medical imaging and segmentation, one of 14 directions in Diffusion models. Builds on 37 of its 55 references that are in the map. First posted on arXiv 3 Mar 2024.
Builds on
37 of 55 references.
Closest ancestors · 1
Same direction, newest first
Other references · 36
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,005
- 2013Intriguing properties of neural networkscited by 5,114
- 2015Domain-Adversarial Training of Neural Networkscited by 3,023
- 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,597
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
- 2018Glow: Generative Flow with Invertible 1x1 Convolutionscited by 1,539
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,325
- 2019Normalizing Flows for Probabilistic Modeling and Inferencecited by 1,315
- 2020Energy-based Out-of-distribution Detectioncited by 1,296
- 2018Deep Anomaly Detection with Outlier Exposurecited by 939
- 2016Conditional Image Generation with PixelCNN Decoderscited by 859
24 more
- 2014Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Imagescited by 774
- 2019Likelihood Ratios for Out-of-Distribution Detectioncited by 451
- 2018Do Deep Generative Models Know What They Don't Know?cited by 443
- 2014New insights and perspectives on the natural gradient methodcited by 435
- 2017PixelCNN++: Improving the PixelCNN with Discretized Logistic Mixture Likelihood and Other Modificationscited by 415
- 2020Why Normalizing Flows Fail to Detect Out-of-Distribution Datacited by 220
- 2019Input complexity and out-of-distribution detection with likelihood-based generative modelscited by 186
- 2020Autoencoders for Unsupervised Anomaly Segmentation in Brain MR Images: A Comparative Studycited by 146
- 2020Likelihood Regret: An Out-of-Distribution Detection Score For Variational Auto-encodercited by 145
- 2018Fast Approximate Natural Gradient Descent in a Kronecker-factored Eigenbasiscited by 143
- 2021Understanding Failures in Out-of-Distribution Detection with Deep Generative Modelscited by 89
- 2020Density of States Estimation for Out-of-Distribution Detectioncited by 74
- 2020Understanding Anomaly Detection with Deep Invertible Networks through Hierarchies of Distributions and Featurescited by 64
- 2021Hierarchical VAEs Know What They Don't Knowcited by 58
- 2020Backpropagated Gradient Representations for Anomaly Detectioncited by 54
- 2020Trust Issues: Uncertainty Estimation Does Not Enable Reliable OOD Detection On Medical Tabular Datacited by 52
- 2020Perfect density models cannot guarantee anomaly detectioncited by 39
- 2021On the Out-of-distribution Generalization of Probabilistic Image Modellingcited by 32
- 2023RLSbench: Domain Adaptation Under Relaxed Label Shiftcited by 30
- 2023GradOrth: A Simple yet Efficient Out-of-Distribution Detection with Orthogonal Projection of Gradientscited by 21
- 2022How Useful are Gradients for OOD Detection Really?cited by 20
- 2021Entropic Issues in Likelihood-Based OOD Detectioncited by 16
- 2022Model-agnostic out-of-distribution detection using combined statistical testscited by 14
- 2021Robust Out-of-Distribution Detection on Deep Probabilistic Generative Modelscited by 2
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025Revisiting Likelihood-Based Out-of-Distribution Detection by Modeling Representations
- 2025Probability Density from Latent Diffusion Models for Out-of-Distribution Detection
- 2024A Geometric Explanation of the Likelihood OOD Detection Paradox
- 2024NODI: Out-Of-Distribution Detection with Noise from Diffusion
- 2023Likelihood-based Out-of-Distribution Detection with Denoising Diffusion Probabilistic Models
- 2024Deep Metric Learning-Based Out-of-Distribution Detection with Synthetic Outlier Exposure
- 2024Beyond Perceptual Distance: Discrepancy Assessment on Deep Representation for Out-of-Distribution Detection with Diffusion Model
- 2023Unsupervised Out-of-Distribution Detection with Diffusion Inpainting