Safe Reinforcement Learning using Action Projection: Safeguard the Policy or the Environment?
On the map: Deep reinforcement learning methods → Safe and constrained RL
Abstract (arXiv)
Projection-based safety filters, which modify unsafe actions by mapping them to the closest safe alternative, are widely used to enforce safety constraints in reinforcement learning (RL). Two integration strategies are commonly considered: Safe environment RL (SE-RL), where the safeguard is treated as part of the environment, and safe policy RL (SP-RL), where it is embedded within the policy through differentiable optimization layers. Despite their practical relevance in safety-critical settings, a formal understanding of their differences is lacking. In this work, we present a theoretical comparison of SE-RL and SP-RL. We identify a key distinction in how each approach is affected by action aliasing, a phenomenon in which multiple unsafe actions are projected to the same safe action, causing information loss in the policy gradients. In SE-RL, this effect is implicitly approximated by the critic, while in SP-RL, it manifests directly as rank-deficient Jacobians during backpropagation through the safeguard. Our contributions are threefold: (i) a unified formalization of SE-RL and SP-RL in the context of actor-critic algorithms, (ii) a theoretical analysis of their respective policy gradient estimates, highlighting the role of action aliasing, and (iii) a comparative study of mitigation strategies, including a novel penalty-based improvement for SP-RL that aligns with established SE-RL practices. Empirical results support our theoretical predictions, showing that action aliasing is more detrimental for SP-RL than for SE-RL. However, with appropriate improvement strategies, SP-RL can match or outperform improved SE-RL across a range of environments. These findings provide actionable insights for choosing and refining projection-based safe RL methods based on task characteristics.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Safe and constrained RL, one of 15 directions in Deep reinforcement learning methods. Builds on 29 of its 42 references that are in the map. First posted on arXiv 16 Sep 2025.
Builds on
29 of 42 references.
Closest ancestors · 2
Same direction, newest first
- 2025Leveraging Analytic Gradients in Provably Safe Reinforcement Learning2 Jun
- 2024Safety Filtering While Training: Improving the Performance and Sample Efficiency of Reinforcement Learning Agents15 Oct
Other references · 27
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2015Continuous control with deep reinforcement learningcited by 3,407
- 2021Convex optimizationcited by 2,515
- 2018Addressing Function Approximation Error in Actor-Critic Methodscited by 2,417
- 2016Asynchronous Methods for Deep Reinforcement Learningcited by 2,258
- 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 2,026
- 2019Differentiable Convex Optimization Layerscited by 465
- 2018Safe Exploration in Continuous Action Spacescited by 247
- 2018A predictive safety filter for learning-based control of constrained nonlinear dynamical systemscited by 118
- 2022Do Differentiable Simulators Give Better Policy Gradients?cited by 89
- 2017OptLayer - Practical Constrained Optimization for Deep Reinforcement Learning in the Real Worldcited by 70
- 2020Safe Reinforcement Learning via Projection on a Safe Set: How to Achieve Optimality?cited by 34
15 more
- 2020Verifiably Safe Exploration for End-to-End Reinforcement Learningcited by 34
- 2022Provably Safe Reinforcement Learning: Conceptual Analysis, Survey, and Benchmarkingcited by 34
- 2021Enforcing Policy Feasibility Constraints through Differentiable Projection for Energy Optimizationcited by 31
- 2018Resource Constrained Deep Reinforcement Learningcited by 24
- 2025FSNet: Feasibility-Seeking Neural Network for Constrained Optimization with Guaranteescited by 21
- 2021Computationally Efficient Safe Reinforcement Learning for Power Systemscited by 20
- 2024Excluding the Irrelevant: Focusing Reinforcement Learning through Continuous Action Maskingcited by 19
- 2025Pinet: Optimizing hard-constrained neural networks with orthogonal projection layerscited by 19
- 2021Escaping from Zero Gradient: Revisiting Action-Constrained Reinforcement Learning via Frank-Wolfe Policy Optimizationcited by 18
- 2023Benchmarking Actor-Critic Deep Reinforcement Learning Algorithms for Robotics Control with Action Constraintscited by 11
- 2023Safe Multi-Agent Reinforcement Learning for Behavior-Based Cooperative Navigationcited by 6
- 2025Differentiable Nonlinear Model Predictive Controlcited by 6
- 2022Safe Reinforcement Learning using Data-Driven Predictive Controlcited by 5
- 2020Compositional Synthesis via a Convex Parameterization of Assume-Guarantee Contractscited by 2
- 2023Safe Reinforcement Learning for Strategic Bidding of Virtual Power Plants in Day-Ahead Marketscited by 2
Built on by
Citing papers per year: 2025: 1; 2026: 4.
5 papers.
- 2025Provably Optimal Reinforcement Learning under Safety Filteringcited by 3
- 2026X-Safe: Embodiment-Agnostic Safeguarding for Robot Arm Manipulation Policies via Action Maskingcited by 2
- 2026Dyna-Style Safety Augmented Reinforcement Learning: Staying Safe in the Face of Uncertaintycited by 1
- 2026Safe Online Learning via Smooth Safety-Structured Policy Compositioncited by 0
- 2026Hard Constraints, Smooth Gradients: Learning Feasible Inventory Policies via Differentiable Projectioncited by 0
- 2026Hard Constraints, Smooth Gradients: Learning Feasible Inventory Policies via Differentiable Projection3 Aug 2026
- 2026Safe Online Learning via Smooth Safety-Structured Policy Composition30 Jun 2026
- 2026X-Safe: Embodiment-Agnostic Safeguarding for Robot Arm Manipulation Policies via Action Masking21 Jun 2026
- 2026Dyna-Style Safety Augmented Reinforcement Learning: Staying Safe in the Face of Uncertainty28 Apr 2026
- 2025Provably Optimal Reinforcement Learning under Safety Filtering20 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2025CBF-RL: Safety Filtering Reinforcement Learning in Training with Control Barrier Functions
- 2024A Survey of Constraint Formulations in Safe Reinforcement Learning
- 2025Safety Modulation: Enhancing Safety in Reinforcement Learning through Cost-Modulated Rewards
- 2025Safety Representations for Safer Policy Learning
- 2024Safety Optimized Reinforcement Learning via Multi-Objective Policy Optimization
- 2024Safe Reinforcement Learning with Learned Non-Markovian Safety Constraints
- 2026SafeAdapt: Provably Safe Policy Updates in Deep Reinforcement Learning
- 2026Evaluation Metrics for Safe Reinforcement Learning