RTAEval: A Framework for Evaluating Runtime Assurance Logic

Kristina Miller, Christopher K. Zeitler, William Shen, Mahesh Viswanathan, Sayan Mitra

TL;DR

This paper introduces RTAEval, a novel, low-code Python framework designed to standardize and simplify the evaluation of Runtime Assurance (RTA) logics for autonomous systems. By providing a unified way to define scenarios, execute RTA strategies, and collect/visualize performance data, RTAEval aims to accelerate the development and deployment of safer autonomous systems.

What Problem Does This Paper Address?

As autonomous systems become more prevalent in critical domains like aerospace and transportation, ensuring their safety is paramount. However, this need for safety often clashes with the desire to experiment with and deploy new, potentially untrusted control technologies (e.g., those developed with reinforcement learning). Runtime Assurance (RTA) offers a solution by introducing a decision module that can switch to a verified safety controller or blend outputs from both trusted and untrusted controllers to guarantee system safety. While various RTA techniques exist, there's a significant lack of a standardized framework for evaluating and comparing these different approaches across diverse scenarios and agent types. This makes it difficult to objectively assess their effectiveness and choose the best RTA strategy for a given application.

Methods

RTAEval is presented as a flexible, low-code framework built in Python. Its core components are:

  • Scenario Definition: Users can define complex scenarios involving multiple agents, their dynamics, unsafe sets (regions to avoid), and both safety and untrusted controllers.
  • Scenario Execution: The framework executes these defined scenarios, allowing different RTA logics (RTASwitch or RTAFilter) to be plugged in. It supports various agent simulators, including a simple built-in one and higher-fidelity options like CARLA and AirSim.
  • Data Collection, Evaluation, and Visualization: RTAEval automatically collects crucial data during execution, such as RTA computation time, controller usage, agent states, and distances from unsafe sets. It then provides tools to evaluate this data and visualize performance metrics.

The framework emphasizes a standardized interface between the agent simulator, the RTA decision module, and the data collection components, enabling easy integration of new RTA logics and agent models.

Datasets

The paper does not explicitly mention or use pre-existing datasets for training. Instead, it focuses on creating and evaluating RTA logics within simulated scenarios. The paper introduces several benchmark scenarios for evaluation, including:

  • ACC (Adaptive Cruise Control): A 1D scenario involving a single agent following a leader.
  • Dubins: A 2D scenario with multiple agents (aircraft) navigating in a space with obstacles.
  • GCAS (Ground Collision Avoidance System): A 3D scenario involving aircraft collision avoidance with a ground-based unsafe set.

These scenarios are designed to test RTA performance in varying dimensions, numbers of agents, and types of unsafe sets.

Key Insights and Ideas

  • The Need for Standardization: The paper highlights a critical gap in the RTA field: the absence of a common evaluation framework. RTAEval directly addresses this by providing a unified platform.
  • Low-Code Flexibility: RTAEval's "low-code" nature is a significant advantage, allowing researchers and engineers to quickly define scenarios and integrate new RTA logics without extensive programming.
  • Comprehensive Evaluation Metrics: The framework goes beyond simple success/failure metrics, offering detailed insights into RTA performance, including computation time, controller switching frequency, and safety margins (distance from unsafe sets).
  • Visualization is Key: The ability to visualize performance metrics (like controller usage over time and distances to unsafe regions) is crucial for understanding RTA behavior and debugging issues.

Key Results

The paper demonstrates RTAEval's utility by evaluating two RTA logics (SimRTA and ReachRTA) across the defined ACC, Dubins, and GCAS scenarios. Key findings from the evaluation include:

  • Performance Trade-offs: Table 2 shows that while SimRTA generally has lower execution times, ReachRTA (which uses reachable sets) can offer more robust safety guarantees but at a higher computational cost.
  • Scalability: The framework successfully handles multi-agent scenarios, with evaluation time being influenced by the complexity of the unsafe set definitions (e.g., polytopes in GCAS).
  • RTA Computation Dominance: The results indicate that the majority of the scenario execution time is spent within the RTA logic itself, rather than in the simulator or data collection, underscoring the importance of efficient RTA algorithms.
  • Visualization Effectiveness: Figure 9 showcases how RTAEval can generate insightful visualizations, such as controller usage plots and distance metrics, which are invaluable for analyzing RTA behavior.

Limitations and Future Work

  • Current RTA Logic Focus: RTAEval currently focuses on RTA switching logics. The authors suggest extending the framework to support filtering methods like ASIF (Active Set Invariance Filtering).
  • Perception Models: While the framework can be used with perception models, its direct integration and evaluation of perception uncertainty are not deeply explored.
  • Proximity-Based Communication: Future work could involve incorporating scenarios that leverage proximity-based communication effects.
  • Real-World Deployment: The current framework is simulation-based. Bridging the gap to real-world deployment and validation remains a significant challenge.

Summary updated

Abstract

Runtime assurance (RTA) addresses the problem of keeping an autonomous system safe while using an untrusted (or experimental) controller. This can be done via logic that explicitly switches between the untrusted controller and a safety controller, or logic that filters the input provided by the untrusted controller. While several tools implement specific instances of RTAs, there is currently no framework for evaluating different approaches. Given the importance of the RTA problem in building safe autonomous systems, an evalutation tool is needed. In this paper, we present the \(\textsf {RTAEval}\) framework as a low code framework that can be used to quickly evaluate different RTA logics for different types of agents in a variety of scenarios. \(\textsf {RTAEval}\) is designed to quickly create scenarios, run different RTA logics, and collect data that can be used to evaluate and visualize performance. In this paper, we describe different components of \(\textsf {RTAEval}\) and show how it can be used to create and evaluate scenarios involving multiple aircraft models.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
ACCSimRTA% RTA Comp76.63%Runtime Assurance · agents=1 · timestep=0.05 s · scenario-duration=10 s
Source quote
L251: 18.49e-3 │ 0.07 │ 76.63 │ 7.27e-3
ACCReachRTA% RTA Comp97.89%Runtime Assurance · agents=1 · timestep=0.05 s · scenario-duration=10 s
Source quote
L252: 0.35 │ 1.71 │ 97.89 │ 8.22e-3
DubinsSimRTA% RTA Comp86.06%Runtime Assurance · agents=1 · timestep=0.05 s · scenario-duration=20 s
Source quote
L260: 2.32 │ 4.99 │ 86.06 │ 32.88e-3
DubinsReachRTA% RTA Comp97.76%Runtime Assurance · agents=1 · timestep=0.05 s · scenario-duration=20 s
Source quote
L261: 15.18 │ 37.10 │ 97.76 │ 34.15e-3
GCASSimRTA% RTA Comp83.12%Runtime Assurance · agents=1 · timestep=0.05 s · scenario-duration=40 s
Source quote
L269: 5.85 │ 6.08 │ 83.12 │ 30.62
GCASReachRTA% RTA Comp97.02%Runtime Assurance · agents=1 · timestep=0.05 s · scenario-duration=40 s
Source quote
L270: 39.28 │ 47.65 │ 97.02 │ 31.423
BibTeX
@inproceedings{miller2023rtaeval,
  author = {Kristina Miller and Christopher K. Zeitler and William Shen and Mahesh Viswanathan and Sayan Mitra},
  title = {{RTAEval: A Framework for Evaluating Runtime Assurance Logic}},
  booktitle = {ATVA},
  year = {2023},
  url = {https://openreview.net/forum?id=yMIBVwDo1F},
}

Loading related content...

Figure