Skip to main content
QUICK REVIEW

[Paper Review] Robust Model Predictive Shielding for Safe Reinforcement Learning with Stochastic Dynamics

Shuo Li, Osbert Bastani|arXiv (Cornell University)|Oct 24, 2019
Model Reduction and Neural NetworksPhysics and Astronomy35 references7 citations
TL;DR

This paper proposes Robust Model Predictive Shielding (RMPS), a framework that ensures safety in reinforcement learning for stochastic nonlinear systems by using a tube-based robust nonlinear model predictive controller (NMPC) as a backup. It leverages sampled trajectories and statistical learning theory to provide high-probability guarantees on reachable sets, enabling safe, high-performance control in environments like cart-pole and non-holonomic systems with random obstacles.

ABSTRACT

This paper proposes a framework for safe reinforcement learning that can handle stochastic nonlinear dynamical systems. We focus on the setting where the nominal dynamics are known, and are subject to additive stochastic disturbances with known distribution. Our goal is to ensure the safety of a control policy trained using reinforcement learning, e.g., in a simulated environment. We build on the idea of model predictive shielding (MPS), where a backup controller is used to override the learned policy as needed to ensure safety. The key challenge is how to compute a backup policy in the context of stochastic dynamics. We propose to use a tube-based robust NMPC controller as the backup controller. We estimate the tubes using sampled trajectories, leveraging ideas from statistical learning theory to obtain high-probability guarantees. We empirically demonstrate that our approach can ensure safety in stochastic systems, including cart-pole and a non-holonomic particle with random obstacles.

Motivation & Objective

  • Address the challenge of ensuring safety in reinforcement learning policies for stochastic nonlinear dynamical systems where dynamics are known but subject to additive stochastic disturbances.
  • Overcome limitations of existing shielding methods that either assume deterministic dynamics or linear systems, which restrict applicability to complex robotics tasks.
  • Develop a scalable and theoretically grounded method to verify safety in high-dimensional, nonlinear, and stochastic control environments.
  • Enable safe deployment of black-box deep reinforcement learning policies by dynamically overriding them with a provably safe backup controller when necessary.
  • Provide finite-sample probabilistic guarantees on the size of reachable sets for the backup controller using statistical learning theory.

Proposed method

  • Use a tube-based robust NMPC as the backup controller to handle stochastic disturbances and ensure safety in nonlinear systems.
  • Estimate the forward reachable set of the backup controller via sampling trajectories from the stochastic dynamics.
  • Apply statistical learning theory (e.g., VC dimension bounds) to derive high-probability confidence intervals on the size of the estimated tubes around the nominal trajectory.
  • Integrate the estimated tube with a model predictive shielding (MPS) framework that dynamically checks whether the learned policy can be safely executed.
  • Determine at each time step whether the current state lies within the estimated safe tube; if not, activate the backup NMPC controller.
  • Use a probabilistic robust recoverability condition to ensure that even if the policy deviates, the system can be driven back to a safe region with high probability.

Experimental results

Research questions

  • RQ1Can a shielding framework be extended to stochastic nonlinear systems while maintaining theoretical safety guarantees?
  • RQ2How can finite-sample probabilistic guarantees be established for the reachable set of a robust NMPC controller in the presence of stochastic disturbances?
  • RQ3To what extent does accounting for nonlinearity in the dynamics reduce conservatism compared to linear approximations in safe RL?
  • RQ4Can a sampling-based approach to tube estimation provide both computational tractability and strong theoretical guarantees in high-dimensional systems?
  • RQ5How does the performance of the learned policy compare when using a robust NMPC backup versus a linear MPC backup in stochastic environments?

Key findings

  • RMPS ensures safety in stochastic nonlinear systems such as cart-pole and non-holonomic particles with random obstacles, achieving high-probability safety guarantees.
  • The approach reduces conservatism compared to linear robust MPC (LRMPS), as shown by fewer backup controller activations in experiments—indicating better policy performance.
  • In the cart-pole environment, RMPS successfully stabilizes the pole in more initial $(\theta, \omega)$ states than LRMPS, demonstrating improved robustness and performance.
  • Theoretical analysis shows that the system remains $1 - (T+1)\epsilon$ robustly recoverable with high probability, where $\epsilon$ is derived from statistical learning bounds.
  • The sampling-based tube estimation method provides finite-sample probabilistic guarantees on reachable sets, enabling practical deployment with theoretical backing.
  • Empirical results confirm that RMPS maintains high performance while ensuring safety, outperforming LRMPS in both coverage and frequency of backup usage.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.