[Paper Review] On Diffusion Modeling for Anomaly Detection
This paper proposes Diffusion Time Estimation (DTE), a computationally efficient alternative to Denoising Diffusion Probabilistic Models (DDPM) for anomaly detection. By estimating the posterior distribution over diffusion time and using its mode or mean as an anomaly score, DTE achieves competitive performance with orders-of-magnitude faster inference than DDPM on the ADBench benchmark, outperforming it in both speed and accuracy.
Known for their impressive performance in generative modeling, diffusion models are attractive candidates for density-based anomaly detection. This paper investigates different variations of diffusion modeling for unsupervised and semi-supervised anomaly detection. In particular, we find that Denoising Diffusion Probability Models (DDPM) are performant on anomaly detection benchmarks yet computationally expensive. By simplifying DDPM in application to anomaly detection, we are naturally led to an alternative approach called Diffusion Time Estimation (DTE). DTE estimates the distribution over diffusion time for a given input and uses the mode or mean of this distribution as the anomaly score. We derive an analytical form for this density and leverage a deep neural network to improve inference efficiency. Through empirical evaluations on the ADBench benchmark, we demonstrate that all diffusion-based anomaly detection methods perform competitively for both semi-supervised and unsupervised settings. Notably, DTE achieves orders of magnitude faster inference time than DDPM, while outperforming it on this benchmark. These results establish diffusion-based anomaly detection as a scalable alternative to traditional methods and recent deep-learning techniques for standard unsupervised and semi-supervised anomaly detection settings.
Motivation & Objective
- To evaluate diffusion models, particularly DDPM, for general-purpose anomaly detection across tabular, image, and natural language datasets.
- To address the high computational cost of DDPM in anomaly detection by simplifying the inference process.
- To develop a more efficient and scalable alternative to DDPM that maintains high performance in unsupervised and semi-supervised settings.
- To investigate the interpretability and generalization capability of diffusion-based anomaly detection methods.
- To benchmark the proposed method against classical and deep learning baselines across 57 diverse datasets from ADBench.
Proposed method
- Proposes Diffusion Time Estimation (DTE), which estimates the posterior distribution over diffusion time for a given input as a proxy for anomaly detection.
- Derives an analytical form for the posterior distribution of diffusion time, enabling non-parametric estimation that is equivalent to k-Nearest Neighbors (kNN) for anomaly detection.
- Introduces a parametric deep neural network to model the posterior distribution, enabling efficient inference and improved generalization across diverse datasets.
- Uses the mode or mean of the estimated diffusion time distribution as the anomaly score, with higher values indicating greater anomaly likelihood.
- Employs a single deep neural network architecture across all datasets and settings to ensure scalability and generalization.
- Validates the method on the ADBench benchmark, comparing performance and inference time across 57 datasets in both unsupervised and semi-supervised settings.
Experimental results
Research questions
- RQ1Can diffusion models like DDPM achieve competitive performance on diverse anomaly detection benchmarks beyond image-specific tasks?
- RQ2How can the computational cost of DDPM be reduced without sacrificing detection performance in anomaly detection?
- RQ3Is there a simplified proxy for DDPM inference that retains performance while enabling faster inference?
- RQ4Can a single deep neural network architecture generalize effectively across diverse data types (tabular, image, text) in anomaly detection using diffusion-based principles?
- RQ5How does the proposed DTE method compare in performance and efficiency to classical and deep learning baselines across multiple datasets and settings?
Key findings
- DTE achieves significantly faster inference—orders of magnitude faster—than the original DDPM while maintaining or improving performance on the ADBench benchmark.
- On the semi-supervised setting of ADBench, DTE outperforms DDPM in both average AUC ROC and inference speed, with lower right in the efficiency-accuracy trade-off plot.
- The non-parametric version of DTE produces anomaly rankings identical to k-Nearest Neighbors (kNN), establishing a theoretical link between diffusion modeling and classical methods.
- The parametric DTE model, using a single deep neural network, generalizes well across 57 diverse datasets, demonstrating strong performance across tabular, image, and natural language data.
- All diffusion-based methods, including DDPM and DTE, perform competitively in both unsupervised and semi-supervised anomaly detection, challenging the dominance of classical methods.
- The study confirms that diffusion-based anomaly detection is a scalable and effective alternative to traditional and recent deep learning techniques in standard anomaly detection settings.
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.