Papers › State-Wise Safe Reinforcement Learning With Pixel Observations

State-Wise Safe Reinforcement Learning With Pixel Observations

3 Nov 2023arXiv:2311.02227archive 2025-07-28

Simon Sinong Zhan, YiXuan Wang, Qingyuan Wu, Ruochen Jiao, Chao Huang, Qi Zhu

In the context of safe exploration, Reinforcement Learning (RL) has long grappled with the challenges of balancing the tradeoff between maximizing rewards and minimizing safety violations, particularly in complex environments with contact-rich or non-smooth dynamics, and when dealing with high-dimensional pixel observations. Furthermore, incorporating state-wise safety constraints in the exploration and learning process, where the agent must avoid unsafe regions without prior knowledge, adds another layer of complexity. In this paper, we propose a novel pixel-observation safe RL algorithm that efficiently encodes state-wise safety constraints with unknown hazard regions through a newly introduced latent barrier-like function learning mechanism. As a joint learning framework, our approach begins by constructing a latent dynamics model with low-dimensional latent spaces derived from pixel observations. We then build and learn a latent barrier-like function on top of the latent dynamics and conduct policy optimization simultaneously, thereby improving both safety and the total expected return. Experimental evaluations on the safety-gym benchmark suite demonstrate that our proposed method significantly reduces safety violations throughout the training process, and demonstrates faster safety convergence compared to existing methods while achieving competitive results in reward return.

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="2311.02227")

Code

Syntology Ran 12 of 14 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 12 ran with no contract checked.

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

simonzhan-code/step-wise_saferl_pixel officialmentioned in papermentioned on GitHubpytorch 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

14 samples harvested; 12 ran; 0 honoured the contract we drafted; 2 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.

12ran
2unverified

Licence: 14 of the 14 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 simonzhan-code/step-wise_saferl_pixel. “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.

ObservationModel simonzhan-code/step-wise_saferl_pixel/modules/models.py official repository ran no licence file found · pointer only · cd4df7e37f410cf0 · report
get_lambda_datasets simonzhan-code/step-wise_saferl_pixel/utils/plot.py official repository ran no licence file found · pointer only · a303dbe40ba89e74 · report
get_model_free_baseline simonzhan-code/step-wise_saferl_pixel/utils/plot.py official repository ran no licence file found · pointer only · aa1afc09634f499a · report
get_slac_datasets simonzhan-code/step-wise_saferl_pixel/utils/plot.py official repository ran no licence file found · pointer only · 59c5b8b9c3d163d4 · report
get_through_NN simonzhan-code/step-wise_saferl_pixel/modules/models.py official repository ran no licence file found · pointer only · 529627f92815aafb · report
imagine_ahead simonzhan-code/step-wise_saferl_pixel/utils/utils.py official repository ran no licence file found · pointer only · f837e22509ce6a46 · report
lambda_return simonzhan-code/step-wise_saferl_pixel/utils/utils.py official repository ran no licence file found · pointer only · 390ab719c56fc08b · report
normalize simonzhan-code/step-wise_saferl_pixel/safety-gym/safety_gym/bench/bench_utils.py official repository ran no licence file found · pointer only · d7740644bf4b7de1 · report
postprocess_observation simonzhan-code/step-wise_saferl_pixel/modules/env.py official repository ran fingerprinted no licence file found · pointer only · 278220aaad589e8c · report
quat2zalign simonzhan-code/step-wise_saferl_pixel/safety-gym/safety_gym/envs/engine.py official repository ran no licence file found · pointer only · 4ac8031d738ec401 · report
reach_avoid_value_return simonzhan-code/step-wise_saferl_pixel/utils/utils.py official repository ran fingerprinted no licence file found · pointer only · 398af0fe872ccef0 · report
theta2vec simonzhan-code/step-wise_saferl_pixel/safety-gym/safety_gym/envs/engine.py official repository ran no licence file found · pointer only · 39708d407531ef32 · report
Env simonzhan-code/step-wise_saferl_pixel/modules/env.py official repository unverified no licence file found · pointer only · 703763e9ba3cdadd · report
bottle simonzhan-code/step-wise_saferl_pixel/modules/models.py official repository unverified no licence file found · pointer only · 25c79a6d1db5ea05 · report

Tasks

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