Safety Representations for Safer Policy Learning
Kaustubh Mani, Vincent Mai, Charlie Gauthier, Annie Chen, Samer Nashed, Liam Paull
TL;DR
This work tackles unsafe, overly conservative exploration in reinforcement learning by proposing Safety Representations for Policy Learning (SRPL). SRPL learns a state-conditioned safety representation, modeled as a distribution over steps to unsafe states via a steps-to-cost (S2C) network, and augments the agent's state with this information to guide safer exploration. The safety distribution is learned from the agent's diverse experiences and can transfer across tasks, acting as an effective prior for new policies. Empirical results across manipulation, navigation, and driving tasks show SRPL improves both safety during learning and task performance, and zero-shot or finetuned transfers demonstrate its practicality for safety-critical domains.
Abstract
Reinforcement learning algorithms typically necessitate extensive exploration of the state space to find optimal policies. However, in safety-critical applications, the risks associated with such exploration can lead to catastrophic consequences. Existing safe exploration methods attempt to mitigate this by imposing constraints, which often result in overly conservative behaviours and inefficient learning. Heavy penalties for early constraint violations can trap agents in local optima, deterring exploration of risky yet high-reward regions of the state space. To address this, we introduce a method that explicitly learns state-conditioned safety representations. By augmenting the state features with these safety representations, our approach naturally encourages safer exploration without being excessively cautious, resulting in more efficient and safer policy learning in safety-critical scenarios. Empirical evaluations across diverse environments show that our method significantly improves task performance while reducing constraint violations during training, underscoring its effectiveness in balancing exploration with safety.
