Research
Future-Aware Flow Planning for Safe UAV Target Following
A drone that chases a moving target through a cluttered forest or around walls must decide now where to fly based on where the target will be soon. Planners that only react to the target's current…

- arXiv
- 2609.10166 · Preprint · not peer-reviewed
- Published
- 2026-09-09 · revised · 2026-09-21
- Authors
- Boning Feng, Haoran Zhang, Xiaowen Bi, Yanzhen Zhang, Xiaodan Shi
In plain words
A drone that chases a moving target through a cluttered forest or around walls must decide now where to fly based on where the target will be soon. Planners that only react to the target's current position tend to lag behind turns, commit to corridors that are about to be blocked, or shave an obstacle too closely to keep tracking accurate.
AI summary
Overview
Research area: Robotics — autonomous aerial systems, specifically learned motion planning and trajectory generation for UAV (drone) target following in cluttered 3D environments. It sits at the intersection of generative trajectory modeling (flow matching), target-motion forecasting, and safety-constrained receding-horizon control.
Technical level: Intermediate. The paper assumes familiarity with receding-horizon planning, diffusion/flow-based generative models, and transformer attention, but its central idea — predict where the target is going, then plan a safe route toward it rather than copying the target's path — is explainable without the math.
Scope (one sentence): The paper proposes and evaluates a learned, future-aware trajectory planner for UAVs that uses predicted target futures as soft guidance inside a flow-based generator and repairs only the executable trajectory prefix during sampling, benchmarked against two learned safety-aware flow baselines and a hand-designed MPC reference in simulation and PX4 SITL.
What This Paper Is About
A drone that chases a moving target through a cluttered forest or around walls must decide now where to fly based on where the target will be soon. Planners that only react to the target's current position tend to lag behind turns, commit to corridors that are about to be blocked, or shave an obstacle too closely to keep tracking accurate. Simply steering the drone along the target's predicted path is also unsafe, because the target may pass through gaps the drone cannot or should not fly through.
The paper's goal is to convert uncertain target predictions into UAV-feasible trajectories: the target forecast should influence the drone's route as a soft planning cue, while a dedicated safety mechanism guarantees that the short segment actually flown next is clear of obstacles. The authors explicitly frame their result as improving the safety–tracking trade-off for safe learned following rather than beating every baseline on every metric.
Key Contributions
-
A gated future-adapter flow planner. Target futures from a lightweight Mamba-based predictor (which outputs multiple future hypotheses with confidence logits) are injected into late Flow Transformer blocks as gated residual features aligned to the planning horizon, instead of being used as a hard coordinate-level reference path. A learned reliability gate and a small residual scale control how strongly the forecast can shift tracking intent, while the obstacle-aware route structure from the base planner is preserved.
-
Risk-Scored Executable-Prefix Safety Sampler (RSEPSS). Rather than filtering the final trajectory once after generation, the correction is embedded inside the flow sampling loop: at every sampling step, the predicted clean trajectory's executable prefix is scored for clearance, high-risk points are projected away from their nearest obstacle, and the corrected candidate is fed back into the next flow update. Because the receding-horizon interface only executes a short prefix, the repair is applied only there.
-
A controlled fixed-case ID/OOD benchmark. 150 effective in-distribution forest episodes (50 each at low, medium, and high obstacle density) and 200 out-of-distribution episodes (50 per shift: obstacle shape, obstacle distribution, target speed, and combined), with all methods sharing the same target predictor, horizon, execution prefix, obstacle budget, and metrics, plus 10,000-resample bootstrap uncertainty.
-
Ablations and a flight-controller-in-the-loop check. Isolated tests of the future adapter (with RSEPSS disabled), a stress test with an 8 m spatially biased predictor, and 120 PX4 SITL offboard executions through Isaac Sim and Pegasus.
Main Findings
-
In-distribution safety and safe-tracking time: The full method matches the best measured ID collision rate (0.000, tied with SafeFlowMatcher) and achieves the highest ID STT@8 (0.960) among the displayed methods, alongside 4.365 ADE, 5.448 FDE, 82.094 jerk-RMS, 0.913 STR@8, and 0.300 s per replan.
-
A deliberate accuracy trade-off, not universal dominance: Future-MPC has lower ID ADE/FDE (3.881/3.534) and far lower jerk (27.555) than the proposed method, but its collision rate rises to 0.043 and its STT@8 falls to 0.583 in dense clutter. The authors present this as a complementary hand-designed reference rather than a rival to be beaten everywhere.
-
Out-of-distribution robustness: On the OOD macro average, the method records the lowest collision rate (0.002) and the best final displacement error (3.719) of the displayed methods, with 3.653 ADE, 89.830 jerk-RMS, 0.896 STT@8, 0.854 STR@8, and 0.287 s per replan. Future-MPC remains smoother (27.226) and stronger on thresholded OOD STT@8/STR@8 (0.958/0.958).
-
The future adapter helps before any safety repair is applied. With RSEPSS removed, switching from pooled future conditioning to the gated residual adapter reduces ID ADE/FDE from 4.628/5.032 to 3.462/4.453 and OOD ADE/FDE from 5.243/4.822 to 3.002/2.698, while also lowering collision rate (ID 0.225 to 0.140; OOD 0.104 to 0.057) and raising safe-tracking metrics.
-
RSEPSS absorbs unreliable predictions. Under an 8 m inference-time spatial bias in the predictor, the adapter-only variant loses ID STT@8 by 0.061, whereas adapter + RSEPSS loses only 0.004 in ID and 0.012 in OOD while keeping the collision-rate change essentially flat. This supports treating futures as soft cues and leaving near-horizon safety to prefix repair.
-
The planned references survive a realistic flight stack. Across 120 PX4 SITL runs (60 ID forest-medium, 60 OOD combined-shift wall scenes, 36 reference points per run streamed at 20 Hz to a simulated Iris vehicle), reference-tracking RMSE was 1.84 ± 0.20 m in ID and 2.02 ± 0.22 m in OOD with zero hard-collision rate in all 120 runs; task tracking was high but not saturated (STT@8/STR@8 of 0.95/0.83 ID and 0.82/0.67 OOD). The aggregated 120-run figures are 1.93 m reference RMSE, 5.26 m target RMSE, 0.00 collision rate, 0.89 STT@8, and 0.75 STR@8.
-
The safety mechanism costs compute. Replanning time is 0.300 s (ID) and 0.287 s (OOD), versus 0.213/0.199 for SafeFlow and 0.124/0.125 for Future-MPC; the authors name this as a limitation motivating lighter repair or adaptive triggering.
-
The predictor is decent but not treated as an oracle. An open-loop probe over 160 held-out records per motion bin reports target ADE/FDE of 0.213/0.448 m on simple motion and 0.278/0.640 m on complex motion, with all predicted futures numerically finite.
Methodology in Plain English
The system runs in a loop. At each replanning step the drone receives three things: recent target positions, its own motion state, and a local point cloud of nearby obstacles cropped around itself. It plans a full horizon of 64 waypoints but flies only the first 4 before replanning — standard practice so the drone can react to new information.
Step one — forecast the target. A lightweight predictor, using a Mamba-based temporal backbone over the last 16 target observations, produces several candidate future target paths with confidence scores. These are expressed in the drone's own frame and paired with timestamps so the planner knows which prediction corresponds to which future moment.
Step two — generate a drone trajectory, not a copy of the target's. The planner is a flow-matching generator that predicts the clean trajectory directly (an "x-pred" formulation) from a noisy intermediate sample, conditioned on obstacle tokens, motion-context tokens, and future-target tokens through cross-attention. In the last block, the target forecast is added back in as a small gated residual: a bottleneck adapter cross-attends to future tokens, and a learned sigmoid gate — computed from a pooled summary of those tokens — decides how much of that residual to let through. If the forecast looks unreliable or irrelevant, the gate can turn it down; the underlying obstacle-aware route survives either way.
Step three — repair what will actually be flown, mid-generation. At each of the 12 sampling updates, the current clean prediction's executable prefix is scored: for each prefix point, distance to the nearest obstacle is computed, converted into a temporally weighted risk score (earlier points weighted more, since they will actually be flown), and compared against a trigger margin. If risk exceeds threshold, the top-3 riskiest points and their temporal neighbors are pushed outward along the direction away from the nearest obstacle, then lightly smoothed, with the start point anchored to the drone's current state. The repaired candidate — not the raw one — becomes the input to the next flow update. This is the key architectural choice: correction is inside the generative loop, so later samples inherit it, rather than being a one-shot post-filter whose fix can contradict the rest of the trajectory.
Step four — execute and repeat. The corrected prefix goes to the flight controller, and the whole process restarts at the next step.
Training data came from successful expert trajectories produced by four geometric planners (RRTstar, RRTConnect, BITstar, PRMstar), split 80/10/10 by scene ID. The base planner is trained with the clean-trajectory objective; the adapter is then tuned with the predictor and base branch frozen so it learns a conservative refinement rather than replacing the generator. RSEPSS adds no trained parameters.
Why This Matters
Impact on research. The paper makes a clean conceptual separation that much of the learned-planning literature blurs: what is predicted versus what is executed. Showing that a forecast can help candidate generation (the adapter ablation) while a separate near-horizon mechanism handles safety (the biased-predictor ablation) gives the field a template for composing forecasting and generative planning without either component silently corrupting the other. The refusal to claim universal dominance, and the explicit benchmarking against a hand-designed MPC under a shared predictor and protocol, sets a more honest bar for how generative planners should be reported against classical receding-horizon references.
Real-world applications:
- Search and rescue: keeping a drone at a safe standoff from a moving person or vehicle in rubble, forest, or partially collapsed structures where the target's own path is not flyable.
- Wildlife monitoring and tracking: following tagged animals through vegetation where the animal passes under canopy that the drone must route around.
- Security and perimeter patrol: shadowing an intruder or vehicle through urban or industrial clutter without clipping structures.
- Inspection and escort: accompanying a moving asset (convoy, vessel, mobile equipment) at a fixed tracking tolerance while avoiding cranes, poles, and walls.
Industry relevance. The deployment path shown — planned setpoints streamed to PX4 at 20 Hz and flown by a simulated airframe — targets the actual integration point where autonomy research meets commercial drone stacks. The 0.287–0.300 s per-replan cost is the number that matters for practitioners: it sits uncomfortably close to real-time at typical replanning rates, and the authors flag this directly. The gated-residual design is also attractive industrially because it degrades gracefully: a bad perception or prediction feed can be attenuated by a learned gate rather than causing the vehicle to chase a phantom corridor.
Future Directions
-
Bringing the compute down. The paper's own limitation section points at lighter repair, distillation, or adaptive triggering of RSEPSS so the safety gain survives onboard budgets, given the 0.300 s (ID) and 0.287 s (OOD) replanning times versus 0.124/0.125 for Future-MPC.
-
Closing the perception gap. The current setup assumes discrete target-state observations and a local obstacle cloud; end-to-end visual detection, re-identification, and dynamic (moving) obstacles are all explicitly out of scope, and the PX4 validation uses simulated sensing rather than onboard perception.
-
Physical flight validation. The authors position the 120-run PX4 SITL study as evidence of flight-control compatibility, not flight validation. Aerodynamics, vibration, sensor noise, and real obstacle geometry remain untested.
-
Reconciling the two profiles. The results show a genuine split — the learned planner wins on collision rate and terminal tracking, Future-MPC wins on smoothness and thresholded OOD success. Whether these can be combined (e.g., an explicit smoothness term inside the generative objective, or MPC-style optimization over the learned candidate) is left open.
Target Audience
Graduate students and researchers in robot learning, motion planning, and aerial autonomy who want a concrete, well-controlled example of embedding safety correction inside a generative sampling loop rather than around it. It is also useful for practitioners building target-following or escort behaviors on PX4-class stacks, who need to know what a learned planner's failure modes and runtime costs look like under distribution shift and biased prediction. Readers seeking a beginner introduction to flow matching or UAV dynamics should look elsewhere first; readers seeking a state-of-the-art claim of across-the-board superiority will find the paper deliberately declines to make one.
Authors’ abstract
UAV target following in cluttered environments requires anticipating target motion. Followers that use only the current target state can lag behind turns or choose blocked corridors. They may also trade safe near-horizon motion for lower tracking error. We propose a future-aware flow planning framework for state-informed UAV target following. Predicted target futures guide clean UAV trajectory generation through residual signals aligned with the planning horizon. Risk-scored…
The full abstract on arXivRelated papers
- NeurRAFT: Robot Motion Planning via Anchor-Level Flow Matching with Clearance-Aware Preference Tuning 2026-08-25 · cs.RO · Key terms of the title in common
- Safe Streaming Flow Planning by Aligning Sampling Dynamics with Execution Dynamics 2026-10-02 · cs.RO · Key terms of the title in common
- BioMARS 2.0: a robotic biologist for formulating and adapting biological experiments 2026-11-09 · cs.RO · Also by Haoran Zhang
- Safe Task Planning with Long-Term Graph Memory for Embodied Agents 2026-09-08 · cs.RO · Key terms of the title in common
- RefGuard: Identity-Aware Language-Guided Robot Manipulation via Joint Target-Anchor-Frame Grounding 2026-09-05 · cs.RO · Key terms of the title in common