Papers › Safety through feedback in Constrained RL

Safety through feedback in Constrained RL

28 Jun 2024arXiv:2406.19626archive 2025-07-28

Shashank Reddy Chirra, Pradeep Varakantham, Praveen Paruchuri

In safety-critical RL settings, the inclusion of an additional cost function is often favoured over the arduous task of modifying the reward function to ensure the agent's safe behaviour. However, designing or evaluating such a cost function can be prohibitively expensive. For instance, in the domain of self-driving, designing a cost function that encompasses all unsafe behaviours (e.g. aggressive lane changes) is inherently complex. In such scenarios, the cost function can be learned from feedback collected offline in between training rounds. This feedback can be system generated or elicited from a human observing the training process. Previous approaches have not been able to scale to complex environments and are constrained to receiving feedback at the state level which can be expensive to collect. To this end, we introduce an approach that scales to more complex domains and extends to beyond state-level feedback, thus, reducing the burden on the evaluator. Inferring the cost function in such settings poses challenges, particularly in assigning credit to individual states based on trajectory-level feedback. To address this, we propose a surrogate objective that transforms the problem into a state-level supervised classification task with noisy labels, which can be solved efficiently. Additionally, it is often infeasible to collect feedback on every trajectory generated by the agent, hence, two fundamental questions arise: (1) Which trajectories should be presented to the human? and (2) How many trajectories are necessary for effective learning? To address these questions, we introduce \textit{novelty-based sampling} that selectively involves the evaluator only when the the agent encounters a \textit{novel} trajectory. We showcase the efficiency of our method through experimentation on several benchmark Safety Gymnasium environments and realistic self-driving scenarios.

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

Code

Syntology Ran 4 of 12 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; 1 ran · fixture could not drive it; 1 ran with no contract checked.

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

shshnkreddy/RLSF officialpytorch 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

12 samples harvested; 4 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
1ran · fixture could not drive it
1ran
8unverified

Licence: 12 of the 12 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 shshnkreddy/RLSF. “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.

RolloutBuffer_PPO_lag shshnkreddy/RLSF/Sources/algo/prefim.py official repository ran no licence file found · pointer only · f8d32bf33dff4c53 · report
batched_inf shshnkreddy/RLSF/Sources/algo/prefim.py official repository ran · our draft was wrong no licence file found · pointer only · 34fc1c160d02198e · report
compute_train_stats shshnkreddy/RLSF/Sources/algo/prefim.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · afacbe0d7d9a41e5 · report
gen_aug_states shshnkreddy/RLSF/Sources/algo/prefim.py official repository ran · fixture could not drive it no licence file found · pointer only · eea59308f3780233 · report
Algorithm shshnkreddy/RLSF/Sources/algo/prefim.py official repository unverified no licence file found · pointer only · 61bc5c3a0320b9ea · report
CNNStateIndependentPolicy shshnkreddy/RLSF/Sources/algo/prefim.py official repository unverified no licence file found · pointer only · 560aa2dfb0a27188 · report
Classifier_network shshnkreddy/RLSF/Sources/algo/prefim.py official repository unverified no licence file found · pointer only · b6b22a66653c0c54 · report
PPO_continuous shshnkreddy/RLSF/Sources/algo/prefim.py official repository unverified no licence file found · pointer only · cfbd6a0a577ba90c · report
PPO_lag shshnkreddy/RLSF/Sources/algo/prefim.py official repository unverified no licence file found · pointer only · a4cb8de4018bf2bb · report
PREFIM shshnkreddy/RLSF/Sources/algo/prefim.py official repository unverified no licence file found · pointer only · 89cefdacf466af47 · report
StateIndependentPolicy shshnkreddy/RLSF/Sources/algo/prefim.py official repository unverified no licence file found · pointer only · c2567abd86d8eb58 · report
hinge_loss shshnkreddy/RLSF/Sources/algo/prefim.py official repository unverified no licence file found · pointer only · 59c2525415607d22 · report

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