Source-linked AI summary

Learning to Collide: An Adaptive Safety-Critical Scenarios Generating Method

Wenhao Ding, Baiming Chen, Minjun Xu, Ding Zhao

arXiv:2003.01197v3cs.ROcs.LG

TL;DR

Rare and long-tail events make real-world evaluation of autonomous-driving algorithms difficult, especially in safety-critical settings. The paper uses autoregressive scenario building blocks and a task-guided generative model to seek risky scenarios for a given driving algorithm. Experiments show more efficient generation than grid search or human design, with adaptability to routes and parameters.

  • Problem

    Rare events are difficult to collect and neglected in large data streams, creating a challenge for evaluating autonomous-driving algorithms in safety-critical domains.

    Source: §I · p. 1
  • Method

    The framework samples traffic scenarios from autoregressive building blocks and uses the task algorithm as an environment to guide generation toward risky-event distributions.

    Source: §I · p. 2, C. Task-guided data generation · p. 2
  • Results

    The framework generates risky scenarios more efficiently than grid search and human design, while providing stronger adaptability and diversity across task-conditioned routes and parameters.

    Source: 4) Independent Policy · p. 6, §V · p. 7
  • Takeaways & Limitations

    Task-conditioned generation can produce safety-critical scenarios that are aligned with daily experience while adapting to different routes and parameters.

    Source: §V · p. 7

Abstract

from arXiv · show

Long-tail and rare event problems become crucial when autonomous driving algorithms are applied in the real world. For the purpose of evaluating systems in challenging settings, we propose a generative framework to create safety-critical scenarios for evaluating specific task algorithms. We first represent the traffic scenarios with a series of autoregressive building blocks and generate diverse scenarios by sampling from the joint distribution of these blocks. We then train the generative model as an agent (or a generator) to investigate the risky distribution parameters for a given driving algorithm being evaluated. We regard the task algorithm as an environment (or a discriminator) that returns a reward to the agent when a risky scenario is generated. Through the experiments conducted on several scenarios in the simulation, we demonstrate that the proposed framework generates safety-critical scenarios more efficiently than grid search or human design methods. Another advantage of this method is its adaptiveness to the routes and parameters.

I. INTRODUCTION

The paper addresses rare-event and long-tail challenges in autonomous-driving evaluation by generating realistic, safety-critical scenarios. It combines a structured scenario representation with task-guided generation to produce diverse scenarios for evaluating driving algorithms.

Motivation

  • Rare events are difficult to collect and often neglected in large data streams, challenging autonomous-driving systems in safety-critical domains.Source: §I · p. 1
  • Grid search is time- and labor-intensive, while worst-case evaluation can produce extremely risky scenarios that are unlikely to occur in real-world deployment.Source: §I · p. 1

Approach

  • The paper represents traffic scenarios with factorized conditional probabilities, called reusable building blocks, and samples from their dependency structure to generate new scenarios.Source: §I · pp. 1–2
  • The generative model is treated as an agent and a specific task algorithm as its environment to guide safety-critical scenario generation.Source: §I · p. 2

Contributions

  • The framework generates traffic scenarios by sampling joint distributions of autoregressive building blocks and is designed to evaluate driving-algorithm safety.Source: §I · p. 2

II. RELATED WORK

Prior work addresses rare and safety-critical scenarios through long-tail learning, adversarial evaluation, importance sampling, and generative models, but rare-event sampling and scenario safety remain unresolved. The paper therefore uses task guidance to focus generation on risky-event distributions.

III. METHOD

The method represents traffic scenarios with human-informed directed graphical models whose nodes are conditional building blocks, then samples and trains a generator using task feedback. It focuses on compact critical scenarios while acknowledging difficulty scaling to scenes with many participants.

A. Scenario representation

  • Traffic scenarios are represented as graphical-model nodes corresponding to building blocks such as location, orientation, and velocity.Source: A. Scenario representation · p. 3
  • Human knowledge converts an undirected graph into a directed graph, avoiding an often-intractable partition function and difficult-to-define potential functions.Source: A. Scenario representation · p. 3
  • The directed representation factorizes scenarios into independent and autoregressive conditional building blocks that can be sampled according to dependency relationships.Source: A. Scenario representation · p. 3
  • In the cyclist example, nodes encode spawn position, orientation, trigger distance, and input states such as the autonomous vehicle route and target speed.Source: A. Scenario representation · p. 3

C. Task-guided data generation

  • The training procedure builds the factorized model, samples states and actions, simulates scenarios, computes rewards, and updates the policy parameters.Source: A. Scenario representation · p. 4

A. Scenario representation

  • The method focuses on scenarios with few participants, while scenes involving hundreds of vehicles and pedestrians remain challenging and require future study.Source: A. Scenario representation · p. 4
  • The implementation models continuous blocks with Gaussian distributions, discrete blocks with multinomial distributions, and rescales sampled actions into real-world scenario parameters.Source: A. Scenario representation · p. 4

B. Scenario generation framework

The framework models scenario generation as an agent interacting with an AV environment, using rewards to produce safety-critical scenarios while preserving structured dependencies and diversity.

  • The scenario generator is treated as an agent, while the evaluated full-stack AV algorithm serves as its environment.Source: B. Scenario generation framework · p. 4
  • The environment state combines the AV route and lane map with task-algorithm parameters such as target speed.These inputs let the generator adjust obstacle parameters for the evaluated driving task.Source: B. Scenario generation framework · p. 4
  • The reward combines distance-based risk, a collision bonus, and a penalty for obstacles spawned too close to the route.The penalty uses a threshold to exclude unreasonable scenarios.Source: B. Scenario generation framework · p. 4
  • A probabilistic graphic model represents scenario elements as building blocks whose dependencies support structured scenario generation.The framework uses position and orientation distributions as part of this conditional representation.Source: Figure 5 · p. 5, Figure 6 · p. 5

C. Optimization process

The optimization process applies REINFORCE to update the scenario policy from rewards, while entropy regularization promotes policy diversity and autoregressive Gaussian structure enables joint-probability calculation.

  • REINFORCE updates the generative policy parameters using sampled actions and their associated rewards.The gradient is based on the expected reward objective under the policy distribution.Source: C. Optimization process · p. 5
  • An entropy term is added to the objective to encourage diversity in the generated policy.Source: C. Optimization process · p. 5
  • The autoregressive Gaussian policy permits joint-probability calculation through the chain rule.The joint distribution remains Gaussian, making entropy calculation tractable.Source: C. Optimization process · p. 5
  • The optimization results compare collision rate and iterations required to reach stability, with iteration comparisons limited to methods that require iteration.Source: Figure 7 · p. 5

A. Experimental settings

The experiments implement the framework in PyTorch with Adam and use Carla and its Scenario Runner Library to generate and evaluate traffic scenarios.

  • The implementation uses PyTorch and Adam for model training and optimization.Experiment hyperparameters are listed in Table I.Source: A. Experimental settings · p. 5
  • Carla provides the simulation platform, while the Carla Scenario Runner Library generates the traffic scenarios.The modified Scenario04 serves as the test-bed.Source: A. Experimental settings · p. 5
  • The evaluated AV algorithm is a trajectory-following model controlled by a PID controller.Its state and action modules use single fully connected layers.Source: A. Experimental settings · p. 5

B. Verification experiment

The verification experiment tests whether the framework produces risky scenarios across routes and target speeds, and examines whether its autoregressive structure captures policy dependencies.

1) Grid Search:

The section compares grid search, random sampling, independent policies, and the proposed method for generating risky scenarios. It evaluates collision rate, convergence time, and adaptability across routes and target speeds.

Grid Search

  • Grid search discretizes policies and evaluates all combinations, but its search space grows exponentially with scenario-representation dimension.The tested discretization uses steps for [X, Y, Θ, D].Source: 1) Grid Search · p. 6

Evaluation

  • The comparison uses collision rate after stable training and iterations required to reach stability across 30 experiments per method.Experiments vary routes and target speeds.Source: 4) Independent Policy · p. 6

Independent Policy

  • The independent-policy method has slightly lower collision rate than the proposed method because decoupling actions can lose constraints and reduce generation efficiency.Its policies are modeled as independent Gaussian blocks conditioned only on state S.Source: 4) Independent Policy · p. 6

Time Cost

  • The independent-policy method requires more time to stabilize because variance in each policy can influence the others and destabilize training.Grid search also remains time-consuming even with large discretization steps that produce few collision scenarios.Source: 4) Independent Policy · p. 6

Adaptability

  • The proposed method is more adaptive across routes and target speeds, whereas grid search must restart from scratch for each setting.Lower variance indicates greater adaptability in the reported comparison.Source: 4) Independent Policy · p. 6

D. Experiments on other scenarios

The framework is tested on three additional intersection scenarios involving red-light crossing, left turns, and right turns. It finds risky distributions for all three settings.

Scenario Settings

Results

E. Exploration of solution space

The paper explores multiple stable solutions and identifies a limitation of Gaussian policies: they may represent only a sub-space of a multimodal solution space. Future work targets richer mappings and more complex scenarios.

Solution Diversity

Solution Space

  • Gaussian policies optimized with REINFORCE may capture only a sub-space when the full risky-scenario solution space is non-convex or multimodal.The paper gives feasible solutions on both sides of a route as an example.Source: E. Exploration of solution space · p. 6

Future Work

  • Future work proposes mapping action space to scenario-representation space with implicit or complex distributions, including VAE- and flow-based models.The proposed direction aims to model multimodal safety-critical scenario distributions.Source: E. Exploration of solution space · p. 6, §V · p. 7

Framework

  • The framework combines reusable scenario building blocks with task-algorithm guidance to generate risky scenarios from probability distributions.The representation uses dependencies informed by human knowledge, while the task algorithm guides the generative model.Source: §V · p. 7

Conclusion

  • The reported advantages are higher efficiency than grid search and human design, plus adaptability and diversity conditioned on task algorithms.These conclusions are based on simulation experiments.Source: §V · p. 7
Loading 2003.01197v3…