Abstract
UniConFlow is a unified framework designed to provide formal safety and physics guarantees for generative motion planning. Utilizing Flow Matching and a novel "prescribed-time zeroing function" (PTZF), the system ensures generated trajectories satisfy complex equality and inequality constraints—such as collision avoidance and joint limits—without the need for model retraining or compromising real-time performance.
Introduction
Generative models, particularly Diffusion Models, have significantly advanced robot motion planning by learning multimodal behaviors from expert data. However, these models often treat physical laws and safety requirements as heuristics rather than hard constraints. This leads to trajectories that may appear plausible but are physically unexecutable or unsafe. While Flow Matching (FM) offers computational advantages over Diffusion, it has historically lacked a rigorous mechanism for constraint enforcement. UniConFlow bridges this gap by combining the expressiveness of generative models with the mathematical rigor of control theory.
Methodology
UniConFlow builds on Conditional Flow Matching (CFM), which learns a vector field to transport a simple noise distribution into a complex data distribution of trajectories. The framework introduces several key innovations to ensure certified planning:
- Prescribed-Time Zeroing Function (PTZF): This mechanism shapes a time-varying guidance field. It allows for a "free evolution" phase early in the generation process, where the model follows the learned expert distribution. As the process nears completion, the guidance increases to ensure all constraints are met exactly at the terminal time.
- Unified QP Formulation: State and action constraints are reformulated as Control Barrier Functions (CBFs), while kinodynamic consistency is handled via Lyapunov functions. These are solved using Quadratic Programming (QP) at each inference step to calculate a corrective guidance term.
- Violation-Segment Extraction: For efficiency in long-horizon tasks, the framework identifies and refines only the specific segments of a trajectory where constraints are violated, maintaining the global shape of the expert behavior while ensuring local safety.
- Trajectory Compression: To handle high-dimensional systems like 7-DOF arms, B-spline encoders are used to perform flow matching in a compact latent space.
Experimental Evaluation
The framework was validated across three distinct scenarios:
- Double Inverted Pendulum: Validating stabilization and wall-avoidance.
- Nürburgring Car Racing: A real-to-sim task using 5,000 expert trajectories for forward and reverse driving.
- Franka Emika Manipulator: A sim-to-real task involving a 7-DOF robot arm performing figure-eight motions while avoiding obstacles.
Key Results
UniConFlow significantly outperformed state-of-the-art baselines, including Diffuser and PCFM:
- Success Rates: UniConFlow achieved a 100% Total Success Rate (TSR) in car racing and manipulator tasks, whereas baselines often dropped to 0% due to safety or physics violations.
- Physical Feasibility: The model achieved zero kinodynamic violation error, ensuring the robot can actually execute the planned actions.
- Computational Efficiency: Despite the added QP optimization, UniConFlow maintained real-time inference speeds (e.g., ~32ms for the 7-DOF manipulator), making it 5–10 times faster than conventional optimization-based planners.
Conclusion and Future Work
UniConFlow provides a robust path toward certified generative motion planning by unifying control-theoretic constraints with flow-matching models. Future research will focus on bridging the sim-to-real gap by accounting for unmodeled uncertainties, such as friction and sensor noise, and incorporating uncertainty-aware guidance into the flow-matching vector field.
Summary updated