ProSh: Probabilistic Shielding for Model-free Reinforcement Learning
Edwin Hamel-De le Court, Gaspard Ohlmann, Francesco Belardinelli
TL;DR
This work tackles safe reinforcement learning under cost constraints by introducing Probabilistic Shielding via Risk Augmentation (ProSh), a model-free approach that augments the CMDP with a running risk budget and shields the agent's action distributions using a learned cost critic. Theoretical foundations show that shielded policies in a risk-augmented MDP preserve budget coherence and can achieve constrained optimality in deterministic settings, with safety guarantees depending on the backup critic accuracy. The authors instantiate ProSh as a TD3-based algorithm (ProSh-TD3) featuring a differentiable shield layer, a backup critic, and a flipping-style reward actor that preserves optimality in the deterministic case, and demonstrate strong safety performance across Safe RL benchmarks. The results indicate ProSh can hard-shield learning to respect cost constraints during training while delivering competitive rewards, offering practical safety guarantees without requiring environment simulators or abstractions.
Abstract
Safety is a major concern in reinforcement learning (RL): we aim at developing RL systems that not only perform optimally, but are also safe to deploy by providing formal guarantees about their safety. To this end, we introduce Probabilistic Shielding via Risk Augmentation (ProSh), a model-free algorithm for safe reinforcement learning under cost constraints. ProSh augments the Constrained MDP state space with a risk budget and enforces safety by applying a shield to the agent's policy distribution using a learned cost critic. The shield ensures that all sampled actions remain safe in expectation. We also show that optimality is preserved when the environment is deterministic. Since ProSh is model-free, safety during training depends on the knowledge we have acquired about the environment. We provide a tight upper-bound on the cost in expectation, depending only on the backup-critic accuracy, that is always satisfied during training. Under mild, practically achievable assumptions, ProSh guarantees safety even at training time, as shown in the experiments.
