Flow Mismatching: Unsupervised Anomaly Detection via Velocity Discrepancies in Flow Matching Models

📅 2026-05-21
📈 Citations: 0
Influential: 0
📄 PDF

career value

212K/year
🤖 AI Summary
This work addresses the limited sensitivity of reconstruction-based paradigms to anomalous regions in unsupervised anomaly detection by formulating flow matching as a geometric dynamical process. The authors propose a “velocity mismatch” mechanism that detects anomalies by comparing the model-predicted velocity with the local geometric velocity of test images along affine trajectories, eliminating the need for test-time optimization or additional calibration. Theoretical analysis reveals that this mismatch decomposes into a denoising term and a Fisher divergence term, inspiring a multi-path aggregation strategy to enhance robustness. Extensive experiments demonstrate that the proposed method significantly outperforms existing reconstruction-based and flow-matching approaches on MVTec-AD and VisA benchmarks, achieving state-of-the-art performance in both pixel-level anomaly localization and image-level anomaly scoring.
📝 Abstract
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.
Problem

Research questions and friction points this paper is trying to address.

anomaly detection
flow matching
unsupervised learning
velocity discrepancy
normality modeling
Innovation

Methods, ideas, or system contributions that make the work stand out.

Flow Mismatching
Unsupervised Anomaly Detection
Velocity Discrepancy
Flow Matching
Geometric Dynamics
🔎 Similar Papers
No similar papers found.