Papers › Model-based Safe Deep Reinforcement Learning via a Constrained Proximal Policy...

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

14 Oct 2022arXiv:2210.07573archive 2025-07-28

Ashish Kumar Jayant, Shalabh Bhatnagar

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. 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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2210.07573")

Code

Syntology Ran 5 of 13 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 3 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

akjayant/mbppol officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 5 ran; 0 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
3ran
8unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from akjayant/mbppol. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

colorize akjayant/mbppol/src/utils/logx.py official repository ran MIT (permissive) · 7e36f1c357c4618d · report
combined_shape akjayant/mbppol/src/core.py official repository ran · our draft was wrong MIT (permissive) · 57542f87e248db45 · report
count_vars akjayant/mbppol/src/core.py official repository ran MIT (permissive) · 4cca5e460067b900 · report
flat_concat akjayant/mbppol/src/utils/mpi_tf.py official repository ran MIT (permissive) · f29202d8108bccd3 · report
mlp akjayant/mbppol/src/core.py official repository ran · our draft was wrong MIT (permissive) · 7569e2a512ec417c · report
assign_params_from_flat akjayant/mbppol/src/utils/mpi_tf.py official repository unverified MIT (permissive) · 042875cf711accd0 · report
dist_xy akjayant/mbppol/src/aux.py official repository unverified MIT (permissive) · 8a69cfc50e0f440c · report
get_data akjayant/mbppol/src/model.py official repository unverified MIT (permissive) · 37d85d44187b2915 · report
get_goal_flag akjayant/mbppol/src/aux.py official repository unverified MIT (permissive) · 6bd1e1acc559a3c0 · report
get_reward_cost akjayant/mbppol/src/aux.py official repository unverified MIT (permissive) · f09be98e3ec66db5 · report
init_weights akjayant/mbppol/src/model.py official repository unverified MIT (permissive) · 0661bf42848a4988 · report
restore_tf_graph akjayant/mbppol/src/utils/logx.py official repository unverified MIT (permissive) · 8a70bbd1276e274c · report
sync_params akjayant/mbppol/src/utils/mpi_tf.py official repository unverified MIT (permissive) · 82d7bab9b4ade8d1 · report

Tasks

Deep Reinforcement LearningReinforcement Learning (RL)Safe ExplorationSafe Reinforcement Learningreinforcement-learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections