1. Introduction
Deep Reinforcement Learning (RL) has shown significant success in autonomous navigation [
1], but its real-world application remains challenged by the safe exploration problem—learning efficiently while avoiding hazardous behaviors during training [
2,
3].
The Constrained Markov Decision Process (CMDP) is a standard framework for Safe RL, extending Markov decision processes with safety constraints [
4]. While Lagrangian methods transform CMDPs into unconstrained problems via Lagrange multipliers [
5], these approaches fundamentally limit exploration. Agents become overly conservative, avoiding potentially rewarding behaviors that might involve temporary constraint violations (
Figure 1), creating a fundamental exploration–safety trade-off [
6].
The problem intensifies in long-horizon navigation tasks that require extended sequences of actions, such as maneuvering around obstacles or navigating tight warehouse spaces. Solving such tasks requires extensive exploration, which inevitably leads to a high rate of safety constraint violations. Faced with this dilemma, conventional Safe RL agents often learn overly conservative behaviors, preferring to remain stationary rather than attempt to solve the task [
7,
8]. Thus, current Safe RL methods face two fundamental challenges: (1) the inability to solve long-horizon tasks due to insufficient exploration capabilities, and (2) the difficulty of adhering to safety constraints during the extensive exploration required for such tasks [
9].
Few existing works attempt to combine Safe RL with Hierarchical Reinforcement Learning (HRL), a standard paradigm for solving long-horizon tasks due to its ability to facilitate extensive exploration through temporal abstraction. In contrast, other common techniques for tackling long horizons, such as curriculum learning or expert demonstrations, often demand significant engineering effort for reward shaping and scheduling or require additional human oversight. However, existing Safe HRL methods suffer from significant limitations:
(1) they lack generalizability as they require additional environmental knowledge such as full observability or explicit cost function information;
(2) they exhibit safety vulnerabilities at one of their hierarchical levels, either generating hazardous subgoals for the controller to pursue or employing a low-level controller unaware of safety constraints; and
(3) they introduce substantial computational overhead during inference due to complex hierarchical planning mechanisms. For instance, Lyapunov RRT [
10] combines an RRT* planner with a Lyapunov-based controller but requires full environment observability for planning, limiting its practical applicability. Moreover, its low-level controller operates solely based on robot kinematics, without incorporating any safety awareness, creating critical vulnerabilities during execution. Similarly, SafetyLayer + HiRO [
9] integrates a learnable subgoal policy with a safety filter, but it suffers from generating subgoals in potentially dangerous regions that must be pursued by the controller. This approach also requires explicit cost function information and introduces computational overhead during subgoal generation, alongside complex optimization for action replacement. Other approaches [
11,
12,
13] incorporate classical planners like A* with manually tuned safety penalties but intentionally avoid formal CMDP formulations. These methods consequently face significant reward engineering challenges and require extensive reward function tuning.
To address these gaps, we propose SG-Safe, a hierarchical CMDP method that enhances safe exploration through subgoal guidance. Unlike existing approaches, SG-Safe operates under partial observability without requiring explicit cost function knowledge. Our architecture employs dual policies during training: a subgoal policy for exploration guidance and a safe policy for constraint satisfaction. Crucially, during inference, only the safe policy is used, eliminating computational overhead while maintaining long-horizon task capability. This ensures efficient exploration during training, with safe, efficient deployment.
Our experimental results show that SG-Safe achieves a strong safety–performance trade-off among end-to-end learning-based Safe RL baselines under partial observability on the Safety Gym and POLAMP benchmarks. Additionally, on the POLAMP benchmark, SG-Safe outperforms planning-based baselines such as L-RRT and Lyapunov RRT that rely on privileged/full-state information, demonstrating strong performance in complex long-horizon corridor navigation under partial observability, while avoiding online planning overhead at deployment.
Our contribution is as follows:
We propose the integration of a subgoal policy to enhance the exploration ability of safe policies.
We show that the SG-Safe algorithm, operating under partial observability, outperforms the Lyapunov RRT algorithm (which relies on complete state information) in long-horizon tasks within the POLAMP environment [
14], while achieving 10× faster inference.
We demonstrate that SG-Safe achieves strong results among end-to-end learning-based Safe RL baselines under partial observability on the Safety Gym and POLAMP benchmarks.
2. Related Work
2.1. Safe Reinforcement Learning
Safe RL addresses the challenge of maximizing rewards while adhering to safety constraints, typically framed as a CMDP [
15,
16]. Existing approaches fall into two main categories.
Optimization-based methods incorporate safety as an additional objective within the policy optimization process. Techniques such as Lagrangian methods [
7] and constrained policy optimization [
17] train critics to estimate cumulative cost, modifying the actor’s objective to balance reward and safety. While these approaches offer good generalization and require no explicit dynamics model, they lack strict safety guarantees during action execution. Despite their generality, constrained optimization methods (CMDP/Lagrangian) can be challenged by dual optimization instability and insufficient exploration, which become particularly severe in sparse-reward, long-horizon navigation tasks.
Control-theoretic methods employ safety filters to modify potentially unsafe actions. These include safety layers [
18] that solve quadratic programming problems to find the nearest safe action, as well as control barrier functions (CBFs) [
19] that provide formal safety guarantees through Lyapunov-like constraints. While offering stronger safety assurances, these methods typically require known dynamics models or cost functions and incur computational overhead from online optimization. Shielding methods [
20,
21] represent another approach that monitors and rejects unsafe actions, although they often remain limited to discrete action spaces.
Shielding and Black-Box Safe Exploration: A complementary line of work enforces safety via
runtime intervention (shielding), where unsafe actions are filtered or corrected online. Many shielding approaches construct the shield from formal specifications such as linear temporal logic (LTL) or related logical formalisms, which typically require handcrafted rules, differentiable safety models, or privileged environment knowledge, limiting applicability in black-box settings. More recently, black-box post-shielding methods such as ADVICE [
22] learn a safety discriminator from trajectories using contrastive representation learning and apply a non-parametric action filter during execution, without requiring a dynamics model or handcrafted safety rules, at the cost of additional inference-time filtering overhead.
2.2. Hierarchical Reinforcement Learning
Hierarchical Reinforcement Learning (HRL) addresses long-horizon tasks through temporal abstraction and task decomposition [
23]. By introducing higher-level policies that set subgoals for lower-level controllers, HRL methods enhance exploration and mitigate credit assignment problems in complex environments.
Key challenges in HRL include non-stationarity from evolving lower-level policies and subgoal feasibility. Methods address these through off-policy corrections [
24], adjacency-based subgoal generation [
25], and lookahead planning [
26]. Some approaches [
9] employ a hierarchical structure exclusively during training to accelerate learning, while maintaining a flat policy during execution.
2.3. Hierarchical Safe Reinforcement Learning
The integration of hierarchical learning with safety constraints remains underexplored. Lyapunov RRT [
10] combines RRT* planning with neural Lyapunov functions to generate safe trajectories, but it requires full environmental knowledge. Another approach integrates SafetyLayer with HIRO [
9], using a differentiable cost function to generate intermediate subgoals that must be strictly achieved by the controller. This method suffers from computational overhead during inference due to per-action optimization and requires exact subgoal attainment.
In contrast, our approach differs in several key respects: (1) we operate under partial observability without requiring full state information; (2) our safety constraints are applied only during training rather than inference, eliminating inference-time optimization/shielding overhead; and (3) our safe policy dynamically balances exploration and safety constraints without requiring exact subgoal attainment. This approach maintains safety while reducing inference-time computational demands and improving exploration in long-horizon navigation tasks. This directly contrasts with prior Safe HRL methods that typically either rely on privileged/full-state information (e.g., planning-based HRL) or enforce safety at inference time via online shielding/filtering with explicit cost models. What is novel in SG-Safe is the combination of POMDP operation with training-time safety penalties and subgoal-guided learning, while inference uses only the learned safe low-level policy (
Table 1).
Overall, prior safe decision-making methods can be grouped into (i) optimization-based CMDP methods that learn a policy with cost critics (typically without formal deployment guarantees), (ii) runtime filtering/shielding methods (CBF/safety layer/MPC) that can provide stronger guarantees but require models and incur online optimization, and (iii) planning-based approaches that rely on privileged state information. SG-Safe belongs to group (i) but addresses long-horizon exploration under partial observability by subgoal-guided training while discarding the hierarchy at inference.
3. Problem Statement
We are interested in RL algorithms for navigation problems that take safety constraints into account. To this end, we model our problem as a CMDP, where the agent is required to produce a sequence of actions that transitions it from the start state to the goal while avoiding obstacles and ensuring a specified level of safety.
Formally, a CMDP can be represented as a tuple
,
where
is the state space,
is the action space,
is the state-transition model,
is the reward function,
is the i-th constraint cost function, and
is the discounting factor. Additionally, we consider a goal-conditioned setting of the CMDP with the goal space
. During learning, at each time step, the agent, being in state
with a given goal
, takes action
and receives a reward
and costs
. The goal is to learn a policy, i.e., the mapping from the states to the distributions of actions,
. The policy should maximize the expected return
from the start state
while satisfying the discounted cost with cost limit
through the discounted costs
under policy
:
where
denotes a trajectory. The objective of the CMDP for the policy
is to find
4. Method
We propose SG-Safe, a method that combines a subgoal policy and a safe policy to solve constrained long-horizon tasks. The subgoal policy decomposes the task by proposing intermediate subgoals, improving exploration by guiding the low-level behavior toward feasible and informative states. The safe policy is trained under a Lagrangian objective to maximize task return while discouraging safety violations. As shown in
Figure 2, SG-Safe alternates between two main procedures: (i) collecting experience with the safe policy and storing trajectories in a Hindsight Experience Replay (HER) buffer [
27], and (ii) updating the safe policy using subgoals generated from replayed transitions to improve learning efficiency in sparse-reward, long-horizon settings.
4.1. Safe Policy
One of the most common approaches to addressing CMDPs is the Lagrangian method, often combined with the off-policy gradient algorithm SAC [
28]. The Lagrangian method reduces the CMDP problem to an unconstrained optimization problem using Lagrange multipliers
(safety weights). These multipliers penalize constraint violations by measuring the discrepancy between the cost limit
and the discounted expected cost
. Without loss of generality, we consider a single Lagrangian multiplier
, cost limit
, and discounted cost
throughout this work. The soft Q-functions
(reward) and
(cost) are trained to minimize the soft Bellman residuals:
where
. The policy is optimized by minimizing the following Lagrangian objective:
The Lagrange multiplier
is learned adaptively by minimizing the following loss:
This update rule decreases the safety weight when the constraint is satisfied (i.e., ) and increases when the constraint is violated, thereby placing greater emphasis on safety.
We implement both reward and cost critics with twin Q-networks, i.e., and . For the Bellman targets, we use the minimum over the corresponding target critics to mitigate overestimation, and we maintain target networks for all critics updated by Polyak averaging with coefficient ( = 0.005). The next action is sampled from the current policy , and the target value includes the standard SAC entropy term . The entropy temperature is treated as a fixed hyperparameter.
4.2. Subgoal Policy
The subgoal policy facilitates long-horizon task learning by generating intermediate subgoals between initial and goal states. Our approach builds on the RIS framework [
8], which consists of two key components: a subgoal policy and a low-level policy. The imaged subgoal policy generates feasible subgoals that guide the low-level policy, while maintaining consistency with the agent’s state distribution through KL-divergence constraints.
The subgoal policy
minimizes the maximum discounted steps to the subgoal or final goal, where
represents the standard value function estimating the expected discounted reward. Specifically,
is minimized under a KL-constraint relative to the state distribution
:
where the advantage function is defined as
, measuring the expected improvement in step reduction when updating the subgoal policy.
To train the low-level policy, a subgoal
is sampled from
for each transition. The low-level policy is then optimized to maximize the Q-value while minimizing the KL-divergence between the goal-conditioned and subgoal-conditioned action distributions:
This approach guides the low-level policy toward subgoals while maintaining alignment with the overall task objective.
4.3. Safe Policy with Subgoals
SG-Safe combines subgoal generation with constrained policy optimization to address safe exploration in long-horizon tasks. The safe policy autonomously balances task execution and exploration through adaptive subgoal guidance, dynamically adjusting its behavior based on environmental constraints and safety requirements. During training, subgoals guide exploration; during execution, only the trained safe policy is deployed.
The modified safe policy objective incorporates both task rewards and safety constraints:
where
maximizes the task reward,
penalizes safety violations, and the KL-divergence term guides the policy toward generated subgoals, where
D is the HER replay buffer.
The pseudocode of our approach is provided in Algorithm 1. Initially, experience is collected in the environment using only the safe policy (
) and stored in a HER buffer. To improve convergence in sparse reward settings, we employ a HER buffer, which relabels failed episodes with achieved goals to provide more frequent learning signals. This approach significantly enhances sample efficiency and learning stability. Additional details about the relabeling strategy are provided in the
Appendix E. Next, by sampling batches from the HER replay buffer, the reward and cost critics (
) are updated, along with both the safe policy and the subgoal policy (
). Our experimental results demonstrated that, using an ensemble of two cost critics
with min aggregation, selecting the minimum cost value between them provides the optimal balance between safety and performance. The subgoal policy generates the complete state vector as subgoal
, eliminating the need for manual goal space engineering required in other subgoal-based approaches [
24,
25,
29]. This design choice justifies our adoption of RIS as the subgoal policy framework. Furthermore, the subgoals serve as regularization for the safe policy, enabling it to adaptively balance between environment exploration and safety maintenance.
| Algorithm 1 SG-Safe |
- 1:
Initialize HER replay buffer D - 2:
Initialize - 3:
for do - 4:
Collect experience in D using in the environment - 5:
Sample batch - 6:
Sample batch of subgoal candidates - 7:
Update using soft Bellman residuals (Policy Evaluation) - 8:
Update using Equation ( 7) (Multiplier Optimization) - 9:
Update using Equation ( 8) (Subgoal Policy Improvement) - 10:
Update using Equation ( 10) (Safe Policy Improvement with Subgoals) - 11:
end for
|
The safe policy is implemented using an adapted version of SAC-Lagrangian. This approach enables the use of arbitrary cost functions without requiring their explicit specification or prior knowledge of the robot model, distinguishing it from other Safe RL methods (control barrier function, shielding, safety layer-based) that often depend on explicit dynamics modeling [
18,
19,
20,
21].
5. Experiments
In this section, we address the following research questions (RQs) through comprehensive experiments:
RQ1 (Safe Exploration Improvement): Does subgoal policy utilization in SG-Safe improve the safe exploration and task performance of the safe policy?
RQ2 (Comparison with Prior-Dependent Baselines): How does SG-Safe perform against methods requiring full environment observability or additional domain knowledge (e.g., Lyapunov-RRT), particularly in terms of task performance and inference-time efficiency?
RQ3 (Comparison with Baselines): How does SG-Safe compare against state-of-the-art Safe RL methods in terms of safety–performance trade-off?
RQ4 (Component Analysis): How do key hyperparameters (number of safety critics, algorithm parameters) affect the safety–performance trade-off in SG-Safe?
The experiments were conducted on the NVIDIA TITAN RTX. The average training time for the Safety Gym benchmark was 25 h, while for the POLAMP benchmark it was 48 h.
5.1. Environments
We evaluate our method on a series of challenging simulated navigation tasks designed to test long-horizon planning and safety constraint adherence under partial observability. Our primary benchmarks are based on the Safety Gym benchmark [
6], extended with custom maps and task configurations to increase difficulty and facilitate a clearer analysis of safety–performance trade-offs. Additionally, we introduce the POLAMP [
14] benchmark, featuring a kinematic agent navigating through narrow, cluttered corridors with precise turn constraints, presenting a more complex and realistic challenge for safe navigation algorithms.
5.1.1. Safety Gym Benchmark
Safety Gym is a standard testbed for Safe RL [
6]. We employ its core robotic agents: the Point (differential drive), Car (Ackermann steering), Doggo (quadruped), and Sweeps (holonomic) platforms. Each agent receives proprioceptive state information (joint positions, velocities) and exteroceptive lidar-like observations detecting proximity to static hazards and goal locations. The observation space is goal-conditioned, concatenating the current agent state with the target goal vector. The task was considered to be solved if the agent reached the goal state with the Euclidean error
m with no collisions. The reward is based on the Euclidean distance to the goal, and a cost (MTSC) of 1 is incurred for entering a hazardous zone.
5.1.2. POLAMP Benchmark
The POLAMP benchmark [
14] features an autonomous vehicle with a kinematic bicycle model navigating environments with static obstacles (
Figure 1). The agent is controlled through continuous linear acceleration and rotational velocity actions
. Its observation space combines a 39-beam lidar scan (360° coverage, max range 10 m) with the robot’s internal state
. We assume a deterministic simulation without actuation noise. The reward is shaped by the Euclidean distance to the goal, while a cost (MTSC) is assigned for approaching any wall closer than 0.3 m. The benchmark includes two custom-developed datasets of increasing complexity: Level 1 and Level 2. Both datasets comprise 96 unique tasks. Additional dataset details and visualizations are provided in the
Appendix B.
5.2. Evaluation Metrics
We evaluate all methods using three key metrics:
Success Rate (SR): The fraction of episodes successfully completed (higher is better).
Collision Rate (CR): The fraction of episodes terminated due to a collision with hazardous zones or obstacles (lower is better).
Mean Time Safe Cost (MTSC, t): , the average number of time steps the agent remains in proximity to hazardous zones or obstacles (lower is better).
These metrics collectively capture the trade-off between task performance and safety considerations, enabling comprehensive comparison across different approaches.
5.3. Baselines
We evaluate SG-Safe against comprehensive baselines across both environments, using a consistent set of hyperparameters. The only exception is the encoder module, which is exclusively employed for the POLAMP environment due to its higher-dimensional state space.
Safety Gym Benchmark: SAC, SAC-LAG, CPO [
30], and Lyapunov RRT (L-RRT) [
10]. All methods represent end-to-end RL policies except for L-RRT, which combines RRT* planner [
31] with Lyapunov neural policy and assumes full observability. We maintain identical learning configurations except for CPO, which uses dense rewards from [
6] instead of sparse rewards. We used a fixed entropy coefficient of
for the SAC policy and safety constraint limit
with Lagrangian initialization
.
POLAMP Benchmark: SAC, SAC-RBCF [
19], SAC-LAG, SAC-NCMP [
32], ADVICE [
22], L-RRT, and classical RRT with Dubins steering [
33]. SAC-RBCF employs quadratic programming to compute safe actions, while SAC-NCMP implements chance-constrained MDP with risk-bound
, sampling
N action noises from
per step to estimate the constraint violation probability
. L-RRT was co-trained in obstacle-free environments with full state observation
and evaluated using geometric RRT* [
10] with the following parameters:
= 18,000 iterations,
, and
. Each of the 96 tasks across difficulty levels 1–2 was executed 5 times to ensure statistical significance. ADVICE is a
post-shielding approach: it learns a contrastive latent model of transitions to separate safe vs. unsafe regions and then applies an online non-parametric filter to replace actions predicted to be unsafe.
All learning-based methods share identical training configurations across both benchmarks. Specifically, CPO—being the simplest constrained RL baseline with limited empirical robustness—is included only in the Safety Gym benchmark, where tasks are lower-dimensional and easier; in the higher-dimensional and more dynamic POLAMP tasks, CPO consistently fails to learn meaningful policies. For the POLAMP benchmark, we additionally include the shielding-based baseline SAC-RBCF, which relies on access to robot dynamics for online quadratic-program safety filtering. This allows us to compare our method against the family of safety-filtering approaches that require privileged information unavailable to standard RL agents.
5.4. RQ1: Safe Exploration Improvement
We conducted several experiments to evaluate how subgoal generation influences safe policy performance. We compared SG-Safe against three baselines: SAC, SAC-Lagrangian (SAC-LAG), and SG-NoSafe (see
Figure 3). SG-NoSafe represents the original RIS method without safety constraints, using a subgoal influence parameter
, and was included to explicitly demonstrate the impact of the safety policy. While both SAC-LAG and SG-Safe incorporate safety constraints during training, SG-Safe and SG-NoSafe additionally utilize a subgoal policy to address long-horizon tasks.
The experiments on the Safety Gym benchmark (
Figure 3) reveal that incorporating subgoal policy in SG-Safe increases success rates by up to 0.40 while maintaining safety levels comparable to those of SAC-Lagrangian. This indicates that SG-Safe successfully balances exploration through subgoals with safety constraints, thereby enhancing safe exploration. Similar trends can be observed in
Table 2 and
Table 3. Particularly, in the POLAMP environment (Dataset 2,
Table 3), SAC-LAG fails completely (success rate 0) due to getting stuck in local optima, while the subgoal mechanism in SG-Safe enables escape from these local minima, achieving the best performance among the evaluated end-to-end learning-based Safe RL baselines under partial observability (SR = 0.84) while preserving safety constraints.
5.5. RQ2: Comparison with Prior-Dependent Baselines
We compare SG-Safe with prior-dependent methods that require privileged environmental information, focusing on L-RRT, which assumes full observability and uses online RRT* planning. As shown in
Table 2, SG-Safe achieves a lower cumulative safety cost while operating under partial observability. Although L-RRT can produce collision-free
geometric paths, it often yields longer trajectories with higher exposure to constrained regions. Moreover, its Lyapunov tracking controller is not inherently obstacle-aware, which can increase risk even when the planned path is nominally safe.
We further analyze scalability by increasing the obstacle density (
–10).
Figure 4 shows that SG-Safe remains robust, producing zero collisions up to 6 obstacles and outperforming L-RRT, which fails already at 4 obstacles. The gap widens in more complex settings (8–10 obstacles), where SG-Safe maintains higher success due to embedded obstacle awareness and adaptive safety behavior, while L-RRT struggles to find feasible geometric paths through narrow safe zones.
Finally,
Table 4 highlights complementary strengths of planning baselines. RRT with Dubins steering can achieve higher success rates but generates trajectories that pass dangerously close to obstacles and supports only kinematic controls
. L-RRT additionally suffers from kinematic infeasibility in narrow corridors: small regions of attraction require tracking precision beyond the controller’s capability. In contrast, SG-Safe avoids online planning overhead, achieving ∼10× faster inference while keeping competitive success rates, and it attains better time-to-reach (TTR) by directly producing kinodynamically feasible actions
rather than suboptimal sampled trajectories.
Figure A3 illustrates typical corridor failures of L-RRT: planned waypoints can be infeasible to track, leading to collisions or halting when the safety shield blocks the next action, whereas SG-Safe makes consistent safe progress under partial observability without relying on online planning.
SG-Safe incurs additional
training-time computation because it optimizes an extra subgoal policy (Equation (
8)) alongside the standard safe actor–critic updates using replay batches; this overhead is confined to training and does not affect deployment. At
inference time, we discard the subgoal policy and execute only the learned safe low-level policy, so the per-step computation is a single-actor forward pass, comparable to SAC-LAG. In contrast, planning-based baselines additionally incur online planning and tracking costs (e.g., non-zero planning time in
Table 4), which our method avoids at deployment.
5.6. RQ3: Comparison with Baselines
5.6.1. Safety Gym Benchmark
Table 2 summarizes performance on Safety Gym. Among learning-based methods, SG-Safe achieves the lowest average collision rate (CR = 0.03) while maintaining a high success rate (SR = 0.87). SAC-LAG attains a slightly lower MTSC, but this is mainly due to overly conservative behavior (the policy often remains stationary), which reduces exposure to hazards at the cost of poor task completion. In contrast, SG-Safe preserves goal-directed behavior and reduces collisions by stopping at safe distances near hazards. We also observe that SG-Safe can outperform SG-NoSafe on some tasks (e.g., Point and Doggo), suggesting that explicitly optimizing safety can improve exploration efficiency by discouraging unsafe detours and repeated recoveries from violations.
5.6.2. POLAMP Benchmark
Results on POLAMP are reported in
Table 3 and
Table 4. At Level 2, SG-Safe substantially outperforms single-policy Safe RL baselines in terms of success rate (SR = 0.897 vs. 0–0.363) while keeping safety costs low, indicating that the hierarchical structure is critical for long-horizon navigation. We additionally include ADVICE as a prior Safe RL baseline; however, ADVICE (DDPG without HER-style goal relabeling) performs poorly in POLAMP due to the long-horizon sparse-reward setting, yielding near-zero SR. This supports the importance of HER-style relabeling for goal-conditioned navigation, which we therefore adopt in all SAC-based baselines for a fair and stable comparison. In particular, methods based on online filtering or stronger modeling assumptions (e.g., SAC-RCBF) are limited by computational overhead and/or reliance on explicit robot/cost models, whereas cost-penalized single-policy methods (SAC-LAG, SAC) fail to solve Level 2 tasks due to insufficient exploration under constraints.
Variance across seeds mainly comes from stochastic neural network initialization and minibatch/replay sampling in off-policy training (as well as exploration noise). In Safety Gym, additional variance is introduced by randomized initial configurations (goal/hazard placements), while POLAMP is largely deterministic and, thus, seed variance is dominated by optimization stochasticity.
Overall, SG-Safe achieves the best safety–performance trade-off across both benchmarks among end-to-end RL methods, while remaining applicable under the partial-observability and limited-information setting considered in this work.
5.7. RQ4: Component Analysis
5.7.1. Cost Critic Architecture Analysis
We investigated the SG-Safe algorithm with both single- and dual-cost-critic architectures (
). To verify the robustness of our results across different configurations, we conducted experiments in the Safety Gym environment using two robots: Point and Car. While the existing literature presents implementations utilizing both single [
34] and dual critics [
5], the comparative analysis of these architectures remains unexplored.
The results illustrated in
Figure 5 demonstrate that employing a single cost critic leads to overestimation of cumulative costs
, resulting in a more conservative algorithm that prioritizes safety at the expense of task performance. A similar risk-averse behavior is observed when selecting the maximum value between dual Q-cost critics, where elevated cost estimates drive the policy toward more cautious decisions. Conversely, using two critics and selecting the minimum value produces a less constrained algorithm with improved performance, albeit with reduced overall safety.
Based on our analysis, we adopt the dual-critic architecture with minimum value selection as the default configuration for SG-Safe, as it ensures that the algorithm remains within the prescribed cost limit d while maintaining competitive task performance. This architectural choice represents a significant contribution to the Safe RL methodology, providing empirical guidance for critic architecture selection in constrained Reinforcement Learning problems.
5.7.2. Hyperparameter Sensitivity Analysis
We conducted additional hyperparameter ablation studies (
Figure 6) examining three key parameters:
(subgoal policy influence weight), initial
(safety coefficient), and cost limit
d (maximum episode cost).
The analysis reveals that
causes complete learning failure (success rate: 0.2) due to three factors: (1) poor initial subgoal predictions during early training, (2) existence of solvable tasks requiring no subgoals, and (3) forced adherence to inaccurate subgoals leading to local optima. Additional ablation studies visualizing the effects of safe subgoals on learning are provided in the
Appendix D.
Key Component Analysis Findings:
Cost Critics: Dual critics with min selection provide optimal safety–performance balance.
Subgoal Influence (): Lower values () prevent learning collapse.
Safety Coefficient (): Moderate initialization enables effective constraint learning.
Cost Limit (d): Tighter constraints improve safety but reduce task performance.
6. Discussion
SG-Safe shows strong empirical safety–performance trade-offs on Safety Gym and POLAMP, but several limitations and scalability aspects should be noted.
First, SG-Safe is based on SAC-Lagrangian optimization and enforces constraints in expectation during training; it does not provide formal deployment-time guarantees (worst-case or probabilistic). Under partial observability, unknown dynamics, and function approximation, such guarantees would require additional assumptions (e.g., certified state estimation, bounded/known dynamics, or conservative model uncertainty). Therefore, residual risk may appear under distribution shift, out-of-distribution observations, or strong perception noise. In contrast, methods such as CBF/SafetyLayer can provide formal guarantees under stronger modeling assumptions.
Second, SG-Safe assumes that training data covers safety-critical scenarios; changes in dynamics, sensing, or safety definitions at deployment can degrade safety.
Third, we observed several practical failure modes.
(i) Sensitivity to Subgoal Influence : Overly large
can over-constrain the low-level policy early in training and lead to learning collapse (see the
sweep in
Figure 6/
Appendix E), because subgoals are inaccurate before the safe policy has learned meaningful behavior.
(ii) Potential Over-Reliance on Subgoals: If the subgoal policy is misaligned, the low-level policy may become overly cautious or stall in narrow passages (a common failure pattern in the hardest POLAMP Level-2 layouts;
Table 3).
Remedies: In our experiments, stable performance was obtained with small
; more generally, we recommend (a) a warm-up/annealing schedule for
, (b) confidence-gated or advantage-gated subgoal guidance (disable KL guidance when it degrades the critic-estimated objective), and (c) subgoal dropout to reduce dependence on the high-level module. For additional robustness, noise augmentation during training improves deployment under noisy observations (
Appendix C), and future work could incorporate lightweight feasibility checks (e.g., kinematic consistency filters) or short-horizon rollouts to reject clearly infeasible subgoals before applying subgoal guidance.
Regarding scalability, inference cost is a single-actor forward pass and scales similarly to standard actor–critic methods with state/action dimensionality. For higher-dimensional observations (e.g., images), SG-Safe can be applied by replacing the MLP encoder with a vision backbone. Subgoals can be generated in the learned latent space, so the hierarchical mechanism remains unchanged. For multiple safety constraints, a standard Lagrangian extension applies by training one cost critic per constraint and optimizing a vector of multipliers.
Future work could include uncertainty-aware modeling and hybrid designs that combine training-time-constrained optimization with lightweight runtime monitoring, as well as model-based components (e.g., short-horizon rollouts in latent space) to improve long-horizon planning under complex constraints while keeping deployment overhead low.
7. Conclusions
We proposed SG-Safe, a hierarchical RL method that enhances safe exploration in long-horizon navigation through subgoal guidance. Unlike existing approaches, SG-Safe operates without full observability or explicit cost function knowledge, and it relies on a single policy during inference for computational efficiency.
Across Safety Gym and POLAMP, SG-Safe consistently achieves a strong safety–performance trade-off compared to evaluated end-to-end Safe RL baselines under partial observability, while maintaining substantially lower inference costs than planning-based methods in our setup.
Future work will focus on simplifying the architecture and exploring Sim-to-Real transfer.