Shielding improves safety in reinforcement learning with guarantees
RECREG: Recovery-based Shielding for Regular Safety Properties in Reinforcement Learning
Machine LearningArtificial Intelligence
Summary
Many computer programs that learn from experience, called reinforcement learning agents, need to follow rules to stay safe. This paper introduces RecReg, a new way to keep these agents safe even when rules depend on past actions, not just the current situation. The authors provide math proofs that their method works and show tests where RecReg learns quickly and safely. They also explain how their approach might work with more advanced learning methods.
What this means in practice
- •For robotics engineers: Ensure robots learn tasks safely by enforcing complex safety rules during training with guaranteed recovery methods.
- •For autonomous vehicle developers: Enable self-driving cars to comply with safety constraints that depend on event history, improving safe decision-making in complex scenarios.
Authors
Alexander W. Goodall, Francesco Belardinelli
Abstract
In many real-world scenarios we need to consider formal requirements, such as safety and constraint compliance, to deploy Reinforcement Learning (RL) agents. In this paper we introduce RecReg, a safe RL framework capable of enforcing non-Markovian regular safety properties via recovery-based shielding. RecReg is a unified approach that supports different levels of a priori knowledge and safety guarantees. The paper primarily focuses on building the theoretical foundations for RecReg in the tabular setting, providing rigorous safety and convergence guarantees that are not present in related work. We provide an extensive set of empirical results using the MASA-Safe-RL library, and we outline an extension of RecReg to deep RL domains using SOTA model-based RL. Our empirical results demonstrate that RecReg achieves efficient learning and matches the theory in this paper.