Anomaly Detection with Conditioned Denoising Diffusion Models
About
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. 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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Anomaly Localization | MVTec AD | Pixel AUROC98.1 | 369 | |
| Anomaly Detection | VisA | -- | 199 | |
| Anomaly Localization | MVTec-AD (test) | Pixel AUROC98.1 | 181 | |
| Anomaly Detection | MVTec-AD (test) | P-AUROC99.3 | 132 | |
| Abnormal Event Detection | UCSD Ped2 | AUC55.87 | 132 | |
| Anomaly Detection | MVTec AD | I-AUROC99.8 | 43 | |
| Anomaly Localization | VisA (test) | -- | 37 | |
| Anomaly Localization | VisA | PCB193.4 | 35 | |
| Anomaly Detection | MVTec AD | AUROC (Image)96.2 | 21 | |
| Anomaly Detection | MVTec LOCO | -- | 18 |