Neural Simplex Architecture

Dung T. Phan, Radu Grosu, Nils Jansen, Nicola Paoletti, Scott A. Smolka, Scott D. Stoller · DOI

TL;DR

This paper introduces the Neural Simplex Architecture (NSA), a novel approach to runtime assurance for neural network controllers. NSA enables safe operation of complex systems by allowing a high-performance neural controller to be retrained online, improving its safety and performance without sacrificing reliability.

What Problem Does This Paper Address?

Deep neural networks (DNNs) trained with reinforcement learning (RL) are increasingly used to control complex systems like autonomous vehicles and medical devices. However, these controllers can make mistakes, leading to potentially catastrophic failures. Traditional safety mechanisms, like the Simplex architecture, rely on a fallback to a safe baseline controller (BC) but often don't allow switching back to the primary controller or correcting its errors. This paper addresses the challenge of ensuring safety while still leveraging the performance benefits of advanced neural controllers, particularly when these controllers are learned and may exhibit unpredictable behavior.

Methods

The core of the proposed solution is the Neural Simplex Architecture (NSA), which builds upon the Simplex architecture but introduces two key innovations:

  • Online Retraining: NSA includes an Adaptation Module (AM) that retrains the neural controller (NC) in an online fashion. This retraining happens while the system is under the control of the safe baseline controller (BC), using data collected during this safe period. The goal is to correct the NC's unsafe behaviors without degrading its performance.
  • Reverse Switching: Unlike traditional Simplex, NSA allows for switching control back from the BC to the retrained NC. This is enabled by a reverse switching condition (RSC) that ensures the NC is sufficiently safe to resume control.

The retraining process uses a Safe Reinforcement Learning (SRL) approach, where unrecoverable actions are penalized with a large negative reward, while recoverable and high-performing actions are rewarded. This allows the NC to learn from its mistakes without directly executing unsafe actions.

Datasets

The paper does not introduce new datasets. Instead, it uses established simulation environments for its case studies:

  • Inverted Pendulum: A classic control problem used to demonstrate the effectiveness of the NSA's retraining capabilities.
  • Ground Rover Navigation: A target-seeking rover navigating an obstacle field.
  • Artificial Pancreas: A system for controlling blood glucose levels in Type 1 diabetes patients.

Key Insights and Ideas

  • Learning from Mistakes is Crucial: The paper highlights that simply disabling a faulty neural controller is insufficient. The ability to learn from and correct these mistakes online is key to improving both safety and performance.
  • Online Retraining is More Efficient than Extended Initial Training: The results show that a relatively small number of online retraining updates can yield significant improvements in safety and performance, often surpassing extensive additional initial training.
  • Focusing Retraining on Critical Regions: The NSA's retraining approach, by sampling actions during BC control and focusing on regions near the forward switching boundary, effectively targets the NC's weaknesses.
  • Reverse Switching Enables Performance Recovery: Allowing the system to switch back to the improved NC after failover is essential for regaining the performance benefits of the advanced controller.

Key Results

The paper demonstrates the effectiveness of NSA across three case studies:

  • Inverted Pendulum: After retraining, the NC completely stopped producing unrecoverable actions, leading to a 2.7x increase in average return.
  • Ground Rover Navigation: Retraining significantly reduced the number of forward switches (unsafe actions) and improved performance metrics like average return and trajectory length. After 71K retraining updates, the NC's performance was substantially better than the initially trained version.
  • Artificial Pancreas: The initially trained NC consistently reached unrecoverable states. After retraining, the NC never reached an unrecoverable state, and its performance improved by 2.9 times.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that the choice of the reverse switching condition (RSC) is application-dependent and does not affect safety.
  • For nondeterministic systems, a probabilistic model checker might be needed for FSC, which can be computationally expensive.
  • Future Work:
    • Investigate methods for establishing statistical bounds on the degree of improvement in safety and performance from online retraining.
  • Incorporate techniques from the L1Simplex architecture to handle deviations in the plant model's behavior.

Summary updated

BibTeX
@inproceedings{phan2020neural,
  author = {Dung T. Phan and Radu Grosu and Nils Jansen and Nicola Paoletti and Scott A. Smolka and Scott D. Stoller},
  title = {{Neural Simplex Architecture}},
  booktitle = {NFM},
  year = {2020},
  doi = {10.1007/978-3-030-55754-6\_6},
}
Figure