Safety-Biased Policy Optimisation: Towards Hard-Constrained Reinforcement Learning via Trust Regions
Ankit Kanwar, Dominik Wagner, Luke Ong
TL;DR
SB-TRPO addresses hard safety constraints in reinforcement learning by introducing a safety-biased trust-region update that convexly combines cost and reward gradients under a KL constraint. The framework guarantees monotonic cost reduction and, when gradient directions align, rewards improve, with a beta parameter controlling the aggressiveness of safety progress. The method is analyzed via second-order approximations and a cost-biased convex combination, and validated on Safety Gymnasium where it achieves the best balance between safety and task completion relative to strong baselines, while reducing computational cost by omitting critics. This work offers a practically effective, theoretically motivated approach to hard-constrained RL, enabling steadier learning and safer policies in safety-critical applications.
Abstract
Reinforcement learning (RL) in safety-critical domains requires agents to maximise rewards while strictly adhering to safety constraints. Existing approaches, such as Lagrangian and projection-based methods, often either fail to ensure near-zero safety violations or sacrifice reward performance in the face of hard constraints. We propose Safety-Biased Trust Region Policy Optimisation (SB-TRPO), a new trust-region algorithm for hard-constrained RL. SB-TRPO adaptively biases policy updates towards constraint satisfaction while still seeking reward improvement. Concretely, it performs trust-region updates using a convex combination of the natural policy gradients of cost and reward, ensuring a fixed fraction of optimal cost reduction at each step. We provide a theoretical guarantee of local progress towards safety, with reward improvement when gradients are suitably aligned. Experiments on standard and challenging Safety Gymnasium tasks show that SB-TRPO consistently achieves the best balance of safety and meaningful task completion compared to state-of-the-art methods.
