Anomaly Detection with Conditioned Denoising Diffusion Models

Arian Mousakhan, Thomas Brox, Jawad Tayyub
5/25/2023
141 citations
cs.CV
diffusion-flow

Official code: arimousa/DDAD (203 stars, Python, MIT, last commit 2024-06-30).

Abstract

Traditional reconstruction-based methods have struggled to achieve competitive performance in anomaly detection. In this paper, we introduce Denoising Diffusion Anomaly Detection (DDAD), a novel denoising process for image reconstruction conditioned on a target image.

Show full abstract

This ensures a coherent restoration that closely resembles the target image. Our anomaly detection framework employs the conditioning mechanism, where the target image is set as the input image to guide the denoising process, leading to a defectless reconstruction while maintaining nominal patterns. Anomalies are then localised via a pixel-wise and feature-wise comparison of the input and reconstructed image. Finally, to enhance the effectiveness of the feature-wise comparison, we introduce a domain adaptation method that utilises nearly identical generated examples from our conditioned denoising process to fine-tune the pretrained feature extractor. The veracity of DDAD is demonstrated on various datasets including MVTec and VisA benchmarks, achieving state-of-the-art results of \(99.8 \%\) and \(98.9 \%\) image-level AUROC respectively.

View on arXivView PDF

Code Implementations(1)

arimousa/DDADOfficial100%
MIT
20335PythonNov 7, 20222 years agoMIT

Similar Papers

Cite this paper

@article{mousakhan2023anomaly,
  title  = {Anomaly Detection with Conditioned Denoising Diffusion Models},
  author = {Arian Mousakhan and Thomas Brox and Jawad Tayyub},
  year   = {2023},
  eprint = {2305.15956},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.15956v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.15956.svg)](https://codeofpaper.com/paper/2305.15956)

Discussion