English

Predictive Safety Shield for Dyna-Q Reinforcement Learning

Machine Learning 2025-11-27 v1 Artificial Intelligence Robotics Systems and Control Systems and Control

Abstract

Obtaining safety guarantees for reinforcement learning is a major challenge to achieve applicability for real-world tasks. Safety shields extend standard reinforcement learning and achieve hard safety guarantees. However, existing safety shields commonly use random sampling of safe actions or a fixed fallback controller, therefore disregarding future performance implications of different safe actions. In this work, we propose a predictive safety shield for model-based reinforcement learning agents in discrete space. Our safety shield updates the Q-function locally based on safe predictions, which originate from a safe simulation of the environment model. This shielding approach improves performance while maintaining hard safety guarantees. Our experiments on gridworld environments demonstrate that even short prediction horizons can be sufficient to identify the optimal path. We observe that our approach is robust to distribution shifts, e.g., between simulation and reality, without requiring additional training.

Keywords

Cite

@article{arxiv.2511.21531,
  title  = {Predictive Safety Shield for Dyna-Q Reinforcement Learning},
  author = {Jin Pin and Krasowski Hanna and Vanneaux Elena},
  journal= {arXiv preprint arXiv:2511.21531},
  year   = {2025}
}
R2 v1 2026-07-01T07:56:29.725Z