TL;DR
Stable Flow Matching Dynamical Systems (SFMDS) bridges the gap between highly expressive generative modeling and formal control-theoretic safety guarantees. By constraining a flow matching vector field to an admissible set of velocities derived from Lyapunov functions, SFMDS can learn complex, multimodal robot behaviors while mathematically guaranteeing stability and convergence to a goal.
What Problem Does This Paper Address?
In robotics, imitation learning allows robots to acquire complex skills by observing human demonstrations. Modern generative approaches—like diffusion models and flow matching—excel at capturing highly expressive, multimodal behaviors (e.g., a robot choosing to circumvent an obstacle from either the left or the right).
However, these generative policies are typically unconstrained. When deployed as dynamical systems, they lack formal safety and stability guarantees. If the robot encounters an out-of-distribution state, it might behave unpredictably or diverge entirely. Conversely, traditional methods that guarantee stability (such as classical Lyapunov-based dynamical systems) are mathematically restrictive, usually forcing the robot's behavior to be unimodal and severely limiting its expressivity. This paper tackles the challenge of achieving the best of both worlds: highly expressive, multimodal generative modeling with ironclad stability guarantees.
Methods
SFMDS implicitly models a robot's motion policy using a state-conditioned flow matching framework. To ensure safety and convergence, the authors constrain the learned velocity field to a set of "admissible velocities" ($\dot{\mathcal{X}}_A$) derived from control theory.
The paper introduces two main architectural variants to enforce these constraints:
- Soft SFMDS: Stability is weakly enforced via a hinge-type regularization penalty during training. This approach offers more architectural flexibility and faster inference.
- Hard SFMDS: Stability is strictly guaranteed by embedding a structural constraint directly into the model architecture. It uses an invertible neural network (a diffeomorphism) to map the task space to a latent space, projects the latent vector field onto a stable half-space, and maps it back, ensuring global asymptotic stability by design.
Crucially, the authors extend both formulations to Lie groups (such as $SE(3)$) to robustly handle full-pose robot trajectories (positions and orientations) without running into angular "wrapping" artifacts. They also derive a discrete-time formulation to prevent integration overshoot when policies are executed via standard Forward-Euler integration on real hardware.
Datasets
The authors evaluated SFMDS across several diverse datasets:
- LASA Dataset: A standard unimodal benchmark consisting of 2D human handwriting motions.
- LASA on $T^2$: A newly introduced benchmark dataset where the LASA trajectories are projected onto a two-dimensional unit torus to test Lie group formulations.
- Multimodal $\mathbb{R}^2$ Dataset: A newly introduced dataset featuring 10 distinct motions, each containing 3 to 6 intersecting trajectories, specifically designed to test a model's ability to handle complex multimodality.
- Simulated Water Pouring on $SE(3)$: A multimodal robotic dataset involving 6-DoF trajectories.
- Real Robotic Insertion Task: A real-world dataset collected via a master arm for a humanoid robot inserting a cylinder into a container.
- Gray-Scott Reaction-Diffusion System: A simulated high-dimensional chemical system used to test the scalability of the method up to 1,682 dimensions.
Key Insights and Ideas
- Loosening the Lyapunov Straightjacket: Traditional stable dynamical systems force the robot to strictly follow a single path of steepest descent toward the goal. SFMDS relaxes this constraint: as long as the generated velocity points generally in a direction that decreases the Lyapunov function (i.e., staying within an admissible half-space), the system remains stable. This opens up the solution space, allowing the generative model to preserve its diverse, multimodal behavior.
- LaSalle’s Invariance Principle for Generative Flows: The authors creatively adapt LaSalle's invariance principle to ensure that the auxiliary paths generated during flow matching converge to the stable velocity set within a finite time horizon ($\tau = 1$).
- Bridging Continuous Theory and Discrete Execution: Continuous-time stability proofs often fail when deployed on real computers due to discretization errors. By introducing a "ball constraint" for discrete-time systems, SFMDS accounts for Forward-Euler integration steps, ensuring the robot doesn't overshoot its stable boundaries during execution.
Key Results
- Unimodal Benchmarks: On the LASA dataset, both Soft and Hard SFMDS matched the accuracy of unconstrained behavior-cloning flow matching (BCFMDS) but achieved 0% unsuccessful trajectories, whereas the unconstrained baseline failed to converge in over 40% of cases.
- Multimodal Superiority: On the Multimodal $\mathbb{R}^2$ dataset, SFMDS significantly outperformed state-of-the-art stable baselines (like PUMA and Euclideanizing Flows), which inherently struggle or fail to capture multiple trajectory options due to their unimodal assumptions.
- Real-Robot Deployment: Hard SFMDS was successfully validated on a real RB-Y1 humanoid robot for a 6-DoF insertion task. Using custom Taylor-series approximations for the Jacobian calculations, the authors achieved real-time control loops (~13 Hz for Hard SFMDS, ~148 Hz for Soft SFMDS) that remained robust against external physical disturbances.
- Extreme Scalability: SFMDS successfully scaled to a 1,682-dimensional state space (the reaction-diffusion system), consistently reaching the steady-state equilibrium where unconstrained baselines diverged.
Limitations and Future Work
- Single Attractor Constraint: The current framework assumes a single, fixed equilibrium point (one goal pose). Many complex robotic tasks require converging to a set of valid goal states rather than a single point.
- Physical Constraints: While SFMDS guarantees mathematical stability toward a goal, it does not natively incorporate physical robot constraints like joint limits, torque limits, or self-collision avoidance.
- Perceptual Conditioning: The current model is conditioned directly on state vectors. Extending SFMDS to handle high-dimensional perceptual inputs, such as raw images or point clouds, remains an open avenue for future research.
Summary updated