Automata Learning meets Shielding
Not on the map. Why?
Abstract (arXiv)
Safety is still one of the major research challenges in reinforcement learning (RL). In this paper, we address the problem of how to avoid safety violations of RL agents during exploration in probabilistic and partially unknown environments. Our approach combines automata learning for Markov Decision Processes (MDPs) and shield synthesis in an iterative approach. Initially, the MDP representing the environment is unknown. The agent starts exploring the environment and collects traces. From the collected traces, we passively learn MDPs that abstractly represent the safety-relevant aspects of the environment. Given a learned MDP and a safety specification, we construct a shield. For each state-action pair within a learned MDP, the shield computes exact probabilities on how likely it is that executing the action results in violating the specification from the current state within the next k steps. After the shield is constructed, the shield is used during runtime and blocks any actions that induce a too large risk from the agent. The shielded agent continues to explore the environment and collects new data on the environment. Iteratively, we use the collected data to learn new MDPs with higher accuracy, resulting in turn in shields able to prevent more safety violations. We implemented our approach and present a detailed case study of a Q-learning agent exploring slippery Gridworlds. In our experiments, we show that as the agent explores more and more of the environment during training, the improved learned models lead to shields that are able to prevent many safety violations.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 15 of its 46 references that are in the map. First posted on arXiv 4 Dec 2022.
Builds on
15 of 46 references.
References · 15
- 2013Playing Atari with Deep Reinforcement Learningcited by 3,211
- 2016OpenAI Gymcited by 1,684
- 2020Deep Reinforcement Learning for Autonomous Driving: A Surveycited by 698
- 2017Safe Reinforcement Learning via Shieldingcited by 427
- 2019Joint Inference of Reward Machines and Policies for Reinforcement Learningcited by 56
- 2014Probably Approximately Correct MDP Learning and Control With Temporal Logic Constraintscited by 53
- 2019Reinforcement Learning with Non-Markovian Rewardscited by 45
- 2015Shield Synthesis: Runtime Enforcement for Reactive Systemscited by 41
- 2019Induction of Subgoal Automata for Reinforcement Learningcited by 17
- 2020Adaptive Shielding under Uncertaintycited by 17
- 2021Shielding Atari Games with Bounded Presciencecited by 14
- 2021TEMPEST -- Synthesis Tool for Reactive Systems and Shields in Probabilistic Environmentscited by 13
3 more
Built on by
Citing papers per year: 2023: 2; 2024: 1; 2025: 2; 2026: 4.
9 papers.
- 2024Safe Reinforcement Learning in Black-Box Environments via Adaptive Shieldingcited by 6
- 2023Safety Shielding under Delayed Observationcited by 3
- 2025Extending AALpy with Passive Learning: A Generalized State-Merging Approachcited by 3
- 2026Robust Probabilistic Shielding for Safe Offline Reinforcement Learningcited by 2
- 2026Shields to Guarantee Probabilistic Safety in MDPscited by 2
- 2025Predictive Safety Shield for Dyna-Q Reinforcement Learningcited by 1
- 2023Constrained Exploration in Reinforcement Learning with Optimality Preservationcited by 0
- 2026Explainably Safe Reinforcement Learningcited by 0
- 2026Adaptive Probabilistic Shielding by Learning MDPs for Safe Reinforcement Learningcited by 0
- 2026Adaptive Probabilistic Shielding by Learning MDPs for Safe Reinforcement Learning20 Aug 2026
- 2026Explainably Safe Reinforcement Learning3 Jun 2026
- 2026Shields to Guarantee Probabilistic Safety in MDPs11 May 2026
- 2026Robust Probabilistic Shielding for Safe Offline Reinforcement Learning11 May 2026
- 2025Predictive Safety Shield for Dyna-Q Reinforcement Learning26 Nov 2025
- 2025Extending AALpy with Passive Learning: A Generalized State-Merging Approach31 May 2025
- 2024Safe Reinforcement Learning in Black-Box Environments via Adaptive Shielding28 May 2024
- 2023Safety Shielding under Delayed Observation5 Jul 2023
- 2023Constrained Exploration in Reinforcement Learning with Optimality Preservation5 Apr 2023