Manuscript Offprint
arXiv:2610.24256TrajEdit: Real-Time Flow-Matching Trajectory Adaptation via FlowEdit and CBF Safety Filter
Wondmgezahu Teshome, Arya Honarpisheh, Octavia Camps, Mario Sznaier
Abstract—Safe, real-time motion planning is especially difficult when a dynamic obstacle actively pursues the ego agent, requiring rapid adaptation as the environment changes. We present TrajEdit, a hierarchical trajectory planner for pursuit-evasion that combines flow matching, trajectory editing, and safety filtering. Rather than regenerating trajectories from scratch at every step, TrajEdit follows the current plan under nominal conditions and adapts its remaining portion through FlowEdit as the pursuer approaches, and falls back to a control barrier function safety filter if the adversarial agent is within a safety threshold. Our use of FlowEdit for trajectory editing reduces computation time while maintaining a comparable success rate. We evaluate TrajEdit in 2D pursuit-evasion with static obstacles and an adversarial pursuer, demonstrating high success rates with low capture and collision rates, while achieving computational time savings over full replanning baselines.
I. INTRODUCTION
Autonomous robots navigating changing environments must reach their goals while avoiding moving obstacles [1]. Pursuit-evasion adds an adversarial element, as the pursuer actively attempts to capture the robot [2]. The pursuer's motion can make an existing trajectory unsafe, requiring timely responses to new observations. The planner must therefore balance responsiveness with the computational cost of updating its trajectory.
Classical motion planners address these requirements through geometric search and local obstacle avoidance. RRT-Connect [3] searches for a feasible path by growing trees from the start and goal. RRTX [4] maintains and repairs a search graph as obstacles change. Artificial potential fields combine goal attraction with obstacle repulsion [5]. Conventional formulations can encounter local minima, and extensions use virtual targets to restore progress toward the goal and modified repulsive fields to improve obstacle avoidance [6]. The velocity obstacle (VO) method [7] uses relative positions and velocities to identify motions that would lead to collision and select an avoidance velocity. The computational demands of online search and the local minima of potential fields motivate learning motion policies and trajectory priors from data.
Learning-based methods have been applied to both action selection and trajectory generation. Reinforcement learning (RL) has been used to learn evasive actions from visual observations [8] and has been combined with imitation learning for goal-directed escape among obstacles [9]. Generative models learn distributions over trajectories. Diffuser [10] generates plans through iterative denoising, and Motion Planning Diffusion [11] combines learned trajectory priors with guidance from planning costs. In pursuit-evasion, diffusion has also been combined with a local RL policy to coordinate global planning and evasive behavior [12]. Repeated denoising can become costly when plans must be updated frequently. Flow matching [13] offers an alternative by learning a continuous velocity field and generating samples through an ordinary differential equation. FlowMP [14] applies this approach to robot motion planning and reports lower inference times than diffusion baselines in its evaluated settings.
An additional strategy is to update the remaining portion of the active plan as new observations arrive, rather than regenerate the entire trajectory from scratch. Warm starts allow a diffusion planner to perturb and refine its previous trajectory under updated observations [15]. RAMP [16] uses limited denoising and artificial potential fields to refine trajectories in pursuit-evasion. Adaptive online replanning [17] selects between retaining a plan, repairing its remaining portion, and generating a replacement. Other approaches distribute denoising across execution steps, either by refining a plan with increasing noise levels along its horizon [18] or by maintaining a queue of partially denoised actions with feedback guidance [19]. These methods establish the value of trajectory reuse and incremental updates. Our focus is on how conditional flow editing can update the remaining trajectory as the observed scene changes.
For this purpose, we adapt FlowEdit [20], originally proposed for image editing, to trajectory adaptation. FlowEdit constructs an editing path using differences between learned velocity fields under source and target conditions, without first inverting the source sample to noise. Related work has applied conditional flow editing to human motion under changes in text or skeleton conditions [21]. Here, the conditions change as the ego agent and pursuer move. We use the previous and current conditions to edit the unexecuted portion of the plan while retaining its goal. The same learned flow model supports initial generation and subsequent editing, allowing the planner to update an existing trajectory without generating a new one from noise at every step.
Unlike image editing, this application also requires consideration of safety. Control barrier functions (CBFs) provide a way to constrain control inputs using a specified safe set [22]. Recent work has incorporated these constraints into flow matching. SafeFlow [23] adds barrier corrections during trajectory generation, while SafeFlowMatcher [24] first predicts a path and then refines it through a separate correction phase. In both methods, barrier corrections act within the
This work was supported in part by NSF grant CMMI–2208182 and ONR grant N00014-21-1-2431. The authors are with the Department of Electrical and Computer Engineering, Northeastern University, Boston, MA, USA.

Fig. 1: Overview of TrajEdit. (1) The scene and plan endpoints define the condition c. (2) The flow-matching backbone integrates from noise to a plan . (3)–(5) At each step, the CBF filter acts if no plan is accepted or if the evader or its next waypoint is within of the pursuer, and the plan is then regenerated. Otherwise, the evader follows the plan, which is kept while the pursuer stays at least away and enough of the plan remains, and edited if not. In (4), dark blue marks the remaining plan, light blue its executed part, and grey a discarded plan; dashed arrows indicate feedback, is the next waypoint of .
trajectory-generation process, and their navigation evaluations use static obstacles. In pursuit-evasion, the planner must update its plan as the pursuer moves while responding to immediate capture risk during execution.
To coordinate plan updates with immediate evasion, we propose TrajEdit, a hierarchical planner for pursuit-evasion. Under nominal conditions, the ego agent follows the current trajectory. As the pursuer approaches, FlowEdit adapts the remaining plan to the new observation. When immediate evasion is needed, the CBF safety filter intervenes and the planner attempts to generate a new trajectory from the updated state. Our contributions can be summarized as follows:
• A unified framework for pursuit-evasion that adapts FlowEdit to online trajectory editing and integrates CBF safety filtering during execution. Selective reuse and editing of the remaining trajectory avoid full regeneration at every update, addressing computational efficiency alongside safety.
• A systematic evaluation of TrajEdit against existing planning methods, together with ablation studies of its key components, to assess both task performance and computational efficiency.
A candidate trajectory is , where is the planning horizon, and is the state planned for step using information available at . The plan starts at the evader's current position and may be updated as new observations arrive. We choose a target position and use the planned goal state .
Given the initial state and the goal state , the objective is an online planning policy that respects the velocity bounds and reaches the goal at a finite step without collision or capture:
III. TRAJEDIT
We present TrajEdit, a hierarchical trajectory planner for pursuit-evasion: a flow matching model generates a nominal trajectory, FlowEdit adapts its remaining portion as the pursuer moves, and a CBF filter intervenes when immediate evasion is needed. At each step, the evader uses the current observation and remaining plan to choose between following the trajectory and applying the CBF filter. After both agents move, a fresh pursuer observation is available for planning. Under nominal conditions, the remaining plan is retained without adaptation. As the pursuer approaches, FlowEdit updates the remaining plan instead of regenerating it from scratch to reduce the computational cost of adaptation. After a filter intervention, the planner attempts to generate a new trajectory from the resulting evader position and updated pursuer observation. The complete planning algorithm is presented in Algorithm 1. The following subsections detail each component: trajectory generation using flow matching ( III-A), trajectory adaptation via FlowEdit ( III-B), and CBF safety filtering ( III-C).
A. Conditional Flow Matching Trajectory Generation
Following prior work on flow-matching motion planning [14], we use conditional flow matching [13], [25] to generate nominal trajectories. We denote the starting condition of a plan by , distinct from the episode's initial state . When generating a plan at step , we set , using the current position and zero velocity as the planning boundary condition. The condition is , containing the plan endpoints, static obstacles, and observed pursuer position.
Given a training trajectory , we sample Gaussian noise for the intermediate states of while fixing both trajectories
Algorithm 1 TrajEdit: adaptive pursuit-evasion planning
1: Input: Learned velocity field , initial position , goal , obstacles , radii , .
2: . Observe and set .
3: Generate with conditioned on .
4: while not terminated do
5: if or either or next waypoint is within of then
6: Obtain from (11), or terminate if infeasible
7: Execute and observe
8: Regenerate from using
9: else
10: Follow one step to and observe
11: if then
12: Form , , and as in §III-B
13: Update using Algorithm 2
14: end if
15: end if
16: On accepting a new plan, set
17:
18: end while
to the same endpoint states. The training path is the linear interpolant
where is generative time, distinct from the physical step . The field is trained to match the derivative of this path through
with expectation over training trajectories and their conditions, Gaussian noise, and sampled uniformly from .
During training, we randomly omit conditioning information so that the same network learns conditional and unconditional vector fields. At inference, classifier-free guidance [26] combines these fields as , where denotes omitted conditioning and controls the influence of the conditioning information. A candidate is generated from fresh noise by integrating its intermediate states according to
while preserving the endpoints. For generation and editing, candidates are screened for workspace and obstacle clearance, and against the pursuer while it is within of the evader. The candidate with greatest minimum clearance among those that pass is selected. If none passes, no plan is accepted. The resulting plan is reused and updated as new observations become available.
B. Trajectory Adaptation via FlowEdit
As the environment evolves, the conditions under which the current plan was generated may no longer hold, and its unexecuted waypoints may become unsafe. Regenerating from noise discards a plan that may still be largely useful. Instead,
Algorithm 2 FlowEdit trajectory adaptation
1: Input: Learned velocity field , source , conditions , steps , guidance scales , candidates .
2: , . Initialize copies of .
3: for do
4: . Sample fresh independently for each candidate.
5: Construct using (6).
6: Compute with guidance scales using (7).
7: .
8: Restore target start and goal states.
9: end for
10: return the best trajectory, or failure.
we adapt it using FlowEdit [20], originally developed for text-conditioned image editing and subsequently applied by Li et al. [21] to human motion editing and retargeting. Here, we use the same editing principle to update the unexecuted trajectory under changing scene observations (Algorithm 2).
When the CBF filter is inactive, the evader first follows the plan for one step. After both agents move, adaptation is triggered if , where is the edit radius, or if the remaining plan has insufficient horizon. If too few states remain for editing, the planner regenerates instead. The remaining plan is retained when it has sufficient horizon and the updated separation is at least .
Let denote the remaining portion of the current plan, called the source trajectory. Its first state, , retains the planned position and velocity, while denotes the pursuer observation associated with that plan, which may have been generated or last edited several steps earlier. After both agents move in Algorithm 1, the target starting state is , and is the newly observed pursuer position. When the evader reaches the next waypoint, the source and target starting positions coincide, but the full states coincide only if the source velocity is zero. If the speed bound prevents reaching that waypoint, the positions may also differ. The source and target conditions are
The goal and static obstacles are unchanged. Following the shared-noise construction of FlowEdit [20] and its human-motion formulation [21], we couple the source and target branches without inverting to noise.
Let denote the trajectory being edited at generative time , initialized at . To evaluate the source- and target-conditioned fields, we construct auxiliary noisy trajectories and , respectively, using shared standard Gaussian noise sampled at each step:
The source start and goal states are restored before constructing , followed by the target start and goal states. The edit direction is the difference between the guided fields evaluated at these inputs,
where is the guided field defined in §III-A, and and are the source and target guidance scales. Integrating this difference from , with generative step size ,
updates the trajectory toward the new condition, with the endpoint constraints and workspace bounds re-imposed after each step. We use only the last of the integration steps, starting at . The final state is the adapted trajectory, obtained by reusing the existing plan without inversion or full integration from noise. We form candidates using independent noise and apply the screening and selection described in §III-A.
FlowEdit was developed for conditional content editing, whereas our trajectories must also support collision avoidance during execution. Conditioning on the observed scene and restoring endpoint constraints do not by themselves enforce collision avoidance. We therefore complement trajectory adaptation with the CBF safety filter in §III-C, which intervenes when the pursuer approaches.
C. CBF Safety Filter
We complement trajectory editing with a CBF filter [22] for immediate evasion during execution. It activates when either the current position or the next planned waypoint lies within the escape radius of the observed pursuer, or when no accepted plan is available. The filter selects a velocity for the update . To bias the motion toward the goal, we use the reference velocity
We represent static obstacles as unions of box components . For each component , let be the Euclidean projection of onto , and define . With relative position , we use the barriers
where is the static clearance margin and is the pursuer separation radius, providing an additional margin beyond the Euclidean capture radius. Nonnegative barriers ensure clearance from static obstacles and separation from the pursuer.
Although the pursuer’s velocity is unknown, its speed bound gives the worst-case bound term . Including this term in the pursuer constraint, we define the filtered velocity
through the hard-constrained problem
Here is the barrier decay rate. After a feasible filter step, regeneration is attempted from the updated evader position using the new pursuer observation. Failed planning keeps the filter active, while failure to obtain an admissible velocity terminates the simulation before execution. Under exact observations and execution, with , initially nonnegative barriers, and , the constraints in (11) imply the standard discrete-time barrier condition [27]
Thus, every feasible filter step preserves nonnegative barriers.
Safety must also be maintained while the evader follows a plan without filter intervention. Each plan starts at the evader's position when adopted, and its segments are checked to lie inside the workspace and maintain at least clearance from static obstacles. Following these segments within the speed limit preserves this clearance. When the filter is inactive, the current pursuer separation is at least . Since the agents can close this gap by at most in one step, we choose
so that separation is still at least at the next control decision. Under the assumptions above, this condition and (12) ensure that every executed step ends without collision or capture.
IV. EXPERIMENTS
We evaluate TrajEdit on 2D pursuit-evasion tasks in which an evader must reach a goal while avoiding static obstacles and a pursuer.
A. Experimental Setup
a) Dataset and evaluation: All experiments take place in the workspace on two obstacle layouts. The convex layout is a fixed configuration of four disjoint box obstacles with size 0.26. In the concave layout, each start-goal pair has its own arrangement of three L-shaped obstacles, each formed from three boxes. Following [11], training trajectories are generated using RRT-Connect [3], B-spline interpolation, and GPMP optimization [28]. Each state consists of 2D position and velocity (d = 4), and each trajectory has 48 timesteps. The convex training set consists of 2,000 configurations of six boxes, each with 20 start-goal pairs and up to 25 trajectories per pair. The concave training set consists of 500 configurations, each with 15 start-goal pairs and 10 trajectories per pair, and every arrangement contains ten boxes, nine forming the concave shape and one placed elsewhere. All test layouts are unseen during training. The obstacle encoder is trained on all boxes; at inference, the final slot is assigned to the pursuer, and any unused slot repeats an obstacle.
(a) Original
(b) Perturbed

Fig. 2: Editing vs. replanning after two obstacles move. (a) Source plan on the original layout. (b) The edited plan stays close to the source, while replanning takes a different route. Circle: start; star: goal.
The convex layout is evaluated on 100 start-goal pairs, and the concave layout on 100 configurations, each with its own start-goal pair. Every pair is evaluated from five initial pursuer positions, and we report the mean and standard deviation over the five pursuer starts. The control interval is s. A single pursuer moves at a constant speed below the evader's maximum, either toward the evader (pure pursuit) or toward its predicted position (lead pursuit). An episode ends when the evader reaches the goal, is captured, collides with a static obstacle, reaches the maximum episode steps (75), or has no certified action available.
b) Metrics: We use four per-episode outcome rates, Goal Reach Rate: the evader reaches the goal region, Collision Rate: collision with a static obstacle, Capture Rate: the pursuer catches the evader, and Abort Rate: the method finds no safe plan or action. Aborts occur only for the generative planners: for RAMP and SFM, no collision-free plan is found, and for TrajEdit, no safe escape action exists. Timeout rates are not reported, as the five outcomes sum to 100%. Computation time is the mean computation per control step. In the perturbation study, we report the failure rate, the percentage of batches with no collision-free trajectory.
c) Baselines: We compare against three categories of planners. Classical: velocity obstacles (VO) [7] and artificial potential fields (APF) [5]. Learning-based: soft actor-critic (SAC) [29] and TD3 [30]. Generative: RAMP [16], which combines energy-based diffusion with potential fields, and SafeFlowMatcher (SFM) [24], which applies a CBF-QP during flow-matching generation. We evaluate SFM in two variants: per-step, which regenerates at every step, and gated, which regenerates only when triggered by the same proximity gate as TrajEdit.
d) Implementation: Following the flow-matching implementation of [31], the velocity field is parameterized by a 1-D temporal U-Net [10]. The network is conditioned via FiLM [32] on the concatenation of a 64-dimensional start-goal embedding, computed from the start and goal states by a three-layer MLP, and a 64-dimensional obstacle embedding, computed from the obstacle centers by a 1-D
TABLE I: Comparison with baselines under lead and pure pursuit on the convex layout. Best in bold, second best underlined (Goal and Cap.), - : not applicable
| Method | Lead pursuit | Pure pursuit | Time (ms)↓ | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Goal(%) ↑ | Cap.(%) ↓ | Coll.(%) ↓ | Abort(%) ↓ | Goal(%) ↑ | Cap.(%) ↓ | Coll.(%) ↓ | Abort(%) ↓ | Lead / Pure | |
| VO [7] | 49.40 ± 3.88 | 50.60 ± 3.88 | 0.00 ± 0.00 | - | 99.00 ± 0.00 | 1.00 ± 0.00 | 0.00 ± 0.00 | - | 0.68 / 0.68 |
| APF [5] | 5.00 ± 0.63 | 92.00 ± 1.79 | 0.00 ± 0.00 | - | 74.40 ± 3.20 | 13.80 ± 2.32 | 0.00 ± 0.00 | - | 0.13 / 0.13 |
| TD3 [30] | 54.20 ± 1.94 | 18.40 ± 4.22 | 23.80 ± 2.14 | - | 85.20 ± 4.45 | 5.40 ± 2.65 | 9.00 ± 2.19 | - | 0.25 / 0.26 |
| SAC [29] | 57.00 ± 3.03 | 16.80 ± 2.32 | 25.20 ± 2.48 | - | 84.80 ± 2.14 | 5.40 ± 1.85 | 9.60 ± 2.33 | - | 0.63 / 0.63 |
| RAMP [16] | 33.40 ± 3.50 | 50.20 ± 5.04 | 0.00 ± 0.00 | 15.00 ± 2.76 | 70.40 ± 3.61 | 25.20 ± 3.31 | 0.00 ± 0.00 | 4.40 ± 1.36 | 528.87 / 495.85 |
| SFM [24] (per-step) | 38.20 ± 4.83 | 25.40 ± 1.96 | 0.00 ± 0.00 | 35.00 ± 5.37 | 61.00 ± 3.63 | 19.20 ± 2.48 | 0.00 ± 0.00 | 18.20 ± 1.33 | 277.68 / 277.69 |
| SFM [24] (gated) | 41.80 ± 2.56 | 23.80 ± 5.19 | 0.00 ± 0.00 | 32.40 ± 3.61 | 68.60 ± 5.43 | 17.60 ± 5.85 | 0.00 ± 0.00 | 12.80 ± 2.48 | 222.89/ 228.92 |
| TrajEdit (Ours) | 83.00 ± 2.76 | 0.00 ± 0.00 | 0.00 ± 0.00 | 16.00 ± 3.22 | 96.80 ± 1.47 | 0.00 ± 0.00 | 0.00 ± 0.00 | 2.80 ± 1.72 | 53.65 / 47.11 |
vision transformer. Both encoders are trained jointly with the flow model. To support variable-length plans with a single model, the horizon is sampled per batch from . Conditioning dropout (p = 0.2), applied independently to the two embeddings, enables classifier-free guidance [26]. We optimize with AdamW at a learning rate of and a batch size of 128 for 2,500 epochs, on an NVIDIA RTX 2080 Ti GPU. At inference, trajectories are generated with 10 steps and a guidance scale of 6, drawing 20 candidates per call, with the horizon adapted to the remaining distance to the goal. FlowEdit [20] runs for 10 steps with source and target guidance scales of 3.0 and 4.5 and . The CBF QP uses and is solved with CVXPY [33], [34]. For the obstacle-perturbation study, each of 48 start-goal pairs in the convex layout has one source trajectory on the original layout and 40 perturbation draws per radius, displacing one or two obstacles; FlowEdit and FM each sample five candidates at a fixed horizon of 48. We implement SFM [24] within our framework, using the same trained flow model as TrajEdit, with prediction step and correction steps. Its pursuer barrier is inflated by one pursuer step (Table IV).
B. Results
Table I reports performance over 500 episodes per pursuit strategy (100 start-goal pairs, five initial pursuer positions). Under lead pursuit, TrajEdit reaches the goal in of episodes, 26.0 percentage points above the second best (SAC, ). Under pure pursuit, it reaches the goal in of episodes, second only to VO , whose constant-velocity model of the pursuer closely matches pure pursuit; under lead pursuit, however, VO is captured in of episodes. Our method has capture rate and static collision under both pursuer strategies. Its remaining episodes are aborts, in which no safe escape action exists and , and timeouts and . TD3 and SAC collide with static obstacles in of episodes, and RAMP and SFM are captured in . TrajEdit also requires less computation per control step than RAMP and SFM.
Fig. 2 shows the difference between editing and replanning. After two obstacles move, the source plan collides. Editing changes the plan only near the moved obstacles and keeps the rest of the source, while replanning from scratch produces a different route. Both plans are collision-free, but only the edited plan stays consistent with the plan the evader was already following.
TABLE II: Ablation on the convex layout
| Variant | Goal(%) ↑ | Abort(%) ↓ | Time (ms) ↓ |
|---|---|---|---|
| Lead pursuit | |||
| TrajEdit | 83.00 ± 2.76 | 16.00 ± 3.22 | 53.65 |
| w/o FlowEdit | 81.80 ± 3.54 | 17.20 ± 3.31 | 65.63 |
| w/o planner | 67.60 ± 5.54 | 27.20 ± 5.23 | 1.92 |
| Pure pursuit | |||
| TrajEdit | 96.80 ± 1.47 | 2.80 ± 1.72 | 47.11 |
| w/o FlowEdit | 95.60 ± 1.50 | 4.40 ± 1.50 | 64.33 |
| w/o planner | 95.80 ± 3.66 | 4.20 ± 3.66 | 1.95 |
TABLE III: Ablation on the concave layout
| Variant | Goal(%) ↑ | Abort(%) ↓ | Time (ms) ↓ |
|---|---|---|---|
| Lead pursuit | |||
| TrajEdit | 51.60 ± 6.18 | 43.60 ± 3.98 | 54.54 |
| w/o FlowEdit | 55.80 ± 4.26 | 38.00 ± 2.76 | 66.75 |
| w/o planner | 49.80 ± 5.15 | 44.80 ± 4.53 | 1.95 |
| Pure pursuit | |||
| TrajEdit | 75.80 ± 2.79 | 24.00 ± 2.53 | 48.52 |
| w/o FlowEdit | 73.40 ± 2.42 | 26.40 ± 2.58 | 65.28 |
| w/o planner | 54.20 ± 1.47 | 45.80 ± 1.47 | 1.94 |
Tables II and III show ablations of the adaptation mechanism under different layouts and pursuer strategies. Against full replanning (w/o FlowEdit) at the same trigger condition, editing reduces computation per control step by 18–27% while matching its goal reach rate in three of the four settings. The exception is the concave layout under lead pursuit, where full replanning reaches the goal more often (55.8% vs. 51.6%). Without the planner (w/o planner), the CBF filter alone reaches the goal less often in all layouts and pursuit strategies, by 1.0–21.6 percentage points. No variant is captured or collides with an obstacle.
In Fig. 3, we perturb one or two of the six obstacles of the convex layout within a given radius and run static inference. If none of the sampled trajectories is collision-free, the run is counted as a planning failure. FlowEdit fails in 0.6–4.0% of runs versus 5.6–8.1% for flow matching from scratch, while being 1.7× faster (33 vs. 56 ms).
Table IV shows that, on the convex layout, SFM is captured in most episodes unless its barrier includes the pursuer's motion. Inflating the barrier by one pursuer step cuts captures to 17.6–19.2% and raises the goal rate to 61.0–68.6%; the speed-bound term in our CBF filter serves the same purpose. Gating regeneration with our proximity trigger further improves SFM, but even its best configuration remains well below TrajEdit (68.6% vs. 96.8% goal reach, 17.6% vs. 0% capture).

Fig. 3: Failure rate under local perturbations of one and two static obstacles, across perturbation radius.
TABLE IV: Sensitivity of SFM to the pursuer barrier radius (pure pursuit)
| Goal (%) | Abort (%) | Cap. (%) | |
|---|---|---|---|
| Per-step, | |||
| Gated, | |||
| Per-step, | |||
| Gated, |
V. CONCLUSIONS
In this paper, we presented TrajEdit, a trajectory generation framework for pursuit-evasion in dynamic environments. Instead of regenerating a plan whenever the environment changes, TrajEdit adapts the current plan to the new conditions, and uses a control barrier function filter when a moving obstacle comes within a safety threshold. In our experiments, TrajEdit recorded no captures or collisions in any evaluated setting, and editing reduced computation per control step by 18–27% relative to full replanning at comparable success.
REFERENCES
[1] B. Paden, M. Čáp, S. Z. Yong, D. Yershov, and E. Frazzoli, “A survey of motion planning and control techniques for self-driving urban vehicles,” IEEE Transactions on Intelligent Vehicles, vol. 1, no. 1, pp. 33–55, 2016.
[2] T. H. Chung, G. A. Hollinger, and V. Isler, “Search and pursuit-evasion in mobile robotics: A survey,” Autonomous Robots, vol. 31, no. 4, pp. 299–316, 2011.
[3] J. J. Kuffner and S. M. LaValle, “Rrt-connect: An efficient approach to single-query path planning,” in ICRA, vol. 2, 2000, pp. 995–1001.
[4] M. Otte and E. Frazzoli, “Rrtx: Asymptotically optimal single-query sampling-based motion planning with quick replanning,” Int. J. of Robotics Research, vol. 35, no. 7, pp. 797–822, 2016.
[5] O. Khatib, “Real-time obstacle avoidance for manipulators and mobile robots,” Int. J. of robotics research, vol. 5, no. 1, pp. 90–98, 1986.
[6] L. Zhai, C. Liu, X. Zhang, and C. Wang, “Local trajectory planning for obstacle avoidance of unmanned tracked vehicles based on artificial potential field method,” IEEE Access, vol. 12, pp. 19 665–19 681, 2024.
[7] P. Fiorini and Z. Shiller, “Motion planning in dynamic environments using velocity obstacles,” The international journal of robotics research, vol. 17, no. 7, pp. 760–772, 1998.
[8] J. Zhu, W. Zou, and Z. Zhu, “Learning evasion strategy in pursuit-evasion by deep q-network,” in 2018 24th International Conference on Pattern Recognition (ICPR). IEEE, 2018, pp. 67–72.
[9] X. Qu, W. Gan, D. Song, and L. Zhou, “Pursuit-evasion game strategy of usv based on deep reinforcement learning in complex multi-obstacle environment,” Ocean Engineering, vol. 273, p. 114016, 2023.
[10] M. Janner, Y. Du, J. Tenenbaum, and S. Levine, “Planning with diffusion for flexible behavior synthesis,” in International Conference on Machine Learning. PMLR, 2022, pp. 9902–9915.
[11] J. Carvalho, A. T. Le, M. Baierl, D. Koert, and J. Peters, “Motion planning diffusion: Learning and planning of robot motions with diffusion models,” in 2023 IEEE/RSJ International Conference on Intelligent Robots and Systems. IEEE, 2023, pp. 1916–1923.
[12] Z. Wu, S. Ye, M. Natarajan, and M. C. Gombolay, “Diffusion-reinforcement learning hierarchical motion planning in multi-agent adversarial games,” arXiv preprint arXiv:2403.10794, 2024.
[13] Y. Lipman, R. T. Chen, H. Ben-Hamu, M. Nickel, and M. Le, “Flow matching for generative modeling,” in The Eleventh International Conference on Learning Representations, 2023.
[14] K. Nguyen, A. T. Le, T. Pham, M. Huber, J. Peters, and M. N. Vu, "Flowmp: Learning motion fields for robot planning with conditional flow matching," in 2025 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). IEEE, 2025, pp. 11 291–11 297.
[15] L. L. Beyer and S. Karaman, “Joint localization and planning using diffusion,” in 2025 IEEE International Conference on Robotics and Automation (ICRA). IEEE, 2025, pp. 15 603–15 609.
[16] W. Teshome, K. Behzad, O. Camps, M. Everett, M. Siami, and M. Sznaier, “Real-time adaptive motion planning via point cloud-guided, energy-based diffusion and potential fields,” IEEE Robotics and Automation Letters, 2025.
[17] S. Zhou, Y. Du, S. Zhang, M. Xu, Y. Shen, W. Xiao, D.-Y. Yeung, and C. Gan, “Adaptive online replanning with diffusion models,” Advances in Neural Information Processing Systems, vol. 36, pp. 44 000–44 016, 2023.
[18] J. Guo, R. Zhang, Z. Li, Y. Gao, S. Peng, S. Lan, X. Hu, Z. Du, X. Zhang, and L. Li, “Efficient diffusion planning with temporal diffusion,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 40, no. 26, 2026, pp. 21 450–21 458.
[19] X. Ye, R. H. Yang, J. Jin, Y. Li, and A. Rasouli, “Ra-dp: Rapid adaptive diffusion policy for training-free high-frequency robotics replanning,” in 2025 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). IEEE, 2025, pp. 6227–6234.
[20] V. Kulikov, M. Kleiner, I. Huberman-Spiegelglas, and T. Michaeli, "Flowedit: Inversion-free text-based editing using pre-trained flow models," in Proceedings of the IEEE/CVF International Conference on Computer Vision, 2025, pp. 19721–19730.
[21] J. Li, X. Song, S. Wang, H. Huang, and Y. Zhao, “A unified conditional flow for motion generation, editing, and intra-structural retargeting,” arXiv preprint arXiv:2604.13427, 2026.
[22] A. D. Ames, X. Xu, J. W. Grizzle, and P. Tabuada, “Control barrier function based quadratic programs for safety critical systems,” IEEE Transactions on Automatic Control, vol. 62, no. 8, pp. 3861–3876, 2017.
[23] X. Dai, Z. Yang, D. Yu, F. Liu, H. Sadeghian, S. Haddadin, and S. Hirche, “Safeflow: Safe robot motion planning with flow matching via control barrier functions,” arXiv preprint arXiv:2504.08661, 2025.
[24] J. Yang, S. Jang, and S. Han, “Safeflowmatcher: Safe and fast planning using flow matching with control barrier functions,” in International Conference on Learning Representations, vol. 2026, 2026, pp. 54 058–54 087.
[25] A. Tong, K. Fatras, N. Malkin, G. Huguet, Y. Zhang, J. Rector-Brooks, G. Wolf, and Y. Bengio, “Improving and generalizing flow-based generative models with minibatch optimal transport,” arXiv preprint arXiv:2302.00482, 2023.
[26] J. Ho and T. Salimans, “Classifier-free diffusion guidance,” arXiv preprint arXiv:2207.12598, 2022.
[27] J. Zeng, B. Zhang, and K. Sreenath, “Safety-critical model predictive control with discrete-time control barrier function,” in 2021 American control conference (ACC). IEEE, 2021, pp. 3882–3889.
[28] M. Mukadam, J. Dong, X. Yan, F. Dellaert, and B. Boots, “Continuous-time gaussian process motion planning via probabilistic inference,” Int. J. of Robotics Research, vol. 37, no. 11, pp. 1319–1340, 2018.
[29] T. Haarnoja, A. Zhou, P. Abbeel, and S. Levine, “Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor," in International conference on machine learning. Pmlr, 2018, pp. 1861–1870.
[30] S. Fujimoto, H. Hoof, and D. Meger, “Addressing function approximation error in actor-critic methods,” in International conference on machine learning. Pmlr, 2018, pp. 1587–1596.
[31] F. Zhang and M. Gienger, “Affordance-based robot manipulation with flow matching,” Frontiers in Robotics and AI, vol. 13, p. 1906861, 2026.
[32] E. Perez, F. Strub, H. De Vries, V. Dumoulin, and A. Courville, “Film: Visual reasoning with a general conditioning layer,” in Proceedings of the AAAI conference on artificial intelligence, vol. 32, no. 1, 2018.
[33] S. Diamond and S. Boyd, “CVXPY: A Python-embedded modeling language for convex optimization,” Journal of Machine Learning Research, vol. 17, no. 83, pp. 1–5, 2016.
[34] A. Agrawal, R. Verschueren, S. Diamond, and S. Boyd, “A rewriting system for convex optimization problems,” Journal of Control and Decision, vol. 5, no. 1, pp. 42–60, 2018.