Manuscript Offprint
arXiv:2611.00636Structural Dual Adaptation for Safe Reinforcement Learning
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Runsheng Yu, Zhuoyang Song, Zengde Deng, Qixin Zhang, Li Shen, and Jiaxing Zhang
Abstract—Primal-dual methods enforce safety constraints in reinforcement learning through Lagrangian relaxation. For a fixed policy, the exact bounded multiplier response exhibits bang-bang switching at the constraint boundary. Practical gradient updates can oscillate through coupling with policy optimization. We propose Structural Dual Adaptation (SDLA), which replaces this bang-bang response with a unique continuous response through current-cost centering, trajectory weighting, and quadratic regularization. We characterize activation thresholds and response sensitivity. Ternary search computes multipliers without a dual gradient stepsize. For entropy-regularized tabular policies, we bound equilibrium constraint violations alongside reward gaps. We establish convergence of delayed updates under mild assumptions. Neural PPO/SAC experiments on OmniSafe and HASARD demonstrate competitive rewards with improved constraint tracking. On HASARD, PPO-SDLA achieves higher reported mean reward than the human baseline in six of eighteen settings while meeting the respective mean-cost budgets, including four with lower mean cost. To the best of our knowledge, this is the first report of higher mean reward at lower mean cost than the human baseline across multiple HASARD settings.
Index Terms—Safe reinforcement learning, constrained Markov decision processes, primal-dual optimization.
1 INTRODUCTION
Safe reinforcement learning seeks high reward while respecting cost constraints [1], [2]. Lagrangian methods introduce a multiplier that controls the cost penalty during policy improvement [3], [4], [5]. For a fixed policy with mean cost , the multiplier objective is . Its exact minimizer on switches from zero to as crosses the budget . This fixed-policy bang-bang response arises even with exact cost estimates.
Quadratic regularization makes the fixed-policy response continuous. Its penalty stays zero for and activates after a mean-cost violation. This violation-triggered dual activation can lag policy changes when cost estimates are delayed. We seek smooth feedback that can activate within the feasible region based on current trajectories. Incremental gradient updates can oscillate through policy coupling. PID uses tuned gains to combine damping and cost-trend feedback [6], [7]. Entropy regularization can smooth the dual function when the policy is reoptimized for each multiplier [8], [9]. With the policy held fixed, the multiplier objective remains linear, so its exact minimizer exhibits bang-bang switching. Table 1 compares these methods.
We propose Structural Dual Adaptation (SDLA) to replace fixed-policy bang-bang switching with structured smooth feedback. Its trajectory-dependent surrogate combines log-sum-exp weighting of penalized returns with current-cost
centering. Quadratic regularization and trajectory-weighted cost variance control response sensitivity, yielding a unique continuous multiplier response. Ternary search computes this response without a dual gradient stepsize.
Our main contributions are:
Structured multiplier response. We construct a strongly convex surrogate whose unique multiplier response replaces fixed-policy bang-bang switching with a continuous transition. Current-cost centering and trajectory weighting determine its activation and saturation regimes. A scalar inner solve computes the response without a dual gradient stepsize.
Sensitivity characterization. We bound response sensitivity, including clipped endpoints, and identify the interior gain through regularization and trajectory-weighted cost variance. For entropy-regularized tabular policies, we bound fixed-parameter equilibrium feasibility and reward gaps and establish convergence of delayed updates with actor and dual errors under mild assumptions.
Practical actor-critic evaluation. On HASARD, PPO-SDLA achieves higher reported mean reward than the human baseline in 6 of 18 task-difficulty settings, including four
TABLE 1
Single-constraint multiplier responses with policy and return statistics fixed. Inner solve counts scalar optimization steps to multiplier accuracy . Linear objectives admit an exact closed-form solution (4); SDLA uses ternary search. Bang-bang refers to the exact response. For PID, "No closed form" denotes feedback updates without a closed-form optimal response; — denotes not applicable. Entropy-Regularized refers to policy entropy.
| Method | Inner Solve | Avoids Bang-Bang |
|---|---|---|
| Lagrangian | O(1) (closed form) | ✗ |
| Lagrangian-PID | No closed form | — |
| Entropy-Regularized | O(1) (closed form) | ✗ |
| SDLA (ours) | O(log(λmax/ελ)) | ✓ |
R. Yu, Z. Song, and J. Zhang are with China Merchants Research Institute of Advanced Technology, China Merchants Group, Hong Kong, China (e-mail: runshengyu@gmail.com; {songzhuoyang, zhangjiaxing}@cmhk.com).
Z. Deng is with The Chinese University of Hong Kong, Hong Kong, China (e-mail: dengzengde@gmail.com).
Q. Zhang is with Generative AI Lab, College of Computing and Data Science, Nanyang Technological University, Singapore (e-mail: qixin.zhang@ntu.edu.sg).
L. Shen is with the School of Cyber Science and Technology, Shenzhen Campus of Sun Yat-sen University, Shenzhen, China (e-mail: shenli6@mail.sysu.edu.cn).
with lower mean cost. All six settings meet their respective mean-cost budgets. To the best of our knowledge, this is the first report of simultaneously higher mean reward and lower mean cost than the human baseline across multiple HASARD settings. Ablations examine the surrogate components, while training-time diagnostics quantify multiplier changes and constraint tracking.
2.1 Constrained Markov Decision Process
We consider a single-constraint discounted CMDP [10], with , , , and a fixed initial distribution. Let and denote trajectory returns, and write , . The objective is
Returns satisfy and . Discounted policy entropy is .
2.2 Related Methods
Gradient primal-dual updates accumulate cost errors, and coupling with policy optimization can cause oscillation and stepsize sensitivity [6], [11]. PID control adds proportional damping and derivative feedback based on cost trends [6]. Augmented penalties [12], critic calibration [13], and regularized primal-dual methods [14], [15] provide other stabilization mechanisms. SDLA derives its response by optimizing a scalar surrogate on a frozen trajectory batch, with explicit activation and sensitivity bounds.
Penalty methods require selecting a penalty strength [16]. Constrained or projected methods introduce additional actor optimization steps [17], [18], [19], [20], while state augmentation requires budget-conditioned policy inputs [21], [22]. For constrained multi-objective RL, Gu et al. [23] combine gradient manipulation across reward objectives with cost-reducing policy updates when constraints are violated. Appendix E details these tradeoffs. SDLA changes the multiplier response within an actor-critic implementation.
2.3 Policy Dual Smoothness and Fixed-Policy Responses
Entropy regularization improves the optimization landscape of CMDPs by smoothing policy optimization. With entropy coefficient , the entropy-regularized problem is
Lagrangian dual. The corresponding policy dual is [8]
In entropy-regularized tabular formulations, policy-dual smoothness enables accelerated optimization [8], [9]. These guarantees involve solving, or approximating, the underlying policy optimization problem.
Fixed-policy dual response. For a frozen policy , both and are constant with respect to . Writing , the exact multiplier response is
This bang-bang response concerns the fixed-policy subproblem. The policy dual in (3) reoptimizes the policy as changes. Quadratic regularization smooths the fixed-policy response and retains the activation boundary c = d: the multiplier remains zero for and activates after a mean-cost violation. SDLA builds on this curvature to construct structured smooth feedback from current mean and trajectory-weighted costs. Its response has controlled sensitivity and can also activate within the feasible region.
3 STRUCTURAL DUAL ADAPTATION
3.1 Surrogate Dual Formulation
We first define SDLA through expectations under a fixed policy . Write and fix . Returns satisfy the bounds in Section 2.
Definition 3.1 (Population Surrogate Dual). The population surrogate dual is
for . Its multiplier response is
Write . Its derivative supplies the trajectory-weighted cost
Trajectories with higher penalized returns receive greater weight. Centering by combines mean and trajectory-weighted costs into the signal . Quadratic regularization and trajectory-weighted cost variance control the response curvature.
3.2 Structural Properties and Activation
Lemma 3.2 (Curvature and continuous activation). For any fixed policy with , the population surrogate satisfies
Here is the trajectory law reweighted by . Hence is -strongly convex and -smooth. Its response is unique and satisfies
Feasible-region activation. Condition (10) permits penalties before the current policy's mean cost exceeds the budget.
Proposition 4.2 quantifies equilibrium constraint violations and regularized reward gaps for fixed parameters.
The endpoint derivatives distinguish three response regimes:
(i) Inactive: gives .
(ii) Transitional: gives and .
(iii) Saturated: gives .
The lemma implies as . Section 3.3 quantifies sensitivity across these regimes; Appendix B gives the proofs. Section 6.4 compares empirical variants with fixed and adaptive centering.
3.3 Closed-Loop Multiplier Feedback
For consecutive policies , write , , , and . For the actor interpretation, set and . Keeping fixed isolates the response to policy changes.
The following result quantifies how the multiplier increases or decreases as the mean and weighted costs change. Define
Theorem 3.3 (Closed-loop multiplier feedback). For any two consecutive policies, including responses at either endpoint,
Thus gives , and gives . Both implications are strict when . If both responses are interior, then
where is the average trajectory-weighted cost variance divided by along the segment from to .
Proof sketch. Combining the constrained first-order conditions with strong convexity gives (12), including clipped endpoints. For interior responses, integrating the curvature between the two stationary points gives (13). Appendix B.2 provides the full proof.
Both weighted costs in are evaluated at the old multiplier , so their difference measures the change in trajectory information under a common penalty. A larger multiplier places greater weight on cost reduction in the actor update. The resulting policy supplies the next trajectory batch and dual signal, completing the feedback loop.
Equation (12) bounds the multiplier change in proportion to the combined cost-signal change. In the interior, the response gain is . Increasing the multiplier downweights higher-cost trajectories, adding the trajectory-weighted cost variance term to the curvature of the quadratic regularizer. For a given feedback signal, this reduces the multiplier change. Clipping can keep the multiplier fixed under a nonzero signal, as captured by (12).
4 THEORETICAL GUARANTEES
4.1 Convergence
We consider a finite discounted CMDP with tabular policies and . Let be the tabular policy space, with Frobenius norm , and assume the initial distribution satisfies for every state. Fix a policy-entropy coefficient and write
(14)
The policy-entropy coefficient is distinct from the trajectory temperature . Write and for the response and trajectory-weighted cost in Section 3.1, making parameter dependence explicit. Let and be Lipschitz constants for and in Frobenius norm, with the latter uniform over . Set and . Appendix B.2.4 derives these constants and the actor response bound from the soft-policy optimality identity [8].
Take a full-support initial policy and . At outer step , hold fixed and run actor updates from :
For , assume and set . The cases and correspond to tabular soft policy improvement and an entropy-regularized KL-PPO update, respectively [24], [25]. The analysis establishes tabular convergence under mild assumptions specified below. Section 6 evaluates neural PPO-Clip and SAC implementations empirically.
Write , , and . Appendix B.3 specifies the updates and derives uniform constants from Cen et al. [26], with actor error at most . At each outer iteration, let satisfy
Theorem 4.1 (Convergence of tabular SDLA updates). Under the assumptions and updates above, suppose . Then the equilibrium satisfying and is unique. Write . If , , and , then from every full-support initial policy. If , , and , then
(16)
If for , then
The proof uses a two-step error recursion (Supplementary Eq. (S36)), yielding an outer-iteration contraction factor of . Appendix B.3 combines the actor bound of Cen et al. [26] with the actor and dual sensitivities from Appendix B.2.4.
The condition bounds the coupled response gains, following small-gain principles used in mean-field learning [27], [28], performative RL [29], and actor-critic analysis [30]. Since , stronger quadratic regularization reduces this gain; Appendix B.2.4 gives a nonempty sufficient parameter range.
4.2 Feasibility and Reward Bounds
Proposition 4.2 (Fixed-parameter feasibility and reward bounds). In the tabular setting above, suppose for some . Let , , and . Fix . Any exact equilibrium , satisfies
If , then .
Actor optimality gives ; combining this with the surrogate endpoint conditions proves the bounds. Appendix B.3.4 gives the proof and, under Theorem 4.1, the iterative feasibility bound . The equilibrium bounds hold independently of the convergence condition .
4.3 Optimality
Corollary 4.3 (CMDP optimality under parameter matching). Under Theorem 4.1, suppose has a saddle point with and . Choose , where
Require at this parameter choice. Then and . As and , and constraint violations vanish. Uniform errors give .
Corollary 4.3 establishes exact optimality through parameter matching. Parameter conditions expressed through optimal multipliers also occur in constrained optimization, including exact penalty theory [31, Exercise 5.16] [32]. Here provides the theoretical characterization, and ablations evaluate practical parameter choices.
5 PRACTICAL IMPLEMENTATION
5.1 Empirical Surrogate Dual
Following standard sample-based practice in safe RL [17], we collect trajectories under and compute discounted returns . Replacing population expectations with sample averages gives
(21)
and the empirical surrogate
Its trajectory-weighted cost is
The batch stays fixed during the solve. The empirical surrogate is -strongly convex, with a unique minimizer on . Its activation condition is exactly when .
5.2 Scalar Solver and PPO/SAC Integration
Ternary search computes to accuracy without a dual learning rate, using arithmetic operations. We use 15 iterations and stabilized log-sum-exp evaluations; Appendix C.1 gives the interval bound. Trajectory-estimation and scalar-solver errors contribute to in (15) (Supplementary Eq. (S26)).
SDLA combines a scalar dual solve with SAC [24] or PPO [33]. Reward and cost critics estimate and ; the actor uses . Each dual solve holds the trajectory batch fixed.
Related safe RL methods also combine structural analyses with neural implementations [4], [34], [35]; Appendix C compares their theoretical settings.
PPO-SDLA combines rollout advantages as and uses the same batch for the dual solve. SAC-SDLA updates actors and critics from replay transitions; recent rollout or evaluation episodes supply trajectory returns and mean cost for the surrogate. Both hold fixed during actor updates and use the subsequent dual solution in the next iteration.
Supplementary Algorithms S1–S3 give the general framework and its PPO/SAC implementations.
6 EXPERIMENTS
We evaluate neural PPO-SDLA and SAC-SDLA on reward-cost performance, training-time constraint tracking, computational overhead, and component and parameter ablations.
6.1 Experimental Setup
HASARD. HASARD [36] uses egocentric RGB observations. Following its protocol, the cost threshold is 5 for Remedy Rush, Collateral Damage, and Detonator's Dilemma, and 50 for all other environments.
OmniSafe's MuJoCo Velocity Benchmark. We evaluate Ant, HalfCheetah, Hopper, Walker2d, and Swimmer with a cost limit of 25, following OmniSafe [37]. These velocity-constrained continuous-control tasks complement HASARD's visual observations.
Baselines. We use baselines available in each benchmark's official implementation. For HASARD, following [36], we compare against: PPOlag [3], PPOPID [6], PPOCost [36], P3O [16], and PPOsaute [21]. For OmniSafe, we compare against: PPOlag, SAClag [3], P3O [16], FOCOPS [19], PPOsaute [21], and PPOEarlyTermin [37].
Implementation Details. We implement SDLA on top of PPO and SAC. The default surrogate-dual parameters are
TABLE 2
Rewards and costs over five SDLA runs and available archived baseline runs. The cost threshold is 5 for Remedy Rush, Collateral Damage, and Detonator's Dilemma, and 50 for all other environments. Green: mean cost meets the budget. Bold Green: highest mean reward among methods meeting the mean cost budget.
| Level | Method | Armament Burden | Volcanic Venture | Remedy Rush | Collateral Damage | Precipice Plunge | Detonator's Dilemma | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| R ↑ | C ↓ | R ↑ | C ↓ | R ↑ | C ↓ | R ↑ | C ↓ | R ↑ | C ↓ | R ↑ | C ↓ | ||
| 1 | PPO | 9.68 | 109.30 | 51.64 | 172.93 | 50.78 | 52.44 | 78.61 | 41.06 | 243.42 | 475.62 | 29.67 | 14.28 |
| PPOCost | 5.47 | 3.67 | 30.73 | 5.44 | 28.21 | 6.75 | 68.71 | 24.04 | 237.72 | 0.69 | 27.60 | 8.45 | |
| PPOLag | 7.51 | 52.41 | 42.40 | 52.00 | 36.37 | 5.25 | 29.09 | 5.61 | 147.24 | 44.96 | 21.49 | 5.62 | |
| PPOSaute | 2.33 | 32.87 | 32.68 | 62.00 | 20.50 | 9.18 | 26.08 | 7.09 | 241.37 | 424.35 | 28.69 | 8.78 | |
| PPOPID | 8.99 | 49.79 | 45.23 | 50.53 | 38.19 | 4.90 | 43.27 | 5.03 | 231.53 | 43.91 | 26.51 | 5.25 | |
| P3O | 8.60 | 40.72 | 43.55 | 46.10 | 37.90 | 4.78 | 46.52 | 5.97 | 242.53 | 176.41 | 29.62 | 6.59 | |
| PPO-SDLA (ours) | 19.46 | 12.80 | 44.49 | 29.49 | 39.07 | 2.71 | 43.96 | 3.01 | 243.30 | 43.09 | 27.24 | 2.97 | |
| 2 | PPO | 4.24 | 99.59 | 38.31 | 186.44 | 61.94 | 62.22 | 53.58 | 61.13 | 324.69 | 608.07 | 40.09 | 19.63 |
| PPOCost | 7.59 | 6.20 | 21.10 | 3.93 | 0.01 | 0.03 | 21.86 | 8.19 | 162.01 | 61.19 | 40.37 | 15.56 | |
| PPOLag | 4.50 | 53.50 | 26.11 | 53.10 | 28.75 | 5.72 | 18.87 | 5.61 | 105.01 | 52.39 | 19.57 | 5.34 | |
| PPOSaute | 1.55 | 30.47 | 23.68 | 75.39 | 3.72 | 4.80 | 6.37 | 3.21 | 119.42 | 159.30 | 20.79 | 9.97 | |
| PPOPID | 5.50 | 50.30 | 33.52 | 50.38 | 32.92 | 5.15 | 27.23 | 5.12 | 162.16 | 50.77 | 20.84 | 4.92 | |
| P3O | 5.33 | 39.82 | 32.38 | 45.89 | 31.91 | 4.85 | 27.41 | 5.12 | 247.05 | 178.56 | 25.48 | 6.97 | |
| PPO-SDLA (ours) | 14.22 | 19.01 | 33.71 | 28.01 | 44.02 | 4.67 | 31.09 | 4.44 | 172.40 | 40.98 | 22.72 | 4.19 | |
| 3 | PPO | 1.99 | 118.22 | 42.20 | 347.77 | 53.16 | 68.27 | 34.86 | 84.44 | 487.17 | 894.22 | 49.36 | 23.72 |
| PPOCost | 0.04 | 0.05 | 10.61 | 14.76 | 0.01 | 0.02 | 3.93 | 1.35 | 15.39 | 6.64 | 49.95 | 19.79 | |
| PPOLag | 2.03 | 31.89 | 22.77 | 52.54 | 8.02 | 9.74 | 12.22 | 5.29 | 23.87 | 34.98 | 19.27 | 5.26 | |
| PPOSaute | 2.32 | 37.68 | 18.89 | 246.80 | 1.17 | 3.50 | 2.74 | 2.76 | 101.64 | 176.14 | 22.20 | 10.36 | |
| PPOPID | 2.78 | 33.89 | 25.80 | 49.02 | 13.51 | 5.14 | 14.51 | 4.97 | 54.02 | 49.57 | 20.49 | 4.87 | |
| P3O | 2.61 | 29.94 | 24.93 | 49.84 | 14.29 | 4.19 | 13.57 | 4.12 | 269.14 | 428.72 | 26.73 | 7.49 | |
| PPO-SDLA (ours) | 2.87 | 2.85 | 28.22 | 44.25 | 26.21 | 4.48 | 17.60 | 3.52 | 95.02 | 36.69 | 20.82 | 3.87 | |
TABLE 3
Human player rewards and costs averaged over 10 episodes compared to PPO-SDLA terminal training summaries. Bold: PPO-SDLA achieves higher reported mean reward than human.
| Level | Method | Armament Burden | Volcanic Venture | Remedy Rush | Collateral Damage | Precipice Plunge | Detonator's Dilemma | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| R ↑ | C ↓ | R ↑ | C ↓ | R ↑ | C ↓ | R ↑ | C ↓ | R ↑ | C ↓ | R ↑ | C ↓ | ||
| 1 | Human | 18.60 | 42.83 | 57.12 | 45.97 | 51.04 | 5.65 | 42.33 | 4.11 | 243.09 | 46.88 | 31.54 | 4.49 |
| PPO-SDLA (ours) | 19.46 | 12.80 | 44.49 | 29.49 | 39.07 | 2.71 | 43.96 | 3.01 | 243.30 | 43.09 | 27.24 | 2.97 | |
| 2 | Human | 16.85 | 31.50 | 42.91 | 45.09 | 34.72 | 1.22 | 17.34 | 3.10 | 226.11 | 44.35 | 34.66 | 3.09 |
| PPO-SDLA (ours) | 14.22 | 19.01 | 33.71 | 28.01 | 44.02 | 4.67 | 31.09 | 4.44 | 172.40 | 40.98 | 22.72 | 4.19 | |
| 3 | Human | 9.00 | 31.40 | 35.27 | 49.81 | 36.91 | 4.22 | 16.40 | 4.99 | 104.62 | 21.54 | 37.10 | 4.08 |
| PPO-SDLA (ours) | 2.87 | 2.85 | 28.22 | 44.25 | 26.21 | 4.48 | 17.60 | 3.52 | 95.02 | 36.69 | 20.82 | 3.87 | |
and for both HASARD and OmniSafe Safety-Gymnasium. Ternary search runs for iterations per dual update. Our experiments use 5 random seeds and ; HASARD baselines use archived runs (Appendix D).
Evaluation Metrics. We report episode reward and cost, comparing mean cost against the task budget. HASARD tables report means and standard deviations across per-run summaries of terminal training performance.
6.2 Results for HASARD
Baseline Comparison. PPO-SDLA is the only compared method whose reported mean cost meets the budget in all 18 HASARD settings, and it has the highest mean reward among budget-meeting methods in each setting (Table 2). For example, Armament Burden L1 reward increases from PPOPID's 8.99 to 19.46, while mean cost is 12.80 against a budget of 50. Table S5 reports standard deviations.
Human Comparison. On HASARD, PPO-SDLA achieves higher reported mean reward than the human baseline in 6 of 18 task–difficulty settings, including four with lower mean cost (Table 3). All six settings meet their respective mean-cost budgets. Human results from Tomilin et al. [36] are averaged over 10 episodes, while PPO-SDLA results use terminal training summaries.
Figures 1 and 2 compare reward and cost trajectories on four HASARD tasks at Levels 1 and 2. Learning curves for all 18 settings appear in Appendix D.
6.3 Performance on MuJoCo Velocity Benchmark
PPO-based methods. Among the compared PPO-based methods meeting the mean-cost budget, PPO-SDLA achieves the highest mean reward on four of five tasks (Table 4). On Ant, its reward is close to PPOLag's (3200.44 versus 3205.96), with lower mean cost (19.73 versus 22.46). Figures S2 and S4 report the learning curves.
TABLE 4
Performance on OmniSafe's MuJoCo Velocity Benchmark. Mean ± std over 5 random seeds. Green: mean cost ≤ 25. Bold Green: highest mean reward within the same algorithm family (PPO-based or SAC-based) among methods meeting this budget.
| Method | Ant | HalfCheetah | Hopper | Swimmer | Walker2d | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| PPO | 5977.73 | 958.13 | 6921.83 | 919.20 | 2337.11 | 550.02 | 119.77 | 165.27 | 6239.52 | 902.68 |
| ±885.65 | ±134.50 | ±1721.79 | ±173.08 | ±942.06 | ±237.70 | ±13.80 | ±20.15 | ±879.99 | ±100.93 | |
| 3205.96 | 22.46 | 2939.58 | 18.72 | 961.92 | 13.96 | 64.74 | 28.02 | 2982.27 | 13.49 | |
| PPOLag | ±85.16 | ±4.82 | ±307.19 | ±2.87 | ±752.87 | ±19.33 | ±17.67 | ±4.09 | ±681.55 | ±14.55 |
| 2636.62 | 20.69 | 2117.84 | 27.60 | 1231.52 | 16.33 | 38.02 | 18.40 | 2713.57 | 20.51 | |
| P3O | ±181.09 | ±10.23 | ±313.55 | ±8.36 | ±465.35 | ±11.38 | ±34.18 | ±12.13 | ±313.20 | ±14.09 |
| 3184.48 | 14.75 | 2965.20 | 2.37 | 1437.75 | 10.13 | 53.87 | 29.75 | 3117.05 | 8.78 | |
| FOCOPS | ±305.59 | ±6.36 | ±290.43 | ±3.50 | ±446.87 | ±8.87 | ±17.90 | ±7.33 | ±53.60 | ±12.38 |
| 2978.74 | 16.77 | 2901.40 | 16.20 | 1650.91 | 17.87 | 35.61 | 3.44 | 2410.89 | 18.88 | |
| PPOSaute | ±93.65 | ±0.92 | ±25.49 | ±0.60 | ±152.65 | ±1.33 | ±4.37 | ±1.35 | ±241.22 | ±2.38 |
| 2801.53 | 0.23 | 2447.25 | 3.47 | 1643.39 | 0.77 | 33.02 | 24.23 | 2195.57 | 7.63 | |
| PPOEarlyTermin | ±19.66 | ±0.09 | ±346.84 | ±4.90 | ±2.58 | ±0.26 | ±7.26 | ±0.54 | ±1046.29 | ±10.44 |
| 3200.44 | 19.73 | 3026.59 | 19.81 | 1681.64 | 14.66 | 115.77 | 20.39 | 3146.70 | 14.24 | |
| PPO-SDLA | ±75.58 | ±2.46 | ±11.12 | ±6.18 | ±46.70 | ±6.08 | ±57.56 | ±3.56 | ±79.06 | ±5.61 |
| SAC | 5456.31 | 943.10 | 11488.86 | 981.93 | 3537.70 | 975.23 | 46.44 | 40.97 | 4419.29 | 877.70 |
| ±156.04 | ±47.51 | ±513.09 | ±0.33 | ±32.23 | ±2.39 | ±1.23 | ±0.47 | ±232.06 | ±8.95 | |
| 1870.08 | 42.45 | 2596.66 | 43.65 | 963.49 | 20.23 | 11.03 | 22.70 | 2676.47 | 30.67 | |
| SACLag | ±334.29 | ±7.49 | ±12.07 | ±1.31 | ±291.64 | ±28.47 | ±11.17 | ±32.10 | ±300.43 | ±32.30 |
| 2316.61 | 14.64 | 2863.05 | 15.06 | 1136.15 | 15.96 | 21.59 | 17.52 | 2732.98 | 12.90 | |
| SAC-SDLA | ±95.88 | ±13.00 | ±9.53 | ±11.27 | ±300.73 | ±12.09 | ±9.44 | ±15.43 | ±58.81 | ±8.26 |
TABLE 5
Training-time constraint tracking with . All statistics use the complete training logs. Violation and CrossRate are percentages; overshoot is averaged over all logged updates, including those below the budget.
| Task | Method | Mean | Violation (%) | Overshoot | CrossRate (%) |
|---|---|---|---|---|---|
| Ant | PPOLag | 0.0075 ± 0.0007 | 38.7 ± 3.5 | 3.2546 ± 0.2850 | 5.2 ± 0.8 |
| Ant | PPO-SDLA | 0.0865 ± 0.0162 | 6.7 ± 4.5 | 0.1807 ± 0.1653 | 3.4 ± 1.8 |
| Walker2d | PPOLag | 0.0115 ± 0.0031 | 41.7 ± 2.1 | 4.8960 ± 0.4163 | 9.0 ± 2.1 |
| Walker2d | PPO-SDLA | 0.1154 ± 0.0380 | 13.0 ± 6.9 | 1.4061 ± 1.2572 | 4.0 ± 1.2 |
TABLE 6
Adaptive feedback versus fixed early penalization on Ant and Swimmer (; five runs per method). Entries report mean ± standard deviation. PPO-QR- uses versus SDLA's , matching their constant-cost activation threshold and response slope. Violation % is the fraction of logged updates exceeding the cost limit.
| Algorithm | Reward () | Cost () | Violation (%, ) |
|---|---|---|---|
| Ant | |||
| PPO-SDLA (ours) | 3200.4 ± 75.6 | 19.73 ± 2.46 | 6.7 ± 4.5 |
| PPOEntropy | 3136.4 ± 86.6 | 40.86 ± 22.39 | 27.8 ± 3.5 |
| PPO-QR | 3226.8 ± 124.7 | 51.35 ± 50.00 | 52.9 ± 7.2 |
| PPO-QR- | 3169.3 ± 112.6 | 25.47 ± 0.37 | 24.8 ± 4.9 |
| Swimmer | |||
| PPO-SDLA (ours) | 115.8 ± 57.6 | 20.39 ± 3.56 | 27.1 ± 11.9 |
| PPOEntropy | 96.2 ± 58.9 | 29.54 ± 6.10 | 87.7 ± 5.4 |
| PPO-QR | 69.6 ± 46.4 | 28.75 ± 3.86 | 77.9 ± 7.7 |
| PPO-QR- | 92.6 ± 58.6 | 23.67 ± 3.43 | 74.1 ± 18.8 |
SAC-based methods. SAC-SDLA improves mean reward over SACLag on all five tasks with mean costs below budget; the Ant reward gain is 23.9%. On HalfCheetah, SACLag exceeds the cost budget (43.65), while SAC-SDLA stays below it (15.06).
PPO-SDLA adds approximately 1.5% GPU time over PPOLag on Ant (Appendix D.4.2).
6.4 Ablations
Adaptive feedback versus fixed early penalization. We compare SDLA with PPO-QR- to evaluate adaptive centering against the fixed center . For the fixed trajectory batch in (21), the ablation objectives are
PPOEntropy, PPO-QR, and PPO-QR- minimize these respective objectives over , using ternary search. All retain trajectory weighting; PPOEntropy omits quadratic regularization, while PPO-QR and PPO-QR- use fixed centers and . SDLA uses in (22). Here “Entropy” refers to trajectory log-sum-exp smoothing. The PPO

(a) Armament Burden
(b) Remedy Rush
(c) Collateral Damage
(e) Armament Burden

(f) Remedy Rush
(g) Collateral Damage
(h) Detonator's Dilemma
Environment steps (millions)
Fig. 1. HASARD Level 1: reward (top) and cost (bottom). Lines show means and shading one standard deviation over five SDLA runs and three runs per baseline. Dashed lines mark budgets of 50 for Armament Burden and 5 for the other tasks. PPOCost shows task reward with its logged penalty added back.

(a) Armament Burden
(c) Collateral Damage
(e) Armament Burden
(f) Remedy Rush
(g) Collateral Damage

(d) Detonator's Dilemma

(h) Detonator's Dilemma
Environment steps (millions)

Fig. 2. HASARD Level 2: reward (top) and cost (bottom) for the same four tasks, with methods, budgets, and statistical conventions as in Figure 1.
backbone and budget are shared. PPO-QR- uses versus SDLA's 0.1, matching their constant-cost activation threshold and slope (Appendix D.1).
Table 6 compares reward, cost, and violation rates across the surrogate variants. On Ant, relative to the fixed-margin PPO-QR-d/2 baseline, SDLA reduces the violation rate from 24.8% to 6.7% and mean cost from 25.47 to 19.73, with reported mean reward of 3200.4 versus 3169.3. On Swimmer, the corresponding violation rate decreases from 74.1% to 27.1%, with mean cost of 20.39 versus 23.67 and reported mean reward of 115.8 versus 92.6. On Ant, mean is similar for SDLA and PPO-QR-d/2 (0.0865 versus 0.0849), while its 95th percentile falls from 0.4219 to 0.3576 (Appendix D.1).
Across , all final mean costs remain below 25, with rewards between 3086.35 and 3200.44 (Table S2). Mean increases monotonically from 0.0865 to 0.8037 as increases.
Appendix D.2 compares at the default
. All three settings have mean costs below 25 and similar mean absolute multiplier changes.
6.5 Constraint Tracking during Training
Table 5 compares full-training constraint tracking on Ant and Walker2d, with PPOLag rerun for multiplier logging. PPO-SDLA reduces violation rates from 38.7% to 6.7% on Ant and from 41.7% to 13.0% on Walker2d. Average overshoot decreases by 94.4% and 71.3%, respectively, and boundary crossings are less frequent on both tasks. PPO-SDLA has larger mean multiplier updates alongside fewer and smaller violations. Appendix D.4 gives metric definitions, plots, and multiplier-cap usage.
7 CONCLUSION
SDLA replaces fixed-policy bang-bang switching with structured smooth feedback of bounded sensitivity. Tabular analysis establishes convergence under mild assumptions;
PPO/SAC experiments demonstrate competitive rewards and improved constraint tracking.
REFERENCES
[1] J. García and F. Fernández, "A comprehensive survey on safe reinforcement learning," Journal of Machine Learning Research, vol. 16, no. 42, pp. 1437–1480, 2015.
[2] S. Gu, L. Yang, Y. Du, G. Chen, F. Walter, J. Wang, and A. Knoll, "A review of safe reinforcement learning: Methods, theories and applications," IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 46, no. 12, pp. 11216–11235, 2024.
[3] A. Ray, J. Achiam, and D. Amodei, “Benchmarking safe exploration in deep reinforcement learning,” OpenAI, Tech. Rep., 2019. [Online]. Available: https://cdn.openai.com/safexp-short.pdf
[4] W. Chen, J. Onyejizu, L. Vu, L. Hoang, D. Subramanian, K. Kar, S. Mishra, and S. Paternain, “Adaptive primal-dual method for safe reinforcement learning,” arXiv preprint arXiv:2402.00355, 2024.
[5] S. Paternain, M. Calvo-Fullana, L. F. Chamon, and A. Ribeiro, “Safe policies for reinforcement learning via primal-dual methods,” IEEE Transactions on Automatic Control, vol. 68, no. 3, pp. 1321–1336, 2023.
[6] A. Stooke, J. Achiam, and P. Abbeel, “Responsive safety in reinforcement learning by pid lagrangian methods,” in International Conference on Machine Learning. PMLR, 2020, pp. 9133–9143.
[7] L. Spoor, Á. Serra-Gómez, A. Plaat, and T. Moerland, “An empirical study of lagrangian methods in safe reinforcement learning,” arXiv preprint arXiv:2510.17564v1, 2025.
[8] D. Ying, Y. Ding, and J. Lavaei, “A dual approach to constrained markov decision processes with entropy regularization,” in International Conference on Artificial Intelligence and Statistics. PMLR, 2022, pp. 1887–1909. [Online]. Available: https://proceedings.mlr.press/v151/ying22a.html
[9] T. Li, Z. Guan, S. Zou, T. Xu, Y. Liang, and G. Lan, “Faster algorithm and sharper analysis for constrained markov decision process,” Operations Research Letters, vol. 54, p. 107107, 2024.
[10] E. Altman, Constrained Markov decision processes. Routledge, 2021.
[11] T. Lin, C. Jin, and M. Jordan, “On gradient descent ascent for nonconvex-concave minimax problems,” in International conference on machine learning. PMLR, 2020, pp. 6083–6093.
[12] J. Dai, J. Ji, L. Yang, Q. Zheng, and G. Pan, “Augmented proximal policy optimization for safe reinforcement learning,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 37, no. 6, 2023, pp. 7288–7295.
[13] Z. Wu, B. Tang, Q. Lin, C. Yu, S. Mao, Q. Xie, X. Wang, and D. Wang, "Off-policy primal-dual safe reinforcement learning," arXiv preprint arXiv:2401.14758, 2024.
[14] D. Ding, C.-Y. Wei, K. Zhang, and A. Ribeiro, “Last-iterate convergent policy gradient primal-dual methods for constrained mdps,” Advances in Neural Information Processing Systems, vol. 36, pp. 66138–66200, 2023. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2023/hash/d0949cbcec31c09431610553a284f94a-Abstract-Conference.html
[15] A. Montenegro, M. Mussi, M. Papini, and A. M. Metelli, “Last-iterate global convergence of policy gradients for constrained reinforcement learning,” Advances in Neural Information Processing Systems, vol. 37, pp. 126 363–126 416, 2024. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2024/hash/e47470631adb188a30f14c9738fe157b-Abstract-Conference.html
[16] L. Zhang, L. Shen, L. Yang, S. Chen, B. Yuan, X. Wang, and D. Tao, “Penalized proximal policy optimization for safe reinforcement learning,” arXiv preprint arXiv:2205.11814, 2022.
[17] J. Achiam, D. Held, A. Tamar, and P. Abbeel, “Constrained policy optimization,” in International conference on machine learning. PMLR, 2017, pp. 22–31.
[18] T.-Y. Yang, J. Rosca, K. Narasimhan, and P. J. Ramadge, “Projection-based constrained policy optimization,” arXiv preprint arXiv:2010.03152, 2020.
[19] Y. Zhang, Q. Vuong, and K. Ross, “First order constrained optimization in policy space,” Advances in Neural Information Processing Systems, vol. 33, pp. 15338–15349, 2020.
[20] L. Yang, J. Ji, J. Dai, L. Zhang, B. Zhou, P. Li, Y. Yang, and G. Pan, “Constrained update projection approach to safe policy optimization,” Advances in Neural Information Processing Systems, vol. 35, pp. 9111–9124, 2022.
[21] A. Sootla, A. I. Cowen-Rivers, T. Jafferjee, Z. Wang, D. H. Mguni, J. Wang, and H. Ammar, “Sauté r: Almost surely safe reinforcement learning using state augmentation,” in International Conference on Machine Learning. PMLR, 2022, pp. 20423–20443.
[22] A. Sootla, A. Cowen-Rivers, J. Wang, and H. Bou Ammar, “Enhancing safe exploration using safety state augmentation,” Advances in Neural Information Processing Systems, vol. 35, pp. 34464–34477, 2022.
[23] S. Gu, B. Sel, Y. Ding, L. Wang, Q. Lin, A. Knoll, and M. Jin, “Safe and balanced: A framework for constrained multi-objective reinforcement learning,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 47, no. 5, pp. 3322–3331, 2025.
[24] T. Haarnoja, A. Zhou, P. Abbeel, and S. Levine, “Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor,” in International conference on machine learning. Pmlr, 2018, pp. 1861–1870.
[25] B. Liu, Q. Cai, Z. Yang, and Z. Wang, “Neural proximal/trust region policy optimization attains globally optimal policy,” in Advances in Neural Information Processing Systems, vol. 32, 2019. [Online]. Available: https://arxiv.org/abs/1906.10306
[26] S. Cen, C. Cheng, Y. Chen, Y. Wei, and Y. Chi, “Fast global convergence of natural policy gradient methods with entropy regularization,” Operations Research, vol. 70, no. 4, pp. 2563–2578, 2022. [Online]. Available: https://yuxinchen2020.github.io/publications/NPG_reg.pdf
[27] X. Guo, A. Hu, R. Xu, and J. Zhang, “Learning mean-field games,” in Advances in Neural Information Processing Systems, vol. 32, 2019. [Online]. Available: https://papers.neurips.cc/paper/8742-learning-mean-field-games.pdf
[28] Q. Xie, Z. Yang, Z. Wang, and A. Minca, “Learning while playing in mean-field games: Convergence and optimality,” in International Conference on Machine Learning, vol. 139. PMLR, 2021, pp. 11436–11447. [Online]. Available: https://proceedings.mlr.press/v139/xie21g.html
[29] D. Mandal, S. Triantafyllou, and G. Radanovic, “Performative reinforcement learning,” in International Conference on Machine Learning, vol. 202. PMLR, 2023, pp. 23642–23680. [Online]. Available: https://proceedings.mlr.press/v202/mandal23a.html
[30] A. Olshevsky and B. Gharesifard, “A small gain analysis of single timescale actor critic,” SIAM Journal on Control and Optimization, vol. 61, no. 2, pp. 980–1007, 2023.
[31] S. Boyd and L. Vandenberghe, Convex Optimization. Cambridge University Press, 2004. [Online]. Available: https://web.stanford.edu/~boyd/cvxbook/
[32] T. Antczak, “A lower bound for the penalty parameter in the exact minimax penalty function method for solving nondifferentiable extremum problems,” Journal of Optimization Theory and Applications, vol. 159, pp. 437–453, 2013. [Online]. Available: https://link.springer.com/article/10.1007/s10957-013-0335-3
[33] J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov, “Proximal policy optimization algorithms,” arXiv preprint arXiv:1707.06347, 2017.
[34] Z. Liu, Z. Cen, V. Isenbaev, W. Liu, S. Wu, B. Li, and D. Zhao, “Constrained variational policy optimization for safe reinforcement learning,” in Proceedings of the 39th International Conference on Machine Learning, vol. 162. PMLR, 2022, pp. 13644–13668. [Online]. Available: https://proceedings.mlr.press/v162/liu22b.html
[35] T. Xu, Y. Liang, and G. Lan, “CRPO: A new approach for safe reinforcement learning with convergence guarantee,” in Proceedings of the 38th International Conference on Machine Learning, vol. 139. PMLR, 2021, pp. 11480–11491. [Online]. Available: https://proceedings.mlr.press/v139/xu21a.html
[36] T. Tomilin, M. Fang, and M. Pechenizkiy, “Hasard: A benchmark for vision-based safe reinforcement learning in embodied agents,” in The Thirteenth International Conference on Learning Representations, 2025.
[37] J. Ji, J. Zhou, B. Zhang, J. Dai, X. Pan, R. Sun, W. Huang, Y. Geng, M. Liu, and Y. Yang, “Omnisafe: An infrastructure for accelerating safe reinforcement learning research,” Journal of Machine Learning Research, vol. 25, no. 285, pp. 1–6, 2024.
APPENDIX A
NOTATIONS TABLE
TABLE S1 Notation Table
| Symbol | Description |
|---|---|
| CMDP | |
| State space, action space, and transition kernel | |
| Reward, cost, discount factor, and cost budget | |
| Expected discounted reward and cost under policy | |
| Complete discounted trajectory returns | |
| Cost-return bound | |
| Policy and Trajectory Objectives | |
| Policy-entropy coefficient, discounted entropy, and regularized reward | |
| Population and empirical trajectory log-sum-exp objectives | |
| Population mean cost and uniform sample mean of trajectory costs | |
| Population and empirical trajectory-weighted costs | |
| SDLA | |
| Trajectory temperature and quadratic regularization parameter | |
| Upper bound for scalar dual optimization | |
| Population and empirical centered surrogate duals | |
| Exact empirical dual minimizer | |
| Absolute multiplier error of the scalar solve | |
| Population response map, its value at , and multiplier-lag bound | |
| Composite-cost signal change and recomputed multiplier change | |
| Average trajectory-weighted cost variance divided by in (13) | |
| Reward/cost gradients, actor direction, and local balance coefficient | |
| Quadratic-growth constant, two-step contraction factor, actor objective gap, and dual error bound | |
| Actor inner steps, mixing weight, inner contraction factor, and critic error bound | |
| Uniform actor-error constants and coupled asymptotic error radius | |
| Entropy-regularized CMDP saddle point and matching parameter | |
| Strictly feasible reference policy, feasibility margin, objective range bound, and equilibrium violation bound | |
| Actor-Critic | |
| Reward critic, cost critic, and parameterized policy | |
APPENDIX B
PROOFS
B.1 Properties of the Surrogate Dual
B.1.1 Proof of Lemma 3.2
Proof. Bounded returns and justify differentiation under the expectation in (7). Using and gives (8)–(9). For , the variance lies in , giving the strong-convexity and smoothness constants. Strong convexity and compactness give a unique response. The constrained first-order conditions give exactly when , and exactly when . Otherwise, gives the interior cost-signal identity. These conditions establish (10) and the three response regimes. Strong convexity implies . If , the response is zero. Otherwise, the interior equation or the upper endpoint inequality gives .
□
B.1.2 Trajectory Weighting and the Cost Signal
At , the population trajectory-weighted cost and mean cost satisfy
Expanding the covariance gives the identity. Its sign determines whether trajectory weighting raises or lowers the cost signal relative to the policy mean.
B.2 Multiplier Feedback and Feasible Policy Updates
We use the population definitions of Section 3.1, the structural properties of Section 3.2, and the notation of Section 3.3. The local actor assumptions and delayed updates are specified in Appendix B.2.2. The convergence and optimality proofs use the entropy-regularized actor best responses of Section 4.1 and delayed dual update (15). For a policy , write and for and in (5) and (7). Let be the reweighted trajectory law with density proportional to relative to the original trajectory law. Bounded returns justify differentiation and give
Hence on the common interval . We use and .
B.2.1 Proof of Theorem 3.3
Proof. The constrained optimality conditions give
Since , combining these inequalities yields
Strong monotonicity of bounds the left-hand side below by . This proves (12), including the absolute-value bound when ; it also holds when . A nonzero response change must have the same sign as . If is interior and , then and . The unique new minimizer therefore moves strictly in the indicated direction.
If both responses are interior, . With
the fundamental theorem of calculus gives
This proves (13).
□
B.2.2 Feasible actor regimes under delayed dual feedback
Actor regularity and updates. For the actor analysis, assume have locally Lipschitz gradients near the iterate under consideration and . Write and . Local smoothness controls the second-order error of a finite actor step, while is the penalty at which its first-order cost change vanishes. Following the ordering in Algorithm S1, initialize and consider
The actor uses the previous dual response, and the new multiplier is computed from the policy that collected the batch. The feedback law relates population dual responses; actor regularity connects these responses to finite policy steps.
For , the delayed update gives . Applying Theorem 3.3 to consecutive policies yields
The bound measures the difference between the multiplier used by the actor and the current dual response. The following result compares that response with , allowing for this difference, to determine the direction of the actor's cost change. A positive safety margin also leaves room for cost to increase during a reward-improving step.
Theorem B.1 (Feasible actor regimes under delayed dual feedback). Under the assumptions and actor updates above, let satisfy .
(i) Feasible reward recovery. If and , then . For all sufficiently small positive , the actor step in (S4) satisfies
(ii) Feasible-region constraint suppression. If and , then . For all sufficiently small positive , the same actor step satisfies
In part (i), the actor increases reward and cost within the available safety margin. In part (ii), the cost-decreasing update expands the margin. The multiplier comparisons apply throughout the clipped interval. Recomputing the multiplier before the actor step gives .
Safety-margin criteria. The surrogate derivative converts these multiplier comparisons into conditions on the available margin. When the comparison point lies in , the condition
gives , hence and the recovery comparison in part (i). When lies in , the condition
gives , hence and the suppression comparison in part (ii). These thresholds relate the available margin to trajectory feedback and actor gradients. From a strictly feasible policy, condition (S8) supports reward recovery within the budget. From a feasible policy, condition (S9) gives a cost-decreasing direction that expands the margin. Both conclusions use the actor assumptions and sufficiently small steps of Theorem B.1.
B.2.3 Proof of Theorem B.1
Proof. For the updates in (S4), apply (12) to . Since , it gives
(i) Recovery. From and the multiplier-error bound,
Since , the direction satisfies
Here follows from .
Let , be local gradient Lipschitz constants and take small enough to keep the step within their neighborhood. Smoothness gives
Both directional derivatives are positive, so all sufficiently small positive steps satisfy
The first inequality keeps the cost increase within the available margin; the other two give strict cost and reward increases. This proves (S6).
(ii) Feasible-region constraint suppression. The other regime condition gives
Thus the actor direction locally reduces cost:
For a local gradient Lipschitz constant , smoothness along the step gives
For all sufficiently small positive , this bound gives , proving (S7).
Finally, the safety-margin criteria follow from the same surrogate derivative. If , condition (S8) gives
Strict convexity places the constrained minimizer below this comparison point, so and . Similarly, if , condition (S9) gives
which implies and . Each criterion therefore implies the corresponding regime comparison.
B.2.4 Convergence with Approximate Actor Best Responses
We use , , , , and from Section 4.1. We establish convergence of delayed tabular updates with approximate actor best responses under mild assumptions specified below. Theorem 4.1 specializes the analysis to concrete actor updates.
The soft-policy optimality identity underlying Proposition 3.5 of [8] gives, with natural logarithms, the quadratic-growth bound
(S14)
Theorem B.2 (Convergence of SDLA). Under the finite-CMDP and entropy assumptions of Section 4.1, fix such that
Starting from any and , let and satisfy, for ,
and the delayed dual bound (15), where . Then there is a unique equilibrium with and . Writing , for ,
For exact updates, with ,
If and , then
If both errors vanish, .
Proof. Fix and abbreviate . We first derive the regularity constants, then establish contraction of the response maps and convergence of the delayed updates.
Trajectory-weighted cost regularity. For , couple their trajectories using the same initial state and the same transition randomness while their state-action pairs agree. At a common state, use a maximal coupling of the action distributions. Let
The probability of a first action disagreement by time is at most . With and denoting the coupled discounted returns, bounded one-step rewards and costs imply
(S20)
In particular, . Write and
For all , the exponential weights lie between and . The mean-value inequality and (S20) give
Since and ,
Consequently,
(S21)
This bound is uniform over the clipped multiplier interval.
Dual-response sensitivity. Apply Theorem 3.3 to and , evaluating the weighted-cost change at . The combined signal is bounded by
Thus, including responses at the endpoints,
Actor best-response sensitivity. The policy space is compact and is continuous, so an actor maximizer exists. The normalized discounted visitation distribution satisfies
The soft Bellman optimum obeys . Subtracting the Bellman expectation equation for from the soft optimality equation and iterating the residual gives the identity underlying Proposition 3.5 of [8]:
Pinsker's inequality for natural logarithms gives . Together with , this proves (S14) with and makes the maximizer unique. The actor reward is , up to the constant . For , apply the quadratic-growth bound at each multiplier and add the two inequalities. The reward and entropy terms cancel, giving
Thus
Existence and uniqueness. Define . Equations (S22) and (S24) imply
Since , this self-map of the closed interval has a unique fixed point . Setting gives the unique equilibrium.
Delayed and inexact updates. The actor objective gap and (S14) give
For , the delayed dual update implies
The triangle inequality and (S24) now yield
This proves (S17). Exact updates contract each of the even and odd policy subsequences by , giving (S18). For bounded errors, let . Each subsequence satisfies a recurrence of the form ; summing the geometric series gives (S19). If both errors vanish, applying the same argument to every tail gives . The bound then proves multiplier convergence.
Interpretation of the contraction condition. The bound controls the product of the actor and multiplier response gains. Similar conditions are used to establish stability of coupled learning systems. Guo et al. [27, Theorem 1] and Xie et al. [28, Lemma 1 and Theorem 1] use for a composite policy-population response. In SDLA, depends on through , yielding the product bound . Mandal et al. [29, Theorem 1] obtain a contraction factor by choosing regularization sufficiently strong relative to environment sensitivity. Olshevsky and Gharesifard [30] use a small-gain argument to control coupled actor and critic errors.
For fixed problem parameters, , , and , the constants , and are independent of . For , the explicit choice
therefore ensures , giving a nonempty sufficient range for stability of the response loop. If , then . Corollary 4.3 combines the convergence condition with parameter matching to identify the equilibrium with the CMDP optimum.
Sampling and scalar-solver errors. Let minimize the empirical surrogate on the batch collected under , and suppose the numerical solve satisfies . The derivative discrepancy between empirical and population surrogates is bounded by
Applying the constrained strong-monotonicity argument above and the triangle inequality gives the pathwise bound
The right-hand side can therefore be used as in Theorem B.2. It separates trajectory-estimation error from numerical optimization error.
B.3 Convergence with Concrete Actor Updates
We prove the convergence result under mild assumptions stated in Theorem 4.1, using the same delayed updates and actor and dual error bounds as in Section 4.1.
B.3.1 Uniform constants for actor optimization
For the updates in Section 4.1, let . The constants in (S34) can be chosen as
These constants depend on the fixed problem parameters, initialization, and uniform critic-error bound , and are independent of the outer iteration. We use from Appendix B.2.4, , , and .
B.3.2 Tabular Actor Updates and Approximation Bounds
We now derive the actor approximation error from explicit policy updates. Work in the finite tabular setting of Section 4.1, with , fixed , and an initial policy satisfying . At outer iteration , hold fixed and initialize . The soft critic for the penalized reward satisfies
(S31)
where is single-state Shannon entropy. For , suppose , with , and update
Set , where , and retain the delayed dual update (15), with error .
For , this is soft policy improvement over the tabular simplex, which underlies SAC [24]. For , it solves the statewise entropy-regularized KL-penalty problem
This KL-PPO variant uses the new-to-old KL direction studied by Liu et al. [25]. Its exact tabular update coincides with entropy-regularized natural policy gradient at learning rate [26]. This equivalence supplies the actor convergence rate below. The analyzed updates use a fixed entropy coefficient and the full tabular simplex; the PPO-Clip and neural SAC implementations in the experiments use function approximation.
Write , , and . The constants in (S29)–(S30) are uniform over outer iterations and satisfy
The two terms quantify finite actor optimization and critic estimation error.
B.3.3 Proof of Theorem 4.1
Proof. Identification of the actor update. For , the statewise objective in (S33) is strictly concave. Its first-order conditions, including the probability-normalization multiplier, give
Normalizing gives (S32). At , the same formula gives the Gibbs soft-policy improvement. The entropy-regularized natural policy gradient update of Cen et al. [26] has old-policy exponent and critic exponent . Setting therefore gives exactly the specified actor update.
Uniform support across warm starts. For every policy and , the soft critic lies in the common interval
Its width is . Since , the Gibbs distribution has every coordinate at least . The actor update is the normalized geometric mixture , where . Hölder's inequality gives
Thus imply . Induction over inner and outer iterations, with , proves a uniform lower bound for every iterate. The Gibbs optimal policy satisfies the same bound.
Actor error from finite inner iterations. Theorems 1–2 of Cen et al. [26], specifically the log-policy error bound with approximate policy evaluation, give
where
To apply the reward normalization in that result, choose and transform the reward to , the entropy coefficient to , and critic errors to . The transformed reward lies in . The shift adds the same constant to all action values, and scaling the critic and entropy coefficient by preserves the policy update. Rescaling the bound gives (S35).
The common critic interval and uniform support bound imply
For . Hence the Frobenius policy error is at most times the log-policy error in the supremum norm. Substituting the preceding bound into (S35) proves (S34) with the constants in (S29)–(S30).
Coupled convergence. Appendix B.2.4 establishes
Thus is a contraction on with factor and has a unique fixed point . Set . Combining the actor error bound with the delayed dual update gives, for ,
(S36)
Write . Applying the recursion separately to even and odd subsequences yields
If and both estimation errors vanish, then . Splitting each sum into a finite prefix and a uniformly small tail shows that . If , summing the geometric series gives the policy bound in (16).
Under the geometric-error assumption, the shifted error satisfies because r>0 is fixed, so . The two parity sums are bounded by constant multiples of
Together with the initial-error terms, this gives when , and when . Both bounds imply for every . Finally,
gives multiplier convergence, its asymptotic error bound, and (17).
B.3.4 Fixed-Parameter Feasibility and Reward Bounds
We prove Proposition 4.2 for any fixed and any equilibrium satisfying exact actor and population-surrogate optimality. The proof uses bounded nonnegative costs, a strictly feasible reference policy, and actor best responses, and holds independently of the contraction condition. In the finite discounted setting, a valid objective bound is
A feasible reference policy and the problem bounds determine the value of this bound.
Proof. Write , , , and . Nonnegative bounded costs give . Actor optimality against the strictly feasible policy yields
Since , it follows that
The population surrogate derivative at the equilibrium is . Its constrained optimality conditions are
Feasibility. If , then . If and , the interior condition gives
Combining this inequality with (S37) yields
If , equation (S37) gives . Taking positive parts and combining the three cases proves (18). When , the saturated-case violation bound is zero. The nonnegative root of satisfies , giving .
Regularized reward. Let maximize over feasible policies; this maximum exists by compactness and continuity. Actor optimality and imply
Hence . When , this gap is nonpositive. For an interior multiplier, ; at the upper endpoint, gives . In both cases,
The right-hand side is nonnegative, so taking the positive part proves (19). The violation bound uses strict feasibility; the reward bound follows from feasibility of the comparison optimum and the two best-response conditions.
Iteration errors. Under Theorem 4.1 and the strict-feasibility assumption of Proposition 4.2, the unique equilibrium obeys these bounds. Since the positive-part map is 1-Lipschitz,
Consequently, the uniform error conditions of that theorem imply
The bound combines the equilibrium term with actor, critic, and dual approximation errors. If these errors vanish as specified in Theorem 4.1, the asymptotic feasibility bound reduces to , and continuity of gives
Parameter interpretation. An interior equilibrium satisfies . Increasing tightens the interior violation bound and increases the reward bound and response gain . Proposition 4.2 applies to any exact equilibrium with positive fixed parameters; the iterative bounds additionally use and the approximation assumptions of Theorem 4.1.
Numerical evaluation uses the strict-feasibility margin , objective bound , and tabular response constants. The neural experiments evaluate , , and empirically. Corollary 4.3 identifies the parameter matching that recovers an entropy-regularized CMDP saddle point.
B.3.5 Proof of Corollary 4.3
Proof. Since costs are nonnegative and , the weighted cost is positive. Parameter matching (20) gives
Strong convexity and the interior multiplier yield . The saddle-point condition gives . Uniqueness in Theorem 4.1 identifies the equilibrium with this saddle point. The cost Lipschitz bound then gives
The convergence and error-floor conclusions follow from Theorem 4.1. Continuity of gives convergence of the entropy-regularized objective when .
APPENDIX C
PPO AND SAC IMPLEMENTATIONS
Related safe RL methods also pair analyses under explicit structural assumptions with neural implementations. Chen et al. [4] assume Lipschitz gradients and strong convexity of the Lagrangian in actor parameters, and evaluate PPO-Lagrangian and DDPG-Lagrangian variants on Bullet-Safety-Gym. CVPO [34] establishes optimality of its nonparametric variational E-step and fits a neural policy in the M-step. CRPO [35] analyzes both tabular policies and, under additional assumptions, two-layer neural-network approximation.
Algorithm S1 gives the general framework; Algorithms S2 and S3 give its PPO-SDLA and SAC-SDLA implementations.
Algorithm S1 SDLA (General Framework)
1: Input: Base RL algorithm, hyperparameters 2: Initialize: , critics 3: for each iteration do 4: Run , collect , compute and 5: 6: 7: // Dual update with the fixed trajectory batch 8: Define by (21) 9: Define by (22) 10: 11: end for
Algorithm S2 PPO-SDLA
1: Initialize policy , reward value , cost value , and dual variable . 2: Hyperparameters: cost limit , dual temperature , regularization , dual cap . 3: for each iteration do 4: Run the current policy for trajectories and collect . 5: Compute trajectory-wise discounted reward and cost returns: . 6: Estimate current policy cost: . 7: Compute reward and cost advantages using GAE. 8: Update by value regression. 9: Update actor by PPO using the Lagrangian advantage . 10: Dual update. For any candidate , compute . 11: Define the trajectory-wise empirical surrogate dual . 12: Update dual variable by ternary-search iterations: . 13: end for 14: Output .
Algorithm S3 SAC-SDLA
1: Initialize: Policy , Q-functions , target networks , replay buffer , .
2: Hyperparameters: dual temperature , regularization , cost limit , dual cap , SAC temperature , target update rate .
3: for each iteration do
4: Run in the environment, add transitions to .
5: From recent rollout/evaluation episodes, compute trajectory-wise discounted returns
6: Estimate current policy cost:
7: // SAC critic and actor updates
8: for gradient step do
9: Sample mini-batch from .
10: Sample next actions .
11:
12:
13: Update by minimizing TD losses.
14: Sample actions .
15: Define
16: Update actor by minimizing
17: Update target networks by Polyak averaging.
18: end for
19: // Dual update via trajectory-wise empirical surrogate
20: For any candidate , compute
21: Define the trajectory-wise empirical surrogate dual
22: Update dual variable by ternary-search iterations:
23: end for
24: Output: Policy .
C.1 Scalar Solver Complexity
The empirical surrogate is strictly convex on , admitting a unique minimum. For single-constraint CMDPs, ternary search computes the multiplier without a dual learning rate. Each ternary-search iteration retains an interval containing the minimizer and reduces its length by a factor 2/3. Starting from , after iterations its width is . Thus iterations suffice for multiplier error at most , for , using two objective evaluations per iteration. We use in practice, giving a final interval width of . Each empirical objective evaluation costs for a fixed batch of trajectories, giving arithmetic operations. In practice, log-sum-exp is evaluated after subtracting the largest trajectory score to avoid numerical overflow.
APPENDIX D EXTRA EXPERIMENTS
HASARD results use five SDLA runs per setting and three archived runs per baseline, except PPOCost on Volcanic Venture L1, for which the archive contains one run. The HASARD learning curves below show one standard deviation across the available runs for each method.
D.1 Regularization Ablation
Component objectives. Equations (24)–(26) define the three PPO ablations using the same empirical trajectory objective as SDLA. Their derivatives are
SDLA has derivative . Thus PPO-QR here retains trajectory log-sum-exp weighting; the quadratic-regularized linear multiplier objective discussed in Section 2 uses the mean cost alone.
The fixed-center and adaptive-center configurations also differ in multiplier updates. Define between consecutive logged values. Relative to PPO-QR-d/2, PPO-SDLA changes the mean update from 0.0849 to 0.0865, an increase of 1.9%, while reducing its 95th percentile from 0.4219 to 0.3576, a reduction of 15.2%.
Figure S1 shows reward, cost, and multiplier trajectories on Ant and Swimmer. The Ant runs reproduce main Table 6; the Swimmer SDLA runs reproduce its reward and cost in main Table 4.

(a) Reward

(b) Cost
(c) Multiplier

(d) Reward
(e) Cost
(f) Multiplier



Fig. S1. Reward, cost, and logged multiplier trajectories on Ant (top) and Swimmer (bottom). Lines show means over five distinct seeds per method and environment; shading shows one standard deviation, clipped at zero for cost and . Curves use all 500 logged points without temporal smoothing. Dashed cost lines mark d = 25. Swimmer uses , with for PPO-QR, for SDLA, and for PPO-QR-d/2.
Regularization sweep. Table S2 reports the full regularization sweep. The default gives the smallest mean multiplier change, while all tested settings have final mean costs below the budget.
D.2 Temperature Ablation
Table S3 compares the default with and on SafetyAntVelocity-v1. All three settings have mean costs below the budget of 25. The default gives the highest reported mean reward, with close in mean reward. Mean is 0.0865, 0.08649, and 0.08890, respectively.
TABLE S2
Regularization ablation on SafetyAntVelocity-v1 with . The sweep uses a 10M-step horizon and ; removes quadratic regularization. Mean measures the average change between consecutive logged multipliers.
| Reward () | Cost () | Mean | ||
|---|---|---|---|---|
| 0.1 | 1 | 3200.44 75.58 | 19.73 2.46 | 0.0865 0.0162 |
| 0.5 | 1 | 3132.15 115.28 | 12.44 3.12 | 0.3587 0.0250 |
| 1.0 | 1 | 3088.90 97.37 | 15.31 3.31 | 0.4969 0.0598 |
| 2.0 | 1 | 3095.12 129.66 | 10.49 4.61 | 0.5589 0.0671 |
| 5.0 | 1 | 3107.92 50.84 | 11.65 5.40 | 0.7639 0.1144 |
| 1 | 3086.35 93.44 | 12.33 5.18 | 0.8037 0.1017 |
TABLE S3
Temperature ablation on SafetyAntVelocity-v1 with and the default . Entries report mean standard deviation. Mean reports the average absolute change between consecutive logged multipliers. Bold marks the highest mean reward.
| Reward () | Cost () | Mean | |
|---|---|---|---|
| 1 | 3200.44 75.58 | 19.73 2.46 | 0.0865 0.0162 |
| 1.5 | 3192.72 62.06 | 20.24 1.36 | 0.08649 0.01625 |
| 2 | 3098.98 61.66 | 20.34 1.07 | 0.08890 0.00939 |
D.3 Learning Curves on Safety-Gym Velocity Tasks
Figure S2 reports PPO-SDLA learning curves; Figure S4 reports the SAC-SDLA counterpart.
We integrate SDLA with SAC and evaluate it on Safety-Gym velocity tasks. Figure S4 presents the reward, cost, and Lagrange multiplier trajectories, respectively.
D.4 Additional Comparisons and Training Diagnostics
D.4.1 Constraint Tracking during Training
We compare PPO-SDLA with PPOLag on the Ant and Walker2d velocity tasks using complete training logs. PPOLag was rerun with multiplier logging for this comparison. Let denote the logged episode cost and let be the number of logged updates. We report the violation rate, average overshoot, and constraint-boundary crossing rate:
Table 5 in the main paper reports these summaries over the full logged training horizon; Figure S3 presents the same values graphically.
D.4.2 Wall-Clock Time
On SafetyAntVelocity with a single NVIDIA RTX 4090 (24 GB), stable-training epochs take 23.58 seconds for PPO-SDLA versus 23.22 for PPOLag. Runs take approximately 3.28 versus 3.23 GPU-hours, a 1.5% increase.
D.4.3 Multiplier Cap
The same is used across tasks. We measure near-cap frequency by
Table S4 shows that the logged multiplier stays below this region on four tasks and enters it for 2.4% of updates on Swimmer.
D.5 Evaluation on HASARD Benchmark
We evaluate PPO-SDLA on the HASARD benchmark across three difficulty levels (L1–L3) and six scenarios: Armament Burden, Volcanic Venture, Remedy Rush, Collateral Damage, Precipice Plunge, and Detonator’s Dilemma. Learning curves are presented in Figures S5–S10. Lines show mean training episode aggregates and shaded regions show one standard deviation across runs. For PPOCost, the logged cost penalty is added back to the logged reward to recover task reward, as in the tables. The plots compare PPO-SDLA, PPOLag, PPOCost, PPOPID, and PPOSaute; the tables additionally report PPO and P3O.
Table 3 compares terminal PPO-SDLA summaries with human averages over 10 episodes.

(a) Ant
(b) HalfCheetah
(c) Hopper
(d) Swimmer
(e) Walker2d

(f) Ant
(g) HalfCheetah
(h) Hopper
(i) Swimmer
(j) Walker2d

(k) Ant
(l) HalfCheetah
(m) Hopper
(n) Swimmer
(o) Walker2d
Fig. S2. PPO-SDLA on Safety-Gym velocity tasks. Rows show episode reward, episode cost, and the dual variable , respectively.
(a) Mean

PPOLag
(b) Violation (%)

PPO-SDLA
(c) Overshoot

(d) CrossRate (%)

Fig. S3. Full-training constraint tracking on Ant and Walker2d, using the values in main Table 5. Points show means and error bars show one standard deviation. Panels report mean absolute multiplier change, violation rate, average overshoot, and constraint-boundary crossing rate. The cost budget is d = 25; overshoot includes all logged updates.
TABLE S4
Fraction of logged PPO-SDLA updates with , using .
| Environment | Near-cap frequency (%) |
|---|---|
| SafetyAntVelocity-v1 | 0.000 |
| SafetyHalfCheetahVelocity-v1 | 0.000 |
| SafetyHopperVelocity-v1 | 0.000 |
| SafetySwimmerVelocity-v1 | 2.400 |
| SafetyWalker2dVelocity-v1 | 0.000 |

(a) Ant
(b) HalfCheetah
(c) Hopper
(d) Swimmer
(e) Walker2d

(f) Ant
(g) HalfCheetah
(h) Hopper
(i) Swimmer
(j) Walker2d

(k) Ant
(l) HalfCheetah
(m) Hopper
(n) Swimmer
(o) Walker2d
Fig. S4. SAC-SDLA on Safety-Gym velocity tasks. Rows show episode reward, episode cost, and the dual variable , respectively.

(a) Armament R
(b) Armament C
(c) Volcanic R
(d) Volcanic C
(e) Remedy R
(f) Remedy C
Fig. S5. Learning curves on HASARD Level 1 (Part 1): Armament Burden, Volcanic Venture, Remedy Rush.

(a) Collateral R
(b) Collateral C
(c) Precipice R
(d) Precipice C
(e) Detonator R
(f) Detonator C
Fig. S6. Learning curves on HASARD Level 1 (Part 2): Collateral Damage, Precipice Plunge, Detonator's Dilemma.

(a) Armament R
(b) Armament C
(c) Volcanic R
(d) Volcanic C
(e) Remedy R
(f) Remedy C
Fig. S7. Learning curves on HASARD Level 2 (Part 1): Armament Burden, Volcanic Venture, Remedy Rush.

(a) Collateral R
(b) Collateral C
(c) Precipice R
(d) Precipice C
(e) Detonator R
(f) Detonator C
Fig. S8. Learning curves on HASARD Level 2 (Part 2): Collateral Damage, Precipice Plunge, Detonator's Dilemma.

(a) Armament R
(b) Armament C
(c) Volcanic R
(d) Volcanic C
(e) Remedy R
(f) Remedy C
Fig. S9. Learning curves on HASARD Level 3 (Part 1): Armament Burden, Volcanic Venture, Remedy Rush.

(a) Collateral R
(b) Collateral C
(c) Precipice R
(d) Precipice C
(e) Detonator R
(f) Detonator C
Fig. S10. Learning curves on HASARD Level 3 (Part 2): Collateral Damage, Precipice Plunge, Detonator's Dilemma.
Rewards and costs over five SDLA runs and available baseline runs. The cost threshold is 5 for Remedy Rush, Collateral Damage, and Detonator's Dilemma, and 50 for all other environments. Green: mean cost meets the budget. Bold Green: highest mean reward among methods meeting the mean cost budget.
TABLE S5
| Level | Armament Burden | Volcanic Venture | Remedy Rush | Collateral Damage | Precipice Plunge | Detonator's Dilemma | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | PPO | ||||||||||||
| PPOCost | |||||||||||||
| PPOlag | |||||||||||||
| PPOsaute | |||||||||||||
| PPOPID | |||||||||||||
| P30 | PPO | ||||||||||||
| PPO-SDLA (ours) | |||||||||||||
| 2 | PPO | ||||||||||||
| PPOCost | |||||||||||||
| PPOlag | |||||||||||||
| PPOsaute | |||||||||||||
| PPOPID | |||||||||||||
| P30 | PPO | ||||||||||||
| PPO-SDLA (ours) | |||||||||||||
| 3 | PPO | ||||||||||||
| PPOCost | |||||||||||||
| PPOlag | |||||||||||||
| PPOsaute | |||||||||||||
| PPOPID | |||||||||||||
| P30 | PPO | ||||||||||||
| PPO-SDLA (ours) | |||||||||||||
APPENDIX E
EXTENDED DISCUSSION OF RELATED METHODS
E.1 Primal-Dual Approach
The standard primal-dual approach forms the Lagrangian and solves via gradient descent-ascent (GDA) [3], [4], [5]:
GDA on minimax problems can exhibit slow progress and sensitivity to the relative primal and dual stepsizes [11]. Oscillation is also commonly observed near the constraint boundary [6].
E.2 Stabilizing Multiplier Updates
Several methods stabilize updates within the primal-dual structure. Stooke et al. [6] interpret gradient multiplier updates as integral control and introduce proportional and derivative feedback. Their continuous-time analysis explains how the proportional term adds damping, while the derivative term uses cost trends to anticipate constraint violations. Tuned controller gains set the strength of each feedback term. Gradient and PID methods specify how the multiplier evolves from cost errors and their history. SDLA derives a response from a regularized scalar objective on the current trajectory batch, with explicit activation conditions and response-gain bounds.
Dai et al. [12] add a quadratic penalty term to the Lagrangian. CAL [13] calibrates the cost critic in off-policy learning.
Recent works have also explored regularization-based approaches for stable primal-dual updates in CMDPs. [14] propose RPG-PD, which combines entropy regularization on the policy with quadratic regularization on the dual variable, achieving sublinear last-iterate convergence via single-time-scale GDA. [15] propose C-PG, a general framework with dual-variable regularization that achieves global last-iterate convergence under weak gradient domination assumptions. SDLA constructs its regularized dual objective from a frozen trajectory batch and current policy cost information, then computes the response with a scalar inner solve. This dual update retains the PPO and SAC actor update rules.
E.3 Penalty, State-Augmentation, and Projection Methods
Penalty-based alternatives include PPOCost [36], which uses with a fixed coefficient, and P3O [16]. The penalty strength controls the reward-cost tradeoff. P3O establishes exactness for a sufficiently large finite coefficient and uses a sample approximation in its practical surrogate [16].
State augmentation methods transform the CMDP into an unconstrained problem. SAUTE RL [21] augments the state with a safety budget , and SIMMER [22] extends this with budget scheduling. The resulting policy takes budget-conditioned inputs and optimizes a reshaped objective; SIMMER also schedules the budget.
Constrained and projected policy methods modify the actor update directly. CPO [17] and PCPO [18] use local constraint and KL approximations, with second-order computations in their practical updates. FOCOPS [19] and CUP [20] implement policy projection with first-order updates.
ACKNOWLEDGMENTS
OpenAI ChatGPT/Codex assisted with draft polishing. The authors take responsibility for the final manuscript.