Long-term Safe Reinforcement Learning with Binary Feedback
Akifumi Wachi, Wataru Hashimoto, Kazumune Hashimoto
TL;DR
This work addresses safe reinforcement learning for CMDPs with binary safety feedback under unknown stochastic transitions, aiming to guarantee long-term safety across episodes. The authors propose LoBiSaRL, which combines GLM-based confidence bounds for the safety function with Lipschitz-based bounds to produce a pessimistic, yet informative, lower bound on safety. By formulating a constrained policy optimization and applying a Lagrangian approach, LoBiSaRL balances reward maximization with the need to maintain viable safe actions through horizon $[t,T]$ with high probability. Theoretical results establish a high-probability long-term safety guarantee, and experiments in a grid-world demonstrate safer behavior compared to baselines, albeit sometimes at some cost to reward. Overall, the method provides a principled framework for safe RL with binary feedback in uncertain environments, with potential for further performance improvements in reward while preserving safety guarantees.
Abstract
Safety is an indispensable requirement for applying reinforcement learning (RL) to real problems. Although there has been a surge of safe RL algorithms proposed in recent years, most existing work typically 1) relies on receiving numeric safety feedback; 2) does not guarantee safety during the learning process; 3) limits the problem to a priori known, deterministic transition dynamics; and/or 4) assume the existence of a known safe policy for any states. Addressing the issues mentioned above, we thus propose Long-term Binaryfeedback Safe RL (LoBiSaRL), a safe RL algorithm for constrained Markov decision processes (CMDPs) with binary safety feedback and an unknown, stochastic state transition function. LoBiSaRL optimizes a policy to maximize rewards while guaranteeing a long-term safety that an agent executes only safe state-action pairs throughout each episode with high probability. Specifically, LoBiSaRL models the binary safety function via a generalized linear model (GLM) and conservatively takes only a safe action at every time step while inferring its effect on future safety under proper assumptions. Our theoretical results show that LoBiSaRL guarantees the long-term safety constraint, with high probability. Finally, our empirical results demonstrate that our algorithm is safer than existing methods without significantly compromising performance in terms of reward.
