Revisiting the Uncertainty Gate in Lagrangian Safe Reinforcement Learning: An Ablation of a Lag-U Reimplementation on Safety-Gymnasium
Lag-U (Zhang et al., 2024) is a safe reinforcement learning method. It trains an agent to collect reward while keeping a cost, which counts unsafe events, under a limit. Its uncertainty gate tightens this constraint where the agent's estimates of future reward disagree, but Zhang et al.'s ablations never remove the gate alone. We reimplemented Lag-U on the Safety-Gymnasium benchmark and compared agents with and without a gate over 10 to 20 random seeds. We tested the gate as published, which cannot act where the estimates' mean is negative, and a variant from our analysis plan, which can. No Lag-U agent met the cost limit of 25 per episode on average, with or without a gate, so we could test the gates only on agents that exceed it. With Zhang et al.'s learning rates, the agent's own prediction of its cost was about half of the cost it incurred, also after we brought our code closer to Zhang et al.'s description, and we detected no change in cost from either gate. Return, the sum of rewards in an episode, was slightly higher with a gate, but only one of three such differences had a 95% interval that excluded zero; this went against our prediction, and its size rests on a single seed. With a slower learning rate for the policy, neither gate improved return, the variant lowered it, and the change in cost was too uncertain to show a benefit or a harm. In our implementation the tightened constraint is treated as a constant when the policy is updated, a detail that Zhang et al. leave open. We show that such a gate acts only through the weight of the cost penalty, which is the same in every state, so it cannot make the agent more careful in particular states. We end with four checks for methods that adapt a safety constraint to uncertainty. Code, analysis plan and result files: https://github.com/michaelseiranian/safe-rl-carla (tag preprint-v1). This preprint has not been peer reviewed.
Authors
- Michael Seiranian
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-22
- DOI
- https://doi.org/10.5281/zenodo.24449244
- Primary Topic
- Reinforcement Learning in Robotics
- Type
- preprint