Abstract
Emerging applications in robotics and autonomous systems, such as autonomous driving and robotic surgery, often involve critical safety constraints that must be satisfied even when information about system models is limited. In this regard, we propose a model-free safety specification method that learns the maximal probability of safe operation by carefully combining probabilistic reachability analysis and safe reinforcement learning (RL). Our approach constructs a Lyapunov function with respect to a safe policy to restrain each policy improvement stage. As a result, it yields a sequence of safe policies that determine the range of safe operation, called the safe set, which monotonically expands and gradually converges. We also develop an efficient safe exploration scheme that accelerates the process of identifying the safety of unexamined states. Exploiting the Lyapunov shielding, our method regulates the exploratory policy to avoid dangerous states with high confidence. To handle high-dimensional systems, we further extend our approach to deep RL by introducing a Lagrangian relaxation technique to establish a tractable actor-critic algorithm. The empirical performance of our method is demonstrated through continuous control benchmark problems, such as a reaching task on a planar robot arm.
Introduction
In robotics and autonomous systems, safety is often defined by reachability: the guarantee that a system will not enter an unsafe state, such as a collision, before reaching its goal. Traditional methods for calculating these safe regions typically require precise mathematical models of the system's physics. However, real-world dynamics are often too complex for accurate modeling. While Reinforcement Learning (RL) offers a model-free alternative, its standard trial-and-error nature is inherently risky in safety-critical environments. This work addresses the challenge of learning safety boundaries through experience without causing catastrophic failures during the learning process.
Methodology
The proposed framework, Lyapunov-based Safe Reinforcement Learning for Safety Specification (LSS), shifts from binary safety to probabilistic reachability. It defines a "safe set" $S^*(\alpha)$ where the probability of failure is kept below a user-defined threshold $\alpha$.
To ensure safety during training, the authors utilize Lyapunov Shielding. By constructing a Lyapunov function that acts as a constraint on policy updates, the algorithm ensures that every successive policy is at least as safe as its predecessor. This mathematical guarantee allows the verified safe set to expand monotonically over time.
Furthermore, the Exploratory LSS (ESS) variant introduces a dual-policy strategy. It separates the "safe" policy (SS-policy), which defines the current known safe set, from an aggressive exploratory policy ($\pi_e$). This exploratory policy is designed to visit the boundaries of the safe set, gathering data about unknown regions more efficiently. For high-dimensional continuous control tasks, the algorithm is adapted for Deep RL (using DDPG) via Lagrangian relaxation, converting safety constraints into a differentiable loss function.
Experimental Results
The approach was evaluated on a Randomized Double Integrator (2D position and velocity) and a MuJoCo Reacher task (2-DOF planar robot arm).
Qualitative results in the Double Integrator task demonstrate that the safe set learned by ESS closely resembles the ground truth calculated via exhaustive dynamic programming. As shown in the comparison above, ESS provides a much more accurate specification of the safe region than the baseline or standard LSS.
Quantitatively, ESS significantly accelerated the discovery of safe states. In the Double Integrator task, it achieved a higher correctness ratio ($r_c$) and a lower false-positive rate ($r_{FP}$) compared to other methods. In the more complex Reacher task, ESS achieved a 77.7% ratio of correct safety specification—a 13.4% improvement over the baseline—while maintaining a low false-positive rate of approximately 4.10%.
Conclusion
While the method provides strong safety guarantees, it remains sensitive to critic approximation errors in Deep RL; inaccuracies in safety probability estimation can still lead to unsafe states. Additionally, the algorithm requires an initial safe baseline policy to begin the expansion process. Future work will explore extending this framework to Partially Observable MDPs (POMDPs) and incorporating regret analysis for the exploration phase.
Summary updated