TL;DR
GuideFlow is a novel end-to-end autonomous driving planner that uses constrained flow matching to generate diverse, safe, and multi-modal trajectories. By directly embedding explicit physical and safety constraints into the generative process and unifying it with an Energy-Based Model (EBM), GuideFlow eliminates the common pitfalls of mode collapse and traffic violations, achieving state-of-the-art performance on major benchmarks like NavSim and Bench2Drive.
What Problem Does This Paper Address?
Planning is the core of end-to-end autonomous driving (E2E-AD), but current planners face a difficult trade-off between diversity and safety:
- Imitative Planners: Traditional methods directly mimic expert trajectories using regression losses (like $L_1$ or $L_2$). Because a driving scene in the training data only provides a single ground-truth path, these models suffer from mode collapse—they fail to propose multiple plausible options (e.g., choosing to either yield or bypass a obstacle) and instead average them out into a single, potentially dangerous path.
- Generative Planners: Recent approaches use diffusion or flow matching models to sample diverse future trajectories from a learned distribution. However, because the sampling process is inherently random and unconstrained, these models frequently violate hard safety bounds, causing collisions or traffic infractions unless paired with a heavy, slow post-optimization step.
GuideFlow bridges this gap by directly enforcing explicit safety and physical constraints within the generative flow matching process, ensuring that the generated trajectories are both diverse and strictly compliant with the environment.
Methods
GuideFlow builds upon Rectified Flow (RF) matching, which learns a vector field to transport a simple Gaussian distribution into a complex trajectory distribution.
The framework introduces three core strategies for Constrained Generation to keep the trajectory generation safe and on track:
- Constraining the Velocity Field (CVF): It actively adjusts the direction of the model's predicted velocity field at each step to align with a constraint-satisfying reference trajectory, ensuring the endpoint remains safe without disrupting the velocity magnitude.
- Constraining the Flow States (CF): To prevent the trajectory from drifting during numerical integration, GuideFlow uses a late-stage truncation strategy during inference. It directly replaces intermediate flow states near the target with constraint-satisfying anchors, allowing the model to adapt smoothly to dynamic conditions.
- Refining the Flow by EBM (RFE): GuideFlow unifies flow matching with an Energy-Based Model (EBM). During training, an energy surrogate function penalizes constraint violations (like collisions or road rule infractions). This shapes the data manifold into low-energy basins, guiding the model to autonomously "discover" safe trajectories.
Additionally, the authors incorporate Classifier-Free Guidance to inject high-level driving intents (commands, goal points, and planning anchors) and introduce an Aggressiveness Score (EP) as a reward condition, allowing users to dynamically toggle between aggressive and conservative driving styles at inference time.
Datasets
The authors validated GuideFlow across four prominent autonomous driving benchmarks:
- NuScenes: Used for open-loop evaluation across 1,000 driving sequences.
- ADV-NuScenes: A challenging out-of-domain dataset containing 6,115 adversarial, highly aggressive driving scenarios used strictly for zero-shot evaluation.
- NavSim: A closed-loop planning benchmark derived from OpenScene.
- Bench2Drive: A closed-loop evaluation protocol under the CARLA Leaderboard 2.0 framework consisting of 220 evaluation routes.
Key Insights and Ideas
- Constraints as Part of Generation, Not Post-Processing: Instead of treating safety rules as a separate filter or an afterthought, GuideFlow embeds them directly into the generative mechanics. This makes the generation process inherently constraint-aware.
- The Power of Late-Stage Truncation: By activating the Flow State constraints (CF) only during inference, the model can learn smooth, natural conditional flows during training while still guaranteeing hard constraint satisfaction at test time.
- Controllable Driving Styles: Parameterizing driving aggressiveness as a continuous conditioning signal proves that generative planners can be dynamically adjusted to fit different passenger preferences or environmental demands without retraining.
Key Results
GuideFlow achieved outstanding results across both open-loop and closed-loop benchmarks:
- NavSim (Navhard split): Achieved a state-of-the-art EPDMS score of 43.0 (and 46.7 with an adjusted scoring strategy), outperforming strong generative and imitative baselines.
- Bench2Drive: Reached a Driving Score of 75.21 and a Success Rate of 51.36%, demonstrating superior closed-loop robustness and decision stability.
- Safety Metrics: On NuScenes and ADV-NuScenes, GuideFlow achieved the lowest average collision rates (0.07% and 0.73%, respectively), significantly outperforming SparseDrive, UniAD, and VAD. Notably, it maintained near-zero collisions at short horizons (1–2 seconds).
Limitations and Future Work
Despite its strong performance, GuideFlow shares a common limitation with most iterative generative models: sampling efficiency. Generating trajectories via multiple sequential integration steps introduces computational latency, which can pose challenges for real-time deployment in real-world autonomous vehicles.
To address this, the authors note that future work will focus on integrating advanced acceleration techniques like reflow and meanflow to distill the generation process into fewer steps and drastically enhance sampling speed.
Summary updated