mlsanityData to 13 Oct 2026

Unsupervised Anomaly Detection via Masked Diffusion Posterior Sampling

arXiv 2404.17900 ↗First posted 27 Apr 2024cs.CVcited by 5

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

Abstract (arXiv)

Reconstruction-based methods have been commonly used for unsupervised anomaly detection, in which a normal image is reconstructed and compared with the given test image to detect and locate anomalies. Recently, diffusion models have shown promising applications for anomaly detection due to their powerful generative ability. However, these models lack strict mathematical support for normal image reconstruction and unexpectedly suffer from low reconstruction quality. To address these issues, this paper proposes a novel and highly-interpretable method named Masked Diffusion Posterior Sampling (MDPS). In MDPS, the problem of normal image reconstruction is mathematically modeled as multiple diffusion posterior sampling for normal images based on the devised masked noisy observation model and the diffusion-based normal image prior under Bayesian framework. Using a metric designed from pixel-level and perceptual-level perspectives, MDPS can effectively compute the difference map between each normal posterior sample and the given test image. Anomaly scores are obtained by averaging all difference maps for multiple posterior samples. Exhaustive experiments on MVTec and BTAD datasets demonstrate that MDPS can achieve state-of-the-art performance in normal image reconstruction quality as well as anomaly detection and localization.

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

Builds on

23 of 37 references.

References · 23

  1. 2020Denoising Diffusion Probabilistic Modelscited by 20,952
  2. 2018The Unreasonable Effectiveness of Deep Features as a Perceptual Metriccited by 11,082
  3. 2020Denoising Diffusion Implicit Modelscited by 9,718
  4. 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,028
  5. 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,213
  6. 2016Wide Residual Networkscited by 3,063
  7. 2022Diffusion Posterior Sampling for General Noisy Inverse Problemscited by 1,403
  8. 2021Towards Total Recall in Industrial Anomaly Detectioncited by 774
  9. 2020PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localizationcited by 593
  10. 2017Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discoverycited by 566
  11. 2021DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detectioncited by 511
  12. 2020A Unifying Review of Deep and Shallow Anomaly Detectioncited by 425
11 more
  1. 2022A Unified Model for Multi-class Anomaly Detectioncited by 268
  2. 2018Improving Unsupervised Defect Segmentation by Applying Structural Similarity to Autoencoderscited by 264
  3. 2022Diffusion Models for Medical Anomaly Detectioncited by 232
  4. 2021VT-ADL: A Vision Transformer Network for Image Anomaly Detection and Localizationcited by 222
  5. 2019Towards Visually Explaining Variational Autoencoderscited by 113
  6. 2019Skip-GANomaly: Skip Connected and Adversarially Trained Encoder-Decoder Anomaly Detectioncited by 100
  7. 2022Fast Unsupervised Brain Anomaly Detection and Segmentation with Diffusion Modelscited by 97
  8. 2023PyramidFlow: High-Resolution Defect Contrastive Localization using Pyramid Normalizing Flowcited by 74
  9. 2023Mask, Stitch, and Re-Sample: Enhancing Robustness and Generalizability in Anomaly Detection through Automatic Diffusion Modelscited by 49
  10. 2020Iterative energy-based projection on a normal data manifold for anomaly localizationcited by 47
  11. 2022ADTR: Anomaly Detection Transformer with Feature Reconstructioncited by 31

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 4.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Correcting Deviations from Normality: A Reformulated Diffusion Model for Multi-Class Unsupervised Anomaly Detection
  2. 2024GLAD: Towards Better Reconstruction with Global and Local Adaptive Diffusion Models for Unsupervised Anomaly Detection
  3. 2025Single-Step Reconstruction-Free Anomaly Detection and Segmentation via Diffusion Models
  4. 2026Unsupervised Brain Anomaly Detection as a Bayesian Inverse Problem with Diffusion Prior
  5. 2023Anomaly Detection with Conditioned Denoising Diffusion Models
  6. 2024Binary Noise for Binary Tasks: Masked Bernoulli Diffusion for Unsupervised Anomaly Detection
  7. 2023DiffusionAD: Norm-guided One-step Denoising Diffusion for Anomaly Detection
  8. 2024Anomaly detection using Diffusion-based methods