SafeSim: Safety-Critical Closed-Loop Traffic Simulation with Diffusion-Controllable Adversaries

Wei-Jer Chang, Francesco Pittaluga, Masayoshi Tomizuka, Manmohan Chandraker

TL;DR

This paper introduces SAFE-SIM, a novel diffusion-based simulation framework for generating realistic and controllable safety-critical traffic scenarios. It addresses the limitations of existing methods by enabling adversarial agents to dynamically challenge autonomous vehicle (AV) planners in closed-loop simulations, leading to more robust AV development.

What Problem Does This Paper Address?

Developing and testing autonomous vehicles (AVs) requires evaluating their performance in rare but critical situations, such as near-collisions. Simulating these "long-tail" safety-critical scenarios is crucial, but current methods often fall short. They struggle with generating scenarios that are both realistic (mimicking real-world traffic dynamics) and controllable (allowing users to specify the nature of the critical event). Traditional approaches often rely on manually designed scenarios, which are not scalable, or on methods that don't account for the dynamic interactions between AVs and other road users. This gap hinders the thorough evaluation of AV safety and dependability.

Methods

SAFE-SIM leverages diffusion models, a powerful generative AI technique, to create these challenging simulations. The core innovation lies in two key areas:

  • Controllable Adversarial Diffusion: The authors introduce an "adversarial term" within the diffusion model's denoising process. This allows a specially designed "adversarial agent" to generate plausible, challenging maneuvers that directly test the AV planner. Crucially, other agents in the simulation behave realistically and reactively, maintaining scene coherence.
  • Partial Diffusion and Guidance Objectives: To further enhance control, SAFE-SIM employs "partial diffusion" and novel guidance functions. Partial diffusion allows users to specify aspects of the simulation, such as the desired collision type or the aggressiveness of the adversarial agent, by controlling the diffusion process at specific stages. This provides fine-grained control over the generated scenarios while still ensuring realistic agent behavior.

Datasets

The framework is trained and evaluated using:

  • nuScenes: A large-scale, multimodal dataset for autonomous driving, used for training and validation.
  • nuPlan: Another large-scale dataset, used for validation.

The paper focuses on vehicle-to-vehicle interactions within these datasets.

Key Insights and Ideas

  • Diffusion Models as a Foundation for Safety-Critical Simulation: The paper demonstrates that diffusion models are not just for image generation but can be effectively adapted for complex, dynamic simulations, offering a robust and versatile foundation.
  • Controllability Through Adversarial Guidance: By integrating adversarial objectives into the diffusion process, the authors show it's possible to create targeted challenges for AV planners, moving beyond generic scenario generation.
  • Partial Diffusion for Fine-Grained Control: The "partial diffusion" technique offers a novel way to balance user-defined control (e.g., collision type) with the model's learned data distribution, leading to more tailored and useful simulations.
  • Realistic Agent Interactions are Key: The framework's success hinges on its ability to simulate not just the adversarial agent but also the realistic, reactive behavior of all other agents, which is critical for evaluating AVs in complex traffic.

Key Results

The authors report significant improvements in both controllability and realism compared to baseline methods like STRIVE and DiffScene.

  • Improved Collision Rates and Realism: SAFE-SIM achieved higher collision rates and better realism metrics when tested with a rule-based planner against STRIVE and DiffScene.
  • Diverse Scenario Generation: The framework successfully generated diverse safety-critical scenarios tailored to various planner types (rule-based, learning-based, hybrid).
  • Controllable Safety-Criticality: By adjusting parameters like Time-to-Collision (TTC) cost, the framework can influence the safety-criticality of scenarios, leading to more challenging situations for AVs. For example, increasing the TTC cost weight led to higher collision rates.
  • Enhanced Collision Diversity: Partial diffusion was shown to significantly increase the diversity of collision points and angles, leading to a broader range of challenging scenarios.

Limitations and Future Work

The authors acknowledge a few limitations:

  • Unrealistic Collisions: In some cases, the adversarial agent might unrealistically collide with non-adversarial agents before engaging the ego agent.
  • At-Fault Collisions: Some generated scenarios result in collisions where the ego planner is not at fault, which could be improved by creating more scenarios where the ego is at fault.

Future work directions include:

  • Closed-Loop Policy Training: Applying the framework for training AV policies directly.
  • Automated Parameter Adjustment: Developing methods to automatically tune the controllable parameters for scenario generation.

Summary updated

BibTeX
@inproceedings{chang2024safesim,
  author = {Wei-Jer Chang and Francesco Pittaluga and Masayoshi Tomizuka and Manmohan Chandraker},
  title = {{SafeSim: Safety-Critical Closed-Loop Traffic Simulation with Diffusion-Controllable Adversaries}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72664-4\_14},
}
Figure