Safe Reinforcement Learning via Recovery-based Shielding with Gaussian Process Dynamics Models
Alexander W. Goodall, Francesco Belardinelli
TL;DR
The paper tackles the challenge of provable safety in reinforcement learning for unknown, non-linear, continuous dynamical systems by introducing recovery-based shielding that combines a learned policy with a pre-computed backup controller. Safety is enforced through analytic GP-based uncertainty sets that predict potential constraint violations, enabling on-the-fly recovery to a verified invariant region without relying on sampling. A formal $\\epsilon$-safe guarantee is established under standard regularity assumptions, with safety maintained throughout learning and deployment once GP calibration is achieved. The approach achieves strong safety (zero violations) while delivering competitive rewards across a suite of continuous control tasks, and demonstrates scalability to higher-dimensional systems like Hopper-v5. Overall, the work offers a principled, data-efficient framework for safe RL that operates without requiring full knowledge of the environment dynamics or exhaustive sampling for safety verification.
Abstract
Reinforcement learning (RL) is a powerful framework for optimal decision-making and control but often lacks provable guarantees for safety-critical applications. In this paper, we introduce a novel recovery-based shielding framework that enables safe RL with a provable safety lower bound for unknown and non-linear continuous dynamical systems. The proposed approach integrates a backup policy (shield) with the RL agent, leveraging Gaussian process (GP) based uncertainty quantification to predict potential violations of safety constraints, dynamically recovering to safe trajectories only when necessary. Experience gathered by the 'shielded' agent is used to construct the GP models, with policy optimization via internal model-based sampling - enabling unrestricted exploration and sample efficient learning, without compromising safety. Empirically our approach demonstrates strong performance and strict safety-compliance on a suite of continuous control environments.
