SafeFlowMatcher: Safe and Fast Planning using Flow Matching with Control Barrier Functions
Yang, Jeongyong, Jang, Seunghwan, Han, SooJean
–arXiv.org Artificial Intelligence
ABSTRACT Generative planners based on flow matching (FM) produce high-quality paths in a single or a few ODE steps, but their sampling dynamics offer no formal safety guarantees and can yield incomplete paths near constraints. We present SafeFlowMatcher, a planning framework that couples FM with control barrier functions (CBFs) to achieve both real-time efficiency and certified safety. SafeFlowMatcher uses a two-phase prediction-correction (PC) integrator: (i) a prediction phase integrates the learned FM once (or a few steps) to obtain a candidate path without intervention; (ii) a correction phase refines this path with a vanishing time-scaled vector field and a CBF-based quadratic program that minimally perturbs the vector field. We prove a barrier certificate for the resulting flow system, establishing forward invariance of a robust safe set and finite-time convergence to the safe set. In addition, by enforcing safety only on the executed path--rather than all intermediate latent paths--SafeFlowMatcher avoids distributional drift and mitigates local trap problems. Extensive ablations corroborate the contributions of the PC integrator and the barrier certificate. Code is available at the project page. 1 INTRODUCTION Directly constraining intermediate samples during generation (top) can cause paths to be distorted or trapped, whereas SafeFlowMatcher (bottom) decouples generation and certification, producing a complete and certified-safe path. Robotic path planning must simultaneously achieve real-time responsiveness and strong safety guarantees. However, the sampling dynamics of these models are governed by implicitly learned rules and can produce paths that violate physical safety constraints, leading to task interruptions or collisions. Therefore, integrating certified safety into generative planning is essential for deployment in realworld robotic systems. Several approaches have attempted to enforce safety in generative planning. Safety-guidance methods regulate the sampling process through learned safety scores (often called guidance, e.g., classifier(-free) guidance(Dhariwal & Nichol, 2021; Ho & Salimans, 2021), or value/reward guid1 More explicitly, certification-based methods incorporate functions such as Control Barrier Functions (CBFs) directly into the generative process (Xiao et al., 2025). Unlike guidance-based approaches, these methods can guarantee safety at deployment without requiring additional training.
arXiv.org Artificial Intelligence
Feb-24-2026
- Genre:
- Research Report > New Finding (0.67)
- Technology:
- Information Technology > Artificial Intelligence
- Machine Learning (1.00)
- Representation & Reasoning > Agents (0.67)
- Robots > Locomotion (0.67)
- Information Technology > Artificial Intelligence