Safe Reinforcement Learning via Shielding
Abstract
Reinforcement learning algorithms discover policies that maximize reward, but do not necessarily guarantee safety during learning or execution phases. We introduce a new approach to learn optimal policies while enforcing properties expressed in temporal logic. To this end, given the temporal logic specification that is to be obeyed by the learning system, we propose to synthesize a reactive system called a shield. The shield is introduced in the traditional learning process in two alternative ways, depending on the location at which the shield is implemented. In the first one, the shield acts each time the learning agent is about to make a decision and provides a list of safe actions. In the second way, the shield is introduced after the learning agent. The shield monitors the actions from the learner and corrects them only if the chosen action causes a violation of the specification. We discuss which requirements a shield must meet to preserve the convergence guarantees of the learner. Finally, we demonstrate the versatility of our approach on several challenging reinforcement learning scenarios.
BibTeX
@inproceedings{alshiekh2018safe,
author = {Mohammed Alshiekh and Roderick Bloem and Rüdiger Ehlers and Bettina Könighofer and Scott Niekum and Ufuk Topcu},
title = {{Safe Reinforcement Learning via Shielding}},
booktitle = {AAAI Conference on Artificial Intelligence},
year = {2018},
doi = {10.1609/aaai.v32i1.11797},
}Ask Althea to put this paper to the test.
| An Inductive Synthesis Framework for Verifiable Reinforcement Learning | arXiv · 2019 |
| Shields for Safe Reinforcement Learning | Communications of the ACM · 2025 |
| Easy-to-Use Shielding for Reinforcement Learning | arXiv · 2026 |
| Safe Multi-Agent Reinforcement Learning via Shielding | arXiv · 2021 |
| Probabilistic Shielding for Safe Reinforcement Learning | arXiv · 2025 |
| Composing Reinforcement Learning Policies, with Formal Guarantees | arXiv · 2024 |