Abstract
Safe Reinforcement Learning (Safe RL) often struggles with a fundamental trade-off: strict adherence to safety constraints can lead to overly cautious behavior and sub-optimal policies. This paper introduces ESB-CPO (Constrained Policy Optimization with Extra Safety Budget), an algorithm designed to overcome inefficient exploration by temporarily relaxing safety constraints during the early stages of training. By utilizing a Lyapunov-based Advantage Estimation and an adaptive "extra safety budget," ESB-CPO allows agents to discover more efficient paths while ensuring final convergence to required safety limits.
Introduction: The Cautious Agent Problem
In many real-world robotic applications, agents must maximize rewards while strictly adhering to safety constraints, such as avoiding obstacles. Traditional Safe RL methods enforce these constraints throughout the entire learning process. However, this "whole consistency" approach often traps agents in safe but mediocre strategies. If an agent is too restricted early on, it may never explore the state space enough to find the global optimum.
As shown in Figure 1, a strictly constrained agent might settle for a sub-optimal trajectory to avoid any risk, whereas a more exploratory approach could lead to the true optimal path.
Methodology: ESB-CPO
The proposed ESB-CPO framework introduces two primary innovations to the standard Constrained Policy Optimization (CPO) approach.
1. Lyapunov-based Advantage Estimation (LAE)
The authors propose a novel metric that decomposes transitions into a stability value and a safety value. This distinction allows the algorithm to differentiate between minor instabilities and genuine safety violations, providing a more nuanced signal for policy updates.
2. Extra Safety Budget (ESB)
The core of the algorithm is the Extra Safety Budget. Instead of a fixed cost limit $d_i$, the agent is granted an additional budget that decays over time. This allows for higher exploration (and potential constraint violations) early in training, which is gradually phased out to ensure the final policy is safe.
As illustrated in Figure 3, the total safety budget starts high and converges toward the target constraint $d_i$ as training progresses through epochs. This creates an automated curriculum where the problem transitions from unconstrained exploration to strict safety compliance.
Experimental Results
The researchers evaluated ESB-CPO on several benchmarks, including Safety-Gym (Doggo-Goal, Car-Push) and Bullet-Safety-Gym (Ball-Reach, Drone-Circle).
Key findings include:
- Higher Rewards: In the Drone-Circle task, ESB-CPO achieved significantly higher rewards than standard CPO and other baselines while eventually converging to the same safety cost limit.
- Exploration Efficiency: In the Doggo-Goal task, where safety limits were set loosely, ESB-CPO was the only constrained algorithm that matched the performance of TRPO (an unconstrained, "unsafe" algorithm), proving it doesn't sacrifice optimality for safety.
- Convergence: Quantitative plots show that while ESB-CPO violates constraints more than others in the first 100–200 epochs, it consistently "returns" to the safe region and meets the cost limits by the end of training.
Conclusion and Future Work
ESB-CPO successfully bridges the gap between exploration and safety by treating safety as a dynamic constraint rather than a static one. While highly effective in simulation, future research is needed to adapt this "loose exploration" phase for physical hardware where early failures are costly. Additionally, extending this framework to off-policy and model-based reinforcement learning could further enhance sample efficiency.
Summary updated