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.
II. BACKGROUND AND RELATED WORK
A. Background: Markov Decision Process (MDP)
MDP is the standard framework for modeling a stochastic dynamical system and computing its optimal control policy [39]. Let X and U be compact sets describing the states and actions of the controller (agent), respectively, and c:X×U→R is the cost function. The system dynamics is characterized by the probability transition structure P, where P(j∣i,u) is the probability of transitioning to state j from state i under control action u. A policy π:X→U is a conditional distribution π(u∣x) that guides the decision-making process of an agent. At time t∈{1,2,…,n}, the agent observes the current state Xt and chooses an action Ut from the policy π(u∣i), and observes the cost c(i,u). The action chosen by the agent at a state drives the agent to the next state according to P(j∣i,u), where j belongs to the set of neighboring states of i. A trajectory τ={X0,U0,X1,U1,…,Xn−1,Un−1} is a sequence of state-action pairs traversed by the agent following a policy. The goal of the agent is to find an optimal policy π∗ that minimizes the average cumulative cost limn→∞n1∑t=0n−1E[c(Xt,Ut)] under average cost criteria. When the model P is known, π∗ can be computed using dynamic programming approaches, such as value iteration and policy iteration [39]. Here, the value function V:X→R gives the solution to
with i0∈X and u0∈U prescribed. However, in many real-world problems, the model ( P) is unknown. The goal of reinforcement learning algorithms is to learn the optimal policy without prior knowledge of the model.
B. Related Work
Constrained reinforcement learning (CRL) problems are typically modeled as Constrained Markov Decision Processes (CMDPs) [5]. This approach extends traditional MDPs by incorporating a cost function to ensure compliance with constraints. The goal is to maximize the expected performance while keeping the cost incurred below a specified threshold. Constrained optimization approaches are adopted to solve
CRL problems. In penalty methods, penalty terms are introduced in the reward function to add safety constraints, discouraging the agent from taking actions that violate the safety criteria. Lagrangian methods [11], [27], [28], [40], [41] incorporate safety constraints into the optimization problem by introducing Lagrange multipliers, which penalize constraint violations and balance the trade-off between performance and safety. Trust-region methods are a well-studied approach [8], [18] that update the policy within a predefined safe region to prevent large, unsafe changes. These methods typically use Constrained Policy Optimization (CPO) with surrogate functions for rewards and safety constraints, ensuring that each policy update remains within a specific region. The process includes projection steps and backtracking line searches to iteratively adjust the policy while minimizing the risk of significant modifications. Inspired by Proximal Policy Optimization (PPO) [42], which built upon trust region policy optimization, the penalized proximal policy optimization approach [43] was introduced for safe reinforcement learning, enhancing trust-region methods by integrating a clipping mechanism to better balance exploration and safety. Constraint-Rectified Policy Optimization (CRPO) [44] dynamically improves reward performance when constraints are satisfied, while actively minimizing constraint violations when they are not. A model-based safe RL algorithm was proposed in [14] that integrates optimistic exploration for reward maximization with pessimistic exploration to prevent safety violations. This approach seeks to balance the exploration of high-reward actions while avoiding unsafe states. It relies on access to a known safety policy and combines a reward bonus for optimistic exploration with a conservative constraint for pessimistic exploration, in addition to the standard optimistic model-based exploration techniques. Although all these algorithms offer benefits through various learning mechanisms, they still inherit the challenges of the CMDP framework. Specifically, they do not ensure absolute safety and are generally unsuitable for strict state-wise safety. Recently, safe RL has been studied in the context of reachability-constrained RL problem [27], [28]. Reachability-constrained RL uses reachability to optimize and maintain persistent safety in the feasible set via a cumulative cost-minimization objective along with discounted reward criteria for the performance. Both works leveraged Lagrangian method to solve the problem and provided convergence guarantees under certain assumptions on differentiability and Lipchitzness.
III. PROBLEM FORMULATION
We consider a controlled stochastic matrix Pu,v(j∣i), where i,j belong to a finite state space X and u,v are control variables taking values in finite action spaces U,V, respectively. We denote ϕ(⋅),ψ(⋅) respectively, a generic stationary or stationary randomized policy. We use {Xn} to denote a generic controlled Markov chain and {Un},{Vn} the corresponding U-valued, V-valued control sequences, respectively.
Our goal is to model the coupled-control problem, where the goal is to devise a joint control policy that minimizes the expected cost for a performance criterion while ensuring that the state of the system remains within the safe set X0⊂X.
We refer to the control {Un} as the regular control and {Vn} as the safety/emergency control. The regular control is trying to minimize a given average cost, and the emergency control is trying to keep the state within X0. The two controls represent separate task and safety measures. A single controller over the joint action (u,v) could represent the same policy. Our aim is to impose distinct optimization requirements. The emergency action is evaluated against the worst regular action through the max-min objective. Thus, its protective role does not rely on the regular controller already choosing for its most efficient action. The safe set provides the safe observed states but does not indicate which actions maintain the safety of the next state when the transition probabilities are unknown. Mathematically, the regular-control problem is formulated as
n→∞limn1t=0∑n−1E[w(Xt,Ut)],(1)
where w(⋅) is the running cost for each state-control (regular).
The goal of the emergency control is to keep the state within X0. Let Pu,v0 denote the restriction of Pu,v to X0, and Pϕ,ψ0 the corresponding matrix under a fixed stationary policy pair (ϕ,ψ). Without loss of generality, we assume X0={1,2,…,∣X0∣}. Then Pϕ,ψ0∈R∣X0∣×∣X0∣ is substochastic and has a unique principal eigenvalue Λ⩽1 and a component-wise strictly positive principal eigenvector e=[e(1),…,e(∣X0∣)], rendered unique by a suitable normalization. Let us denote H:=min{n≥0:Xn∈/X0} for a controlled Markov chain {Xn} under this policy pair. Using 1 to denote the ∣X0∣-dimensional vector of all ones, we have
Prob(H>n)=μ(Pϕ,ψ0)n1,
where μ∈R1×∣X0∣ is the initial distribution on X0. Thus,
λ:=logΛ=n→∞limn1log(μ(Pϕ,ψ0)n1).(2)
In Eq. (2), the right-hand side is simply the logarithm of the probability of all trajectories of length n that never leave X0. Thus, the safety/emergency control problem aims at maximizing λ. We assume that there exists at least one admissible {Vn} that meets the safety requirement.
The overall objective of the Safety-focused Coupled-Control problem (SCC) problem is to minimize the regular average cost in Eq. (1) while maximizing the emergency safety exponent in Eq. (2). We make the following standard assumptions.
Assumption 3.1: We assume that the restricted state space X0 is irreducible and aperiodic for any choice of (ϕ,ψ). Assumption 3.1 is standard in reinforcement learning and is crucial for the convergence of learning algorithms, allowing for accurate estimation of optimal policies and value functions across diverse and complex environments [39], [45].
IV. PROPOSED SOLUTION: TWO-TIMESCALE Q-LEARNING ALGORITHM FOR SCC
First, we reformulate the safety-constrained (emergency) problem as outlined below. This approach leverages the insight that, with appropriate definitions, the emergency problem can be framed as a risk-sensitive optimization problem. We define
Pu,v⋆:=[p⋆(j∣i,u,v)]i,j∈X0 be a stochastic matrix defined as
p⋆(j∣i,u,v):=du,v(i)P(j∣i,u,v), where du,v(i)=∑j∈X0P(j∣i,u,v).
We define the ∣X0∣×∣X0∣ diagonal matrix Du,v with the i-th diagonal element as du,v(i) for all i∈X0. Let cu,v(i):=logdu,v(i), for all i∈X0. By direct verification, we get
Pu,v0=Du,vPu,v⋆,
with Du,v(i)=ecu,v(i). We assume the well-posed condition du,v(i)>0 for all (i,u,v)∈X0×U×V. This ensures that the normalized kernel Pu,v⋆ and the logarithmic cost cu,v(i)=logdu,v(i) are well defined for every state-action pair. Thus the emergency control problem in Eq. (2) is can be written as
for an X0-valued controlled Markov chain with controlled transition matrix Pu,v⋆ under the same policy pair. Since emergency control is responsible for ensuring safety, we adopt a risk-sensitive safety criterion
where ϕ ranges over admissible regular-control policies and ψ ranges over admissible emergency-control policies. Thus, under the above problem transformation, the emergency control problem is reformulated as the risk-sensitive control problem
Equivalently, at the dynamic-programming level, the Bellman-Perron operator has the structure maxv∈Vminu∈U.
Next, we discuss the regular control problem. Consider stationary randomized policies, ϕ,ψ. Let us denote the principal eigenvalue-eigenvector pair of the transition matrix Pϕ,ψ0 under policy ϕ,ψ as (Λϕ,ψ,eϕ,ψ). We define ∣X0∣×∣X0∣ matrix
From Theorem 1 [46] and Assumption 3.1, Pϕ,ψ is a transition probability matrix for a Markov chain governed by the policy pair ϕ,ψ conditioned on remaining in the safe state set X0 up to a horizon tending to infinity. The eigenvector ratio weights safe successor states according to their long-term survival under the fixed policy pair. Hence, for the regular-control problem solved by Q-SCC, the expectation in Eq. (6) uses the limiting conditional mean of Eq. (8), with the limiting emergency-action distribution held fixed as in Section IV-D. This kernel uses the fixed-action eigenpairs in Eqs. (9)–(10). Mathematically, we can rewrite the regular control problem as, under Pϕ,ψ
ϕ⋆∈argϕmin(n→∞limn1t=0∑n−1Eϕ[w(Xt,Ut)]),(6)
where w(⋅) is a given running cost function defined for a state-control (regular) action pair. The couple-control SCC problem hence is to solve for (ϕ⋆,ψ⋆) given in Eq. (4) and Eq. (6).
A. Q-SCC: Two-Timescale Q-learning Algorithm for Safety-Focused Coupled-Control
Algorithm 1 Q-SCC: Two-Timescale Q-learning for SCC
1: Input: State space X, safe set X0, action sets U,V, cost functions w(⋅), exploration parameter ϵ∈(0,1), a margin parameter Δ>0, and number of episodes T>>0
2: Output: Learned policies (ϕT,ψT)
3: Initialize randomly the emergency control Q-values Q0(i,u,v)>0 for (i,u,v)∈X0×U×V, and Q0(i,u,v)←0 for i∈/X0
4: Initialize randomly principal eigenvector e0(i,u,v)>0 for (i,u,v)∈X0×U×V, and e0(i,u,v)←0 for i∈/X0
5: Initialize randomly the regular control Q-values Q0(i,u), for i∈X0, and Q0(i,u)←0, for i∈/X0, for all u∈U
6: Initialize the global counter n←0 and the visit counters ν(i,u,v,0)←0 for all (i,u,v)∈X0×U×V. Fix a deterministic ordering on V for tie-breaking and choose an initial emergency action vˉ0(i)∈V for each i∈X0.
7: for episode m=1,2,⋯,T do
8: Initialize t←0, X0(m)∈X0
9: while Xt(m)∈X0 do
10: For all k=Xt(m), set vˉn+1(k)=vˉn(k). For the current state Xt(m), update the emergency action by
vˉn+1(Xt(m))=⎩⎨⎧vˉn(Xt(m)),if maxv′∈Vminu′∈UQn(Xt(m),u′,v′)⩽minu′∈UQn(Xt(m),u′,vˉn(Xt(m)))+Δthe first element ofargmaxv′∈Vminu′∈UQn(Xt(m),u′,v′),else.
13: Apply control Un,Vn at Xt(m) and observe cost w(Xt(m),Un) and next state Xt+1(m)
14: Update emergency Q iterates as in Eq. (7)
15: Update principal eigenpair iterates as Eqs. (9), (10)
16: Update the regular control Q iterates as in Eq. (11)
17: Update global visit counter ν(Xt(m),Un,Vn,n)
18: Set n←n+1 and t←t+1
19: end while
20: end for
Now we present the proposed algorithm to solve the coupled-control problem. The pseudocode is given in Al-algorithm 1. Our approach is a two-timescale RL algorithm, comprising a fast-timescale safety update and a slow-timescale performance update. The fast update consists of two coupled stochastic-approximation recursions. We apply a normalized risk-sensitive Q-learning recursion, inspired by Borkar's relative Q-learning framework for risk-sensitive control [29], to address the safety/emergency problem. The key challenge is that, unlike in standard risk-sensitive Q-learning, where the immediate cost is observed and known, in our setting the cost is induced by the state safety constraint. Consequently, the cost model depends on the transition dynamics, which are unknown a priori. We therefore perform an eigen estimate. We then analyze regular control as a worst-case scenario with respect to the safety problem. Thus, the corresponding Bellman-Perron operator provides an effective structure maxv∈Vminu∈U, resulting in the emergency update presented in Eq. (7).
Algorithm 1 maintains a state-dependent emergency selector vˉn:X0→V. Upon visiting state i, the margin-inertia rule sets vˉn+1(i)=vˉn(i) if maxv∈Vminu∈UQn(i,u,v)≤minu∈UQn(i,u,vˉn(i))+Δ. Otherwise, vˉn+1(i) is assigned the first maximizing action according to the specified ordering of V. Thus, a switch occurs only when the alternative improves the current Q-value by more than a threshold Δ, thus preventing repeated switching among very similar emergency actions. The rule maintains the Bellman–Perron objective in Eq. (7) unaffected, with the optimization maxv∈Vminu∈U.
The regular-control problem is formulated using the limiting kernel associated with Eq. (8). The related twisted kernel requires the principal eigenvalue-eigenvector pair of the sub-stochastic safe kernel. Given the unknown nature of this pair, Q-SCC applies an asynchronous stochastic approximation recursion to estimate the principal eigenpair, as shown in Eqs. (9) and (10). This eigenpair estimation step is significantly different from the emergency risk-sensitive Q-update in Eq. (7). Eq. (7) determines the safety action-value fixed point, while Eqs. (9) and (10) obtain the scalar values needed to develop the twisted kernel.
In the slower timescale, driven by b(n) where a(n)b(n)→0, the regular controller applies relative Q-learning for average cost MDPs. Thus, the slow regular control recursion treats the emergency updates and the scalar values derived by the fast stage as quasi-static. Thus, the emergency-control Q-learning updates using stochastic approximation is Qn+1(i,u,v)=
where 1{f} is an indicator function with 1{f}=1 if f holds and 1{f}=0, otherwise, and the state action pair i0 and u0,v0 are fixed elements of X0,U,V, respectively. The notation ν(i,u,v,n) here denotes the number of times the state-action pair (i,u,v) is updated until n.
Assumption 4.1: There exist constants CH<∞, cH>0, and a finite random time NH<∞ such that, for all n⩾NH
Furthermore, every component (i,u,v)∈X0×U×V is sampled infinitely often and there exists η>0 such that
n→∞liminfnν(i,u,v,n)⩾η,for all(i,u,v)∈X0×U×V.
Eq. (7) is the model-free sample variant of the normalized Bellman-Perron update related to the risk sensitive emergency problem. Given that Xn=i, Un=u, and Vn=v,
Thus, the indicator 1{Xn+1∈X0} provides an unbiased sample of the substochastic safe transition operator. In particular, the emergency update in Eq. (7) does not require a specific estimation of du,v(i)=ecu,v(i). The normalization via the anchor component Qn(i0,u0,v0) is the relative normalization derived from risk sensitive Q-learning, which determines the scale of the positive fixed point. Under the normalization Q∗(i0,u0,v0)=Λ∗, the limiting mean field of Eq. (7) is the normalized ODE Q˙=G(Q)−Q. For the regular control, we utilize the relative value iteration Q-learning algorithm from [47] with the empirical row-wise twisted kernel in Eq. (8). The corresponding relative Bellman target for (i,u)
The construction of the twisted kernel requires the principal eigenpair of the substochastic safe kernel related to the current action pair. Due to the unknown transition model, these scalar values must also be learned from samples. Thus, we perform an asynchronous Perron-Frobenius eigenpair recursion in a fast timescale, drawing inspiration from the stochastic approximation spectral-ranking approach [48]. For each fixed pair
(u,v), the vector en(⋅,u,v) estimates the positive principal eigenvector of the corresponding safe kernel, while Λn(u,v) estimates its principal eigenvalue under the normalization given by the positive weight vector α. For prescribed weights α=[α1,⋯,α∣X0∣]⊤ with all αi>0,
We now discuss the slower timescale regular control recursion. Based on the current emergency action Vn chosen by the fast safety controller and the current principal eigenpair estimates (Λn,en), we construct the estimated twisted kernel p~n(⋅∣i,u) in Eq. (8). This is the sample-based transition kernel used by the regular recursion. Upon the convergence of the fast variables, its limiting counterpart is a valid stochastic kernel on X0. The regular controller then performs the relative Q-learning method for average cost MDPs [47] with respect to this limiting twisted kernel. Given that a(n)b(n)→0, the principal eigenpair estimates and the emergency selector proceed on the faster timescale are treated as quasi-static by the regular control recursion. Thus the Q-update for regular control is
Here, νR(i,u,n)=∑t=0n1{Xt=i,Ut=u} represents the regular-control counter. The sequence b(n) satisfies the Robbins-Monro conditions, i.e., ∑nb(n)=∞, and ∑tnb(n)2<∞. Further, we set b(n)=o(a(n)). Let B(n):=∑ℓ=0nb(ℓ). For every x∈(0,1],
n→∞limB(n)B(⌊xn⌋)→1,n⩾1supb(n)b(⌊xn⌋)<∞.
Moreover, the corresponding regular-control sampling condition is derived from Assumption 4.1. Indeed, since νR(i,u,n)=∑v∈Vν(i,u,v,n), Assumption 4.1 indicates that every regular component (i,u)∈X0×U is updated infinitely often. It follows liminfn→∞nνR(i,u,n)⩾∣V∣η.
The Q-value and eigenpair tables require O(∣X0∣∣U∣∣V∣) storage. A statewise max-min computation costs O(∣U∣∣V∣), and direct eigenvector normalization costs O(∣X0∣).
B. Convergence Analysis of Emergency Control
In this subsection, we prove almost-sure convergence of the emergency-control recursion in Eq. (7).
From the above definition, operator T satisfies the following:
Translation invariance: T(h+α1)=Th+α1 for all α∈R,h∈R∣X0∣, where 1 denotes the vector of all ones.
Monotonicity: if h⩽g componentwise, then Th⩽Tg componentwise.
Nonexpansiveness: ∥Th−Tg∥∞⩽∥h−g∥∞ and ∥Th−Tg∥H⩽∥h−g∥H, where ∥⋅∥∞ is the supermum-norm and ∥⋅∥H denotes the Hilbert semi-norm.
Thus, G(Q)=Q(i0,u0,v0)Λ⋆F(Q). The representative of the positive fixed-point ray is normalized by Q∗(i0,u0,v0)=Λ⋆, resulting in F(Q⋆)=G(Q⋆)=Q⋆.
The analysis consists of three parts. In the first part, we prove the existence of the Bellman-Perron eigenpair, identify its eigenvalue with the optimal risk-sensitive safety exponent, and demonstrate that its positive eigenvector is unique up to a multiplicative constant. Thus, the given anchor normalization results in a unique fixed point Q∗. In the second part, we investigate the limiting ODE and demonstrate that Q∗ is its unique globally asymptotically stable equilibrium. Finally, in third part, we formulate the emergency-control update as an asynchronous stochastic-approximation recursion, ensure the required stability and martingale-noise conditions, and apply the ODE method to establish that Qn converges to Q∗ almost surely. We present the main theorems and a proof sketch below. The complete proofs are in Appendix.
Theorem 4.3: Let (Λ1,H1) and (Λ2,H2) be two strictly positive solutions of H=Λexp(Th). Then Λ1=Λ2=Λ⋆ and H1=cH2, where Λ=exp(λ) and H=exp(h).
Theorem 4.4: The vector Q∗ is a globally asymptotically stable equilibrium point for the ODE Q˙=G(Q)−Q.
Theorem 4.5: Suppose Assumption 4.1 holds. Under Assumption 3.1, the standing well-posedness condition du,v(i)>0, the positive initialization in Algorithm 1, and the sampling condition stated after Eq. (7), the emergency Q-learning recursion in Eq. (7) satisfies Qn→Q∗ almost surely. Consequently, Qn(i0,u0,v0)→Λ∗ almost surely.
Remark 4.6: (Safety of the limiting policy) Given the assumptions of Theorem 4.5 and there exists a stationary emergency policy ψ satisfying du,ψ(i)(i)=1 for every i∈X0 and u∈U, derive that maxvminudu,v(i)=1, leading to T(0)=0. According to Theorem 4.3, it follows that Λ⋆=1 and there exists a constant positive state eigenvector. Thus, Definition 4.2 implies that Q⋆(i,u,v) is proportional to du,v(i), with the same positive factor for all (i,u,v). Since
du,v(i)⩽1, every selector
ψ⋆(i)∈argv∈Vmaxu∈UminQ⋆(i,u,v)
satisfies du,ψ⋆(i)(i)=1 for every regular action u. Performed without exploration, this policy keeps every transition within X0. Induction over finite horizons and continuity of probability yield
Prob(H=∞∣X0=i)=1,i∈X0.
This guarantee concerns the exact limiting selector. It does not include exploratory training or policies obtained after an arbitrary finite training budget.
Proof Sketch: First, Lemma 1.1 establishes the recession operator associated with the logarithmic Bellman-Perron operator. Lemma 1.2 subsequently utilizes the irreducibility of the restricted safe kernels to demonstrate that this recession operator has only constant fixed points. The nonlinear Perron-Frobenius argument in Theorem 1.3 thus yields an additive eigenpair Th=λ1+h. Lemma 1.4 identifies λ∗ with the optimal risk-sensitive safety exponent, while Theorem 4.3 shows that Λ∗=exp(λ∗) is unique and that the positive eigenvector is unique up to multiplication by a positive scalar. Consequently, the given normalization gives a unique positive action-value fixed point Q∗. Second, Lemma 1.5 and Corollary 1.6 compare a positive vector q with Q∗ through and demonstrate that (q)m⩽(F(q))m⩽(F(q))M⩽(q)M. As a result, along the unnormalized ODE Q˙(t)=F(Q(t))−Q(t), the lower ratio shows nondecreasing behavior while the upper ratio demonstrates a nonincreasing trend (Lemma 1.7). Irreducibility eliminates the possibility of a nonzero limiting gap between these ratios, thus Theorem 1.9 demonstrates that each positive solution approaches the ray {rQ∗:r>0}. The normalization in G eliminates this scale confusion. Lemmas 1.10-1.11 and the projective Lyapunov argument in Theorem 4.4 demonstrate that Q∗ is the unique globally asymptotically stable equilibrium of Q˙(t)=G(Q(t))−Q(t). Third, Lemma 1.12 reformulates Eq. (7) as
where E[Mn+1(i,u,v)∣Fn,Xn=i,Un=u,Vn=v]=0. Positive initialization and 0<a(n)<1 maintain strict positivity. On DR,δ:={Q>0:∥Q∥∞≤R,Q(i0,u0,v0)≥δ}, Lemma 1.13 demonstrates that G−I is Lipschitz and that the martingale-difference noise has uniformly bounded conditional second moment. Assumption 4.1 and the local-clock argument presented in Lemma 1.14 further give
n⩾0sup∥Qn∥∞<∞,n→∞liminfQn(i0,u0,v0)>0.
The iterates then lie within a random compact set DR,δ. The stepsize and continuous sampling conditions enable the application of the asynchronous ODE theorem to the localized recursion. Combining the resulting ODE tracking with Theorem 4.4 gives Qn→Q∗ and Qn(i0,u0,v0)→Λ∗.
C. Convergence of Perron-Frobenius Eigen Estimates
We now explain the convergence of the eigenpair recursion in Eqs. (9)- (10). This step builds upon a block-wise implementation of the Perron-Frobenius stochastic-approximation method in Section VI of [48]. For each fixed action pair (u,v)∈U×V, recall that Pu,v0 denotes the restriction of Pu,v to X0. According to Assumption 3.1, when applied to the deterministic stationary policy pair that chooses (u,v) at every state, Pu,v0 is an irreducible nonnegative matrix within the finite state space X0. Furthermore, du,v(i)>0 ensures that no safe row is degenerate. Conditional on Fn and {Xn=i,Un=u,Vn=v}, the sample term in Eq. (9) satisfies
Thus, Eq. (9) is the asynchronous stochastic-approximation equivalent of normalized Perron-Frobenius iteration
e˙(⋅,u,v)=α⊤e(⋅,u,v)Pu,v0e(⋅,u,v)−e(⋅,u,v),
up to the standard positive diagonal time-rescaling resulting from asynchronous component updates. Unsafe transitions only add a zero sample to the substochastic row, thereby not affecting the conditional mean field above. Following the normalization of the prescribed positive weight vector α, the assumptions presented in Section VI of [48] are applicable to each block (u,v): the matrix Pu,v0 is irreducible and nonnegative, the initial vector is componentwise positive, the stepsizes satisfy the Robbins-Monro conditions, and Assumption 4.1 ensures that every component (i,u,v) is updated with asymptotically positive frequency. Therefore, utilizing the synchronous and asynchronous Perron-Frobenius convergence results from Theorems 7 and 8 in [48], applied individually to each finite block (u,v) and subsequently intersecting the corresponding probability one events over U×V, we derive
en(⋅,u,v)→e(⋅,u,v),Λn(u,v)=α⊤en(⋅,u,v)→Λ(u,v),
1{Xn=i,Un=u,Vn=v}(Giuv(Qn)−Qn(i,u,v)+Mn+1(i,u,v)) s. simultaneously for all (u,v)∈U×V, where for action pair (u,v), Λ denotes the principal eigenvalue of Pu,v0 and
Pu,v0e(⋅,u,v)=Λ(u,v)e(⋅,u,v),α⊤e(⋅,u,v)=Λ(u,v).
Thus Perron-Frobenius eigenpair estimates used for the empirical twisted kernel p¨n converge almost surely.
D. Convergence of Regular Control
We finally justify the convergence of the slow regular-control recursion in Eq. (11). Upon the convergence of the fast variables, Eq. (11) transforms into an asynchronous relative Q-learning recursion for a finite-state average-cost MDP, as studied by [47]. We first demonstrate that the emergency action observed by the regular recursion has a limiting conditional distribution. According to Theorem 4.5, Qn→Q⋆ almost surely. Since U and V are finite, for every i∈X0 and v∈V,
u∈UminQn(i,u,v)→u∈UminQ⋆(i,u,v)a.s.
Fix a sample path on which this convergence holds. Given that
it follows that as n→∞, the right-hand side approaches 0, indicating that the left-hand side also approaches 0. Thus, for any positive value 4Δ, there exists a finite time N such that
Thus, after a finite time, every change of vˉn(i) strictly improves the limiting safety score by at least 2Δ. Given that V is finite, only a finite number of such changes can happen. Thus, vˉn(i) converges almost surely for every i∈X0. Therefore, given that Xn=i, the distribution of Vn converges to
(1−ϵ)1{v=limℓ→∞vˉℓ(i)}+∣V∣ϵ,v∈V.
The remaining randomness in Vn is thus ordinary sampling noise around this limiting distribution, rather than a time-varying drift. Using the Perron-Frobenius limits in Section IV-C, the limiting equivalent of the empirical twisted kernel in Eq. (8), within the conditional mean of the slow recursion, is
Consequently, the limiting equivalent of p˘n(⋅∣i,u), after averaging over the limiting conditional distribution of Vn, is a probability distribution on X0. Furthermore, as each e(⋅,u,v) is componentwise strictly positive, the twisting operation maintains the support of the corresponding safe kernel. Thus, under any stationary regular policy ϕ, the Markov chain derived from this limiting twisted kernel has the same support as the safe kernel derived from ϕ together with the limiting emergency action distribution above. The irreducibleity and unichain condition required for average-cost Q-learning are consequently derived from Assumption 3.1. The multiplicative factor in Eq. (11) is exactly the likelihood-ratio modification related to this twisted kernel. Conditional on Fn and on {Xn=i,Un=u,Vn=v}, the limiting conditional mean of the transition term in Eq. (11) satisfies E[1{Xn+1∈X0}].
Thus, the additional factor in Eq. (11) does not change the nature of the average-cost Q-learning recursion. It changes the transition kernel from the original safe kernel to the limiting twisted kernel as indicated by Eq. (8). Consequently, the limiting mean field of Eq. (11) is
This is the limiting ODE of asynchronous RVI Q-learning for the finite-state average-cost MDP with state space X0, action space U, one-stage cost w(i,u), transition probabilities given by the limiting equivalent of Eq. (8), and relative normalization minu′∈UQ(i0,u′). This normalization is one of the admissible normalizations in [47]. The convergence theorem for RVI Q-learning in [47] applies to both synchronous and asynchronous implementations once boundedness is available. The following convergence argument assumes that {Qn} is almost surely bounded. It remains to account for the fact that Eq. (11) uses the online estimates (en+1,Λn+1), rather than their limits. This produces a perturbation that asymptotically approaches zero. From Section IV-C,
en(⋅,u,v)→e(⋅,u,v),Λn(u,v)→Λ(u,v)a.s.
for every (u,v). Given that X0,U, and V are finite, and that e(⋅,u,v) and Λ(u,v) are strictly positive, the denominators in Eq. (11) are almost surely eventually bounded away from zero. Thus, the difference between the online conditional mean and the limiting conditional mean above converges uniformly to zero for all (i,u). The difference between current conditional mean and the actual update results in martingale-difference noise. Consequently, according to the convergence theorem for synchronous and asynchronous RVI Q-learning in Theorem 3.5 of [47], the regular-control iterates converge almost surely: Qn→Q∗ a.s. The limit Q∗ solves the average-cost optimality equation
under the specified normalization. Thus, any greedy selector
ϕ∗(i)∈argu∈UminQ∗(i,u)
(a)
(b)
(c)
Fig. 1: Figure 1a is the Stochastic GridWorld layout. The agent starts at S, aims to reach G, and must avoid the three unsafe cells. Figures 1b and 1c shows the Fixed-layout SafetyCarGoal environment and its canonical finite model layout. Figure 1b: The physical layout includes the start point S, the goal point G, eight overlapping native hazard disks, and one fixed vase. Figure 1c: The positional grid includes 25 canonical centers. Three crosses denote the rejected center points, while the other 21 non-goal central points are maintained. Every maintained center point is expanded into four headings and two speeds, while the goal point is represented by one aggregate state.
is optimal for the regular-control problem associated with the limiting twisted kernel obtained by Eq. (8).
V. SIMULATIONS
This section presents the experimental evaluation of our proposed approaches in two stochastic finite-state environments: a GridWorld and a fixed-layout CarGoal task derived from Safety Gymnasium. We considered two benchmark approaches that considered state safety: (i) RCRL is a Lagrangian-based algorithm with a safety value function to maintain the safety constraint within its estimated feasible set [27], and (ii) RESPO algorithm estimates the probability of a future constraint violation and balances the maximization of rewards with the minimization of cumulative safety costs [28]. All methods share the regular and emergency actions, safety information, transition sampler, and task cost. Our approach optimizes average task cost under the transformed safe dynamics, while the baselines use discounted objectives. We evaluated learned policies in terms of safety and meeting the goal. Each method performs training for 150000 iterations in GridWorld and 300000 iterations in CarGoal, utilizing the same 100 random seeds across all methods within each environment. Our proposed approach utilizes a fixed exploration probability of 0.10. Each iteration is one training transition. The results represent averages derived from the independent training iterations associated with the same 100 seeds. Error bars and shaded regions represent one standard deviation of the mean. Policies are evaluated from i0 by propagating probabilities through the finite model until the first goal or unsafe state, or 60 decisions. Goal and violation probabilities refer to the corresponding terminal occurrences within this horizon. Cost is the expected cumulative w before termination. Exploration has been deactivated, but transition randomness remains. Our approach uses argminuQn(i,u) and the stored vˉn(i), while the baselines select their most probable joint action. In CarGoal, one macro-action is one decision. Figures 3 and 4 evaluate checkpoint policies, rather than counting violations during exploratory training trajectories.
Stochastic GridWorld. We analyze the 5×5 GridWorld presented in Figure 1. The agent starts at i0=(2,0) and is
tasked with reaching igoal=(2,4). The cells (1,2), (2,2), and (3,2) are considered hazardous. The remaining 22 cells constitute the safe set X0, with all unsafe cells represented by a common unsafe state iunsafe. As a result, the tabular model includes 23 states. In every safe state, the regular controller chooses a direction u∈{N,E,S,W} and the emergency controller selects a mode v∈{Shield,Normal}. At non-goal states, for an action chosen from {N,E,S,W}, both environments assign probabilities (0.6,0.12,0.12,0.06,0.1) under Shield and (0.7,0.1,0.1,0.05,0.05) under Normal to movement in the selected direction, 90∘ to its left, 90∘ to its right, in the opposite direction, and staying in place, respectively. Both finite models use these probabilities and satisfy du,v(i)≥0.3. An action that exceeds the grid boundary results in the agent remaining in the current cell. When a sampled regular control action suggests a transition to an unsafe state j, Shield maintains the agent in its current safe cell, while Normal moves the agent to j. Thus, P(j∈X∖X0∣i,u,Shield)=0 for i∈X0, while the Normal mode may violate safety. The per-stage cost is w(i,u)=1 for all non-goal safe states and w(igoal,u)=0 for the goal state. Shield does not impose a separate penalty. However, its lower probability of achieving the desired movement may delay goal reaching and increase task cost. The training kernel restarts from a safe state upon reaching either igoal or i∈X∖X0.
Modified Safety Gym CarGoal. We develop a fixed-layout, canonical finite macro-MDP derived from the original SafetyCarGoal1-v0 simulator in Safety Gymnasium. The chosen physical domain is D=[−1.5,1.5]2, the agent starts at (−1.2,0), and its goal is located at (1.2,0). Eight native hazard disks with a radius of 0.2 are positioned along the line x=0, forming a central barrier flanked by upper and lower corridors, as shown in Figures 1b and 1c. A native vase is positioned at the coordinates (−1.2,−1.45). We establish a 5×5 canonical position grid at the coordinates {−1.2,−0.6,0,0.6,1.2}2. At every positional center, the native simulator performs an evaluation at four directions {0,2π,π,−2π} and two speeds {0,0.08}. The three points (0,−0.6), (0,0), and (0,0.6) are excluded. The remaining 21 non-goal centers are each developed into eight position-heading-speed prototypes, while all goal-achieving configurations are encapsulated by a singular aggregate goal state. As a result, the model includes 21×4×2+1=169 safe states and one unsafe state. An executed macro-transition is mapped to the aggregate unsafe state if its native trajectory results in a positive safety cost or exits D. Every canonical prototype maintains the associated 72-dimensional native observation. Thus, this represents a simulator-driven finite abstraction. In every non-goal safe state, the regular controller provides a direction u∈{N,E,W,S}, while the emergency controller chooses v∈{Shield,Normal}. Each macro-action starts from its prescribed position, heading, and speed. Shield blocks hazardous targets by staying in place and follows safe waypoints. Normal tries the target directly. The goal can be reached within a finite number of safe macro choices. The cost of a per-stage task is w(i,u)=1 for all non-goal safe states and w(igoal,u)=0, indicating that a lower cost in safe policies correlates with faster goal achievement in macro decisions.
(a)
(b)
Fig. 2: Final policy evaluation. Figure 2a illustrates the probabilities of reaching the goal and the probability of entering an unsafe state for gridworld, while Figure 2b refers to cargoal.
Fig. 3: Training plots for GridWorld. From left to right, the plots show cost, goal probability, and violation probability.
Figures 2a and 2b compare the evaluation of the learned policies. Our proposed algorithm achieves both a substantial goal probability and a precisely zero violation probability. In contrast, both the RCRL and RESPO methods yield a lower goal probability and exhibit high violation probability. Figures 3 and 4 demonstrate the comparison during learning. In GridWorld, the eight-step shortest safe path assumes intended moves, while stochastic deviations and stays increase the expected number of decisions. The plots show that our proposed algorithm consistently outperforms other benchmark algorithms.
The safe kernels are irreducible in GridWorld but reducible in CarGoal. The latter experiment thus falls beyond Assumption 3.1. Shield provides Λ∗=1 in both models. For a fixed Shield action, the safe kernel is stochastic and has an eigenvalue of one with a consistent eigenvector. With this eigenpair and Vn=Shield, Eq. (11) reduces to RVI. Our approach also learns which emergency action to select.
APPENDIX
A. Proving Q∗ is a fixed point of ODE
Lemma 1.1: Let xmax=max{x1,⋯,xn} and define log∑exp(x)=log∑i=1nexi. Then, for any a>0, lima→∞a1log∑exp(ax)=xmax.
Proof: We begin by noting that exmax⩽∑i=1nexi⩽∑i=1nexmax=nexmax. Taking the logarithm of all sides of this inequality, we obtain xmax⩽log∑exp(x)⩽xmax+logn. Now, consider any a > 0. By applying this inequality to ax, axmax⩽log∑exp(ax)⩽axmax+logn. Dividing by a yields xmax⩽a1log∑exp(ax)⩽xmax+a1logn. Finally, by taking the limit as a→∞, we conclude that lima→∞a1log∑exp(ax)=xmax.
Moreover, by Lemma 1.1 and Definition 4.2, we have (Tx)(i)
Fig. 4: Training plots for SafetyCarGoal. From left to right, the plots show cost, goal probability, and violation probability.
where supp(Puv∗(⋅∣i)):={j∈X0:Puv∗(j∣i)>0} is the support. Thus, the limit in the definition of T exists for every x. Finally, since Q∗ is a fixed point of F, we have Q∗=F(Q∗), and hence, for any (i,u,v), Q∗(i,u,v)Fiuv(q)=Fiuv(Q∗)Fiuv(q).
Since the positive fixed point of F is unique only up to multiplication by a positive scalar, we fix its representative by enforcing the normalization Q∗(i0,u0,v0)=Λ∗. Then, Q∗ represents an equilibrium of the normalized operator G. Indeed, G(Q∗)=Q∗(i0,u0,v0)Λ∗F(Q∗)=F(Q∗)=Q∗.
Lemma 1.2: Let x∈R∣X0∣ be such that Tx=x. Then x is constant, i.e., x≡c1 for some c∈R. In particular, T has only trivial fixed points.
Proof: Recall that for each i∈X0, (Tx)(i)=maxvminumaxj∈supp(Puv∗(⋅∣i))x(j). First observe that every constant vector is a fixed point of T. If x≡c1 for some c∈R, then for all (u,v) and all i∈X0, maxj∈supp(Puv∗(⋅∣i))x(j)=c, and hence (Tx)(i)=c=x(i). We now show that these are the only fixed points. For contradiction, suppose that x is a fixed point of T and that entries of x are not constant. Define m:=minkx(k), S:={k:x(k)=m}. Then S is nonempty and, since x is not constant, S is a proper subset of X0. Fix any i∈S, so that x(i)=m. For each (u,v), g(i,u,v)=maxj∈supp(Puv∗(⋅∣i))x(j). Since x(j)⩾m for all j, we have g(i,u,v)⩾m for all (u,v). Since x is a fixed point of T, we obtain m=x(i)=(Tx)(i)=maxvminug(i,u,v). Thus there exists v1(i) achieving the maximum and, for this v1(i), some u1(i) achieving the minimum, such that g(i,u1(i),v1(i))=m. By the definition of g, we have m=g(i,u1(i),v1(i))=maxj∈supp(Pu1(i)v1(i)∗(⋅∣i))x(j). Since all x(j)⩾m, the fact that this maximum equals m implies that x(j)=m for all j∈supp(Pu1(i)v1(i)∗(⋅∣i)). Equivalently, supp(Pu1(i)v1(i)∗(⋅∣i))⊆S, and hence
Since i∈S was arbitrary, we can define a pair of controls (u1(⋅),v1(⋅)) on S such that Pu1(i)v1(i)0(X0∖S∣i)=0 for every i∈S. Thus S is an absorbing subset for the kernel P0 under this pair of controls, which contradicts Assumption 3.1. Therefore x must be a constant vector. We conclude that every fixed point of T is a constant vector.
Theorem 1.3: There exists a scalar λ∈R and a vector h∈R∣X0∣ such that Th=λ1+h.
Proof: By Lemma 1.2, the recession function T of T exists and has only trivial eigenvectors. Hence, we apply
Theorem 13 in [49], which demonstrates that if the recession function of a topical function has only trivial eigenvectors, then all slice spaces Sαβ(T):={x∈R∣X0∣:α1+x≤Tx≤β1+x} are bounded in the Hilbert semi-norm. Fix α=mini∈X0(T0)(i) and β=maxi∈X0(T0)(i). For any c∈R, consider the constant vector x=c1. Using the translation invariance of T, we derive T(x)=T(c1)=T(0+c1)=T(0)+c1. By the definition of α and β, α1+x≤T(x)≤β1+x. Thus, x∈Sαβ(T), and in particular the entire line {c1:c∈R} is contained in Sαβ(T), so this slice space is nonempty. Slice space are invariant under T. Indeed, if x∈Sαβ(T), then α1+x≤Tx≤β1+x. Applying T and using the monotonicity of T together with translation invariance yields T(α1+x)≤T(Tx)≤T(β1+x). That is, α1+Tx≤T2x≤β1+Tx. Hence Tx∈Sαβ(T). By induction, for any x0∈Sαβ(T), the entire orbit {Tk(x0)} is contained in the same slice space Sαβ(T). Since Sαβ(T) is bounded in the Hilbert semi-norm, every such orbit is bounded in the Hilbert semi-norm, that is, supk≥0∥Tk(x0)∥H<∞. In particular, taking x0=c1 for some c∈R, we obtain an orbit of T that is bounded in the Hilbert semi-norm. By applying Theorem 9 in [49], T has an eigenpair (λ,h) satisfying Th=λ1+h, which completes the proof.
where the maximum and minimum are taken over admissible Markov decision rules on the horizon 0,⋯,n−1. Set J0≡0. Fix any i∈X0 and define λ∗=limn→∞n1Jn(i). If (λ,h) is an eigenpair of T, i.e., Th=λ1+h, then λ=λ∗.
Proof: Consider a horizon of length n+1 and a fixed pair of control sequences (u0:n,v0:n). For any i∈X0,
where in the last step we used the law of total expectation. Optimizing over the control sequences from time t=1,⋯,n starting from state j yields Jn(j), so after optimizing over the first-stage controls u, v as well, it gives
Thus, by induction, Jn=TnJ0 for any n⩾0. Now, let (λ,h) be an eigenpair of T, so that Th=λ1+h. Using the translation invariance of T, we derive by induction Tnh=h+nλ1 for any n⩾0. We compare Jn with this eigenvector h. Since J0≡0, define α:=mink∈X0(J0(k)−h(k))=−maxk∈X0h(k) and β:=maxk∈X0(J0(k)−h(k))=−mink∈X0h(k). Then componentwise α1+h⩽J0⩽β1+h. Using the monotonicity and translation invariance of T, we
prove by induction that for all n⩾0,
α1+h+nλ1⩽Jn⩽β1+h+nλ1.(13)
The case n=0 holds by construction. Suppose Eq (13) holds for some n. Then by applying T and using monotonicity,
Since Jn+1=TJn, we derive Eq (13) for n+1. Thus the bounds hold for all n. Fix any i∈X0. From Eq (13), α+h(i)+nλ⩽Jn(i)⩽β+h(i)+nλ, and dividing by n gives
λ+nα+h(i)⩽n1Jn(i)⩽λ+nβ+h(i).
Letting n→∞ yields limn→∞n1Jn(i)=λ. By the definition of λ∗, we conclude that λ∗=λ.
Proof of Theorem 4.3: By definition of (Λ,H), the pairs (λ,h) satisfy Th=λ1+h. Since T is translation invariant, iteration this relation yields Tnhℓ=hℓ+nλℓ1 for ℓ=1,2 and n⩾0. Moreover, by the nonexpansiveness of T in the supremum norm, ∥Tnh1−Tnh2∥∞⩽∥h1−h2∥∞ for all n⩾0. Substituting the above expression for Tnhℓ gives
If λ1=λ2, then the left-hand side grows linearly in n and diverge to +∞, which contradicts uniform bound on the right-hand side. Hence λ1=λ2. By Lemma 1.4, any eigenvalue λ of T must equal λ∗. Thus λ1=λ2=λ∗ and Λ1=Λ2=Λ∗.
We now prove that the associated eigenvectors are unique up to a scalar factor. Since Hℓ=exp(hℓ) and λℓ=λ∗ for ℓ=1,2, using Definition 4.2, both (Λ∗,H1) and (Λ∗,H2) satisfy H(i)=maxvminuΛ∗exp(cuv(i))∑j∈X0Puv⋆(j∣i)H(j) for i∈X0. For each i∈X0, choose v⋆(i)∈argmaxvminuΛ∗exp(cuv(i))∑j∈X0Puv⋆(j∣i)H2(j). Then,
Define the ratio A(i):=H2(i)H1(i) for i∈X0. Since H1 and H2 are strictly positive and X0 is finite, A is bounded and strictly positive. Using H1(j)=A(j)H2(j) in the inequality above
where Pˉ(j∣i):=∑k∈X0Pu′(i)v⋆(i)∗(k∣i)H2(k)Pu′(i)v⋆(i)∗(j∣i)H2(j). The kernel Pˉ(j∣i) is a stochastic matrix on X0 with the same support as Pu⋆(i)v⋆(i)∗(⋅∣i), and by Assumption 3.1 it is irreducible.
The rest of the proof follows technique from Lemma 2.1 in [29]. Let {Wn}n≥0 be the Markov chain on X0 with transition probabilities Pˉ(⋅∣⋅). Then A(i)≥∑jPˉ(j∣i)A(j)=E[A(Wn+1)∣Wn=i]. Thus {A(Wn)}n≥0 is a bounded, nonnegative supermartingale and hence converges almost surely.
Since Pˉ is irreducible on the finite state space X0, the chain {Wn} is recurrent and visits every state infinitely often with probability one. If A is not a constant vector on X0, the sequence A(Wn) would take at least two distinct values infinitely often and thus could not converge almost surely. Therefore A must be a constant vector on X0, i.e., there exists c>0 such that A(i)=c for all i∈X0. Thus, H1=cH2. ■
Thus, the positive action-value fixed point utilized below is well defined. If H is any positive eigenvector corresponding to Λ⋆, set Q⋆(i,u,v)=Λ⋆exp(cuv(i))∑j∈X0Puv⋆(j∣i)H(j).
Then maxv∈Vminu∈UQ⋆(i,u,v)=H(i), hence F(Q⋆)=Q⋆. Conversely, any strictly positive fixed point of F yields H(i)=maxv∈Vminu∈UQ(i,u,v), which solves the multiplicative Bellman-Perron equation. Thus, Theorem 4.3 implies that Q⋆ is unique up to multiplication by a positive scalar. We use normalized representative Q⋆(i0,u0,v0)=Λ⋆.
where for each j∈X0, Aj:=maxv′minu′q(j,u′,v′) and Bj:=maxv′minu′Q⋆(j,u′,v′). Fix j with Puv⋆(j∣i)>0. Define the point-wise ratio R(j,u′,v′):=Q⋆(j,u′,v′)q(j,u′,v′), and set mj:=minu′,v′R(j,u′,v′), Mj:=maxu′,v′R(j,u′,v′).
Then for all (u′,v′),mj⩽R(j,u′,v′)⩽Mj. Thus mjQ⋆(j,u′,v′)⩽q(j,u′,v′)⩽MjQ⋆(j,u′,v′).
where wj:=∑kPuv⋆(k∣i)BkPuv⋆(j∣i)Bj are nonnegative weights that sum to 1. Since each BjAj∈[m,M], this convex combination also lies in [m,M]. Thus m⩽Q⋆(i,u,v)Fiuv(q)⩽M.
Corollary 1.6: (q)m⩽(F(q))m⩽(F(q))M⩽(q)M.
Proof: The claim follows immediately from Lemma 1.5 by taking the minimum and maximum over all (i,u,v) of the point-wise inequalities.
Lemma 1.7: Let Q(t) be the positive solution of the ODE Q˙(t)=F(Q(t))−Q(t), for t⩾0, Q(0)>0. Then (Q(t))M is non-increasing, and (Q(t))m is non-decreasing.
Proof: Fix N⩾1 and set ϵ:=2−N. Consider the explicit Euler discretization of the ODE,
Q(ϵ)((n+1)ϵ)=Q(ϵ)(nϵ)+ϵ(F(Q(ϵ)(nϵ))−Q(ϵ)(nϵ)),
for n=0,1,2,…, with initial condition Q(ϵ)(0)=Q(0)>0. Qn:=Q(ϵ)(nϵ) for n=0,1,2,⋯. Then for each (i,u,v)
Qn+1(i,u,v)=(1−ϵ)Qn(i,u,v)+ϵFiuv(Qn).
Dividing by Q⋆(i,u,v) and minimizing over (i,u,v) yields
where we used that for any two families (an), (bn) and θ∈[0,1], minn[(1−θ)an+θbn]⩾(1−θ)minnan+θminnbn. By Corollary 1.6, we have (F(Qn))m⩾(Qn)m. Hence
(Qn+1)m⩾(1−ϵ)(Qn)m+ϵ(Qn)m=(Qn)m.
Thus, for each fixed step size ϵ, the sequence {(Qn)m}n⩾0 is non-decreasing in n. An analogous argument, starting from
Qn+1(i,u,v)=(1−ϵ)Qn(i,u,v)+ϵFiuv(Qn),
and using maxn[(1−θ)an+θbn]⩽(1−θ)maxnan+θmaxnbn, together with (F(q))M⩽(q)M, shows that the sequence {(Qn)M}n⩾0 is non-increasing in n. Now, for each ϵ we extend {Qn} to a continuous-time process Q(ϵ)(t) by linear interpolation on each interval [nϵ,(n+1)ϵ]. Since F is Lipschitz on the order interval determined by Q(0) and Q∗, the Euler scheme converges uniformly on bounded time intervals to the unique solution Q(t) of the ODE Q˙=F(Q)−Q. Fix 0⩽s<t and choose dyadic rationals sϵ,tϵ such that sϵ→s, tϵ→t, and sϵ<tϵ. For each ϵ we have monotonicity,
(Q(ϵ)(sϵ))m⩽(Q(ϵ)(tϵ))m.
By the uniform convergence Q(ϵ)→Q on compact intervals, together with sϵ→s and tϵ→t, we have Q(ϵ)(sϵ)→Q(s) and Q(ϵ)(tϵ)→Q(t). Since the map q→(q)m is continuous in finite dimension, it follows that
(Q(ϵ)(sϵ))m⩽(Q(ϵ)(tϵ))mand(Q(s))m⩽(Q(t))m.
Thus (Q(t))m is non-decreasing on [0,∞]. The same argument, applied to the non-increasing sequence {(Qn)M}n≥0, shows that (Q(t))M is non-increasing.
Corollary 1.8: For t>0, (Q(t))m⩾(Q(0))m>0.
Proof: By Lemma 1.7, (Q(t))m:=mini,u,vQ∗(i,u,v)Q(t,i,u,v) is non-decreasing in t. In particular, for every t>0, (Q(t))m⩾(Q(0))m. Since Q(0)>0 and Q∗>0 componentwise, (Q(0))m=mini,u,vQ∗(i,u,v)Q(0,i,u,v)>0.
Theorem 1.9: Let Q(t) be the positive solution of the ODE
Q˙(t)=F(Q(t))−Q(t),(14)
for t⩾0 with initial condition Q(0)>0. Then every such solution Q(⋅) converges to H={rQ∗:r>0}, where Q∗ is the strictly positive fixed point of F, i.e., Q∗=F(Q∗).
Proof: Let Q(⋅) be a solution of Eq. (14) with Q(0)>0. Define the ω-limit set of this trajectory by
Ω:={x:∃t(n)→∞suchsthatQ(t(n))→x}.
By Lemma 1.7, (Q(t))m is non-decreasing and (Q(t))M is non-increasing in t, and Corollary 1.8 ensures (Q(t))m⩾(Q(0))m>0 for all t>0. Hence Q(⋅) is bounded. It follows that Ω is nonempty, compact, and invariant under Eq. (14). Since (Q(t))m and (Q(t))M are monotone and bounded,
β1:=t→∞lim(Q(t))m,β2:=t→∞lim(Q(t))M
exist and satisfy 0<β1⩽β2<∞. Define
B:={q>0:(q)m=β1,(q)M=β2}.
By continuity of the maps q↦(q)m and q↦(q)M in finite dimension, we have Ω⊂B. Moreover, for every q∈B,
β1Q⋆(i,u,v)⩽q(i,u,v)⩽β2Q⋆(i,u,v),
and by definition of (q)m and (q)M, there is at least one component where equality holds with β1 and at least one where equality holds with β2. For each state-action tuple (m,n,c), define the closed subset
Dmnc:={q∈B:q(m,n,c)=β2Q⋆(m,n,c)}.
Every q∈B attains its maximal ratio (q)M=β2 at some component (m,n,c), so B=⋃(m,n,c)Dmnc. Consequently, Ω⊂B⊂⋃(m,n,c)Dmnc, and therefore there exists at least one tuple (m,n,c) such that Ω∩Dmnc=∅.
Fix such a tuple and denote D:=Dmnc. Now pick x0∈Ω∩D and let Q(⋅) be the solution of Eq. (14) with initial condition Q(0)=x0. Since Ω is invariant, we have Q(t)∈Ω⊂B for all t⩾0. Thus the continuous trajectory Q:[0,∞)→B takes values in B, and for each t we have Q(t)∈Dmnc′ for at least one (m,n,c′). Because there are only finitely many indices (m,n,c), the sets Dmnc are finitely many closed subsets of B. Since Q(⋅) is continuous,
Tmnc:={t⩾0:Q(t)∈Dmnc}
are closed subsets of [0,∞), and [0,∞)=⋃(m,n,c)Tmnc. Given that the finitely many closed sets Tmnc cover [0,∞), it follows that at least one of these sets must have nonempty interior; otherwise their union would show empty interior, which contradicts the fact that [0,∞) has nonempty interior. Thus, there exists a tuple (mˉ,nˉ,cˉ) and an interval (a,b)⊂Tmˉnˉcˉ with 0⩽a<b<∞. By time-translation invariance of ODE (14), we may without loss of generality assume a=0 by redefining the initial time. Thus, for some tuple (m,n,c),
Q(t)∈Dmnc,
for all t∈[0,τ] and some τ>0. By the definition of Dmnc,
Qmnc(t)=β2Q⋆(m,n,c)
for t∈[0,τ]. Since Q is differentiable, this implies
dtdQmnc(t)=0
for t∈[0,τ]. From the ODE (14), we thus obtain
Fmnc(Q(t))=Qmnc(t)=β2Q⋆(m,n,c)
for t∈[0,τ]. Dividing by Q∗(m,n,c)=Fmnc(Q∗), we get
where wmnc(j):=∑k∈X0Pnc∗(k∣m)maxv′minu′Q∗(k,u′,v′)Pnc∗(j∣m)maxv′minu′Q∗(j,u′,v′) are nonnegative weights with ∑jwmnc(j)=1. Since Q(t)∈B for all t, in particular at our fixed t∈[0,τ] we have
Therefore, for each j, β1⩽maxv′minu′Q∗(j,u′,v′)maxu′minu′Q(j,u′,v′)⩽β2. We have thus written β2 as a convex combination of numbers lying in the interval [β1,β2], β2=∑j∈X0wmnc(j)ρj, where ρj:=maxv′minu′Q∗(j,u′,v′)maxv′minu′Q(j,u′,v′). This is possible only if ρj=β2 for all j with wmnc(j)>0. Given that maxv′minu′Q⋆(j,u′,v′)>0,
for every j∈X0 such that Pnc⋆(j∣m)>0. As the preceding argument is valid for each fixed t∈[0,τ], the same conclusion holds across the entire interval [0,τ]. We will now propagate this equality. Suppose that, for some state i, the given equality is valid across a nondegenerate subinterval of [0,τ]. Due to the finite nature of V and continuity of Q~(⋅), it is possible to restrict to a smaller nondegenerate subinterval where a specific fixed v achieves the maximum in maxv′minu′Q~iu′v′(t) throughout that subinterval. The componentwise bound Q~iuv(t)⩽β2Q⋆(i,u,v) then requires this same v to achieve the maximum in maxv′minu′Q⋆(i,u′,v′). Furthermore, for u that minimizes minu′Q⋆(i,u′,v), Q~iuv(t)=β2Q⋆(i,u,v) throughout that subinterval. For this fixed component, the derivative is zero on the subinterval. Thus, by the ODE, Fiuv(Q~(t))=β2Q⋆(i,u,v)=β2Fuv(Q⋆). By dividing by Fiuv(Q⋆) and applying the same convex-combination argument, we obtain
for all j∈X0 with Puv⋆(j∣i)>0. By repeating this finite propagation argument, the propagation cannot stop before reaching all states in X0. If it stopped on a proper nonempty set of states, then the fixed action pairs selected on those states, completed arbitrarily outside that set, would make that set closed under the corresponding restricted kernel. Given that Puv0(j∣i)=duv(i)Puv⋆(j∣i) and duv(i)>0, the kernels Puv0 and Puv⋆ have the same positive entries. This contradicts Assumption 3.1 on irreducibility over X0. Thus, after restricting to a nondegenerate interval and relabeling it as [0,τ],
If β1<β2, then every component whose initial ratio equals β1 becomes strictly larger than β1 for every positive t∈[0,τ]. Every component whose initial ratio is already larger than β1 will continue to be larger than β1 for all sufficiently small positive values of t. Given the finite number of components, it follows that the minimum componentwise ratio of Q~(t) is strictly larger than β1 for all sufficiently small positive values of t, thereby contradicting the condition that Q~(t)∈B. Thus, β1=β2=:β>0. Finally, for each (i,u,v) and all t,
(Q(t))m⩽Q⋆(i,u,v)Q(t,i,u,v)⩽(Q(t))M,
and both endpoints (Q(t))m and (Q(t))M converge to β. Therefore for all (i,u,v), Q⋆(i,u,v)Q(t,i,u,v)→β which implies Q(t)→βQ⋆∈H as t→∞.
Lemma 1.10: Let Q(t) be the positive solution of the ODE Q~˙(t)=G(Q(t))−Q(t), for t⩾0 with initial condition Q(0)>0. Then Q(t)→Q⋆ as t→∞. In particular, for the tuple (i0,u0,v0), we have Qi0u0v0(t)→Λ⋆=eΛ⋆.
Proof: The proof follows Lemma 4.1 of [29].
Lemma 1.11: For every ϵ>0, there exists δ>0 such that when ∥Q(0)−Q⋆∥<δ, the corresponding solution of Q~˙(t)=G(Q(t))−Q(t) satisfies ∣Qi0u0v0(t)−Λ⋆∣⩽ϵ,t⩾0.
Proof: The proof follows Lemma 4.2 of [29].
Proof of Theorem 4.4: Define Φ(q):=log(q)m(q)M⩾0. Then, Φ(q)=0 if and only if (q)M=(q)m, which is equivalent to q being a positive scalar multiple of Q⋆. For α>0,
(αq)m=α(q)m,(αq)M=α(q)M,
and hence Φ(αq)=Φ(q), so Φ is homogeneous of degree zero. Recall that Q(t) denotes the positive solution of Q~˙(t)=G(Q(t))−Q(t), while Q~(t) denotes the positive solution of Q~˙(t)=F(Q~(t))−Q~(t), both starting from the same initial condition Q(0)=Q~(0)>0. By definition of G, we have
G(Q)=Q(i0u0v0)Λ⋆F(Q),
and therefore the ODE for Q(⋅) can be written as
Q˙(t)=Qi0u0v0(t)Λ⋆F(Q(t))−Q(t).
Define γ(t):=Λ⋆Qi0u0v0(t)>0,τ(t):=∫0tγ(s)1ds=∫0tQi0u0v0(s)Λ⋆ds. Since G(Q)>0, we have
which implies Qi0u0v0(t)⩾e−tQi0u0v0(0)>0, for all t⩾0. Hence γ(t)>0 and τ(t) is well-defined and strictly increasing, so it allows an inverse t=τ−1(s).
Next, define ϕ(t) as the solution of ϕ(t)ϕ˙(t)=γ(t)1−1=Qi0u0v0(t)Λ⋆−1, with ϕ(0)=1. Integrating, we obtain ϕ(t)=exp(∫0tQi0u0v0(s)Λ⋆−1)ds. Define Q′(⋅) as Q′(s):=ϕ(t)Q(t) with t=τ−1(s). Differentiating and using the chain rule, dsdQ′(s)=(ϕ(t)1(γ(t)1F(Q(t))−Q(t))−ϕ(t)2ϕ˙(t)Q(t))γ(t). Since Q′(s)=ϕ(t)Q(t) and F is positively homogeneous of degree one, we have F(Q(t))=F(ϕ(t)Q′(s))=ϕ(t)F(Q′(s)). Substituting this into the above expression gives dsdQ′(s)=F(Q′(s))−(γ(t)+γ(t)ϕ(t)ϕ˙(t))Q′(s). By definition of ϕ(t), γ(t)+γ(t)ϕ(t)ϕ˙(t)=γ(t)+γ(t)(γ(t)1−1)=1. Thus, dsdQ′(s)=
F(Q′(s))−Q′(s). The initial condition
Q′(0)=ϕ(τ−1(0))Q(τ−1(0))=ϕ(0)Q(0)=Q(0).
Hence Q′(⋅) is the unique solution of the ODE Qˉ˙(s)=F(Qˉ(s))−Qˉ(s) with initial condition Q(0)=Qˉ(0), i.e., Q′(s)=Qˉ(s). Rewriting in terms of the original time t yields
Q(t)=ϕ(t)Q′(τ(t))=ϕ(t)Qˉ(τ(t)).
Using the homogeneity of (⋅)m and (⋅)M, for every t⩾0,
By Lemma 1.7, for the ODE Qˉ˙=F(Qˉ)−Qˉ, (Qˉ(t))M is non-increasing and (Qˉ(t))m is non-decreasing. Therefore (Qˉ(t))m(Qˉ(t))M and Φ(Qˉ(t)) are non-increasing. Since τ(t) is strictly increasing, it follows that Φ(Q(t))=Φ(Qˉ(τ(t))) is also non-increasing. In particular, for all t⩾0, Φ(Q(t))⩽Φ(Q(0)).
Now we establish Lyapunov stability of Q∗ for the ODE Qˉ˙=G(Q)−Q. By Lemma 1.11, for any ϵ>0, there exists δs>0 such that whenever ∥Q(0)−Q∗∥∞<δs,
Λ⋆Qi0u0v0(t)−1<ϵs
for all t⩾0. Equivalently, for all t⩾0,
γ(t)=Λ⋆Qi0u0v0(t)∈(1−ϵs,1+ϵs).
By the definition of (Q(t))m and (Q(t))M, we have
(Q(t))m⩽γ(t)⩽(Q(t))M.
Since Φ(Q(t))⩽Φ(Q(0)) and Φ(Q(t))=log(Q(t))m(Q(t))M,
Let Qmin⋆:=mini,u,vQiuv⋆>0, Qmax⋆:=maxi,u,vQiuv⋆. Fix ϵ>0 and choose η∈(0,1) such that ηQmax⋆⩽ϵ. If we ensure that ∣Qiuv⋆Qiuv(t)−1∣⩽η, for all (i,u,v) and t⩾0, then
and hence for all t⩾0, ∥Q(t)−Q⋆∥∞⩽ϵ. From the bounds above, we already know that
Qiuv⋆Qiuv(t)∈[γ(t)e−σ,γ(t)eσ],
for all (i,u,v) and t⩾0. Thus it suffices to make the interval [γ(t)e−σ,γ(t)eσ] lie inside [1−η,1+η]. To this end, choose small constants ϵs>0 and σ0>0 such that (1−ϵs)e−σ0⩾1−η, (1+ϵs)eσ0⩽1+η. By Lemma 1.11, there exists δs>0 such that ∥Q(0)−Q⋆∥∞<δs and ∣γ(t)−1∣<ϵs for all t⩾0. Moreover, since Φ is continuous at Q⋆ and Φ(Q⋆)=0, there exists δp>0 such that ∥Q(0)−Q⋆∥∞<δp and Φ(Q(0))<σ0. Set δ:=min{δs,δp}. Then, if ∥Q(0)−Q⋆∥<δ, for all t⩾0, γ(t)∈(1−ϵs,1+ϵs), σ=Φ(Q(0))<σ0, and hence Qiuv⋆Qiuv(t)∈[(1−ϵs)e−σ0,(1+ϵs)eσ0]⊂[1−η,1+η]. As argued above, this implies ∥Q(t)−Q⋆∥∞⩽ϵ for all t⩾0. Therefore, Q⋆ is a Lyapunov stable equilibrium of Q˙=G(Q)−Q. Finally, Lemma 1.10 shows that Q(t)→Q⋆ for every solution with Q(0)>0. Thus, Q⋆ is both stable and globally attractive, i.e., it is a globally asymptotically stable equilibrium point of ODE Q˙(t)=G(Q(t))−Q(t), and completes the proof. ■
C. Proving Qn convergence to Q∗
Lemma 1.12: Consider (i,u,v)∈X0×U×V. Suppose Q0(i,u,v)>0 and 0<a(ν(i,u,v,n))<1 for all n. Then emergency recursion in Eq. (7) is well-defined for every finite n, and Qn(i,u,v)>0. Moreover, Eq. (7) can be written as
Proof: We first prove positivity. Assume that Qn(i,u,v)>0 for every (i,u,v)∈X0×U×V. If (Xn,Un,Vn)=(i,u,v), then Qn+1(i,u,v)=Qn(i,u,v)>0. If (Xn,Un,Vn)=(i,u,v), then Eq. (7) gives
The second term is nonnegative, and the first term is strictly positive, as 0<a(ν(i,u,v,n))<1 and Qn(i,u,v)>0. Thus, Qn+1(i,u,v)>0. By induction, all components remain strictly positive at every finite time. Subsequently, conditional on Fn and Xn=i, Un=u, Vn=v, we obtain
Taking the maximum over (i,u,v) proves the Lipschitz bound. Since the drift is G(q)−q, it is also Lipschitz on DR,δ. For the noise bound, if Qn∈DR,δ, then
Lemma 1.14: Suppose Assumption 4.1 holds. Under the positive initialization in Algorithm 1, the Robbins-Monro stepsize conditions, and the sampling condition stated after Eq. (7), the emergency recursion satisfies
n⩾0sup∥Qn∥∞<∞,n→∞liminfQn(i0,u0,v0)>0.
Proof: By Lemma 1.12, Qn(i,u,v)>0 for every finite n and every (i,u,v)∈X0×U×V. Fix a sample path on which Assumption 4.1 holds. Thus, we have the conditional second moment bound. We first prove the boundedness of an arbitrary component (i,u,v)∈X0×U×V. Let {nmiuv}m≥0 denote the sequential update times of component (i,u,v) after NH, and define Qˉmiuv:=Qnmiuv(i,u,v) and αmiuv:=a(ν(i,u,v,nmiuv)). Along this local clock, Eq. (7) yields
Set Hˉmiuv:=E[1{Xnmiuv+1∈X0}Qnmiuv(i0,u0,v0)maxv′∈Vu′∈UminQnmiuv(Xnmiuv+1,u′,v′)
Fnmiuv], and ξm+1iuv:=1{Xnmiuv+1∈X0}Qnmiuv(i0,u0,v0)maxv′∈Vu′∈UminQnmiuv(Xnmiuv+1,u′,v′)
−Hˉmiuv. Then E[ξm+1iuv∣Fnmiuv]=0. Given that the sample target is nonnegative, Jensen's inequality and Assumption 4.1 gives 0⩽Hˉmiuv⩽(E[(1{Xnmiuv+1∈X0})]
Given that ∑mαmiuv=∞, it follows that exp(−∑ℓ=Mm−1αℓiuv)→0. Thus, the entire product converges to zero. As a result, ymiuv−CH=emiuv→0, and therefore ymiuv→CH. For wmiuv, using the martingale-difference property and the conditional second-moment bound, E[(wm+1iuv)2∣Fnmiuv]
Given that ∑m(αmiuv)2CH2=CH2∑m(αmiuv)2<∞, the Robbins-Siegmund almost-supermartingale theorem implies that (wmiuv)2 converges almost surely and
m∑αmiuv(wmiuv)2<∞almostsurely.
Since ∑mαmiuv=∞, the only possible limit is zero. There-fore wmiuv→0 almost surely. Set Δmiuv:=Qˉmiuv−ymiuv−wmiuv. By subtracting the recursions, we obtain
Δm+1iuv=(1−αmiuv)Δmiuv+αmiuv(Hˉmiuv−CH).
Given that Hˉmiuv⩽CH and Δ0iuv=0, induction proves that Δmiuv⩽0 for all m. Thus, Qˉmiuv⩽ymiuv+wmiuv. The right-hand side is bounded as ymiuv→CH and wmiuv→0. Therefore, the local sequence {Qˉmiuv} is bounded above. Between two update times of component (i,u,v), the component Qn(i,u,v) does not change. Consequently, Qn(i,u,v) is bounded above for every (i,u,v). Given that X0×U×V is finite, it follows that supn≥0∥Qn∥∞<∞. It remains to prove separation from the normalization boundary. Let {nm0}m≥0 denote the sequential update times of the component (i0,u0,v0) after NH, and define rˉm:=Qnm0(i0,u0,v0), αm0:=a(ν(i0,u0,v0,nm0)). Along the anchor local clock,
By Assumption 4.1, Hˉm0⩾cH. The same conditional second-moment argument as above yields wm0→0 almost surely, where wm+10=(1−αm0)wm0+αm0ξm+10, w00=0. Define
ym+10=(1−αm0)ym0+αm0cH,y00=rˉ0.
Given that ∑mαm0=∞, it follows that ym0→cH. Now set Δm0:=rˉm−ym0−wm0. By subtracting the recursions,
Δm+10=(1−αm0)Δm0+αm0(Hˉm0−cH).
Given that Hˉm0⩾cH and Δ00=0, induction proves that Δm0⩾0 for all m. Consequently, rˉm⩾ym0+wm0. By taking lower limits and using ym0→cH and wm0→0, liminfm→∞rˉm⩾cH>0. Between two anchor update times, Qn(i0,u0,v0) is unchanged. Therefore, liminfn→∞Qn(i0,u0,v0)>0. Combining this boundary separation with the proven boundedness yields
supn≥0∥Qn∥∞<∞,liminfn→∞Qn(i0,u0,v0)>0 almost surely.
This completes the proof.
Proof of Theorem 4.5: By Lemma 1.12, Eq. (7) can be written as the asynchronous stochastic-approximation recursion
By Lemma 1.14, the emergency iterates are almost surely bounded and asymptotically far from the normalization boundary. Hence, on almost every sample path, there exist finite random constants R<∞, δ>0, and N<∞ such that
∥Qn∥∞⩽R,Qn(i0,u0,v0)⩾δ,forn⩾N.
On the set DR,δ:={Q>0:∥Q∥∞⩽R,Q(i0,u0,v0)⩾δ}, Lemma 1.13 shows that the drift G(Q)−Q is Lipschitz and the martingale-difference noise has uniformly bounded conditional second moment. Utilizing the standard localization argument, we may modify the drift and noise outside DR,δ, ensuring that the localized recursion has globally Lipschitz drift while remaining consistent with Eq. (7) for all n⩾N on the fixed sample path. By applying Theorem 2.5 from [50] to this localized asynchronous recursion and utilizing Theorem 4.4 for the limiting ODE Q˙(t)=G(Q(t))−Q(t), we conclude that Qn→Q∗ almost surely. Taking the reference coordinate and using the normalization Q∗(i0,u0,v0)=Λ∗ results in
[2] S. Gu, L. Yang, Y. Du, G. Chen, F. Walter, J. Wang, and A. Knoll, “A review of safe reinforcement learning: Methods, theory and applications,” arXiv:2205.10330, 2022.
[3] J. Garcia and F. Fernández, “A comprehensive survey on safe reinforcement learning,” Journal of Machine Learning Research, vol. 16, no. 1, pp. 1437–1480, 2015.
[4] V. S. Borkar, “An actor-critic algorithm for constrained markov decision processes,” Systems & control letters, vol. 54, no. 3, pp. 207–213, 2005.
[5] E. Altman, Constrained Markov decision processes. Routledge, 2021.
[6] A. HasanzadeZonuyi, A. Bura, D. Kalathil, and S. Shakkottai, “Learning with safety constraints: Sample complexity of reinforcement learning for constrained MDPs,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 35, no. 9, 2021, pp. 7667–7674.
[7] Y. Sui, A. Gotovos, J. Burdick, and A. Krause, “Safe exploration for optimization with gaussian processes,” in International conference on machine learning, 2015, pp. 997–1005.
[8] J. Achiam, D. Held, A. Tamar, and P. Abbeel, “Constrained policy optimization,” in International conference on machine learning, 2017, pp. 22–31.
[9] S. Bhatnagar and K. Lakshmanan, “An online actor-critic algorithm with function approximation for constrained markov decision processes,” Journal of Optimization Theory and Applications, vol. 153, pp. 688–708, 2012.
[10] S. Paternain, L. Chamon, M. Calvo-Fullana, and A. Ribeiro, “Constrained reinforcement learning has zero duality gap,” Advances in Neural Information Processing Systems, vol. 32, 2019.
[11] C. Tessler, D. J. Mankowitz, and S. Mannor, “Reward constrained policy optimization,” arXiv:1805.11074, 2018.
[12] S. Chaudhary and D. Kalathil, “Safe online convex optimization with unknown linear safety constraints,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 36, no. 6, 2022, pp. 6175–6182.
[13] T. Liu, R. Zhou, D. Kalathil, P. Kumar, and C. Tian, “Learning policies with zero or bounded constraint violation for constrained mdps,” Advances in Neural Information Processing Systems, vol. 34, pp. 17183–17193, 2021.
[14] A. Bura, A. HasanzadeZonuyi, D. Kalathil, S. Shakkottai, and J.-F. Chamberland, “Dope: Doubly optimistic and pessimistic exploration for safe reinforcement learning,” Advances in Neural Information Processing Systems, vol. 35, pp. 1047–1059, 2022.
[15] D. Ding, K. Zhang, T. Basar, and M. Jovanovic, “Natural policy gradient primal-dual method for constrained markov decision processes,” Advances in Neural Information Processing Systems, vol. 33, pp. 8378–8390, 2020.
[16] T. Liu, R. Zhou, D. Kalathil, P. Kumar, and C. Tian, “Fast global convergence of policy optimization for constrained MDPs,” arXiv:2111.00552, 2021.
[17] L. Zheng and L. Ratliff, “Constrained upper confidence reinforcement learning,” in Learning for Dynamics and Control, 2020, pp. 620–629.
[18] T.-Y. Yang, J. Rosca, K. Narasimhan, and P. J. Ramadge, “Projection-based constrained policy optimization,” arXiv:2010.03152, 2020.
[19] J. Choi, F. Castaneda, C. J. Tomlin, and K. Sreenath, “Reinforcement learning for safety-critical control under model uncertainty, using control Lyapunov functions and control barrier functions,” arXiv:2004.07584, 2020.
[20] Y. Chow, O. Nachum, E. Duenez-Guzman, and M. Ghavamzadeh, “A lyapunov-based approach to safe reinforcement learning,” Advances in neural information processing systems, vol. 31, 2018.
[21] F. Berkenkamp, M. Turchetta, A. Schoellig, and A. Krause, “Safe model-based reinforcement learning with stability guarantees,” Advances in neural information processing systems, vol. 30, 2017.
[22] R. Cheng, G. Orosz, R. M. Murray, and J. W. Burdick, “End-to-end safe reinforcement learning through barrier functions for safety-critical continuous control tasks,” in Proceedings of the AAAI conference on artificial intelligence, vol. 33, no. 01, 2019, pp. 3387–3395.
[23] A. Taylor, A. Singletary, Y. Yue, and A. Ames, “Learning for safety-critical control with control barrier functions,” in Learning for Dynamics and Control, 2020, pp. 708–717.
[24] A. D. Ames, S. Coogan, M. Egerstedt, G. Notomista, K. Sreenath, and P. Tabuada, “Control barrier functions: Theory and applications,” in 2019 18th European control conference (ECC). IEEE, 2019, pp. 3420–3431.
[25] J. F. Fisac, N. F. Lugovoy, V. Rubies-Royo, S. Ghosh, and C. J. Tomlin, “Bridging hamilton-jacobi safety analysis and reinforcement learning,” in 2019 International Conference on Robotics and Automation (ICRA). IEEE, 2019, pp. 8550–8556.
[26] K.-C. Hsu, V. Rubies-Royo, C. J. Tomlin, and J. F. Fisac, “Safety and liveness guarantees through reach-avoid reinforcement learning,” arXiv:2112.12288, 2021.
[27] D. Yu, H. Ma, S. Li, and J. Chen, “Reachability constrained reinforcement learning,” in International conference on machine learning. PMLR, 2022, pp. 25 636–25 655.
[28] M. Ganai, Z. Gong, C. Yu, S. Herbert, and S. Gao, “Iterative reachability estimation for safe reinforcement learning,” Advances in Neural Information Processing Systems, vol. 36, 2023.
[29] V. S. Borkar, “Q-learning for risk-sensitive control,” Mathematics of operations research, vol. 27, no. 2, pp. 294–311, 2002.
[30] V. S. Borkar, “A sensitivity formula for risk-sensitive cost and the actor-critic algorithm,” Systems & Control Letters, vol. 44, no. 5, pp. 339–346, 2001.
[31] M. Moharrami, Y. Murthy, A. Roy, and R. Srikant, “A policy gradient algorithm for the risk-sensitive exponential cost MDP,” Mathematics of Operations Research, 2024.
[32] A. Tamar, D. Di Castro, and S. Mannor, “Policy gradients with variance related risk criteria,” in Proceedings of the twenty-ninth international conference on machine learning, 2012, pp. 387–396.
[33] P. La and M. Ghavamzadeh, “Actor-critic algorithms for risk-sensitive MDPs,” Advances in neural information processing systems, vol. 26, 2013.
[34] N. Patton, J. Jeong, M. Gimelfarb, and S. Sanner, “A distributional framework for risk-sensitive end-to-end planning in continuous MDPs,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 36, no. 9, 2022, pp. 9894–9901.
[35] Y. Chow, A. Tamar, S. Mannor, and M. Pavone, “Risk-sensitive and robust decision-making: a cvar optimization approach,” Advances in neural information processing systems, vol. 28, 2015.
[36] J. A. Filar, D. Krass, and K. W. Ross, “Percentile performance criteria for limiting average markov decision processes,” IEEE Transactions on Automatic Control, vol. 40, no. 1, pp. 2–10, 1995.
[37] R. Zhang, Y. Hu, and N. Li, “Regularized robust MDPs and risk-sensitive MDPs: Equivalence, policy gradient, and sample complexity,” arXiv:2306.11626, 2023.
[38] T. Osogami, “Robustness and risk-sensitivity in markov decision processes,” Advances in neural information processing systems, vol. 25, 2012.
[39] R. S. Sutton and A. G. Barto, Reinforcement learning: An introduction. MIT press, 2018.
[40] Y. Chow, M. Ghavamzadeh, L. Janson, and M. Pavone, “Risk-constrained reinforcement learning with percentile risk criteria,” The Journal of Machine Learning Research, vol. 18, no. 1, pp. 6070–6120, 2017.
[41] H. Ma, C. Liu, S. E. Li, S. Zheng, and J. Chen, “Joint synthesis of safety certificate and safe control policy using constrained reinforcement learning,” in Learning for Dynamics and Control Conference. PMLR, 2022, pp. 97–109.
[42] J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov, “Proximal policy optimization algorithms,” arXiv:1707.06347, 2017.
[43] L. Zhang, L. Shen, L. Yang, S. Chen, B. Yuan, X. Wang, and D. Tao, “Penalized proximal policy optimization for safe reinforcement learning,” arXiv:2205.11814, 2022.
[44] T. Xu, Y. Liang, and G. Lan, “CRPO: A new approach for safe reinforcement learning with convergence guarantee,” in International Conference on Machine Learning. PMLR, 2021, pp. 11480–11491.
[45] M. L. Puterman, Markov decision processes: discrete stochastic dynamic programming. John Wiley & Sons, 2014.
[46] K. Avrachenkov, V. Borkar, and D. Nemirovsky, “Quasi-stationary distributions as centrality measures for the giant strongly connected component of a reducible graph,” Journal of computational and applied mathematics, vol. 234, no. 11, pp. 3075–3090, 2010.
[47] J. Abounadi, D. Bertsekas, and V. S. Borkar, “Learning algorithms for markov decision processes with average cost,” SIAM Journal on Control and Optimization, vol. 40, no. 3, pp. 681–698, 2001.
[48] V. S. Borkar, R. Makhijani, and R. Sundaresan, “Asynchronous gossip for averaging and spectral ranking,” IEEE Journal of Selected Topics in Signal Processing, vol. 8, no. 4, pp. 703–716, 2014.
[49] S. Gaubert and J. Gunawardena, “The Perron-Frobenius theorem for homogeneous, monotone functions,” Transactions of the American Mathematical Society, vol. 356, no. 12, pp. 4931–4950, 2004.
[50] V. S. Borkar and S. P. Meyn, “The ode method for convergence of stochastic approximation and reinforcement learning,” SIAM Journal on Control and Optimization, vol. 38, no. 2, pp. 447–469, 2000.