Flow Mismatching: Unsupervised Anomaly Detection via Velocity Discrepancies in Flow Matching Models
On the map: Diffusion models → Flow matching, time series and science
Abstract (arXiv)
We propose Flow Mismatching, an unsupervised anomaly detection method that deliberately avoids reconstruction-based paradigms. Instead, we treat flow matching as geometric dynamics and leverage a key insight: anomalies occur at places where the learned normal flow disagrees with the geometric path toward a test image. Given a flow matching model trained only on normal images, we probe its learned velocity field along affine paths from Gaussian noise to a target image. Along each path, we compare the model-predicted velocity, which follows normal generative dynamics, with the geometric velocity toward the target, which includes any anomalous content. Anomalies induce strong local disagreement between these velocities. Aggregating the mismatch over different time steps and multiple paths yields pixel-wise heatmaps and image-level scores without test-time optimization, feature memories, or additional calibration. Our analysis shows that the population mismatch decomposes into an irreducible denoising term and a Fisher-divergence term between the test-path and normal-path score functions, which identifies the score-gap component that drives anomaly separation and explains the effectiveness of robust path aggregation. Extensive experiments on MVTec-AD and VisA demonstrate superior performance compared with SOTA reconstruction-based and recent flow matching-based approaches.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Flow matching, time series and science, one of 14 directions in Diffusion models. Builds on 22 of its 31 references that are in the map. First posted on arXiv 21 May 2026.
Builds on
22 of 31 references.
Closest ancestors · 7
Same direction, newest first
- 2025Scalable, Explainable and Provably Robust Anomaly Detection with One-Step Flow Matching21 Oct
- 2025HDM: Hybrid Diffusion Model for Unified Image Anomaly Detection26 Feb
- 2024DDPM-MoCo: Advancing Industrial Surface Defect Generation and Detection with Generative and Contrastive Learning9 May
- 2024D-Flow: Differentiating through Flows for Controlled Generation21 Feb
- 2023TransFusion -- A Transparency-Based Diffusion Model for Anomaly Detection16 Nov
- 2023DiffusionAD: Norm-guided One-step Denoising Diffusion for Anomaly Detection15 Mar
- 2022Flow Matching for Generative Modeling6 Oct
Other references · 15
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2022Anomaly Detection via Reverse Distillation from One-Class Embeddingcited by 421
- 2022SPot-the-Difference Self-Supervised Pre-training for Anomaly Detection and Segmentationcited by 400
- 2021CFLOW-AD: Real-Time Unsupervised Anomaly Detection with Localization via Conditional Normalizing Flowscited by 321
- 2022A Unified Model for Multi-class Anomaly Detectioncited by 268
- 2023SimpleNet: A Simple Network for Image Anomaly Detection and Localizationcited by 256
- 2022DeSTSeg: Segmentation Guided Denoising Student-Teacher for Anomaly Detectioncited by 154
- 2024Dinomaly: The Less Is More Philosophy in Multi-Class Unsupervised Anomaly Detectioncited by 93
- 2023Hierarchical Vector Quantized Transformer for Multi-class Unsupervised Anomaly Detectioncited by 66
- 2023Exploring Plain ViT Reconstruction for Multi-class Unsupervised Anomaly Detectioncited by 47
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025Time-reversed Flow Matching with Worst Transport in High-dimensional Latent Space for Image Anomaly Detection
- 2026Mixture Prototype Flow Matching for Open-Set Supervised Anomaly Detection
- 2026MATCH: Flow Matching for Multi-View Anomaly Detection
- 2026Co-Evolving Paths and Flows via Path-Flow Alignment
- 2026Euclidean Distance-Based Flow Matching
- 2025Graph Flow Matching: Enhancing Image Generation with Neighbor-Aware Flow Fields
- 2026Stable Velocity: A Variance Perspective on Flow Matching
- 2025On the Closed-Form of Flow Matching: Generalization Does Not Arise from Target Stochasticity