Joint Synthesis of Safety Certificate and Safe Control Policy using Constrained Reinforcement Learning

Haitong Ma, Changliu Liu, Shengbo Eben Li, Sifa Zheng, Jianyu Chen
11/15/2021
cs.LGcs.AI
rl

Official code: mahaitongdae/Safety_Index_Synthesis (14 stars, Python, last commit 2023-07-31).

Abstract

Safety is the major consideration in controlling complex dynamical systems using reinforcement learning (RL), where the safety certificate can provide provable safety guarantee. A valid safety certificate is an energy function indicating that safe states are with low energy, and there exists a corresponding safe control policy that allows the energy function to always dissipate.

Show full abstract

The safety certificate and the safe control policy are closely related to each other and both challenging to synthesize. Therefore, existing learning-based studies treat either of them as prior knowledge to learn the other, which limits their applicability with general unknown dynamics. This paper proposes a novel approach that simultaneously synthesizes the energy-function-based safety certificate and learns the safe control policy with CRL. We do not rely on prior knowledge about either an available model-based controller or a perfect safety certificate. In particular, we formulate a loss function to optimize the safety certificate parameters by minimizing the occurrence of energy increases. By adding this optimization procedure as an outer loop to the Lagrangian-based constrained reinforcement learning (CRL), we jointly update the policy and safety certificate parameters and prove that they will converge to their respective local optima, the optimal safe policy and a valid safety certificate. We evaluate our algorithms on multiple safety-critical benchmark environments. The results show that the proposed algorithm learns provably safe policies with no constraint violation. The validity or feasibility of synthesized safety certificate is also verified numerically.

View on arXivView PDF

Code Implementations(1)

Code for L4DC 2022 paper: Joint Synthesis of Safety Certificate and Safe Control Policy Using Constrained Reinforcement Learning.

143PythonDec 6, 20213 years ago
reinforcement-learningsafe-reinforcement-learningsafety-certificatesafety-critical-systems

Similar Papers

Cite this paper

@article{ma2021joint,
  title  = {Joint Synthesis of Safety Certificate and Safe Control Policy using Constrained Reinforcement Learning},
  author = {Haitong Ma and Changliu Liu and Shengbo Eben Li and Sifa Zheng and Jianyu Chen},
  year   = {2021},
  eprint = {2111.07695},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.07695}
}

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/2111.07695.svg)](https://codeofpaper.com/paper/2111.07695)

Discussion