Research
Safe Streaming Flow Planning by Aligning Sampling Dynamics with Execution Dynamics
Diffusion and flow-matching planners generate a whole horizon of states at once and refine it through many sampling iterations, which is expensive to repeat every control cycle.

- arXiv
- 2610.03132 · accepted · CORL
- Published
- 2026-10-02
- Authors
- Seunghwan Jang, Jeongyong Yang, Siddharth Ancha, SooJean Han
In plain words
Diffusion and flow-matching planners generate a whole horizon of states at once and refine it through many sampling iterations, which is expensive to repeat every control cycle.
AI summary
Overview
Research area: Robot motion planning with generative models — specifically safe, closed-loop deployment of diffusion/flow-matching planners under hard safety constraints.
Technical level: Advanced. The paper assumes familiarity with flow matching, control-affine dynamics, discrete-time control barrier functions (CBFs), and quadratic programs.
Scope: The paper proposes SafeStreamingFlow, a goal-conditioned planner that generates trajectories one step at a time in physical time and enforces safety only on the step actually executed, and evaluates it on four simulated benchmarks (Maze2D, F1TENTH racing, MuJoCo Hopper, ROS2/Gazebo warehouse navigation).
What This Paper Is About
Diffusion and flow-matching planners generate a whole horizon of states at once and refine it through many sampling iterations, which is expensive to repeat every control cycle. Adding safety on top of this is worse: state-of-the-art safe versions solve a constrained optimization at every intermediate sampling step, even though those intermediate states are never physically executed, which introduces a mismatch between how the plan was sampled and how the robot actually moves and can produce "local traps" — trajectories that are safe but impossible to execute. The goal is a planner that stays safe, keeps goal-reaching success, and replans fast enough to run online.
Key Contributions
- Streaming flow for start–goal-conditioned state planning. The authors extend streaming flow generation — previously formulated as an action-imitation policy — to finite-horizon planning in state space, treating flow sampling time as identical to physical time via the reparameterization s = t/T. Each sampling step produces exactly one state reference to be executed.
- A hierarchical state predictor (HSP) that removes a training shortcut. Position is predicted first by a network that is denied the current velocity, then velocity is predicted conditioned on that next position (Eqs. 15–16). This prevents the learned field from degenerating into a local inertial extrapolator that merely carries velocity forward using p_{t+Δt} = p_t + Δt v_t + O(Δt²).
- Per-step safety filtering instead of trajectory-level correction. A discrete-time high-order CBF (HOCBF) filter minimally modifies a PD tracking input only for the step being executed, reducing optimization solves from O(HK) to O(H) for a horizon of H states and K sampling steps.
- A marginal-matching result plus a four-benchmark evaluation. Theorem 2 shows the minimizer of the conditional flow-matching loss transports the initial distribution to the target per-timestep marginals, implying terminal goal-reaching at scale O(σ_T) (position error n σ_T²) under goal-curated demonstrations; experiments compare against RRT*, A*, Diffuser, SafeDiffuser, classifier guidance, FM/SafeFM, and FlowMatcher/SafeFlowMatcher.
Main Findings
- Safety filtering becomes cheap. Because safety is enforced only at the executed step, SafeStreamingFlow needs O(H) optimization solves rather than O(HK), which the paper reports cuts optimization-solve time by roughly 5.4× and lowers end-to-end latency well below trajectory-level safe baselines (full breakdown on Maze2D Large is deferred to Appendix I.2; absolute milliseconds for Maze2D are not given in the main text).
- Maze2D: safety without sacrificing success. SafeStreamingFlow (closed-loop) reaches 98.0 / 95.0 / 88.0 success on Umaze (H=128, K=64), Medium (H=256, K=256) and Large (H=384, K=256), with violation rates 0.0 / 0.0 / 4.0, zero trap rate, and h̄_min > 0. Closed-loop StreamingFlow without safety scores 100.0 / 94.0 / 91.0, so the safety layer costs little. Trajectory-level safe baselines collapse: SafeDiffuser 67.0 / 24.0 / 0.0 with violations 33 / 49 / 71 and trap rates 24 / 0 / 18; SafeFM 80.0 / 46.0 / 23.0 with violations 20 / 51 / 57 and trap rates 0 / 1 / 38.
- Smoothness improves by an order of magnitude. On Maze2D Large, SafeStreamingFlow (closed-loop) has smoothness 3.253 versus 70.873 for SafeDiffuser and 59.939 for Diffuser. Classical planners searching the known map reach comparable success (85–94%) but with 1–14% violation rates.
- Long horizons break trajectory-level baselines. On F1TENTH (Budapest H=696, K=512; Catalunya H=724, K=512), most flow-matching and FlowMatcher variants reach 0% success on Budapest, and SafeDiffuser reaches 0% on both tracks. SafeStreamingFlow drops Budapest violations from 97% (StreamingFlow) to 20% while keeping 73.0% success, and on Catalunya reaches 99.0% success with 0.0 violations and h̄_min > 0 on every rollout. Total time is 3.96 s (Budapest) and 3.99 s (Catalunya), versus 19.97 s and 21.68 s for SafeDiffuser.
- Locomotion: near-zero violations at millisecond cost. On Hopper (H=1000, K=20) with a torso-height constraint encoded as a velocity-augmented ceiling barrier of relative degree 1, SafeStreamingFlow scores 51.4 ± 3.4 (versus 57.4 ± 5.5 for unsafe StreamingFlow and 71.2 ± 15.2 for unsafe Diffuser) with 0.0% violations, 0.013 ms optimization time and 7.30 ms total time per action. SafeDiffuser scores 16.6 with 85.0% violations; SafeFlowMatcher 13.5 with 99.0% violations.
- Warehouse navigation: lowest violation rate among generative methods. With H=512 and K=256, SafeStreamingFlow (closed-loop) reaches 51.0 success with 1.0 violation, 0.045 smoothness, 0.07 s optimization and 2.58 s total. The best generative baseline success is FM at 58.0 (without safety, 18.0 violations); SafeDiffuser drops to 34.0 with 19.0 violations and 7.82 s total; SafeFM is 37.0 with 19.0 violations and 8.66 s total.
- Stated positioning. The authors claim SafeStreamingFlow is the only paradigm in their Table 1 that is simultaneously cost-function-free, multimodal, execution-safe and real-time, whereas classical planners (RRT*, A*) are safe and near-real-time but not cost-function-free or multimodal, and generative planners (Diffuser, SafeDiffuser) are cost-function-free and multimodal but only partially safe and not real-time.
- Explicit caveat on guarantees. Theorem 1 requires the per-step optimization to be feasible at every step, and the authors state they do not establish this recursive feasibility for their hand-specified barriers. The filter is also generally a nonlinear program; the experiments use quadratic barrier functions to obtain a QCQP.
- Minor internal inconsistency. For F1TENTH Budapest the running text says Diffuser reaches 88% success and that it violates every barrier constraint, while Table 3 lists 79.0 success and a violation rate of 80.0.
Methodology in Plain English
Instead of asking a generative model to dream up an entire trajectory and then scrubbing the whole thing for safety, the authors make generation and execution the same clock. A neural network learns a velocity field over states that is conditioned on the start and the goal; integrating that field forward for one time step produces the next state the robot should be in, which is exactly the state it will execute. Training uses conditional flow matching: noisy perturbations of expert demonstrations are drawn along contracting paths, and the network regresses onto the corresponding target field. The perturbations are deliberately restricted to a kinematically consistent subspace so that a position nudge induces the matching velocity nudge, keeping the learned field consistent with v = ṗ.
The subtlety is that a network fed both position and velocity can cheat. Because p_{t+Δt} ≈ p_t + Δt v_t, it can lower its loss by simply coasting on the current velocity rather than figuring out where the goal-directed plan should go. The hierarchical predictor blocks this by first predicting the next position from geometry alone (current position, time, start, goal) and only then predicting the next velocity, now allowed to see that predicted position. Position leads, velocity follows.
That one-step reference is tracked by a simple proportional-derivative controller. The controller's output is then passed through a safety filter that solves a small optimization: stay as close as possible to the desired input while satisfying a discrete-time high-order barrier condition. Because the constraint involves acceleration, the filter looks two steps ahead and needs the two-step Euler prediction derived in the appendix. The safely corrected input is applied, the system state propagates, and that state — or a measured one, in closed-loop mode — feeds back into the vector field for the next step. A single optimization per control cycle replaces the H × K grid of solves.
Why This Matters
Impact on research. The paper reframes safety for generative planners as a timing problem rather than a sampling problem: if the sampling step is the execution step, a constraint on the sample is a constraint on reality. That gives a clean argument for why trajectory-level CBF correction produces local traps and dynamical inconsistency, and it supplies a theoretical bridge (Theorem 2) from marginal matching to terminal goal-reaching, which is the property planners actually need but flow-matching theory does not automatically provide.
Real-world applications:
- Warehouse and logistics robots replanning continuously around obstacles and people that were not present in the training data (demonstrated in ROS2/Gazebo).
- Autonomous racing and fast ground vehicles, where the planning horizon is long relative to the control period and per-cycle latency budgets are tight.
- Legged and underactuated locomotion with continuous state constraints such as torso height or joint limits that must hold throughout a rollout, not just at a terminal goal.
- Any deployment where constraints are specified at inference time (new geofences, new keep-out zones) and cannot be learned in advance.
Industry relevance. The headline practical claim is not a better success rate but a better budget: O(H) instead of O(HK) optimization solves, roughly 5.4× faster optimization on Maze2D, and millisecond-scale per-action cost on Hopper. For a deployed stack, that is the difference between a planner that fits inside a control loop and one that does not. The trade-off is that success rates sometimes dip below the unsafe streaming baseline (for example 88.0 versus 91.0 on Maze2D Large, 51.0 versus 54.0 on warehouse), so adopters must decide how much goal-reaching they will trade for near-zero constraint violation.
Future Directions
- Recursive feasibility of the safety filter. The authors explicitly leave open whether their hand-specified discrete-time HOCBF constraints remain feasible at every step, which is precisely the condition Theorem 1 needs for its forward-invariance guarantee. A feasibility-aware filter or a fallback policy is the obvious next step.
- Beyond quadratic barriers. The filter is generally a nonlinear program and only becomes a QCQP for quadratic barrier functions. Extending to higher relative degree, non-quadratic, or multiple coupled constraints without losing real-time performance is unresolved.
- The joint law of the path. Theorem 2 matches per-timestep marginals, which the authors note leaves the joint distribution over the trajectory undetermined. Whether that looseness matters for multi-modal plan quality, and how to control it, is an open theoretical question.
- From second-order simulated systems to hardware. The formulation assumes control-affine second-order dynamics with full-column-rank input at the acceleration level, and all evidence is from simulation. Contact-rich manipulation, nonholonomic vehicles (F1TENTH is handled through bicycle dynamics), and real-sensor closed-loop behavior remain to be tested.
Target Audience
Robotics researchers and graduate students working on learning-based planning, diffusion/flow-matching policy learning, or safety-critical control; practitioners building real-time navigation or racing stacks who need certified constraint satisfaction inside a control loop; and readers interested in the interface between generative modeling and control-theoretic safety, particularly those already familiar with CBFs who want to see them applied at the execution step rather than inside a sampler.
Authors’ abstract
Generative planners based on diffusion/flow matching can learn to synthesize long-horizon trajectories from demonstrations. However, real-world deployment requires (i) enforcing safety constraints during execution and (ii) tight online replanning at fast execution rates. Prior safe diffusion/flow planners generate the agent's full trajectory at once, while repeatedly perturbing intermediate states to satisfy safety constraints. This approach is not only computationally…
The full abstract on arXivRelated papers
- Future-Aware Flow Planning for Safe UAV Target Following 2026-09-09 · cs.RO · Key terms of the title in common
- ExecDiffuser: Closing the Sample-to-Execution Gap in Diffusion Planning 2026-10-27 · cs.RO · Key terms of the title in common
- Hydra: A Navigation World Action Model with Discrete Latent Planning and Continuous Flow-Matching Execution 2026-08-29 · cs.RO · Key terms of the title in common
- EIDA: Execution-Interface Dynamics Adaptation for Real-to-Sim-to-Real Robot Navigation 2026-10-01 · cs.RO · Key terms of the title in common
- Flow Policies as Actions of Skill-Level World Models: Learned and Symbolic Abstractions for Long-Horizon Planning 2026-10-03 · cs.RO · Key terms of the title in common