Optimizing Diffusion Models for Joint Trajectory Prediction and Controllable Generation

Yixiao Wang, Chen Tang, Lingfeng Sun, Simone Rossi, Yichen Xie, Chensheng Peng, Thomas Hannagan, Stefano Sabatini, Nicola Poerio, Masayoshi Tomizuka, Wei Zhan

Introduction

Diffusion models have emerged as a powerful tool for generative tasks, particularly in autonomous driving where they excel at representing complex, multi-modal trajectory distributions. However, their deployment in real-time robotics is hindered by two primary bottlenecks: slow inference speeds due to the iterative denoising process and heavy computational requirements for guided sampling. This paper introduces Optimal Gaussian Diffusion (OGD) and Estimated Clean Manifold (ECM) Guidance to transform diffusion models into efficient, real-time components for motion planning.

Methodology

Optimal Gaussian Diffusion (OGD)

Standard diffusion models typically begin the reverse process from a non-informative standard Gaussian distribution (pure noise) at a large time step $T$. This requires hundreds of steps to reach a clean sample. OGD optimizes this by starting from an informative prior at a significantly smaller $T$.

The authors analytically derive the optimal mean and variance for this starting distribution based on the statistics of the ground-truth data. By utilizing a lightweight, pre-trained marginal trajectory predictor to estimate these statistics for each agent, the model can "warm start" the process, skipping the most computationally expensive early stages of denoising.

Overview of OGD: Using an informative prior to reduce diffusion time by starting from a smaller T compared to vanilla diffusion.

Estimated Clean Manifold (ECM) Guidance

Controllable generation usually involves calculating gradients through the entire neural network at every denoising step to nudge the model toward specific goals. ECM streamlines this by treating guidance as a multi-objective optimization problem directly on the estimated clean manifold ($x_0$).

Instead of backpropagating through the network to update the noisy state $x_t$, ECM injects gradients directly into the $x_0$ estimate. This eliminates the need for expensive backpropagation through the model at every step. To handle multi-modality, the authors further propose ECMR, which uses reference trajectories to initialize the optimization, preventing the model from getting stuck in local minima.

Comparison of guidance methods: Standard guidance requires expensive backpropagation through the network to update noisy data, while ECM injects gradients directly onto the estimated clean data manifold.

Experimental Results

The framework was evaluated on the Argoverse 2 dataset, a rigorous benchmark for motion forecasting with a 6-second prediction horizon.

  • Efficiency: OGD achieved competitive performance while using only 40 steps, compared to the 500 steps required by vanilla diffusion—a 12x speedup.
  • Controllable Generation: For tasks requiring specific scenario generation, ECMR matched the realism of state-of-the-art methods while reducing inference time by 80% (1/5th the time).
  • Competitive Performance: The OGD framework ranked 4th on the Argoverse 2 multi-world forecasting leaderboard, demonstrating that it can match or exceed the performance of non-diffusion models while retaining generative flexibility.

Key Insights and Future Work

A central takeaway is that analytical priors are highly effective; if the target data's mean and variance are known, the optimal Gaussian starting point can be mathematically determined for any noise level. Furthermore, viewing guidance as a hierarchical optimization—prioritizing the "realistic" data manifold before minimizing user cost—allows for significant computational bypasses.

While OGD's performance is currently tied to the accuracy of the marginal trajectory predictor used for the prior, future work aims to learn joint mean and variance estimates directly. Additionally, the authors plan to explore tighter integration between diffusion-based predictors and downstream motion planners for closed-loop autonomous control.

Summary updated

BibTeX
@inproceedings{wang2024optimizing,
  author = {Yixiao Wang and Chen Tang and Lingfeng Sun and Simone Rossi and Yichen Xie and Chensheng Peng and Thomas Hannagan and Stefano Sabatini and Nicola Poerio and Masayoshi Tomizuka and Wei Zhan},
  title = {{Optimizing Diffusion Models for Joint Trajectory Prediction and Controllable Generation}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73397-0\_19},
}
Figure