Skip to main content
QUICK REVIEW

[Paper Review] Safe Planning via Model Predictive Shielding

Osbert Bastani|arXiv (Cornell University)|May 25, 2019
Reinforcement Learning in RoboticsComputer Science27 references11 citations
TL;DR

This paper proposes Model Predictive Shielding (MPS), a computationally efficient method that dynamically verifies safety of a reinforcement learning policy in real time by using a backup policy only when necessary. By checking safety on-the-fly rather than offline, MPS ensures safety in both known and novel environments, outperforming prior shielding methods in adaptability and efficiency.

ABSTRACT

Reinforcement learning is a promising approach to synthesizing policies for robotics tasks. A key challenge is ensuring safety of the learned policy---e.g., that a walking robot does not fall over, or an autonomous car does not run into an obstacle. We focus on the setting where the dynamics are known, and the goal is to prove that a policy trained in simulation satisfies a given safety constraint. We build on an approach called shielding, which uses a backup policy to override the learned policy as needed to ensure safety. Our algorithm, called model predictive shielding (MPS), computes whether it is safe to use the learned policy on-the-fly instead of ahead-of-time. By doing so, our approach is computationally efficient, and can furthermore be used to ensure safety even in novel environments. Finally, we empirically demonstrate the benefits of our approach.

Motivation & Objective

  • To address the challenge of ensuring safety in reinforcement learning policies for robotics tasks, such as preventing robot falls or vehicle collisions.
  • To develop a method that verifies safety of a learned policy at runtime rather than during offline pre-processing.
  • To enable safe operation in novel or unseen environments where the policy has not been explicitly trained.
  • To improve computational efficiency compared to existing shielding techniques by deferring safety checks until runtime.

Proposed method

  • MPS uses a model of the system dynamics to predict future states and verify whether the learned policy’s actions remain within safety constraints.
  • It dynamically computes, at each decision step, whether it is safe to follow the learned policy or if a safe backup policy must be invoked.
  • The shielding mechanism operates in a model predictive control (MPC) fashion, re-evaluating safety at every time step using a rolling horizon.
  • The backup policy is only activated when the predicted trajectory of the learned policy violates safety constraints.
  • Safety is guaranteed by construction, as the system always defaults to the safe policy when unsafe actions are predicted.

Experimental results

Research questions

  • RQ1Can safety be ensured for a learned policy in real time without pre-computing safe regions?
  • RQ2How does on-the-fly safety verification compare to pre-computed shielding in terms of computational cost and adaptability?
  • RQ3Can the method maintain safety in novel environments not seen during training?
  • RQ4What is the trade-off between safety enforcement frequency and policy performance?

Key findings

  • MPS enables real-time safety verification, reducing computational overhead compared to offline shielding methods.
  • The method ensures safety across both known and novel environments by dynamically checking safety at each time step.
  • By deferring safety checks to runtime, MPS improves adaptability and avoids over-conservative pre-computation.
  • Empirical results show that MPS maintains high policy performance while guaranteeing safety under various dynamic conditions.

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.