Skip to main content
QUICK REVIEW

[Paper Review] Provably Safe Reinforcement Learning: Conceptual Analysis, Survey, and Benchmarking

Hanna Krasowski, Jakob Thumm|arXiv (Cornell University)|May 13, 2022
Safety Systems Engineering in AutonomyEngineering9 citations
TL;DR

This paper introduces a unified categorization of provably safe reinforcement learning (RL) methods into action replacement, action projection, and action masking, providing formal foundations for both continuous and discrete action spaces. Experiments on an inverted pendulum and quadrotor stabilization show action replacement outperforms other methods, especially when combined with a reward penalty upon safety verification engagement.

ABSTRACT

Ensuring the safety of reinforcement learning (RL) algorithms is crucial to unlock their potential for many real-world tasks. However, vanilla RL and most safe RL approaches do not guarantee safety. In recent years, several methods have been proposed to provide hard safety guarantees for RL, which is essential for applications where unsafe actions could have disastrous consequences. Nevertheless, there is no comprehensive comparison of these provably safe RL methods. Therefore, we introduce a categorization of existing provably safe RL methods, present the conceptual foundations for both continuous and discrete action spaces, and empirically benchmark existing methods. We categorize the methods based on how they adapt the action: action replacement, action projection, and action masking. Our experiments on an inverted pendulum and a quadrotor stabilization task indicate that action replacement is the best-performing approach for these applications despite its comparatively simple realization. Furthermore, adding a reward penalty, every time the safety verification is engaged, improved training performance in our experiments. Finally, we provide practical guidance on selecting provably safe RL approaches depending on the safety specification, RL algorithm, and type of action space.

Motivation & Objective

  • To establish a comprehensive conceptual framework for provably safe RL in both continuous and discrete action spaces.
  • To address the lack of systematic comparison and benchmarking among provably safe RL methods in the literature.
  • To provide practical guidance for selecting safe RL approaches based on safety specifications, RL algorithms, and action space types.
  • To empirically evaluate the performance of three action modification strategies—replacement, projection, and masking—on standard control benchmarks.
  • To identify open challenges and future research directions for improving the applicability and efficiency of provably safe RL in real-world systems.

Proposed method

  • Proposes a novel three-category classification of provably safe RL methods based on how actions are modified: action replacement, action projection, and action masking.
  • Introduces the first formal formulation of action masking for continuous action spaces, enabling safe action selection through constrained optimization.
  • Employs safety verification functions (e.g., control barrier functions, HJI reachability) to define safe action sets and ensure hard safety guarantees during training and deployment.
  • Integrates safety enforcement with standard RL algorithms (SAC, PPO, DQN, etc.) by modifying the action selection process while preserving learning dynamics.
  • Applies a reward penalty mechanism when safety verification is triggered, encouraging the agent to learn safer policies more efficiently.
  • Conducts controlled experiments on a 2D inverted pendulum and a quadrotor stabilization task to compare the three action modification strategies under identical conditions.

Experimental results

Research questions

  • RQ1How can provably safe RL methods be systematically categorized based on their action modification strategy?
  • RQ2What are the conceptual foundations and formal guarantees of provably safe RL in continuous and discrete action spaces?
  • RQ3How do action replacement, action projection, and action masking compare in terms of learning performance and safety robustness on standard benchmarks?
  • RQ4What impact does adding a reward penalty upon safety verification have on training convergence and policy quality?
  • RQ5Which combination of safety specification, RL algorithm, and action modification strategy yields optimal performance for real-world control tasks?

Key findings

  • All tested provably safe RL methods successfully enforced safety constraints during training and deployment across both benchmarks.
  • Action replacement consistently outperformed action projection and action masking in terms of learning speed and final performance on the inverted pendulum and quadrotor tasks.
  • Introducing a reward penalty every time the safety verification function is engaged significantly improved training performance and policy convergence.
  • The proposed categorization provides a clear, consistent framework for classifying and comparing existing and future provably safe RL methods.
  • Action masking was successfully extended to continuous action spaces, offering a new path for formal safety guarantees in high-dimensional control.
  • The study reveals that the choice of learning tuple (e.g., reward shaping, exploration strategy) has a significant impact on agent performance, especially in safe RL settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.