Easy-to-Use Shielding for Reinforcement Learning
Not on the map. Why?
Abstract (arXiv)
Safe exploration is a key challenge in Reinforcement Learning (RL) that aims to prevent agents from making harmful decisions while exploring their environment. Safe exploration is a key challenge in Reinforcement Learning (RL) that aims to prevent agents from making harmful decisions while exploring their environment. Shielding is one such technique that assumes domain knowledge in the form of an environment model to decide upon action safety. Although well-established, shielding has seen limited adoption in RL due to the lack of accessible end-to-end infrastructure connecting formal shield synthesis with standard RL frameworks. Applying shielding typically requires expertise in formal methods and substantial engineering effort, keeping it outside the typical RL workflow. We address this by extending our shield synthesis tool Tempest into a practical backend for safe RL. Our core contribution is tempestpy, a Python library that integrates Tempest-based shield synthesis directly into the Gymnasium API, allowing shields to be synthesized and deployed within existing RL pipelines. This lowers the barrier to entry for shielding and turns formal safe-exploration methods into a usable component for RL practitioners. We also extend Tempest's algorithmic support to compute sound shields for stochastic multiplayer games, preserving formal safety guarantees. We demonstrate the resulting workflow end to end and evaluate shielded and unshielded RL across multiple environments. To facilitate modeling, we provide symbolic models for MiniGrid and introduce MiniGridSafe, a collection of playground environments designed to make shielding easily accessible and experimentally transparent. MiniGridSafe extends MiniGrid with safety-oriented scenarios featuring probabilistic transitions and additional agents, enabling the study of challenging safety aspects in a simple and intuitive setting.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 14 of its 21 references that are in the map. First posted on arXiv 2 Jun 2026.
Builds on
14 of 21 references.
References · 14
- 2017Deep Reinforcement Learning: An Overviewcited by 327
- 2020The Probabilistic Model Checker Stormcited by 64
- 2022Safe Reinforcement Learning via Shielding under Partial Observabilitycited by 49
- 2015Shield Synthesis: Runtime Enforcement for Reactive Systemscited by 41
- 2022COOL-MC: A Comprehensive Tool for Reinforcement Learning and Model Checkingcited by 19
- 2021TEMPEST -- Synthesis Tool for Reactive Systems and Shields in Probabilistic Environmentscited by 13
- 2024Verification-Guided Shielding for Deep Reinforcement Learningcited by 13
- 2024Shield Synthesis for LTL Modulo Theoriescited by 12
- 2024Dynamic Model Predictive Shielding for Provably Safe Reinforcement Learningcited by 11
- 2018Value Iteration for Simple Stochastic Games: Stopping Criterion and Learning Algorithmcited by 8
- 2023Shielded Reinforcement Learning for Hybrid Systemscited by 8
- 2024Compositional Shielding and Reinforcement Learning for Multi-Agent Systemscited by 7
Built on by
Citing papers per year: 2026: 1.
1 paper.