arXiv:2611.09290cs.LGNov 2026

Manuscript Offprint

arXiv:2611.09290

Safety-Focused Reinforcement Learning Using Risk-Sensitive Coupled Control

Jiabin Lin, Shana Moothedath, Vivek S. Borkar

Jiabin Lin, Shana Moothedath, Senior Member, IEEE, and Vivek S. Borkar Fellow, IEEE

Abstract— This paper investigates the coupled control problem within safety-focused reinforcement learning, addressing the essential challenge of achieving optimal performance while ensuring safety in systems operating within complex environments. We define safety as the requirement to prevent the system from reaching undesirable or hazardous states. We propose a coupled control approach that prioritizes safety by employing effective methods to prevent the system from entering unsafe states while optimizing the performance metric, defined as the average cost. We propose a novel problem transformation that reformulates it into a risk-sensitive problem combined with an average reward criterion. We present a two-timescale Q-learning algorithm where in the faster timescale, the algorithm solves a risk-sensitive control problem to ensure safety, while on a slower timescale, the algorithm focuses on average cost control. We provide theoretical guarantees for the convergence of our algorithms, establishing their significance in ensuring safe, optimal control in dynamic environments. We validated the performance of our approach using Grid-World and CarGoal task in Safety Gymnasium.

Index Terms— Safe control, constrained reinforcement learning, Q-learning, stochastic approximation

I. INTRODUCTION

Markov decision processes (MDPs) are extensively used to model decision-making challenges in domains like autonomous vehicles and robotics [1]. As the focus on safety-critical cyber-physical systems intensifies, there is an increasing need to embed safety constraints within MDP models to balance performance with operational safety. In applications such as autonomous vehicles, robotics, and industrial automation, integrating safety into the control framework is essential for reliable operation in dynamic, unpredictable environments. Coupled control enables systems to maintain safety in the presence of obstacles, failures, and disturbances while optimizing performance. This paper presents the Safety-focused Coupled-Control (SCC) problem, aimed at minimizing cumulative costs while optimizing performance criteria and ensuring that system states remain within a defined safe set. By dividing the control strategy into two components, emergency control for safety and regular control for performance optimization, we create a structured approach to decision-making in high-stakes environments. This integration effectively addresses safety constraints while paving the way for more advanced hierarchical decision-making architectures.

Safe reinforcement learning (RL) has emerged as a crucial area of research, focusing on ensuring that learning agents operate within defined safety constraints while interacting with complex environments. For a survey on safe RL we refer to [2], [3]. A standard and well-studied formulation for reinforcement learning with constraints is the constrained Markov Decision Process (CMDP) framework [4], [5], where agents must satisfy constraints on expectations of auxiliary costs [6]–[8]. CMDP problems are well studied, asymptotic [1], [8]–[11], and non-asymptotic [12]–[17] guarantees are provided. The safety specifications in the majority of the CMDP methods are expected discounted cumulative costs [1], [8], [11], [18]. However, the main deficiency of expected costs is averaging the potential danger at a state to the whole trajectory. For instance, an autonomous vehicle must maintain a safe distance from other traffic participants and obstacles at all times, not just an average or cumulative distance over a period, as a collision can occur in a single time step. Therefore, constraints based on expected cumulative costs do not provide a rigorous definition or guarantee absolute safety. Control theoretic approaches based on Lyapunov functions [19]–[21] and control barrier functions [22]–[24] were explored recently for safe learning. In the former, one defines a Lyapunov function ensuring that learned policies are both optimal in terms of performance and safety. In the latter, a barrier function is designed to return a high penalty when the agent is close to an unsafe state. However, these methods rely on the prior formulation of the Lyapunov function, which results in conservative feasible sets. Hamilton-Jacobi (HJ) reachability analysis was also adapted for safe RL [25], [26]. However, these studies focus on ensuring safety in policy development without considering the performance criterion, such as reward optimization. This safety-only design significantly limits broader applications of HJ reachability analysis in RL.

A recent study [27] examined the safe RL problem as a reachability-constrained RL problem, where the goal is to ensure the entire state trajectory is safe, which is related to our problem setting. [27] considered a deterministic environment and policy and a discounted reward model for the objective. When the environment and policy are both deterministic, there is a unique trajectory for starting from each state (i.e., the future state is uniquely determined), which simplifies the approach, unlike our setting. Later [28] extended the reachability-constrained RL problem to the stochastic setting. The goal in [27], [28] is to find a policy that maximizes performance in safe states while minimizing cumulative damage in unsafe states. To this end, they modeled the problem as a

J. Lin and S. Moothedath are with Electrical and Computer Engineering, Iowa State University. Email: {jiabin, mshana}@iastate.edu. V. S. Borkar is with Department of Electrical Engineering, Indian Institute of Technology, Bombay, India. Email: borkar.vs@gmail.com constraint optimization using a weighted linear combination of the two objectives and proposed a Lagrange relaxation-based algorithm similar to the CMDP approaches. In contrast, our approach seeks an optimal policy that enhances performance while strictly preventing the system from reaching predefined unsafe states. Additionally, we adopt an average cost performance model, which is harder to analyze, so the approach in [27], [28] for the discounted setting does not apply directly.

In risk-sensitive sequential decision-making, the objective is to maximize a risk-sensitive criterion such as the expected exponential utility [29]–[31], a variance-related measure [32]–[35], or the percentile performance [36]. Risk-sensitive decision-making is also used as an alternative approach for handling uncertainty, which intriguingly shares an elegant equivalence with robust decision-making [37], [38]. The challenge in risk-sensitive RL involves the non-linearity of the objective function and the need for a risk-aware exploration mechanism. Classical RL algorithms are unsuitable in this setting, as their design crucially relies on the linearity of Bellman equations. To address these challenges, model-free algorithms such as Risk-Sensitive Value Iteration (RSVI) and Risk-Sensitive Q-learning (RSQ) have been introduced.

In this paper, we study the safe RL under average cost criteria. The objective of the agent is to develop a control policy that guarantees the state trajectory avoids any unsafe states while also minimizing the average cost associated with performance during operation. This is particularly relevant in safety-critical applications like autonomous driving, where it is essential to ensure that unsafe states are never encountered, as even a single misstep can have catastrophic consequences. In such settings, where long-term stability is key, average reward ensures that the agent does not focus on maximizing immediate rewards at the cost of potential long-term risks.

Contributions: Our contributions are threefold.

• Safety-focused Coupled-Control problem (SCC): We formulate SCC, a state safety-constrained control problem. The control policy consists of two interacting components: an emergency controller, which enforces state safety, and a regular controller, which optimizes performance subject to the safety constraints. To solve the SCC problem, we introduce a novel problem transformation that converts the safety objective into a risk-sensitive criterion. Simultaneously, the performance objective is reformulated as an average-cost problem on a re-defined Markov chain with a transformed probability structure that inherently enforces safety.

• Two-timescale reinforcement learning algorithm for SCC: We propose a two-timescale Q-learning algorithm, Q-SCC, to address the coupled-control problem. First, we transform the emergency control problem into a risk-sensitive formulation using a carefully defined problem transformation and introduce a Q-learning algorithm to solve this component. The key challenge is that, unlike in standard risk-sensitive learning, where the risk cost is predefined and observed, in our setting the risk cost is induced by the safety requirements and hence unknown. To overcome this, we propose an eigenpair estimate of the kernel. For the regular control problem, we develop a Q-learning algorithm under an average reward criterion, applying a kernel transformation to create a twisted kernel that respects

the safety constraints. On a faster timescale, the Q-learning algorithm handles the risk-sensitive control, while on a slower timescale, the Q-learning algorithm focuses on average cost control. We provide theoretical guarantees for the convergence of our algorithm, ensuring its effectiveness in managing both state safety and average reward performance objectives.

• Numerical evaluation: We evaluated our proposed Q-SCC algorithm on a GridWorld and a fixed-layout CarGoal task in Safety Gymnasium, and compared against benchmark methods, validating the effectiveness and reliability of our coupled control framework in achieving safety and performance.

References (50)