Abstract
Reinforcement Learning (RL) agents often struggle with safety during exploration in physical environments with unknown dynamics. This paper presents the Uncertainty-Aware Implicit Safe Set Algorithm (UAISSA), which utilizes Gaussian Processes (GPs) to learn environment dynamics from offline data and synthesizes a safety index to ensure forward invariance. By co-designing the dataset and safety rules, UAISSA guarantees the existence of safe control actions. Experimental results on a 2DOF robot arm and Safety Gym benchmarks demonstrate near-zero safety violations during training while maintaining high reward performance.
Introduction
While Reinforcement Learning has achieved significant success in simulated environments, deploying it on physical robots remains challenging due to the inherent risks of trial-and-error exploration. Traditional safe control frameworks often act as a filter to override unsafe RL actions but typically require accurate, pre-existing mathematical models of system dynamics. Learning these models online often leads to safety violations during the initial learning phase. This work addresses the challenge of guaranteeing safety—specifically forward invariance within a safe set—for RL agents when true system dynamics are unknown, leveraging offline data and Gaussian Processes.
Methodology
The proposed Uncertainty-Aware Implicit Safe Set Algorithm (UAISSA) learns a statistical dynamics model offline using a Gaussian Process (GP), which provides reliable estimates of uncertainty. The core of the approach is an offline synthesis stage that co-designs the dataset and safety rules.
The synthesis involves three key steps:
- State Space Discretization: The continuous state space is discretized into a finite grid.
- Targeted Dataset Construction: For each grid point, control actions are sampled that dissipate "unsafe energy," ensuring the GP learns dynamics in safety-critical regions.
- Safety Index Synthesis: A safety index (where values $\le 0$ are safe) is designed. Using GP uncertainty bounds and Lipschitz continuity, parameters are tuned to ensure a safe control action always exists.
During online training, UAISSA monitors the RL policy and uses a multi-directional line search to project unsafe actions to the nearest safe alternative based on the GP's probabilistic upper bounds.
Experimental Evaluation
The framework was evaluated on two primary setups: a custom 2DOF robot arm simulation and the Safety Gym benchmark suite.
The 2DOF arm task involves moving while avoiding a wall to verify theoretical bounds and the existence of safe controls. For high-dimensional Safety Gym tasks (Goal-Hazard and Push-Hazard), the authors utilized Deep GPs to maintain scalability while managing complex environment dynamics.
Results and Discussion
UAISSA demonstrated that data and safety must be co-designed; a dataset constructed to increase distance from hazards ensures the GP is well-calibrated for safety filtering. The algorithm successfully extended safety guarantees from a discrete grid to continuous space via Lipschitz continuity.
In Safety Gym, PPO-UAISSA achieved near-zero safety violations, significantly outperforming standard safe RL algorithms like CPO and PPO-Lagrangian, which failed to reach zero violations even with strict cost limits. UAISSA maintained reward performance comparable to standard PPO while reducing violations to approximately 1% of the baseline rate.
Limitations include the "curse of dimensionality" during state space discretization and the relaxation of strict theoretical bounds when using Deep GPs for complex environments. Future work aims to optimize the offline synthesis stage through parallelization to better handle high-dimensional systems.
Summary updated