FREA: Feasibility-Guided Generation of Safety-Critical Scenarios with Reasonable Adversariality

Keyu Chen, Yuheng Lei, Hao Cheng, Haoran Wu, Wenchao Sun, Sifa Zheng

Introduction

The validation of autonomous vehicles (AVs) necessitates exposure to safety-critical scenarios that are rare in real-world driving. While simulation-based testing offers a scalable alternative to physical road testing, existing methods often struggle with "excessive adversariality." In these cases, background agents are incentivized to cause collisions at any cost, frequently resulting in scenarios where a crash is physically unavoidable. Such tests fail to provide actionable insights for AV development, as they do not distinguish between a failure of the AV's driving logic and a violation of the laws of physics.

To address this, we present FREA (Feasibility-Guided REasonable Adversariality), a framework designed to generate "fair" safety-critical scenarios. By identifying the boundaries of what is physically avoidable, FREA ensures that generated challenges remain solvable by an optimal policy, thereby maximizing the utility of the test cases.

The Problem: The Unavoidable Collision Trap

Current AI-driven scenario generation often treats the AV as a target to be hit. When background vehicles are trained solely to maximize collision rates, they often execute maneuvers that leave the AV with zero feasible escape paths. This "unavoidable collision trap" limits the effectiveness of safety testing. A useful test should push an AV to its limits—creating "near-misses" or challenging interactions—without crossing into the realm of physical impossibility. The goal is to find the "sweet spot" where the scenario is highly adversarial yet still reasonable.

The FREA Framework

FREA employs a two-stage approach to decouple the physical limits of the environment from the specific policy of the AV being tested.

1. Offline Stage: Mapping the Largest Feasible Region (LFR)

The first stage involves approximating the Largest Feasible Region (LFR). Using Hamilton-Jacobi Reachability (HJR) theory, the framework identifies states (combinations of position, velocity, and orientation) from which an optimal AV policy can still avoid a collision. By training a value network on large-scale offline datasets, FREA establishes a theoretical "safe zone." This LFR serves as the benchmark for "reasonableness" during scenario generation.

2. Online Stage: Training Reasonable Adversaries

In the second stage, Critical Background Vehicles (CBVs) are trained using Reinforcement Learning (RL). Unlike standard adversarial agents, CBVs utilize a feasibility-dependent objective. They are rewarded for:

  • Increasing the criticality of the scenario (e.g., reducing Time-to-Collision).
  • Pushing the AV toward the boundary of the LFR.

Crucially, CBVs are penalized if they force the AV out of the LFR into the "infeasible region" where a crash becomes inevitable. This ensures the generated scenarios are difficult but theoretically solvable.

Experimental Evaluation

The framework was evaluated using the Carla Simulator across multiple environments (Town02 and Town05).

Datasets and Surrogate Models

The LFR was mapped using 300,000 interaction instances collected from "Expert" and "Behavior" agents. To test the robustness of the generated scenarios, FREA was evaluated against different AV architectures, including PlanT (a transformer-based planner) and a privileged rule-based Expert agent.

Key Results

FREA demonstrated a significant improvement in the quality of safety-critical scenarios compared to baseline methods like standard PPO and KING (an optimization-based approach):

  • Reduced Unavoidable Crashes: In Town05 intersection tests, FREA maintained a Collision Rate (CR) of only 5.0%, whereas KING reached 76.67%. This suggests that crashes occurring under FREA are likely due to failures in the AV's specific decision-making rather than forced errors.
  • High-Quality Near-Misses: Despite the lower total crash rate, FREA generated a higher density of near-miss events. These scenarios provide more valuable debugging data than high-speed collisions that offer no path for recovery.
  • Generalization: Scenarios generated against one AV model remained effective when testing others, indicating that FREA identifies fundamental physical vulnerabilities rather than overfitting to a specific software's quirks.

Discussion and Limitations

While FREA successfully balances adversariality and feasibility, some challenges remain regarding the "naturalness" of the background vehicles. Currently, CBVs may prioritize the adversarial objective over traffic rules, occasionally performing unrealistic maneuvers like reversing on a highway or ignoring lane markings to set up an attack. This is largely due to the current state representation lacking detailed map semantics.

Furthermore, the training of the LFR value network is sensitive to hyperparameters related to safety thresholds. Future work will explore the integration of Large Language Models (LLMs) to imbue adversarial agents with "common sense" and better adherence to traffic laws, ensuring that scenarios are not only feasible but also realistic.

Conclusion

FREA represents a shift in AV testing from "crashing at all costs" to "testing at the limit of feasibility." By grounding adversarial generation in Hamilton-Jacobi Reachability theory, the framework provides a principled way to generate safety-critical scenarios that are both challenging and fair, ultimately leading to more robust and reliable autonomous driving systems.

Summary updated

BibTeX
@inproceedings{chen2024frea,
  author = {Keyu Chen and Yuheng Lei and Hao Cheng and Haoran Wu and Wenchao Sun and Sifa Zheng},
  title = {{FREA: Feasibility-Guided Generation of Safety-Critical Scenarios with Reasonable Adversariality}},
  booktitle = {Conference on Robot Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=3bcujpPikC},
}
Figure