DeFloMat: Detection with Flow Matching for Stable and Efficient Generative Object Localization
Hansang Lee, Chaelin Lee, Nieun Seo, Joon Seok Lim, Helen Hong
TL;DR
DeFloMat rethinks generative object detection by replacing slow stochastic diffusion with a deterministic flow learned through Conditional Flow Matching, enabling few-step inference via an ODE solver. Trained on a Crohn's disease MRE dataset, it demonstrates state-of-the-art localization accuracy with AP$_{10:50}$ of 43.32% in just 3 inference steps, a 1.4x gain over DiffusionDet at its peak. The method hinges on a Rectified Flow path between noisy proposals and ground-truth boxes, guided by a Flow Matching loss that enforces alignment between the predicted velocity field and the optimal transport path. Empirically, DeFloMat delivers higher Recall and more stable localization in the few-step regime, reduces latency dramatically, and provides robust performance across varying numbers of initial proposals. This work establishes a new standard for fast, stable, generative localization in clinically relevant scenarios and highlights the practical potential of flow-based generative detectors in medical imaging.
Abstract
We propose DeFloMat (Detection with Flow Matching), a novel generative object detection framework that addresses the critical latency bottleneck of diffusion-based detectors, such as DiffusionDet, by integrating Conditional Flow Matching (CFM). Diffusion models achieve high accuracy by formulating detection as a multi-step stochastic denoising process, but their reliance on numerous sampling steps ($T \gg 60$) makes them impractical for time-sensitive clinical applications like Crohn's Disease detection in Magnetic Resonance Enterography (MRE). DeFloMat replaces this slow stochastic path with a highly direct, deterministic flow field derived from Conditional Optimal Transport (OT) theory, specifically approximating the Rectified Flow. This shift enables fast inference via a simple Ordinary Differential Equation (ODE) solver. We demonstrate the superiority of DeFloMat on a challenging MRE clinical dataset. Crucially, DeFloMat achieves state-of-the-art accuracy ($43.32\% \text{ } AP_{10:50}$) in only $3$ inference steps, which represents a $1.4\times$ performance improvement over DiffusionDet's maximum converged performance ($31.03\% \text{ } AP_{10:50}$ at $4$ steps). Furthermore, our deterministic flow significantly enhances localization characteristics, yielding superior Recall and stability in the few-step regime. DeFloMat resolves the trade-off between generative accuracy and clinical efficiency, setting a new standard for stable and rapid object localization.
