Scenario Diffusion: Controllable Driving Scenario Generation With Diffusion

Ethan Pronovost, Meghana Reddy Ganesina, Noureldin Hendy, Zeyu Wang, Andres Morales, Kai Wang, Nicholas Roy

Abstract

Validating the safety of autonomous vehicles (AVs) requires testing against a vast array of traffic scenarios, particularly rare "edge cases" that are difficult to capture in real-world logs. We present Scenario Diffusion, a generative framework that utilizes latent diffusion to create realistic and highly controllable traffic scenarios. By integrating map data with a flexible token-based conditioning system, Scenario Diffusion allows users to specify precise agent behaviors while the model automatically populates the scene with consistent background traffic. Evaluated on the Argoverse 2 and a massive internal Zoox dataset, the model demonstrates superior realism and high controllability, matching user-specified constraints with approximately 97% accuracy.

Introduction

The safety of autonomous vehicles is predicated on their ability to navigate complex, unpredictable traffic environments. While replaying real-world driving logs is a standard validation practice, it is limited by the finite nature of recorded data. To discover and mitigate risks associated with rare, high-stakes events, researchers need synthetic scenario generation.

Existing approaches generally fall into two categories: heuristic-based models, which often lack realism and appear robotic, and deep learning models, which offer high fidelity but are notoriously difficult to control. Scenario Diffusion bridges this gap, providing a high-fidelity generative model that allows for fine-grained user control over specific agent interactions within a scene.

Methodology

Scenario Diffusion employs a two-stage architecture inspired by Latent Diffusion Models (LDMs), adapted specifically for the spatial and temporal requirements of driving data.

1. Scenario Autoencoder (VAE)

The first component is a Variational Autoencoder (VAE) designed to compress complex traffic scenes—represented as Birds-Eye View (BEV) images of agents—into a low-dimensional latent space. Unlike standard image VAEs, this decoder is trained to perform anchor-free object detection and trajectory regression simultaneously. This ensures that a vehicle's initial placement and its predicted future path are physically and logically consistent.

2. Latent Diffusion Model

The diffusion process occurs within the compressed latent space, where the model learns to "denoise" random noise into valid traffic scenarios. The generation is guided by two primary conditioning inputs:

  • Map Conditioning: A BEV representation of road geometry, lane markings, and traffic controls.
  • Token Conditioning: A structured set of "tokens" describing desired agent properties (e.g., position, speed, heading) or global scene attributes (e.g., vehicle density).

A "partial tokenization" strategy is used during training, where certain agent descriptions are randomly masked. This forces the model to learn how to fill in the blanks, effectively generating realistic "background" traffic around the specific "key" agents defined by the researcher.

Experimental Setup and Datasets

The framework was evaluated using two large-scale datasets to test its robustness and generalization capabilities:

  • Argoverse 2: A public motion forecasting dataset featuring 250,000 scenarios across six distinct cities.
  • Internal Zoox Dataset: A massive collection of 6 million real-world scenarios spanning diverse environments, including Las Vegas, Seattle, San Francisco, and the Stanford (SLAC) campus.

Key Insights

Joint Generation of Position and Path

Scenario Diffusion treats an agent's position and behavior as inextricably linked. By generating bounding boxes and trajectories in a single pass, the model avoids common artifacts found in other models, such as placing vehicles in orientations that make their intended trajectories physically impossible.

Variable Rate of Control

The token-based system allows for a "variable rate of control." Users can specify exhaustive details for a primary actor (e.g., a vehicle performing a specific U-turn) while providing minimal constraints for others, allowing the AI to determine the most plausible surrounding traffic flow.

Implicit Rule Learning

Rather than relying on hard-coded traffic laws, the model learns the "grammar" of driving from data. For instance, if a user specifies an agent moving through an intersection, the model implicitly infers that cross-traffic should yield or stop, resulting in a logically consistent and safe interaction.

Cross-City Generalization

The model exhibits impressive "zero-shot" capabilities. A model trained on San Francisco data can generate plausible traffic for Seattle maps, suggesting that the architecture captures the underlying principles of urban driving rather than merely memorizing specific geographic layouts.

Results

Scenario Diffusion outperformed the previous state-of-the-art (TrafficGen) on the Argoverse 2 dataset, specifically in terms of Maximum Mean Discrepancy (MMD) for agent positions and headings. This indicates that the generated distributions are significantly closer to real-world data.

In terms of controllability, the model achieved a ~97% match rate for user-specified tokens. When tasked with specific velocity constraints, the model adjusted agent behavior with a low Mean Absolute Error (MAE) of approximately 0.58 m/s. Furthermore, the "Full" model (trained on all cities) maintained performance levels comparable to specialized single-city models, demonstrating the architecture's scalability.

Limitations and Future Work

While Scenario Diffusion represents a significant step forward, several areas remain for future development:

  • Agent Diversity: Current iterations focus on vehicles. Future work will incorporate pedestrians and cyclists to provide a more holistic simulation of urban environments.
  • Sensor Simulation: The model generates abstract scenarios (bounding boxes and trajectories). To test an AV's full perception stack, these must be integrated with photorealistic sensor simulation (Lidar/Camera).
  • Spatial and Legal Constraints: The current generation is limited to a 100m x 100m area. Expanding this to highway scales and incorporating explicit symbolic knowledge of traffic laws could further refine the safety and utility of the generated scenarios.

Summary updated

BibTeX
@inproceedings{pronovost2023scenario,
  author = {Ethan Pronovost and Meghana Reddy Ganesina and Noureldin Hendy and Zeyu Wang and Andres Morales and Kai Wang and Nicholas Roy},
  title = {{Scenario Diffusion: Controllable Driving Scenario Generation With Diffusion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=99MHSB98yZ},
}
Figure