Skip to main content
QUICK REVIEW

[Paper Review] Safety-Gymnasium: A Unified Safe Reinforcement Learning Benchmark

Jiaming Ji, Borong Zhang|arXiv (Cornell University)|Oct 19, 2023
Reinforcement Learning in RoboticsComputer Science15 citations
TL;DR

Introduces Safety-Gymnasium, a unified SafeRL benchmark with Gymnasium- and Issac-Gym-based environments and a 16-algorithm SafePO library, enabling evaluation of safety performance across single- and multi-agent tasks with vector and vision inputs.

ABSTRACT

Artificial intelligence (AI) systems possess significant potential to drive societal progress. However, their deployment often faces obstacles due to substantial safety concerns. Safe reinforcement learning (SafeRL) emerges as a solution to optimize policies while simultaneously adhering to multiple constraints, thereby addressing the challenge of integrating reinforcement learning in safety-critical scenarios. In this paper, we present an environment suite called Safety-Gymnasium, which encompasses safety-critical tasks in both single and multi-agent scenarios, accepting vector and vision-only input. Additionally, we offer a library of algorithms named Safe Policy Optimization (SafePO), comprising 16 state-of-the-art SafeRL algorithms. This comprehensive library can serve as a validation tool for the research community. By introducing this benchmark, we aim to facilitate the evaluation and comparison of safety performance, thus fostering the development of reinforcement learning for safer, more reliable, and responsible real-world applications. The website of this project can be accessed at https://sites.google.com/view/safety-gymnasium.

Motivation & Objective

  • Motivate safe reinforcement learning as essential for real-world, safety-critical deployments across domains such as autonomous systems and healthcare.
  • Provide a comprehensive, scalable benchmark suite (Safety-Gymnasium) spanning single-agent, multi-agent, and vision-based tasks with various safety constraints.
  • Offer a wide algorithm library (SafePO) with 16 state-of-the-art SafeRL methods for rigorous evaluation and comparison.
  • Facilitate community validation and reproducibility by detailing environments, constraints, and performance metadata.

Proposed method

  • Develop Safety-Gymnasium as an environment suite built on Gymnasium and MuJoCo, with vision-based and Issac-Gym components for high-dimensional tasks.
  • Inherit and extend Safety Gym tasks with more agents, tasks, and safety constraints, including high-dimensional, vision-based variants.
  • Present a Safety-Gymnasium taxonomy including robot types (Point, Car, Doggo, Racecar, Ant) and tasks (Velocity, Run, Circle, Goal, Push, Button).
  • Define safety constraints (e.g., velocity, obstacles, hazards, sigwalls, vases, gremlins) and provide vision inputs (RGB and RGB-D) to evaluate vision-based SafeRL.
  • Introduce SafePO, a single-file style library housing 16 SafeRL algorithms with decoupled implementations for easy extension and comparison.

Experimental results

Research questions

  • RQ1How can a unified SafeRL benchmark suite (Safety-Gymnasium) support comprehensive evaluation of safety performance across single-agent and multi-agent tasks?
  • RQ2What is the comparative performance of different SafeRL algorithms (from SafePO) under varied safety constraints and task complexities?
  • RQ3How do vision-based inputs and high-dimensional environments affect SafeRL algorithm safety and efficiency?
  • RQ4What guidelines and metadata are needed to enable reproducibility and community validation in SafeRL benchmarking?

Key findings

  • Safety-Gymnasium enables evaluation across 54 environments spanning single-agent and multi-agent settings with varying constraint complexities.
  • SafeRL algorithms tend to maximize reward while respecting safety constraints, with notable trade-offs between reward and cost under different methods.
  • Lagrangian-based methods can exhibit oscillations, while projection-based methods may achieve different cost/reward balances; PID-Lagrangian variants can improve safety with maintained performance.
  • Visual and Issac-Gym-based environments significantly accelerate data collection and enable more realistic, scalable SafeRL experimentation.
  • SafePO provides strong extensibility and detailed logging/visualization, supporting robust comparisons with existing SafeRL benchmarks.

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.