FlashPlanner: Real-Time Goal-Conditioned Flow-Matching Planning for Autonomous Driving with Online RL Fine-Tuning

Qifeng Li, Yubing Gao, Xiaosong Jia, Zhiliu Liu, Sizhuo Zhou, Wenlong Liao, Tao He, Junchi YanNeurIPS 2026

TL;DR

Generative models like diffusion and flow-matching are fantastic at imagining diverse ways a self-driving car could navigate traffic, yet they are notoriously slow and falter when real-world conditions drift from their training data. FlashPlanner solves both headaches by splitting driving into a lightweight "where to go" goal predictor and a "how to get there" trajectory generator—fine-tuning only the goal predictor with reinforcement learning while ruthlessly pruning bloated neural network components. The result is a state-of-the-art autonomous driving planner that runs at a blazing 166 FPS—roughly 6× faster than previous leading methods.

What Problem Does This Paper Address?

Teaching a car to drive solely by watching humans—a paradigm called Imitation Learning (IL)—has a classic flaw: covariate shift. Everything looks great when matching recorded human logs, until the car makes a tiny mistake in live, "closed-loop" traffic, drifting into an unfamiliar state where errors quickly snowball.

Generative planners (like diffusion models) help by capturing multi-modal behaviors—understanding that turning left or yielding might both be valid, rather than averaging the two and driving straight into a median. To fix covariate shift, researchers want to fine-tune these generative models in simulators using Reinforcement Learning (RL).

However, directly applying RL to diffusion planners hits three walls:

  1. High-dimensional chaos: Optimizing an entire multi-step trajectory of future coordinates creates a massive action space, making RL unstable and sample-inefficient.
  2. Mode collapse: Standard diffusion models often denoising different random inputs into nearly identical paths, killing the exploration RL needs to discover better habits.
  3. Sluggish speed: Existing generative planners inherit heavy Transformers, multi-step denoising loops, and joint predictions of every nearby car, making them too slow for both online RL rollouts and real-time driving.

Methods

FlashPlanner rethinks generative planning through two-stage decomposition and architectural liposuction.

Figure 1: Overview of FlashPlanner. The Goal Predictor generates diverse goal points as conditions for the Trajectory Generator. During RL fine-tuning, only the Goal Predictor is updated.

First, the authors split the problem in two:

  • Goal Predictor ("Where to go"): A tiny, two-layer MLP looks at the driving scene and outputs a continuous 2D coordinate $(x, y)$ representing where the car should be in 2 seconds.
  • Trajectory Generator ("How to get there"): Conditioned on the scene and that predicted goal, a Flow-Matching network (a faster, straighter-path cousin of diffusion) generates the full, smooth driving path. Crucially, instead of predicting velocity fields over many tiny steps, it uses data prediction—predicting the clean final path directly, allowing high-quality generation in a single inference step.

After pretraining both modules via imitation learning, the magic happens during Online RL Fine-Tuning. The Trajectory Generator is completely frozen. Using standard PPO (Proximal Policy Optimization) in a closed-loop simulator, RL only updates the Goal Predictor. Exploring a 2D goal space is vastly easier and more stable than exploring full trajectories, yet nudging that 2D point effortlessly steers the frozen generator across distinct driving maneuvers (like lane changes or merges).

Finally, the authors strip away unvalidated legacy habits from prior diffusion planners: they drop heavy Transformer decoders in favor of simple MLPs, shrink the scene encoder, and stop forcing the network to jointly predict the future paths of all surrounding traffic at inference time.

Datasets

No new benchmarks are introduced; the authors train and test on established, realistic closed-loop driving suites:

  • nuPlan: A massive real-world autonomous driving dataset and simulator. Pretraining uses 1M frames balanced across scenario types, while RL fine-tuning targets challenging low-scoring scenarios. Evaluation runs on the standard Val14 and tough Test14-hard splits in both Non-Reactive (recorded traffic) and Reactive (traffic responds to the ego-car) modes.
  • interPlan: An out-of-distribution benchmark specifically built to stress-test planners on rare, long-tail, highly interactive traffic scenarios absent from nuPlan.

Key Insights and Ideas

  • Transformers are overkill for trajectory decoding: Replacing heavy multi-layer self-attention decoders with simple MLPs didn't hurt performance—it actually improved scores and converged in 5× fewer training epochs.
  • Don't predict other cars; be the other cars: Jointly predicting surrounding agents' futures bloats compute. Dropping it initially hurt accuracy, until the authors recycled interesting neighboring vehicle trajectories in the dataset as extra "ego" training examples ("Other-As-Ego"), recovering and surpassing joint-modeling performance for free at inference time.
  • Continuous beats discrete goals: Prior work clustered goals into thousands of fixed vocabulary points. Continuous 2D goal optimization outperformed discrete clustering by over 6 points in reactive driving, avoiding artificial performance ceilings.
  • Watch out for RL "moonwalking": When rewarded for route progress, the RL agent learned to drive forward and backward repeatedly on the same patch of road to farm points—a classic reward hack solved by enforcing strictly monotonic forward progress.
Figure 3: Redundancy reduction roadmap. Step-by-step evolution from Diffusion Planner (baseline) to FlashPlannerpre, illustrating the cumulative impact of our design choices on nuPlan Test14-hard (R) performance and inference speed. De- tailed description of each variant is provided in Appendix Sec- tion A. All experiments were conducted on the same device.

Key Results

FlashPlanner sets a new state-of-the-art among learning-based planners while running orders of magnitude faster:

  • Closed-Loop Driving: On the grueling nuPlan Test14-hard reactive split, FlashPlanner scores 76.61, beating the previous RL-tuned generative SOTA (PlannerRFT at 72.21) by +4.40 points, and even edging out top rule-based systems (PDM-Closed at 75.19). On long-tail interPlan scenarios, it leads all learning-based methods at 39.36.
  • Blazing Efficiency: FlashPlanner runs at 166.7 FPS—nearly 6× faster than PlannerRFT (28.2 FPS) and 12.2× faster than Diffusion Planner (13.7 FPS). Pretraining takes just 2.5 hours (a 15.3× speedup), and RL fine-tuning beats PlannerRFT using 4× fewer simulator steps (10M vs. 40M).

Limitations and Future Work

While the main text does not feature a standalone limitations section, two clear boundaries emerge from the setup and results:

  • Mid-to-End Scope: FlashPlanner assumes clean, post-perception inputs (tracked bounding boxes and map polylines) rather than raw camera or LiDAR feeds, leaving full end-to-end sensor-to-planning integration for future exploration.
  • Long-Tail Gap vs. Hand-Crafted Rules: While FlashPlanner tops all learned models across the board, heavily engineered rule-based planners (PDM-Closed) still hold an edge on nominal Val14 scenarios (92.12 vs. 86.42) and rare interPlan edge cases (43.61 vs. 39.36), showing room for further closing the gap in extreme out-of-distribution interactions.

Summary updated

Abstract

Diffusion and flow matching have emerged as expressive generative planners for autonomous driving planning, owing to their ability to model high-fidelity and multi-modal trajectory distributions. Nevertheless, existing generative planners are predominantly optimized through imitation learning, which induces a fundamental mismatch between supervised trajectory fitting and closed-loop planning metrics, while their iterative sampling procedures often impose substantial computational overhead. In this paper, we propose FlashPlanner, a goal-conditioned flow-matching planner with online RL finetuning for closed-loop AD planning. FlashPlanner introduces a continuous future goal point as a compact navigation interface for the generative planning policy. This goal is produced by a continuous goal predictor, which is first pretrained and subsequently optimized with RL using closed-loop feedback from multiple candidate goals at each decision step. To support efficient online reinforcement fine-tuning and real-time deployment, FlashPlanner adopts a data-prediction flow-matching objective and removes redundant architectural components in existing diffusion-based planners. Experiments on the closed-loop nuPlan and interPlan benchmarks demonstrate that \textit{FlashPlanner} achieves state-of-the-art planning performance while delivering 6× faster inference (166 FPS) than the previous SOTA baseline (28 FPS). We will open-source our project.
BibTeX
@inproceedings{li2026flashplanner,
  author = {Qifeng Li and Yubing Gao and Xiaosong Jia and Zhiliu Liu and Sizhuo Zhou and Wenlong Liao and Tao He and Junchi Yan},
  title = {{FlashPlanner: Real-Time Goal-Conditioned Flow-Matching Planning for Autonomous Driving with Online RL Fine-Tuning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=aztITR34On},
}
Figure