Learning Barrier Certificates: Towards Safe Reinforcement Learning with Zero Training-time Violations

Yuping Luo, Tengyu Ma
8/4/2021
cs.LGcs.AIcs.RO
rl

Official code: roosephu/crabs (18 stars, Python, last commit 2022-03-04).

Abstract

Training-time safety violations have been a major concern when we deploy reinforcement learning algorithms in the real world. This paper explores the possibility of safe RL algorithms with zero training-time safety violations in the challenging setting where we are only given a safe but trivial-reward initial policy without any prior knowledge of the dynamics model and additional offline data.

Show full abstract

We propose an algorithm, Co-trained Barrier Certificate for Safe RL (CRABS), which iteratively learns barrier certificates, dynamics models, and policies. The barrier certificates, learned via adversarial training, ensure the policy's safety assuming calibrated learned dynamics model. We also add a regularization term to encourage larger certified regions to enable better exploration. Empirical simulations show that zero safety violations are already challenging for a suite of simple environments with only 2-4 dimensional state space, especially if high-reward policies have to visit regions near the safety boundary. Prior methods require hundreds of violations to achieve decent rewards on these tasks, whereas our proposed algorithms incur zero violations.

View on arXivView PDF

Code Implementations(1)

roosephu/crabsOfficial100%

Code for Learning Barrier Certificates: Towards Safe Reinforcement Learning with Zero Training-time Violations

187PythonMar 4, 20224 years ago

Similar Papers

Cite this paper

@article{luo2021learning,
  title  = {Learning Barrier Certificates: Towards Safe Reinforcement Learning with Zero Training-time Violations},
  author = {Yuping Luo and Tengyu Ma},
  year   = {2021},
  eprint = {2108.01846},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.01846}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2108.01846.svg)](https://codeofpaper.com/paper/2108.01846)

Discussion