Constraint-Aware Reinforcement Learning via Adaptive Action Scaling
Murad Dawood, Usama Ahmed Siddiquie, Shahram Khorshidi, Maren Bennewitz
TL;DR
This work tackles safe RL under a hard-safety regime by decoupling reward optimization from safety enforcement via a cost-aware regulator that scales actions rather than overriding them. The regulator uses online cost estimates from twin critics to produce a per-dimension scaling $\tilde{a}_t = \rho_\theta(s_t,a_t,\hat{c}_t) \odot a_t$, preserving exploration while reducing violations. It integrates with off-policy actors like SAC and TD3 and introduces a regulator loss $\mathcal{L}_{reg}$ to balance cost reduction with action retention, ensuring stable learning. Empirically, the method achieves state-of-the-art return-to-cost ratios on Safety Gym locomotion tasks and safety-critical systems, reducing constraint violations by up to $\sim126\times$ and demonstrating robustness to noise with promising sim-to-real transfer potential.
Abstract
Safe reinforcement learning (RL) seeks to mitigate unsafe behaviors that arise from exploration during training by reducing constraint violations while maintaining task performance. Existing approaches typically rely on a single policy to jointly optimize reward and safety, which can cause instability due to conflicting objectives, or they use external safety filters that override actions and require prior system knowledge. In this paper, we propose a modular cost-aware regulator that scales the agent's actions based on predicted constraint violations, preserving exploration through smooth action modulation rather than overriding the policy. The regulator is trained to minimize constraint violations while avoiding degenerate suppression of actions. Our approach integrates seamlessly with off-policy RL methods such as SAC and TD3, and achieves state-of-the-art return-to-cost ratios on Safety Gym locomotion tasks with sparse costs, reducing constraint violations by up to 126 times while increasing returns by over an order of magnitude compared to prior methods.
