arXiv:2611.00636cs.LGOct 2026

Manuscript Offprint

arXiv:2611.00636

Structural Dual Adaptation for Safe Reinforcement Learning

Runsheng Yu, Zhuoyang Song, Zengde Deng, Qixin Zhang, Li Shen, Jiaxing Zhang

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 λ\lambda that controls the cost penalty during policy improvement [3], [4], [5]. For a fixed policy with mean cost cc, the multiplier objective is λ(d−c)\lambda(d-c). Its exact minimizer on [0,λmax⁡][0, \lambda_{\max}] switches from zero to λmax⁡\lambda_{\max} as cc crosses the budget dd. 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 c≤dc \leq d 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 ελ\varepsilon_\lambda. 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.

MethodInner SolveAvoids Bang-Bang
LagrangianO(1) (closed form)✗
Lagrangian-PIDNo closed form—
Entropy-RegularizedO(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.

References (37)