Safe Reinforcement Learning Using Advantage-Based Intervention
Nolan Wagener, Byron Boots, Ching-An Cheng
Abstract
Many sequential decision problems involve finding a policy that maximizes total reward while obeying safety constraints. Although much recent research has focused on the development of safe reinforcement learning (RL) algorithms that produce a safe policy after training, ensuring safety during training as well remains an open problem. A fundamental challenge is performing exploration while still satisfying constraints in an unknown Markov decision process (MDP). In this work, we address this problem for the chanceconstrained setting. We propose a new algorithm, SAILR, that uses an intervention mechanism based on advantage functions to keep the agent safe throughout training and optimizes the agent's policy using off-the-shelf RL algorithms designed for unconstrained MDPs. Our method comes with strong guarantees on safety during both training and deployment (i.e., after training and without the intervention mechanism) and policy performance compared to the optimal safetyconstrained policy. In our experiments, we show that SAILR violates constraints far less during training than standard safe RL and constrained MDP approaches and converges to a wellperforming policy that can be deployed safely without intervention. Our code is available at https://github.com/nolanwagener/safe_rl . * be its state-action value function, and V * be its state value function. be a subset of admissible intervention rules with a threshold of zero and average as the advantage function of the optimal policy. For some intervention rule G ∈ G 0 and policy π, let π = G(π). Then, the inequality A(s, a) ≥ A * (s, a) holds for all a ∈ A almost surely over the distribution d π (s). Proof. First, we show by induction that running π starting from d 0 results in the agent staying in the subset S G = s ∈ S : For t = 0, consider some s 0 ∼ d 0 . We observe from admissibility of G and Proposition 2 that Now suppose the agent is in S G with probability one at some time step t. Consider some s t ∼ d π t (observing that s t ∈ S G ). We assume that s t ∈ S safe (otherwise, the below is trivially true as there is no intervention outside S safe ). By Lemma 4 and admissibility, we can derive: where the second and fourth equalities are due to s t ∈ S safe , and the third equality is due to s t ∈ S G . Notice also, since s t ∈ S safe , we have Therefore, combining the two inequalities above, we have Since Q(s, a) ≥ V * (s) on S × A, by the same argument we made for s 0 , we conclude Q(s t+1 , µ) = V * (s t+1 ) with probability one. Therefore, the agent stays in the subset S G . With this property in mind, let s ∼ d π . Then the following holds for all a ∈ A: where the second equality is due to Q Proposition 4. Let π * be an optimal policy for M, Q * be its state-action value function, and V * be its state value function. π * , 0) ∈ G 0 . Consider arbitrary G ∈ G 0 and policy π. Let M and M * be the absorbing MDPs induced by G and G * , respectively, and let d π and d * ,π be their state-action distributions of π. Then, Supp S×A ( d π ) ⊆ Supp S×A ( d * ,π ), where Supp S×A (d) denotes the support of a distribution d when restricted on S × A.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext a31ab5bd-ff0f-4358-b9ef-e4cd52d75fe6Cited by top-tier papers15
- Constrained Variational Policy Optimization for Safe Reinforcement LearningZuxin Liu, Zhepeng Cen, Vladislav Isenbaev, Wei Liu et al.ICML 2022 · 112 citations
- Constrained Decision Transformer for Offline Safe Reinforcement LearningZuxin Liu, Zijian Guo, Yihang Yao, Zhepeng Cen et al.ICML 2023 · 82 citations
- Enforcing Hard Constraints with Soft Barriers: Safe Reinforcement Learning in Unknown Stochastic EnvironmentsYixuan Wang, Simon Sinong Zhan, Ruochen Jiao, Zhilu Wang et al.ICML 2023 · 81 citations
- When to Ask for Help: Proactive Interventions in Autonomous Reinforcement LearningAnnie Xie, Fahim Tajwar, Archit Sharma, Chelsea FinnNeurIPS 2022 · 30 citations
- Maximum State Entropy Exploration using Predecessor and Successor RepresentationsArnav Kumar Jain, Lucas Lehnert, Irina Rish, Glen BersethNeurIPS 2023 · 27 citations
Builds on7
- On Gradient Descent Ascent for Nonconvex-Concave Minimax ProblemsTianyi Lin, Chi Jin, Michael I. JordanICML 2020 · 587 citations
- Safe Reinforcement Learning via Curriculum InductionMatteo Turchetta, Andrey Kolobov, Shital Shah, Andreas Krause et al.NeurIPS 2020 · 109 citations
- Neurosymbolic Reinforcement Learning with Formally Verified ExplorationGreg Anderson, Abhinav Verma, Isil Dillig, Swarat ChaudhuriNeurIPS 2020 · 91 citations
- Upper Confidence Primal-Dual Reinforcement Learning for CMDP with Adversarial LossShuang Qiu, Xiaohan Wei, Zhuoran Yang, Jieping Ye et al.NeurIPS 2020 · 65 citations
- Policy Improvement via Imitation of Multiple OraclesChing-An Cheng, Andrey Kolobov, Alekh AgarwalNeurIPS 2020 · 36 citations
Related papers
- Constrained Markov Decision Processes via Backward Value FunctionsHarsh Satija, Philip Amortila, Joelle PineauICML 2020 · 58 citations
- Enhancing Safe Exploration Using Safety State AugmentationAivar Sootla, Alexander I. Cowen-Rivers, Jun Wang, Haitham Bou-AmmarNeurIPS 2022 · 23 citations
- DOPE: Doubly Optimistic and Pessimistic Exploration for Safe Reinforcement LearningArchana Bura, Aria HasanzadeZonuzy, Dileep Kalathil, Srinivas Shakkottai et al.NeurIPS 2022 · 48 citations
- SafeMPO: Constrained Reinforcement Learning with Probabilistic Incremental ImprovementAlexander Mattick, Dominik Seuß, Christopher MutschlerICLR 2026
- Flipping-based Policy for Chance-Constrained Markov Decision ProcessesXun Shen, Shuo Jiang, Akifumi Wachi, Kazumune Hashimoto et al.NeurIPS 2024 · 5 citations
