Model-based Safe Deep Reinforcement Learning via a Constrained Proximal Policy Optimization Algorithm

Ashish Kumar Jayant, Shalabh Bhatnagar
10/14/2022
cs.LG
rl

Official code: akjayant/mbppol (32 stars, Python, MIT, last commit 2023-07-27).

Abstract

During initial iterations of training in most Reinforcement Learning (RL) algorithms, agents perform a significant number of random exploratory steps. In the real world, this can limit the practicality of these algorithms as it can lead to potentially dangerous behavior.

Show full abstract

Hence safe exploration is a critical issue in applying RL algorithms in the real world. This problem has been recently well studied under the Constrained Markov Decision Process (CMDP) Framework, where in addition to single-stage rewards, an agent receives single-stage costs or penalties as well depending on the state transitions. The prescribed cost functions are responsible for mapping undesirable behavior at any given time-step to a scalar value. The goal then is to find a feasible policy that maximizes reward returns while constraining the cost returns to be below a prescribed threshold during training as well as deployment. We propose an On-policy Model-based Safe Deep RL algorithm in which we learn the transition dynamics of the environment in an online manner as well as find a feasible optimal policy using the Lagrangian Relaxation-based Proximal Policy Optimization. We use an ensemble of neural networks with different initializations to tackle epistemic and aleatoric uncertainty issues faced during environment model learning. We compare our approach with relevant model-free and model-based approaches in Constrained RL using the challenging Safe Reinforcement Learning benchmark - the Open AI Safety Gym. We demonstrate that our algorithm is more sample efficient and results in lower cumulative hazard violations as compared to constrained model-free approaches. Further, our approach shows better reward performance than other constrained model-based approaches in the literature.

View on arXivView PDF

Code Implementations(1)

akjayant/mbppolOfficial100%
MIT

This repository has code for the paper "Model-based Safe Deep Reinforcement Learning via a Constrained Proximal Policy Optimization Algorithm" accepted at NeurIPS 2022.

324PythonOct 4, 20223 years agoMIT
model-based-reinforcement-learningmodel-based-rlneurips-2022reinforcement-learningsafe-reinforcement-learning

Similar Papers

Cite this paper

@article{jayant2022modelbased,
  title  = {Model-based Safe Deep Reinforcement Learning via a Constrained Proximal Policy Optimization Algorithm},
  author = {Ashish Kumar Jayant and Shalabh Bhatnagar},
  year   = {2022},
  eprint = {2210.07573},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.07573}
}

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

Discussion