Diffusion-Based Planning for Autonomous Driving with Flexible Guidance

Yinan Zheng, Ruiming Liang, Kexin Zheng, Jinliang Zheng, Liyuan Mao, Jianxiong Li, Weihao Gu, Rui Ai, Shengbo Eben Li, Xianyuan Zhan, Jingjing Liu

Abstract

Traditional autonomous driving planners often struggle to balance the interpretability of rule-based systems with the human-like smoothness of learning-based models. This paper introduces Diffusion Planner, a generative approach that treats trajectory planning as a denoising task. By utilizing a Diffusion Transformer (DiT) architecture and flexible classifier guidance, the model can navigate complex, multi-modal scenarios while allowing for real-time adjustments to driving styles—such as prioritizing comfort or speed—without retraining. Evaluated on the nuPlan benchmark and a novel delivery-vehicle dataset, Diffusion Planner achieves state-of-the-art performance and maintains real-time inference speeds.

Introduction

Autonomous driving planners generally fall into two categories: rule-based and learning-based. Rule-based systems offer safety and interpretability but are often brittle when encountering rare "edge cases." Conversely, learning-based systems, such as Imitation Learning, excel at mimicking human behavior but struggle with multi-modality—the existence of multiple valid paths in a single scenario. Furthermore, many learning-based models require a secondary rule-based "safety filter" to correct errors, which can limit their inherent flexibility.

Diffusion Planner addresses this gap by replacing rigid filters with a flexible diffusion process. This allows the system to learn complex behaviors from data while remaining controllable through specific safety and performance constraints.

Methodology

Diffusion Transformer (DiT) Architecture

The core of the system is a Diffusion Transformer that treats trajectory generation as a generative task. The model starts with random Gaussian noise and iteratively "denoises" it into smooth, realistic trajectories. Unlike traditional models that might average multiple possible paths—potentially leading to dangerous trajectories—the generative nature of Diffusion Planner naturally captures and preserves distinct "modes" of driving behavior.

Joint Prediction and Planning

To account for the interactive nature of traffic, Diffusion Planner performs joint prediction and planning. It simultaneously predicts the trajectories of the ego vehicle and its $M$ nearest neighbors. This allows the model to anticipate cooperative behaviors, such as a neighboring vehicle slowing down to allow a lane change, leading to more proactive and human-like decision-making.

Flexible Classifier Guidance

A key innovation of this work is the use of "energy functions" during the denoising process. These functions act as gradients that nudge the trajectory toward specific goals without altering the underlying neural network weights:

  • Collision Avoidance: Steers the trajectory away from other agents.
  • Target Speed: Pulls the trajectory toward a desired velocity.
  • Comfort: Penalizes high jerk and sudden acceleration changes.
  • Drivable Area: Ensures the vehicle remains within road boundaries.

Because these constraints are applied during inference, engineers can adjust the vehicle's "personality" (e.g., making it more cautious in adverse weather) on the fly.

Experimental Setup and Datasets

The researchers evaluated Diffusion Planner using two primary sources:

  1. nuPlan: The industry-standard benchmark for large-scale autonomous driving planning.
  2. Delivery-Vehicle Dataset: A new 200-hour dataset provided by Haomo.AI, collected from real-world delivery vehicles. This dataset is particularly challenging as it includes frequent interactions with pedestrians, cyclists, and operations within bike lanes.

Results and Key Insights

State-of-the-Art Performance

Diffusion Planner achieved state-of-the-art results on the nuPlan benchmark, outperforming both pure learning-based models and complex hybrid systems. It demonstrated a superior ability to handle multi-modal scenarios, such as choosing between different paths at an intersection, by generating distinct high-quality options and using guidance to select the safest one.

Real-Time Capability

Despite the iterative nature of diffusion models, the system is real-time ready. By utilizing a high-order ODE solver (DPM-Solver), the model achieves an inference frequency of 20 Hz, meeting the requirements for real-world deployment.

Robust Transferability

The model showed significant robustness when trained on nuPlan and tested on the delivery-vehicle dataset. This suggests that Diffusion Planner learns general driving logic rather than merely memorizing specific map layouts.

Limitations and Future Work

While Diffusion Planner represents a significant step forward, several areas for improvement remain:

  • Input Modality: The current model relies on vectorized data (coordinates and lines). Future iterations could move toward end-to-end vision-based systems using raw camera pixels.
  • Lateral Flexibility: Like many learning-based models, it can be hesitant to perform aggressive lateral movements, such as rapid lane changes, if such behaviors are underrepresented in the training data.
  • Computational Efficiency: While 20 Hz is sufficient, diffusion models remain more computationally intensive than feed-forward networks. The authors suggest exploring consistency models to further reduce the number of denoising steps.

Conclusion

Diffusion Planner demonstrates that treating trajectory planning as a guided generative task provides a powerful alternative to traditional hybrid systems. By integrating rules as gradients rather than rigid filters, it achieves a balance of human-like flexibility and rigorous safety, marking a promising direction for the next generation of autonomous vehicle software.

Summary updated

BibTeX
@inproceedings{zheng2025diffusion,
  author = {Yinan Zheng and Ruiming Liang and Kexin ZHENG and Jinliang Zheng and Liyuan Mao and Jianxiong Li and Weihao Gu and Rui Ai and Shengbo Eben Li and Xianyuan Zhan and Jingjing Liu},
  title = {{Diffusion-Based Planning for Autonomous Driving with Flexible Guidance}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=wM2sfVgMDH},
}
Figure