Diffusion-ES: Gradient-free Planning with Diffusion for Autonomous Driving and Zero-Shot Instruction Following

Brian Yang, Huangyuan Su, Nikolaos Gkanatsios, Tsung-Wei Ke, Ayush Jain, Jeff Schneider, Katerina FragkiadakiarXiv 2024 · DOI

Abstract

Diffusion-ES is a novel trajectory planning method that combines the expressive power of diffusion models with the flexibility of gradient-free evolutionary search. By using a "truncated diffusion-denoising" process to mutate trajectories, it optimizes complex, non-differentiable reward functions—including those generated on-the-fly by Large Language Models (LLMs) from natural language instructions—while ensuring paths remain realistic and safe. Evaluated on the nuPlan benchmark, Diffusion-ES achieves state-of-the-art performance and demonstrates robust zero-shot instruction following.

Introduction

Autonomous vehicles must navigate complex, multi-modal environments where the optimal path is often defined by specific, high-level goals. While diffusion models are excellent at capturing the distribution of realistic trajectories, guiding them to satisfy specific constraints (e.g., "yield to car 8") is difficult. Existing "reward-gradient guidance" methods require differentiable reward functions and often necessitate re-training on noisy data, precluding the use of "black-box" rewards or natural language. Traditional sampling-based planners, such as the Cross-Entropy Method (CEM), often struggle to explore high-dimensional trajectory spaces efficiently. Diffusion-ES bridges this gap by providing a gradient-free framework to guide powerful diffusion models using non-differentiable rewards.

Methodology

Diffusion-ES treats trajectory planning as an evolutionary search process, decoupling the trajectory generation from the goal specification.

The Diffusion-ES Algorithm

  1. Initial Proposals: The process begins by sampling a diverse set of trajectories from an unconditional diffusion model.
  2. Sample Scoring: Each trajectory is evaluated using a "black-box" reward function. Crucially, this function only needs to process the final, "clean" trajectory.
  3. Selection & Mutation: High-scoring "elite" trajectories are selected for the next generation. Instead of standard Gaussian noise, Diffusion-ES uses truncated diffusion-denoising. This involves adding a small amount of noise to elite samples and then running a limited number of denoising steps. This process acts as a "manifold projection," ensuring mutations remain within the space of realistic driving behavior.
The Diffusion-ES evolutionary search loop utilizes truncated denoising as a mutation operator to keep trajectories on the realistic driving manifold.

Zero-Shot Instruction Following

To handle natural language, the system uses few-shot LLM prompting (e.g., GPT-4) to translate human instructions into Python code. This code does not generate trajectories directly; instead, it defines auxiliary reward terms that "shape" the optimization objective. This leverages the LLM's reasoning capabilities while the diffusion model handles the underlying physics and dynamics.

Experiments and Results

The authors evaluated Diffusion-ES on the industry-standard nuPlan benchmark and a suite of Controllability Tasks designed to test complex instruction following.

Performance Benchmarks

On the nuPlan (Val14) benchmark, Diffusion-ES achieved a driving score of 92, matching the state-of-the-art PDM-Closed planner and significantly outperforming other learning-based policies.

Instruction Following

In complex scenarios like lane weaving or yielding to specific agents, Diffusion-ES demonstrated a high success rate where traditional planners and gradient-guided diffusion methods often failed. The modularity of the reward-shaping approach allows the model to adapt to diverse instructions without any retraining.

Qualitative results demonstrating Diffusion-ES following diverse natural language instructions, from simple lane changes to complex multi-stage maneuvers.

Real-Time Viability

While diffusion is computationally intensive, the authors show that by optimizing population size and denoising steps, Diffusion-ES can operate at 2Hz (0.5s per inference), making it a candidate for real-time deployment.

Discussion and Limitations

A key insight of this work is the effectiveness of truncated denoising as a smart mutation operator in high-dimensional spaces. By decoupling the "driver" (diffusion model) from the "goal" (reward function), the system becomes highly adaptable.

However, limitations remain. The current reward function assumes a static world where other agents move at constant velocities. Integrating dynamic world models could improve performance in interactive settings. Additionally, while 2Hz is promising, further speed improvements via policy distillation could enhance responsiveness. Future work may also explore automated retrieval of reward shapes to further reduce the need for human-in-the-loop instruction.

Summary updated

BibTeX
@misc{yang2024diffusion,
  author = {Brian Yang and Huangyuan Su and Nikolaos Gkanatsios and Tsung-Wei Ke and Ayush Jain and Jeff Schneider and Katerina Fragkiadaki},
  title = {{Diffusion-ES: Gradient-free Planning with Diffusion for Autonomous Driving and Zero-Shot Instruction Following}},
  year = {2024},
  eprint = {2402.06559},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.06559},
}
Figure