Flow-CAD: Flow Matching for Contextual Anomaly Detection and Explanation in Tabular Data
On the map: Diffusion models → Flow matching, time series and science
Abstract (arXiv)
Contextual anomaly detection in tabular data aims to identify objects whose behavior is unexpected under their contextual conditions. In data-engineering pipelines, this task screens table rows whose measurements violate context-dependent integrity relationships. Most existing approaches rely on either shallow conditional models with limited distributional expressiveness or localized estimators that require per-context modeling, making it difficult to capture complex conditional relationships and scale to high-dimensional settings. We propose Flow-CAD, a new framework for contextual anomaly detection based on Flow Matching. Flow-CAD learns a single global and amortized conditional generative model that flexibly represents behavioral distributions conditioned on context, without assuming simple parametric forms or retraining local models. To enable robust and interpretable anomaly scoring, we introduce a scale-normalized and truncated residual energy derived from the learned conditional flow, which stabilizes anomaly scores, mitigates domination by extreme deviations, and supports feature-wise attribution. We further provide theoretical insights showing that the proposed residual-based anomaly score is stable under velocity estimation error, and that its Monte Carlo estimator satisfies concentration bounds. Experiments on 20 benchmark datasets with 13 competitors demonstrate that Flow-CAD has the best average rank for PR AUC, ROC AUC, and P@n, highlighting its effectiveness and practicality for contextual anomaly detection in tabular data. We provide the source code at https://github.com/ZhongLIFR/FlowCAD.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Flow matching, time series and science, one of 14 directions in Diffusion models. Builds on 19 of its 41 references that are in the map. Submitted 12 Nov 2026.
Builds on
19 of 41 references.
Closest ancestors · 7
Same direction, newest first
- 2026Flow Mismatching: Unsupervised Anomaly Detection via Velocity Discrepancies in Flow Matching Models21 May
- 2025Scalable, Explainable and Provably Robust Anomaly Detection with One-Step Flow Matching21 Oct
- 2025Diffusion and Flow Matching Models for Tabular Data: A Survey24 Feb
- 2023On Diffusion Modeling for Anomaly Detection29 May
- 2023Improving and generalizing flow-based generative models with minibatch optimal transport1 Feb
- 2022Flow Matching for Generative Modeling6 Oct
- 2022Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow7 Sep
Other references · 12
- 2014Adam: A Method for Stochastic Optimizationcited by 38,596
- 2015Variational Inference with Normalizing Flowscited by 2,224
- 2022Building Normalizing Flows with Stochastic Interpolantscited by 1,071
- 2018Do Deep Generative Models Know What They Don't Know?cited by 455
- 2022ADBench: Anomaly Detection Benchmarkcited by 242
- 2021LUNAR: Unifying Local Outlier Detection Methods via Graph Neural Networkscited by 48
- 2022A Survey on Explainable Anomaly Detectioncited by 41
- 2024A Geometric Explanation of the Likelihood OOD Detection Paradoxcited by 26
- 2016Robust Contextual Outlier Detection: Where Context Meets Sparsitycited by 12
- 2023Explainable Contextual Anomaly Detection using Quantile Regression Forestscited by 11
- 2025Dealing with Uncertainty in Contextual Anomaly Detectioncited by 2
- 2026Unsupervised Anomaly Detection Using Flow Matching on Tabular Datacited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Towards One-for-All Anomaly Detection for Tabular Data
- 2024Anomaly Detection of Tabular Data Using LLMs
- 2026Mixture Prototype Flow Matching for Open-Set Supervised Anomaly Detection
- 2026Cascaded Flow Matching for Heterogeneous Tabular Data with Mixed-Type Features
- 2023TabADM: Unsupervised Tabular Anomaly Detection with Diffusion Models
- 2026MATCH: Flow Matching for Multi-View Anomaly Detection
- 2026f-Divergence Self-Play for Tabular Anomaly Detection via Large Language Models
- 2025LLM as an Algorithmist: Enhancing Anomaly Detectors via Programmatic Synthesis