arXiv:2610.03132cs.ROOct 2026

Manuscript Offprint

arXiv:2610.03132

Safe Streaming Flow Planning by Aligning Sampling Dynamics with Execution Dynamics

Seunghwan Jang, Jeongyong Yang, Siddharth Ancha, SooJean Han

Seunghwan Jang ∗^{*} †^{\dagger}

Nanyang Technological University

Singapore

seunghwa001@e.ntu.edu.sg

Siddharth Ancha

University of California, Berkeley

Berkeley, CA, USA

sancha@berkeley.edu

Jeongyong Yang †^{\dagger}

University of Washington

Seattle, WA, USA

seiryu@uw.edu

SooJean Han ∗^{*}

KAIST

Daejeon, Republic of Korea

soojean@kaist.ac.kr

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 intensive, but also introduces distribution shift since the learned sampling dynamics is distinct from the system's execution dynamics. We propose SafeStreamingFlow, a goal-conditioned planner that aligns flow sampling dynamics with execution dynamics by sequentially integrating a learned state vector field with hierarchical state prediction. Importantly, we need to enforce safety constraints only for the executed step via high order control barrier functions. Across navigation, racing, and locomotion benchmarks, SafeStreamingFlow reduces planning latency and improves safety compared to existing methods, while maintaining competitive goal-reaching success. Code is available on our project page: https://jang-seunghwan.github.io/SafeStreamingFlowPlanning/.

Keywords: Safe Planning, Flow Matching, Control Barrier Functions

1 Introduction

Generative models [1, 2] that have driven rapid progress in image and language generation are increasingly being adapted to robotic tasks, particularly diffusion [3, 4, 5] and flow matching [6]. Deploying such models for robot planning, however, requires more than producing a plausible trajectory. Most diffusion/flow planners typically generate an entire horizon as a single object in trajectory space and refine it through K denoising/sampling steps, where each step updates all H states in the trajectory [3]. In a closed-loop setting, this full-horizon procedure must be repeated at every control cycle to incorporate state feedback and new observations, generating H×KH \times K intermediate states per cycle [7, 8].

Another key challenge is enforcing safety constraints imposed at inference time, possibly never seen during training, in a manner that is both reliable and compatible with closed-loop execution. Many

∗^{*}Corresponding authors.

†^{\dagger}Work done at KAIST.

Figure

(a) Trajectory-level safe planner

Properties

✓ Safety filtering = execution-time constraint

✓ Per-step CBF: O(HK)→O(H)O(HK) \rightarrow O(H)

✓ Closed-loop extension at no extra cost

✓ Dynamically consistent

Figure

(b) Safe Streaming Flow (ours)

Figure 1: SafeStreamingFlow aligns flow sampling dynamics with execution dynamics. (a) Trajectory-level safe planners denoise an entire trajectory along a sampling process distinct from the system's execution dynamics (blue and orange arrows misaligned). Because these intermediate sampling states are not physically executed, enforcing safety during sampling disrupts dynamical consistency and requires O(HK)\mathcal{O}(HK) optimization solves. (b) SafeStreamingFlow integrates a learned state vector field in physical time, so each sampling step coincides with an executed step (blue and orange aligned). A safety constraint imposed on the sampling dynamics is therefore a constraint on the executed state under the system model, yielding per-step safety enforcement with O(H)\mathcal{O}(H) optimization solves (versus O(HK)\mathcal{O}(HK)), closed-loop execution without architectural or computational change, and dynamically consistent plans whose executed trajectory matches the generated one by construction.

generative methods promote safety through guidance [9, 10], injecting heuristic costs, penalties, or constraint-related scores into the generation process to steer samples away from unsafe regions; such guidance either requires the constraint to be learned in advance or imposes it only softly, without formal guarantees [11, 12]. An especially promising approach to certified safety is to incorporate control barrier functions (CBFs) [13, 14] into the sampling procedure by solving quadratic programs (QPs) at inference time; the constraints then hold whenever each QP is feasible. However, because intermediate sampling states are not physically executed, enforcing safety during sampling can disrupt dynamical consistency of the generated trajectories and induce local-traps, discontinuous trajectories that remain safe but infeasible to execute [6, 15].

In addition, safety enforcement further increases the computational burden because CBF-based corrections are applied across both the horizon length H and sampling iterations K, resulting in (H×K)(H \times K) QP solves to generate a single trajectory. Streaming-based formulations [8, 7] have been introduced for real-time execution by aligning sampling time with execution time. However, existing streaming approaches are developed primarily as policies for action imitation, leaving both the system's execution dynamics and start-goal-conditioned planning unaddressed.

We propose SafeStreamingFlow, a safe streaming planner that aligns the generative process with execution (Figure 1). Instead of sampling at the full trajectory level, SafeStreamingFlow integrates a learned state vector field in physical time and produces a one-step-ahead reference. In this one-step prediction, however, the learned field tends to become a local inertial extrapolator rather than a goal-conditioned planner; we suppress this with a hierarchical state predictor that sequentially updates position then velocity. The one-step-ahead reference is then tracked by a PD controller, and the resulting nominal control input is filtered through high order control barrier functions that minimally modify the executed input to satisfy safety constraints that were never seen during training.

Table 1 positions SafeStreamingFlow along four properties that classical and generative planners typically trade off: a cost-function-free formulation, multimodal trajectory generation, execution-time safety, and real-time streaming. Classical planners (RRT*, A*) satisfy safety constraints by construction but require engineered costs and produce a single non-streaming plan; generative planners (Diffuser, SafeDiffuser) gain cost-function-free multimodality but offer only partial, non-streaming safety. SafeStreamingFlow is the only paradigm attaining all four.

Table 1: Conceptual positioning of SafeStreamingFlow against existing planning paradigms.

ParadigmCost-fn. freeMultimodalExec. safetyReal-time
Classical (RRT*, A*)✕✕✓△
Generative (Diffuser, SafeDiffuser)✓✓△✕
SafeStreamingFlow (Ours)✓✓✓✓

References (30)