Abstract
Simulation is an indispensable tool in the development and testing of autonomous vehicles (AVs), offering an efficient and safe alternative to road testing. An outstanding challenge with simulation-based testing is the generation of safety-critical scenarios, which are essential to ensure that AVs can handle rare but potentially fatal situations. This paper addresses this challenge by introducing a novel framework, CaDRE, to generate realistic, diverse, and controllable safety-critical scenarios. Our approach optimizes for both the quality and diversity of scenarios by employing a unique formulation and algorithm that integrates real-world scenarios, domain knowledge, and black-box optimization. We validate the effectiveness of our framework through extensive testing in three representative types of traffic scenarios. The results demonstrate superior performance in generating diverse and high-quality scenarios with greater sample efficiency than existing reinforcement learning (RL) and sampling-based methods.
Introduction
Testing autonomous vehicles (AVs) on public roads is inherently slow, expensive, and potentially hazardous. While simulation environments provide a safer and more scalable alternative, they often struggle with the "long-tail" problem: the vast majority of real-world driving data consists of mundane, safe interactions, whereas the most critical data for AV safety—rare, high-stakes "edge cases"—is difficult to find.
Generating these safety-critical scenarios involves a difficult three-way trade-off:
- Realism: Scenarios must be kinematically feasible and reflect actual human driving behavior.
- Diversity: A robust testing suite requires a wide spectrum of failure modes (e.g., varying impact angles, speeds, and timings) rather than a single type of collision.
- Controllability: Developers must be able to specify and generate particular types of scenarios to stress-test specific AV sub-systems.
Traditional methods often fall short. Adversarial reinforcement learning (RL) frequently suffers from mode collapse, converging on a single "best" way to cause a collision. Conversely, random sampling is too inefficient to reliably discover rare edge cases within a reasonable computational budget.
Methodology: The CaDRE Framework
To address these challenges, we propose CaDRE (Controllable and Diverse Generation of Safety-Critical Driving Scenarios). CaDRE reframes scenario generation as a Quality-Diversity (QD) optimization problem. Unlike standard optimization that seeks a single global optimum, QD algorithms aim to populate an archive of high-performing solutions that are qualitatively distinct.
Technical Components
CaDRE maintains realism by using real-world trajectories from datasets as a baseline and applying small, bounded perturbations to the background vehicle's actions (acceleration and steering). To ensure diversity, we define a 3D "measure space" to categorize scenarios based on steering effort, impact time, and impact angle.
The core algorithmic innovation in CaDRE is the Occupancy-Aware Restart (OAR) mechanism. While standard QD algorithms typically restart from random points when progress stalls, OAR analyzes the current archive of scenarios. It identifies "elites" located near empty or under-explored regions of the measure space and restarts the search from these points. This effectively pushes the optimization toward novel behaviors, maximizing the variety of generated edge cases.
Experimental Evaluation
We evaluated CaDRE using the nuPlan v1.1 dataset, focusing on three high-stakes traffic patterns: unprotected cross-turns, high-speed lane-changes, and U-turns. CaDRE was benchmarked against several baselines, including Random Search, CMA-ES, and advanced RL methods such as SVPG and GOOSE.
Key Results
Our results demonstrate that CaDRE significantly outperforms existing methods across all key metrics:
- Superior Coverage: In unprotected cross-turn scenarios, CaDRE achieved 158% more coverage (finding a wider variety of unique scenario types) than the best baseline.
- Higher Quality: Scenarios generated by CaDRE had a higher "Mean Objective," indicating they were more safety-critical and harder for the AV to navigate.
- Sample Efficiency: CaDRE is remarkably efficient; it achieved higher diversity scores with 15,000 samples than most baselines could reach with 60,000.
Furthermore, the structured nature of the QD archive provides excellent controllability. Developers can query the archive for specific failure modes, such as a high-urgency side-impact collision, facilitating targeted debugging and testing.
Conclusion and Future Work
CaDRE provides a powerful framework for generating the diverse, realistic, and controllable scenarios necessary for safe AV deployment. While currently focused on single-agent perturbations, future work will extend this to multi-agent interactions and incorporate environmental constraints like lane boundaries directly into the optimization loop to further enhance realism.
Summary updated