mlsanityData to 14 Oct 2026

Zero-Shot Image Anomaly Detection Using Generative Foundation Models

arXiv 2507.22692 ↗First posted 30 Jul 2025cs.CVcited by 2

On the map: Diffusion models → Flow matching, time series and science

Abstract (arXiv)

Detecting out-of-distribution (OOD) inputs is pivotal for deploying safe vision systems in open-world environments. We revisit diffusion models, not as generators, but as universal perceptual templates for OOD detection. This research explores the use of score-based generative models as foundational tools for semantic anomaly detection across unseen datasets. Specifically, we leverage the denoising trajectories of Denoising Diffusion Models (DDMs) as a rich source of texture and semantic information. By analyzing Stein score errors, amplified through the Structural Similarity Index Metric (SSIM), we introduce a novel method for identifying anomalous samples without requiring re-training on each target dataset. Our approach improves over state-of-the-art and relies on training a single model on one dataset -- CelebA -- which we find to be an effective base distribution, even outperforming more commonly used datasets like ImageNet in several settings. Experimental results show near-perfect performance on some benchmarks, with notable headroom on others, highlighting both the strength and future potential of generative foundation models in anomaly detection.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Flow matching, time series and science, one of 14 directions in Diffusion models. Builds on 27 of its 37 references that are in the map. First posted on arXiv 30 Jul 2025.

Builds on

27 of 37 references.

Closest ancestors · 1

Same direction, newest first

  1. 2023Anomaly Detection with Conditioned Denoising Diffusion Models25 May

Other references · 26

  1. 2020Denoising Diffusion Probabilistic Modelscited by 21,076
  2. 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
  3. 2021Improved Denoising Diffusion Probabilistic Modelscited by 3,761
  4. 2014Deep Learning Face Attributes in the Wildcited by 3,693
  5. 2015Variational Inference with Normalizing Flowscited by 2,170
  6. 2013Describing Textures in the Wildcited by 2,125
  7. 2014NICE: Non-linear Independent Components Estimationcited by 1,058
  8. 2021Generalized Out-of-Distribution Detection: A Surveycited by 802
  9. 2022Pseudo Numerical Methods for Diffusion Models on Manifoldscited by 700
  10. 2019Likelihood Ratios for Out-of-Distribution Detectioncited by 453
  11. 2018Do Deep Generative Models Know What They Don't Know?cited by 443
  12. 2022Diffusion Models for Medical Anomaly Detectioncited by 232
14 more
  1. 2020Why Normalizing Flows Fail to Detect Out-of-Distribution Datacited by 221
  2. 2021A Simple Fix to Mahalanobis Distance for Improving Near-OOD Detectioncited by 207
  3. 2019Input complexity and out-of-distribution detection with likelihood-based generative modelscited by 186
  4. 2020Improved Contrastive Divergence Training of Energy Based Modelscited by 130
  5. 2020VAEBM: A Symbiosis between Variational Autoencoders and Energy-based Modelscited by 104
  6. 2022Denoising diffusion models for out-of-distribution detectioncited by 104
  7. 2020Density of States Estimation for Out-of-Distribution Detectioncited by 74
  8. 2022Rethinking Reconstruction Autoencoder-Based Out-of-Distribution Detectioncited by 59
  9. 2023Unsupervised Out-of-Distribution Detection with Diffusion Inpaintingcited by 59
  10. 2023Information-Theoretic Diffusioncited by 44
  11. 2020Multiscale Score Matching for Out-of-Distribution Detectioncited by 36
  12. 2024Out-of-Distribution Detection with a Single Unconditional Diffusion Modelcited by 22
  13. 2024Understanding Likelihood of Normalizing Flow and Image Complexity through the Lens of Out-of-Distribution Detectioncited by 5
  14. 2024Can Your Generative Model Detect Out-of-Distribution Covariate Shift?cited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026AnomalyVFM -- Transforming Vision Foundation Models into Zero-Shot Anomaly Detectors
  2. 2023DiffusionAD: Norm-guided One-step Denoising Diffusion for Anomaly Detection
  3. 2022Unsupervised Visual Defect Detection with Score-Based Generative Model
  4. 2024Diffusion based Semantic Outlier Generation via Nuisance Awareness for Out-of-Distribution Detection
  5. 2026Understanding Why Foundation Models Work for Diffusion-Generated Image Detection
  6. 2023DiAD: A Diffusion-based Framework for Multi-class Anomaly Detection
  7. 2025A Survey on Diffusion Models for Anomaly Detection
  8. 2025VLMDiff: Leveraging Vision-Language Models for Multi-Class Anomaly Detection with Diffusion