[Paper Review] Anomaly detection using Diffusion-based methods
This paper proposes using diffusion-based models—specifically Denoising Diffusion Probabilistic Models (DDPMs) and Diffusion Transformers (DiTs)—for anomaly detection by leveraging reconstruction error as a detection metric. The method outperforms traditional approaches like Isolation Forest, One-Class SVM, and COPOD across compact and high-resolution datasets, demonstrating superior scalability, robustness to noise, and accuracy, especially on complex, high-dimensional data such as Mini-ImageNet and MVTec-AD.
This paper explores the utility of diffusion-based models for anomaly detection, focusing on their efficacy in identifying deviations in both compact and high-resolution datasets. Diffusion-based architectures, including Denoising Diffusion Probabilistic Models (DDPMs) and Diffusion Transformers (DiTs), are evaluated for their performance using reconstruction objectives. By leveraging the strengths of these models, this study benchmarks their performance against traditional anomaly detection methods such as Isolation Forests, One-Class SVMs, and COPOD. The results demonstrate the superior adaptability, scalability, and robustness of diffusion-based methods in handling complex real-world anomaly detection tasks. Key findings highlight the role of reconstruction error in enhancing detection accuracy and underscore the scalability of these models to high-dimensional datasets. Future directions include optimizing encoder-decoder architectures and exploring multi-modal datasets to further advance diffusion-based anomaly detection.
Motivation & Objective
- To investigate the effectiveness of diffusion-based models in anomaly detection across diverse data types.
- To compare the performance of diffusion models (DDPM, DiT, DTE) against traditional methods like Isolation Forest, One-Class SVM, and COPOD.
- To evaluate the scalability and robustness of diffusion models on high-resolution and noisy datasets.
- To assess the role of reconstruction error as a key indicator for anomaly detection in diffusion-based frameworks.
- To identify limitations in existing methods and propose diffusion models as a scalable, adaptive alternative for real-world anomaly detection.
Proposed method
- The study employs Denoising Diffusion Probabilistic Models (DDPMs) and Diffusion Transformers (DiTs) to iteratively reconstruct input data from noise, modeling complex data distributions.
- Reconstruction error is used as the primary anomaly score, where higher error indicates a higher likelihood of being anomalous.
- The method is evaluated using the Area Under the ROC Curve (AUC-ROC) across multiple datasets, including MNIST, CIFAR-10, SVHN, and MVTec-AD.
- A comparative benchmark is conducted against traditional methods: Isolation Forest, One-Class SVM, and COPOD, using identical evaluation protocols.
- The scalability of the method is tested on the Mini-ImageNet dataset, a high-resolution, complex dataset, to assess performance on large-scale data.
- Robustness is evaluated on corrupted versions of MNIST (e.g., fog, shear, shot noise) to test performance under distributional shifts and noise.
Experimental results
Research questions
- RQ1Can diffusion-based models achieve superior anomaly detection performance compared to traditional methods like Isolation Forest and One-Class SVM?
- RQ2How do diffusion models perform on high-resolution and high-dimensional datasets such as Mini-ImageNet and MVTec-AD?
- RQ3To what extent does reconstruction error serve as a reliable anomaly detection signal in diffusion-based frameworks?
- RQ4How robust are diffusion models to noisy or adversarial data perturbations, such as fog or shear in MNIST-C?
- RQ5Can diffusion models scale effectively to large and complex datasets without performance degradation, unlike traditional models?
Key findings
- On compact datasets, the proposed diffusion-based method achieved the highest AUC-ROC score of 99.46% on MVTec-AD_leather, significantly outperforming COPOD (50.00%) and other baselines.
- On the Mini-ImageNet high-resolution dataset, the method achieved an AUC-ROC of 0.635, outperforming OCSVM (0.594) and Isolation Forest (0.584), demonstrating superior scalability.
- In noisy settings like MNIST-C_fog, the DDPM model achieved 92.60% AUC-ROC, surpassing OCSVM (91.09%) and other baselines, highlighting robustness to data corruption.
- The DTE variant achieved state-of-the-art performance on MVTec-AD_carpet (82.36%) and MVTec-AD_tile (92.74%), indicating strong generalization on texture-rich anomaly detection tasks.
- Traditional methods like COPOD consistently scored 50.00% on most datasets, indicating poor performance and lack of discriminative power in complex settings.
- The study confirms that reconstruction error is a highly effective anomaly detection signal in diffusion models, especially when combined with advanced architectures like DiTs and DTE.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.