On Diffusion Modeling for Anomaly Detection
Authors:
Preprint
Abstract
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 Probabilistic Model (DTPM). DTPM estimates the posterior distribution over diffusion time for a given input, enabling the identification of anomalies due to their higher posterior density at larger timesteps. We derive an analytical form for this posterior 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. Notably, DTPM achieves orders of magnitude faster inference time than DDPM, while outperforming it on this benchmark. These results establish diffusion-based anomaly detection as an interpretable and scalable alternative to traditional methods and recent deep-learning techniques.Keywords
All Related Versions
This publication has 28 references indexed in Scilit:
- Challenges for unsupervised anomaly detection in particle physicsJournal of High Energy Physics, 2022
- Anomaly Detection Approaches for Semiconductor ManufacturingProcedia Manufacturing, 2017
- High-dimensional and large-scale anomaly detection using a linear one-class SVM with deep learningPattern Recognition, 2016
- A survey of anomaly detection techniques in financial domainFuture Generation Computer Systems, 2016
- A survey of network anomaly detection techniquesJournal of Network and Computer Applications, 2016
- Loda: Lightweight on-line detector of anomaliesMachine Learning, 2015
- Anomaly Detection in Medical Wireless Sensor Networks using Machine Learning AlgorithmsProcedia Computer Science, 2015
- Outliers detection with the minimum covariance determinant estimator in practiceStatistical Methodology, 2009
- A Survey of Outlier Detection MethodologiesArtificial Intelligence Review, 2004
- Discovering cluster-based local outliersPattern Recognition Letters, 2003