Safety-Gymnasium: A Unified Safe Reinforcement Learning Benchmark

Jiaming Ji, Borong Zhang, Jiayi Zhou, Xuehai Pan, Weidong Huang +5 more
2/12/2026

No official code found. Best implementation: PKU-Alignment/safety-gymnasium (577 stars, Apache-2.0, last commit 2025-12-04).

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.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

NeurIPS 2023: Safety-Gymnasium: A Unified Safe Reinforcement Learning Benchmark

57781HTML, PythonJan 27, 202310 months agoApache-2.0
constraint-rlconstraint-satisfaction-problemreinforcement-learningsafe-policy-optimizationsafe-reinforcement-learning+3 more

Similar Papers

Cite this paper

@article{ji2026safetygymnasium,
  title  = {Safety-Gymnasium: A Unified Safe Reinforcement Learning Benchmark},
  author = {Jiaming Ji and Borong Zhang and Jiayi Zhou and Xuehai Pan and Weidong Huang and Ruiyang Sun and Yiran Geng and Yifan Zhong and Juntao Dai and Yaodong Yang},
  year   = {2026},
  eprint = {2310.12567},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.12567},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.12567.svg)](https://codeofpaper.com/paper/2310.12567)

Discussion