Saved in:
Bibliographic Details
Main Authors: Markgraf, Hannah, Sawant, Shambhuraj, Krasowski, Hanna, Schäfer, Lukas, Gros, Sebastien, Althoff, Matthias
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2509.12833
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913037692174336
author Markgraf, Hannah
Sawant, Shambhuraj
Krasowski, Hanna
Schäfer, Lukas
Gros, Sebastien
Althoff, Matthias
author_facet Markgraf, Hannah
Sawant, Shambhuraj
Krasowski, Hanna
Schäfer, Lukas
Gros, Sebastien
Althoff, Matthias
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2509_12833
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Safe Reinforcement Learning using Action Projection: Safeguard the Policy or the Environment?
Markgraf, Hannah
Sawant, Shambhuraj
Krasowski, Hanna
Schäfer, Lukas
Gros, Sebastien
Althoff, Matthias
Machine Learning
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.
title Safe Reinforcement Learning using Action Projection: Safeguard the Policy or the Environment?
topic Machine Learning
url https://arxiv.org/abs/2509.12833