Introduction
Ensuring the safety of autonomous vehicles (AVs) remains a significant challenge due to the "long-tail" nature of traffic interactions. While modern AVs perform reliably in standard driving conditions, they often struggle with rare, complex edge cases that are difficult to encounter during standard on-road testing. Traditional safety testing, which relies on manual post-incident analysis or simple rule-based simulations, is often reactive and fails to explore the high-dimensional space of potential failures efficiently. There is a critical need for automated tools that can generate diverse, realistic failure scenarios and use them to iteratively improve AV decision-making logic.
The CRASH Framework
The researchers introduce CRASH (Challenging Reinforcement-learning based Adversarial scenarios for Safety Hardening), a bi-level optimization framework designed to stress-test and harden AV motion planners. The framework operates in a closed loop between two primary objectives: automatic falsification and safety hardening.
1. Automatic Falsification
The first stage involves training non-player characters (NPCs) to act as adversaries. Using Deep Q-Networks (DQN), these NPCs are incentivized to intentionally cause collisions with the Ego vehicle. To address the "sparse reward" problem—where collisions occur too infrequently for effective learning—the authors developed a continuous reward function based on Time-to-Collision (TTC).
By shaping the reward with sigmoid-based TTC functions across both longitudinal and lateral axes, NPCs develop the spatial awareness necessary to actively "hunt" the Ego vehicle rather than relying on random chance. This method allows the system to automatically explore the "curse of dimensionality" inherent in traffic interactions.
2. Safety Hardening
Once adversarial NPCs are capable of inducing failures, the Ego vehicle is retrained to mitigate these risks. A key challenge in this stage is avoiding "catastrophic forgetting," where the Ego vehicle becomes proficient at avoiding new attacks but loses its ability to handle older ones. The authors evaluated three hardening strategies:
- Local Hardening: Training exclusively against the most recent adversary.
- Uniform Model Pool-Based Hardening: Maintaining a library of all previous NPC and Ego versions, sampling from them uniformly to ensure broad robustness.
- Prioritized Model Pool-Based Hardening: Utilizing an Elo rating system to rank agents by skill and sampling more challenging opponents more frequently.
Experimental Evaluation
The framework was tested using the highway-env simulator in a two-lane highway scenario. To ensure diversity, NPCs were spawned in eight different relative positions around the Ego vehicle (e.g., "Behind Left," "Forward Center"). The system was benchmarked against both rule-based planners (Intelligent Driver Model and MOBIL) and learning-based DQN planners.
Key Results
- Falsification Efficacy: Adversarial NPCs proved highly effective, achieving a 97% collision rate against rule-based planners and a 90% rate against learning-based planners.
- Hardening Impact: Safety hardening significantly enhanced the Ego vehicle's resilience. The Uniform Model Pool approach was the most successful, reducing the average collision rate from 64% to 38%—a 26% absolute reduction.
- Robustness and Generalization: Hardened agents demonstrated superior generalization across various NPC versions compared to those trained via local hardening, which often suffered from overfitting to specific attack patterns.
Discussion and Future Work
The study highlights that safety in autonomous driving is not a linear progression; it requires a diverse "memory" of potential threats. Interestingly, uniform sampling outperformed prioritized (Elo-based) sampling in this environment, suggesting that broad exposure to varied strategies is more effective for general robustness than focusing solely on the "strongest" adversaries.
Future research will look to expand CRASH into more complex environments, such as multi-lane intersections and roundabouts, and explore multi-agent coordination where NPCs collude to trap the Ego vehicle. Additionally, refining fault attribution to focus on scenarios where the AV is clearly at fault will provide more actionable insights for real-world deployment.
Summary updated