Abstract
Autonomous driving in complex urban environments requires sophisticated interaction modeling to navigate multi-modal human behaviors. We present Flow Planner, a framework that leverages flow matching and fine-grained trajectory tokenization to address the "interaction problem." By decomposing trajectories into overlapping segments and utilizing scale-adaptive self-attention, Flow Planner achieves state-of-the-art performance on the nuPlan benchmark, surpassing a score of 90 without rule-based post-processing.
Introduction
Planning a path for an autonomous vehicle (AV) involves more than lane-keeping; it requires negotiating complex interactions like unprotected left turns or tight lane changes. Current learning-based planners struggle with a "Goldilocks" problem in trajectory modeling. Holistic modeling (treating the path as a single token) provides stability but lacks the detail for complex interactions. Conversely, step-by-step autoregressive modeling captures detail but suffers from compounding errors over time. Furthermore, standard imitation learning often fails in rare, high-stakes scenarios because training data is dominated by simple driving.
Methodology
Flow Planner introduces three coordinated innovations to bridge the interaction gap by combining generative modeling with specialized architectural components.
1. Fine-grained Trajectory Tokenization
Instead of using a single token or per-timestep tokens, Flow Planner decomposes trajectories into overlapping segments. This approach preserves kinematic smoothness through the overlap while allowing the model to extract localized features essential for specific maneuver segments.
2. Interaction-enhanced Spatiotemporal Fusion
The model employs a unified latent space using Adaptive LayerNorm (adaLN) to project heterogeneous data, such as static map lanes and dynamic agent histories, into a single representation. To prioritize relevant agents, Scale-Adaptive Self-Attention uses a learnable receptive field that scales based on Euclidean distance, focusing the planner's attention on immediate threats rather than distant, irrelevant actors.
3. Flow Matching with Classifier-Free Guidance (CFG)
Flow Planner utilizes a generative flow matching approach, which is typically faster and more stable to train than traditional diffusion models. It learns the "velocity" required to transform random noise into a valid trajectory.
During inference, Classifier-Free Guidance (CFG) allows the model to adjust the influence of the surrounding scene. This prevents the AV from ignoring aggressive neighbors and ensures coherent strategies in crowded environments by finding a "sweet spot" between unconditioned and overly conditioned behaviors.
Experimental Results
Flow Planner was evaluated on the nuPlan dataset and interPlan, a specialized benchmark focusing on high-interaction scenarios.
- State-of-the-Art Performance: Flow Planner achieved a score of 90.43 on the nuPlan Val14 benchmark, becoming the first learning-based method to exceed 90 points without rule-based post-processing.
- Interactive Dominance: On the interPlan benchmark, it outperformed the previous state-of-the-art (Diffusion Planner) by 8.92 points, demonstrating superior handling of "out-of-distribution" interactive scenarios.
- Qualitative Behavior: In closed-loop testing, the model exhibited human-like behaviors, such as timing gaps in traffic for unprotected turns or successfully aborting unsafe lane changes.
Discussion and Conclusion
The success of Flow Planner highlights the importance of spatial priors and fine-grained modeling. By explicitly incorporating distance into the attention mechanism and using overlapping tokens for smoothness, the model mimics human driving intuition.
However, limitations remain. The complex spatiotemporal attention results in an inference speed of approximately 12Hz on an NVIDIA A6000, which, while meeting industrial standards, leaves room for optimization. Future work may explore acceleration techniques or the integration of Reinforcement Learning to explicitly reward successful negotiation outcomes.
Summary updated