cs.LGNov 23, 2026

SGPC: Safety-Guiding Policy Constraint for Stable Off-Policy Safe Reinforcement Learning

Authors: Yifan Liu, Nan Zhang, Yang Cong

Organizations: School of Automation Science and Engineering, South China University of Technology, Guangzhou, 510641, China · China Southern Power Dispatching & Control Center, China Southern Power Grid Company Limited, Guangzhou, 510641, China

Abstract

Off-policy safe reinforcement learning (RL) faces a challenging trade-off between task optimality and constraint feasibility. In primal-dual methods, the coupled optimization of cumulative reward and constraint penalties through adaptive Lagrange multipliers may induce oscillatory policy updates near the safety boundary and amplify the effect of unreliable reward estimates outside the safe set. To address these issues, we formulate a new constrained optimization problem (COP) for safe RL by introducing a Safety-Guiding Policy (SGP) and a corresponding Safety-Guiding Policy Constraint (SGPC). The proposed COP augments the standard COP in safe RL with a conditional safety-guidance constraint. During actor updates, the current actor is evaluated using the learned cost critic. If it is predicted to be outside the safe set, SGP provides a nearby lower-cost training reference, and SGPC guides actor optimization toward this reference. Once the policy enters the safe set, the added constraint becomes inactive, and the formulation reduces to the original COP. This formulation leads to a plug-in actor-training constraint that can be integrated into off-policy safe RL algorithms. By applying primal-dual optimization to the auxiliary COP, we finally derive an SGPC-based off-policy safe RL algorithm and implement it in two representative off-policy algorithms, yielding SAC-SGPC and TD3-SGPC. Experiments on multiple Safety-Gymnasium benchmarks demonstrate that SGPC achieves a better optimality-safety trade-off by substantially reducing constraint violations and cost oscillations while maintaining competitive or better task returns.

Figures & tables

Appendix figures & tables2 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. CSPO: Constraint-Sensitive Policy Optimization for Safe Reinforcement Learning

    Jun 12, 2026Ayoub Belouadah, Sylvain Kubler, Yves Le TraonPrimal-Dual RLConstrained RL

  2. Boundary-Seeking Policy Gradient for Safe Reinforcement Learning

    Aug 10, 2026Chenhua Fan, Jiahui Zhu, Yuhang Zhang +1Markov Decision ProcessesConstrained RL

  3. SB-TRPO: Towards Safe Reinforcement Learning with Hard Constraints

    Dec 29, 2025Dominik Wagner, Ankit Kanwar, Luke OngSafety-Critical ControlPolicy Optimization