Introduction
Validating the safety of autonomous systems presents a significant "needle in a haystack" challenge. While catastrophic failures are rare, the search space of possible environmental conditions and system interactions is massive. Traditional validation methods often fall into two traps: exhaustive simulation, which is computationally infeasible in high-dimensional spaces, or simplified simulation, which may omit the very complexities that lead to real-world failures.
This paper formalizes Adaptive Stress Testing (AST), a methodology that leverages reinforcement learning (RL) to systematically uncover the most likely failure modes of a system. By treating the system under test (SUT) as a black box, AST focuses computational resources on finding statistically probable paths to failure, providing a rigorous mathematical bound on system safety.
Methodology: Validation as a Search Problem
The core innovation of AST is reframing validation not as a passive check, but as an active search problem modeled as a Markov Decision Process (MDP).
In this framework:
- The Environment as the Agent: Instead of training a robot to be "good," the RL solver in AST controls the environment (e.g., sensor noise, pedestrian behavior, or weather conditions). Its goal is to be adversarial and drive the system toward a failure state.
- Black-Box System Under Test (SUT): The autonomous system is treated as a black box within the simulator. AST requires no knowledge of the SUT's internal logic, only the ability to observe its state and reset the simulation.
- Probabilistic Reward Function: The reward function is designed to guide the search toward failure states while accounting for the likelihood of environmental actions. By incorporating the log-probability of disturbances, the solver identifies the failure path that is most statistically probable in the real world.
Standard RL algorithms, such as Monte Carlo Tree Search (MCTS) or Trust Region Policy Optimization (TRPO), are employed to solve this MDP. To accelerate discovery, the authors often use "distance-to-failure" heuristics, rewarding the agent for getting closer to a collision or system breach even before a failure occurs.
Experimental Evaluation and Results
The authors evaluated the AST formulation across three distinct simulation environments: a classic cartpole control problem with disturbances, an autonomous vehicle (AV) at a crosswalk with imperfect sensors, and the next-generation Aircraft Collision Avoidance System (ACASX).
Key Results in ACASX
The application of AST to the ACASX system demonstrated its ability to uncover complex, multi-step failure modes. The solver identified specific sequences of pilot responses and aircraft trajectories that could overwhelm the collision avoidance logic, leading to Near Mid-Air Collisions (NMACs).
As shown in the trajectories above, AST efficiently navigates the high-dimensional state space to find "interesting" regions where failures are possible, rather than wasting budget on safe, nominal scenarios. In the AV crosswalk scenario, AST similarly identified combinations of pedestrian movement and sensor noise that led to collisions, providing clear failure modes for developers to address.
Discussion and Insights
AST provides several critical advantages for autonomous system validation:
- Formal Safety Bounds: If the most likely failure found by AST is extremely improbable (e.g., one in a billion), it provides a formal, probabilistic bound on the overall safety of the system.
- Flexibility: The black-box nature allows AST to be applied to a wide variety of systems without modification to the underlying code.
- Efficiency: By using RL instead of random search, the method focuses on the most critical parts of the state space.
However, limitations remain. Like all RL methods, AST can suffer from local convergence, potentially missing diverse failure modes by repeatedly finding the same one. Furthermore, the results are strictly tied to the fidelity of the simulator; if the environmental models are inaccurate, the discovered failures may not translate to reality. Future work aims to scale AST to even higher-dimensional spaces and develop techniques to ensure a greater diversity of discovered failure modes.
Summary updated