Adaptive Stress Testing: Finding Failure Events with Reinforcement Learning

Ritchie Lee, Ole J. Mengshoel, Anshu Saksena, Ryan W. Gardner, Daniel Genin, Joshua Silbermann, Michael P. Owen, Mykel J. KochenderferarXiv 2018

Introduction

Validating safety-critical systems, such as autonomous vehicles or aircraft collision avoidance systems, presents a significant engineering challenge. These systems operate in vast, continuous, and highly stochastic environments where failures are often the result of a complex sequence of rare events. Traditional validation methods frequently fall short: formal verification struggles to scale to complex state spaces, while standard Monte Carlo sampling is often too undirected to find rare failure modes within a reasonable timeframe.

This research introduces Adaptive Stress Testing (AST), a framework that treats black-box simulators as adversarial games to identify the most likely failure scenarios. By framing the search for failures as a reinforcement learning (RL) problem, the authors provide a scalable, directed method for discovering high-probability failure paths.

The Adaptive Stress Testing Framework

At its core, AST formulates the search for failures as a Markov Decision Process (MDP). In this setup, an RL agent acts as an adversary to the system under test. At each time step, the agent selects environmental "disturbances"—such as the specific maneuvers of an intruding aircraft—to drive the system toward a failure state.

The Adaptive Stress Testing framework uses a reinforcement learner to find the most likely failure path by interacting with a simulator.

The reward function is the critical component of this adversarial setup. It is designed to provide a massive payout if a failure occurs, while also rewarding high-probability transitions. This ensures the agent favors realistic, likely scenarios over bizarre anomalies that would be improbable in the real world. If no failure occurs, the agent is penalized based on a "miss distance," guiding it toward the boundaries of safe operation.

Overcoming Simulator Constraints

Many real-world simulators are legacy black boxes with hidden internal states, which typically makes standard RL application impossible. To address this, the authors introduced MCTS-SA (Monte Carlo Tree Search for Seed-Action Simulators). Instead of outputting direct state-variable actions, the RL agent outputs pseudorandom seeds. These seeds control the simulator's internal random number generator, rendering the stochastic environment entirely deterministic and reproducible without requiring access to the simulator's internal code.

Furthermore, the authors developed Differential AST (DAST) to facilitate regression testing. DAST runs two simulators in parallel—a new system and a trusted baseline—using the same random seeds. The reward function is modified to maximize the difference in outcomes, specifically rewarding the agent only when the new system fails while the baseline succeeds. This isolates specific corner cases where new logic may have introduced vulnerabilities.

Experimental Evaluation: ACAS X vs. TCAS

The framework was evaluated using simulated aircraft mid-air encounters, testing the next-generation Airborne Collision Avoidance System (ACAS X) against the legacy Traffic Alert and Collision Avoidance System (TCAS). The researchers utilized the Lincoln Laboratory Correlated Aircraft Encounter Model (LLCEM) to generate realistic initial states based on national airspace radar data.

Key Results

  • Efficiency: In a fixed computational budget, standard Monte Carlo sampling failed to find any failures. In contrast, the AST algorithm consistently identified multiple failure paths.
  • Vulnerability Discovery: AST identified Near Mid-Air Collisions (NMACs) in 18% of single-threat encounters and 25% of multi-threat encounters.
  • Differential Insights: DAST successfully identified 28 scenarios where ACAS X failed but TCAS succeeded. Many of these were attributed to ACAS X's "late alerting" design, which can struggle with extreme vertical rates. Conversely, DAST found 39 paths where TCAS failed but ACAS X succeeded, confirming that while ACAS X is generally safer, it involves specific, identifiable trade-offs.

Discussion and Future Work

A primary insight from this work is that failures in complex systems are rarely the result of a single cause; they typically require a "perfect storm" of events, such as a pilot maneuvering against an advisory in tandem with high horizontal turn rates.

However, the authors note that the RL agent is highly efficient at exploiting simulator weaknesses. If a simulator lacks real-world fidelity—for instance, by failing to model early Traffic Alerts—the discovered failures might be artificially pessimistic. Future work will focus on expanding stochastic models to include noisy sensors, variable aircraft dynamics, and randomized pilot response delays to further stress-test the robustness of collision avoidance logic in more realistic environments.

Summary updated

BibTeX
@misc{lee2018adaptive,
  author = {Ritchie Lee and Ole J. Mengshoel and Anshu Saksena and Ryan W. Gardner and Daniel Genin and Joshua Silbermann and Michael P. Owen and Mykel J. Kochenderfer},
  title = {{Adaptive Stress Testing: Finding Failure Events with Reinforcement Learning}},
  year = {2018},
  eprint = {1811.02188},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.02188},
}
Figure