Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Masked Diffusion Modeling for Anomaly Detection

About

Anomaly detection aims to identify samples that deviate from the nominal data distribution and is central to many safety-critical applications. However, developing effective anomaly detection methods for categorical, mixed-type, and discrete sequence data remains challenging and relatively underexplored. Masked diffusion models provide a natural way to model such data by learning to recover masked values from the remaining visible context. In this paper, we propose Masked Diffusion for Anomaly Detection (MaskDiff-AD), a forward-only method based on masked diffusion models trained only on nominal data. Given a test sample, MaskDiff-AD constructs anomaly scores from the difficulty of reconstructing randomly masked coordinates, yielding a content-sensitive score that operates directly on discrete state spaces while avoiding reverse-time sampling. We also develop a non-parametric variant of MaskDiff-AD and provide theoretical guarantees by characterizing Type-I and Type-II errors under a fixed detection threshold. Experiments on fourteen categorical and mixed-type tabular datasets from ADBench and UADAD, as well as four text anomaly detection datasets from NLP-ADBench, show that MaskDiff-AD achieves competitive performance against classical, diffusion-based, and recent tabular/text anomaly detection baselines. Notably, MaskDiff-AD achieves the best overall average rank, outperforming all twelve tabular baseline methods.

Lixing Zhang, Yuchen Liang, Liyan Xie• 2026

Related benchmarks

TaskDatasetResultRank
Text Anomaly DetectionAGNews
AUPRC31.11
49
Anomaly DetectionCOVER
AUC-PR9.69
34
Anomaly DetectionEmail Spam
ROC-AUC97.55
24
Anomaly DetectionSMS Spam
ROC-AUC95.69
24
Anomaly DetectionCensus
AUPRC0.0906
24
Anomaly DetectionYelpReview
ROC-AUC58.82
24
Anomaly DetectionAD
PR-AUC86.82
14
Anomaly Detectionr10
PR-AUC70.34
14
Anomaly Detectionvehicle_claims
PR AUC93.04
14
Anomaly DetectionADBench and UADAD Tabular (test)
Overall Rank3.929
14
Showing 10 of 30 rows

Other info

Follow for update