Skip to content

Menu

WorksComputer Science

O(1/n)O(1/n) Convergence Rate for RVI QQ-Learning

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_pgq5njr7. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

We establish finite-time convergence guarantee for synchronous relative value iteration (RVI) QQ-learning for finite weakly communicating Markov decision processes (MDPs). For stochastic Krasnosel'ski\uı–Mann iterations driven by a non-expansive, linearly regular map on a finite-dimensional normed space, we establish last-iterate mean-squared residual bounds under martingale-difference noise whose conditional second moment grows at most linearly with the squared residual. Suitable polynomial stepsizes of order n−an^{-a} yield an O(n−a)O(n^{-a}) rate for 0<a≤10<a\leq1. We verify linear regularity and the noise condition for the centered Bellman operator for finite weakly communicating MDPs. Applying the general result gives an O(n−1)O(n^{-1}) bound on the mean-squared Bellman span residual of RVI QQ-learning iterates when a suitable stepsize sequence is used. The positive gap between optimal and suboptimal stationary deterministic policies then yields an O(n−1)O(n^{-1}) bound on the expected suboptimality of the greedy policy. Consequently, O(ε−1)O(ε^{-1}) synchronous iterations suffice for an εε-optimal policy in expectation. These guarantees are instance-dependent, with constants that depend on the hitting-time parameters and the suboptimality gap of the second-best policy.

Introduction

Average-reward reinforcement learning (RL), in which the learning agent aims to maximize the long-run average reward, provides a natural model for sequential decision-making problems in systems where steady-state performance is crucial, and there is no prescribed terminal time, such as queueing networks, inventory control, robotics, power-grid management, and communication networks [16]. In contrast, discounted RL assigns geometrically decaying weights to future rewards and therefore does not directly capture the long-run steady-state performance of a policy. Discounting, however, offers a key analytical advantage. The value function is the unique fixed point of the Bellman operator, which is a contraction [16 Chapter 6]. Similar properties hold in undiscounted problems when the state process reaches a terminal state almost surely under every policy [4]. This contractive structure underlies much of the finite-time theory for value-based RL algorithms such as QQ-learning and TD-learning [7, 9, 15, 18, 19]. Average-reward RL is inherently more challenging from this perspective. In the absence of discounting, the Bellman operator and related maps, such as the RVI map, are generally only non-expansive. Moreover, solutions to the average-reward optimality equation (1), i.e., the fixed points of the centered Bellman operator (33), are never unique. For unichain MDPs, the solution set has one degree of freedom [16 Chapter 8], whereas for the weakly communicating MDPs studied here, the solution set is, in general, higher dimensional [17, 21]. RVI QQ-learning, introduced by Abounadi et al. [1], is one of the earliest provably convergent model-free value-based algorithms for average-reward RL. It updates the estimate of the optimal QQ-function with a sampled Bellman step after subtracting an iterate-dependent normalization term from it (5). The normalization term removes the undetermined additive component of the QQ-function and stabilizes the iterates. Under certain regularity conditions on the normalization functional and standard choices of the stepsize sequence, Abounadi et al. [1] established almost-sure convergence of both synchronous and asynchronous RVI QQ-iterates for unichain MDPs with a common state recurrent under every stationary policy. Their result is asymptotic and does not quantify the number of iterations required for obtaining a QQ-iterate that nearly solves the average reward optimality equation (1), or for obtaining a nearly optimal policy. The goal of the current work is to provide such a finite-time characterization for synchronous RVI QQ-learning by studying the fixed-point residual, which upper bounds the suboptimality of the greedy policy induced by the current QQ-iterate.

Due to the non-expansive nature of the relevant operators, the finite-time analysis available for contractive settings cannot be applied here. Although the average-reward Bellman operator is non-expansive under the sup-norm, the RVI map is non-expansive only under the span seminorm. A standard approach is to analyze an auxiliary iteration driven by the centered Bellman operator, in which the constant optimal average reward replaces the iterate-dependent normalization term in RVI QQ-learning. The operator is non-expansive under the sup-norm, and the iterates, when run with the same samples, have the same Bellman span residuals as the RVI iterates. Hence, obtaining finite-time guarantees for RVI QQ-learning reduces to analyzing stochastic Krasnosel’skiĭ–Mann (KM) iterations with non-expansive operators under an arbitrary norm.

The following two lines of work address finite-time guarantees for average-reward QQ-learning. Analyses via the theory of stochastic KM iterations assume nothing beyond non-expansiveness. Bravo and Cominetti [6] obtain an expected residual of order O~(n−1/6)\widetilde{O}(n^{-1/6}) after nn iterations for uniformly bounded noise variance, where O~\widetilde{O} hides logarithmic factors. This rate degrades to O(n−1/10+ϵ)O(n^{-1/10+\epsilon}), for any ϵ∈(0,1/10)\epsilon\in(0,1/10), once the iterate-dependence of the RVI sampling noise is accounted for. On the other hand, a body of work assumes a contraction property and obtains the faster rate O(n−1/2)O(n^{-1/2}). Chen et al. [10] assume a seminorm contraction and obtain O(n−1/2)O(n^{-1/2}); Chen [8] obtain last-iterate guarantees under a span-contraction assumption with adaptive stepsizes; and Chen et al. [11] construct an instance-dependent seminorm after a lazy transformation of the dynamics and obtain an O~(ϵ−2)\widetilde{O}(\epsilon^{-2}) sample complexity under a reachability condition.

Instead of exploiting only the non-expansive property of the RVI QQ-learning operator, or imposing any contractive structure, the current work shows that a third property, called linear regularity [2], holds for the centered Bellman operator if the MDP is weakly communicating.

Definition 1 (Linearly regular operator). Let (X,∥⋅∥)(\mathcal{X},\lVert\cdot\rVert) be a normed space, and let T:X→XT:\mathcal{X}\to\mathcal{X} be an operator with a non-empty set of fixed points Fix⁡(T):={x∈X:Tx=x}\operatorname{Fix}(T):=\{x\in\mathcal{X}:Tx=x\}. TT is linearly regular if there exists a constant k>0k>0 such that

inf⁡x⋆∈Fix⁡(T)∥x−x⋆∥≤k∥x−Tx∥,∀x∈X.\inf_{x^\star\in\operatorname{Fix}(T)}\lVert x-x^\star\rVert\leq k\lVert x-Tx\rVert,\quad\forall x\in\mathcal{X}.

Further, we show that the conditional second moment of the RVI sampling noise is at most a constant times one plus the squared residual of the current iterate. Using these two properties of the operator and the noise, the current work shows that the mean-squared residuals of the stochastic KM iterates decay at a rate of O(n−1)O(n^{-1}). The same rate holds for the expected suboptimality of the policy greedy with respect to the RVI QQ-iterates.

Contributions. Our main results are summarized in the following three points.

  1. For the stochastic KM iteration xn=(1−αn)xn−1+αn(Txn−1+Mn)x_n=(1-\alpha_n)x_{n-1}+\alpha_n(Tx_{n-1}+M_n) driven by a non-expansive, linearly regular map TT with linear regularity constant kk on an arbitrary finite-dimensional normed space, with stepsizes αn\alpha_n and martingale-difference noise MnM_n whose conditional second moment is bounded by

σ2(1+∥xn−1−Txn−1∥2)\sigma^2(1+\lVert x_{n-1}-Tx_{n-1}\rVert^2), we prove a last-iterate bound on the mean-squared residual (Theorem 2). Polynomial stepsizes c(n+K0)−ac(n+K_0)^{-a} with a fixed a∈(0,1]a\in(0,1] attain the rate of O(n−a)O(n^{-a}).

(ii) We prove that the centered Bellman operator Hˉ\bar{H} (33) for every finite weakly communicating MDP is linearly regular with the explicit constant KK, defined in (8) (Proposition 1). We also prove that the conditional second moment of its sampling noise is bounded by a constant times one plus the squared residual (Proposition 2).

(iii) Combining (i) and (ii), we obtain an O(n−1)O(n^{-1}) bound on the mean-squared Bellman span residual of the RVI QQ-iterates, with a prefactor of order K6(1+D)2log⁡(2∣S∣∣A∣)K^6(1+D)^2\log(2|\mathcal{S}||\mathcal{A}|) (Theorem 1). The residual-to-policy relation (7) gives the same rate for expected suboptimality of the greedy policy, with the additional factor 1/Δpol1/\Delta_{\mathrm{pol}} in its prefactor. Thus, O(ϵ−1)O(\epsilon^{-1}) synchronous iterations suffice for the greedy policy to be ϵ\epsilon-optimal in expectation (Corollary 1).

Overview of the argument. To prove (i), we first consider the iteration without sampling noise. Because of linear regularity, over a sufficiently large number of iterations, called a block, the distance to the nearest fixed point decreases by a fraction. We then compare the noisy and noiseless iterations starting from the same point. The comparison shows a similar decrease in the mean-squared distance, with an additional error proportional to the step size at the start of the block. In the next block, the accumulated error is reduced again, while new noise contributes another error term. The stepsize conditions ensure that this repeated reduction suppresses the errors introduced in earlier blocks. Consequently, the mean-squared distance, and hence the mean-squared residual, is bounded by a constant times the current stepsize plus a decaying contribution from the initial distance.

For (ii), we first obtain a preliminary bound on the distance to the solution set in terms of the residual, along with an additive constant. Whenever the residual is above a strictly positive threshold, the additive constant can be absorbed into the residual term at the expense of a larger constant. We set the threshold to be the policy gap, which is the smallest non-zero loss in average reward among stationary deterministic policies. Wherever the residual is smaller than the policy gap, the corresponding greedy policy must be optimal. We use this property to construct a nearby solution. Given a QQ-function, let the value of a state be the largest QQ-value over actions at that state. We show that these values can be raised by an amount proportional to the residual so that subsequent Bellman updates, with the optimal average reward subtracted, only decrease them. The updated values remain bounded below, so they converge to an exact state-value solution. To bound its distance from the original values, we use the closed groups of states in which the greedy policy eventually remains, called its recurrent classes. On these classes, optimality forces the Bellman updates to leave the raised values unchanged. For other states, summing Bellman errors until one of these classes is reached bounds how far the limiting values lie below the original values. The expected hitting times make this bound proportional to the residual. Together with the bound on the initial upward adjustment, this shows that the limiting state values differ from the original values by an amount proportional to the residual. Converting this state-value solution back to a QQ-function gives the nearby exact solution needed for linear regularity. Separately, we bound the spread of state values across states in terms of the residual. This controls the sampling noise, which comes from the bounded reward and the value of the sampled next state.

For (iii), we run the auxiliary and RVI iterations using the same sampled transitions. Their iterates differ only by a constant added to every entry, which leaves the Bellman span residual unchanged. The bound from (i) therefore gives a mean-squared residual bound for RVI. For each sample outcome, the greedy policy’s loss is at most the Bellman span residual and is either zero or at least the policy gap. These two facts bound the loss by the squared residual divided by the gap. Taking expectations gives the claimed O(n−1)O(n^{-1}) rate for the stated stepsizes of order 1/n1/n, with constants depending on the fixed MDP.

Related work. Abounadi et al. [1] establish convergence of RVI QQ-learning for unichain MDPs with a common state recurrent under every stationary policy, and Wan et al. [21] extend this result to weakly communicating MDPs. Wan et al. [20] introduce differential QQ-learning, which avoids a normalization functional, and prove its asymptotic convergence. For finite-time guarantees, Zhang et al. [22] analyze tabular average-reward QQ-learning under span-seminorm contraction. Chen et al. [10] develop a seminorm Lyapunov framework yielding an O(n−1/2)O(n^{-1/2}) expected span-seminorm error bound. Chen [8] obtain asynchronous last-iterate guarantees with adaptive stepsizes under span contraction. Chen et al. [11] construct an instance-dependent seminorm after a lazy transformation and obtain O~(ϵ−2)\widetilde{O}(\epsilon^{-2}) sample complexity under a reachability condition. For weakly communicating MDPs with a generative model, Zurek and Chen [23] use a discounted reduction to obtain the minimax-optimal sample complexity O~(∣S∣∣A∣H/ϵ2)\widetilde{O}(|\mathcal{S}||\mathcal{A}|H/\epsilon^2), where HH is the span of the optimal value function. Our O(ϵ−1)O(\epsilon^{-1}) iteration bound has instance-dependent constants, so it does not imply an improvement over this minimax benchmark.

Bravo and Cominetti [6] analyze stochastic KM iterations on arbitrary normed spaces, obtaining an expected residual rate of O~(n−1/6)\widetilde{O}(n^{-1/6}) under uniformly bounded noise variance. For RVI QQ-learning, iterate-dependent noise yields the slower rate O(n−1/10+η)O(n^{-1/10+\eta}) for any η∈(0,1/10)\eta\in(0,1/10). Blaser and Zhang [5] study nonexpansive stochastic approximation with Markovian noise and apply their results to average-reward TD learning. Our analysis instead exploits linear regularity and residual-dependent martingale noise to obtain an O(n−1)O(n^{-1}) bound on the mean-squared residual.

Alternative algorithms include the adaptive-discount QQ-learning method of Jin et al. [13], which provides finite-sample guarantees without prior knowledge of problem parameters. Lee et al. [14] combine Halpern’s anchored iteration with recursive sampling to obtain an ϵ\epsilon-optimal policy using O~(∣S∣∣A∣H2/ϵ2)\widetilde{O}(|\mathcal{S}||\mathcal{A}|H^2/\epsilon^2) samples without requiring prior knowledge of HH.

Organization. Section 2 introduces the problem and algorithm and states the main results. Section 3 develops a general convergence bound for stochastic KM iterations. Section 4 applies this bound to RVI QQ-learning, establishes the required linear regularity and noise growth condition, and proves the convergence and sample complexity guarantees. Section 5 concludes. Appendices A–C contain supporting lemmas, a martingale inequality, and stepsize estimates, respectively.

Setup and Main Results

Average-Reward MDPs

Notation. For a finite dimensional vector xx, ∥x∥sp:=max⁡ix(i)−min⁡ix(i)\lVert x\rVert_{\mathrm{sp}} := \max_i x(i) - \min_i x(i) denotes the span seminorm. For a finite set X\mathcal{X}, ΔX\Delta_{\mathcal{X}} is the probability simplex on X\mathcal{X}.

Let (S,A,p,r)(\mathcal{S}, \mathcal{A}, p, r) be an MDP, where S\mathcal{S} and A\mathcal{A} are finite state and action spaces, respectively, p(s,a,⋅)∈ΔSp(s,a,\cdot) \in\Delta_{\mathcal{S}} governs the state transitions and r:S×A×S→[0,1]r : \mathcal{S} \times\mathcal{A} \times\mathcal{S} \to[0,1] is the reward function. For a stationary policy π:S→ΔA\pi: \mathcal{S} \to\Delta_{\mathcal{A}}, we write π(a∣s)\pi(a|s) for the probability that π\pi chooses action aa in state ss. Its average reward starting from state ss is

J(π,s):=lim inf⁡n→∞1nEsπ[∑k=0n−1r(Sk,Ak,Sk+1)].J(\pi,s) := \liminf_{n\to\infty} \frac{1}{n}\mathbb{E}^{\pi}_{s}\left[\sum_{k=0}^{n-1} r(S_k,A_k,S_{k+1})\right].

where SkS_k and AkA_k denote the state and the action at time kk, and Esπ\mathbb{E}^{\pi}_{s} denotes expectation under the conditions that S0=sS_0=s and Ak∼π(⋅∣Sk)A_k \sim\pi(\cdot|S_k) for every $k \ge 0. The MDP satisfies the following assumption.

Assumption 1 (Weakly communicating). The state space admits a partition S=Sc∪St\mathcal{S} = \mathcal{S}_c \cup\mathcal{S}_t, where St\mathcal{S}_t is closed, i.e., ∑s′∈Scp(s,a,s′)=1\sum_{s'\in\mathcal{S}_c} p(s,a,s') = 1 for every s∈Scs \in\mathcal{S}_c and a∈Aa \in\mathcal{A}, every state of Sc\mathcal{S}_c is accessible from every other state

of ScS_c under some stationary deterministic policy, and every state of the possibly empty set StS_t is transient under every stationary policy.

The class of weakly communicating MDPs contains the families of ergodic, unichain, and communicating MDPs; see Puterman [16 Section 8.3]. Under the above assumption, the optimal average reward sup⁡πJ(π,s)\sup_{\pi} J(\pi,s) is independent of the initial state ss and we denote the scalar value by J⋆J^\star. The average-reward optimality equation (AROE) is

J+Q(s,a)=∑s′∈Sp(s,a,s′)(r(s,a,s′)+VQ(s′)),∀(s,a),(1)J+Q(s,a)=\sum_{s'\in S}p(s,a,s')\left(r(s,a,s')+V_Q(s')\right),\qquad\forall(s,a), \tag*{(1)}

where VQ(s):=max⁡a∈AQ(s,a)V_Q(s):=\max_{a\in\mathcal{A}}Q(s,a). Assumption 1 is sufficient for the existence of Q⋆∈RS×AQ^\star\in\mathbb{R}^{S\times A} such that (J⋆,Q⋆)(J^\star,Q^\star) satisfies the AROE. In that case, (J⋆,Q⋆+c1)(J^\star,Q^\star+c\mathbf{1}) also satisfies the AROE for every c∈Rc\in\mathbb{R}, where 1\mathbf{1} denotes the S×AS\times A-dimensional all-ones vector. These shifts need not exhaust the solution set. The AROE of a weakly communicating MDP may admit solutions that do not differ by a constant vector [17, 21]. A policy that chooses an action from arg⁡max⁡aQ⋆(s,a)\arg\max_a Q^\star(s,a) in each state ss is optimal. See Puterman [16] for more details on average reward MDPs.

Useful MDP parameters. Let ΠSD\Pi_{\mathrm{SD}} be the set of stationary deterministic policies, and let τA:=inf⁡{k≥0:Sk∈A}\tau_A:=\inf\{k\ge0:S_k\in A\} and τs′:=τ{s′}\tau_{s'}:=\tau_{\{s'\}}. Define the following complexity measure of weakly communicating MDPs,

D:=max⁡{max⁡s,s′∈Scπ∈ΠSDEsπ[τs′], max⁡π∈ΠSDs∈StEsπ[τSc]},(2)D:=\max\left\{\max_{\substack{s,s'\in S_c\\ \pi\in\Pi_{\mathrm{SD}}}}\mathbb{E}^{\pi}_s[\tau_{s'}],\ \max_{\substack{\pi\in\Pi_{\mathrm{SD}}\\ s\in S_t}}\mathbb{E}^{\pi}_s[\tau_{S_c}]\right\}, \tag*{(2)}

References

  1. [1]Jinane Abounadi, Dimitri B. Bertsekas, and Vivek S Borkar. Learning algorithms for Markov decision processes with average cost. SIAM Journal on Control and Optimization, 40(3):681–698, 2001.DOI
  2. [2]Heinz H Bauschke, Dominikus Noll, and Hung M Phan. Linear and strong convergence of algorithms involving averaged nonexpansive operators. Journal of Mathematical Analysis and Applications, 421(1):1–20, 2015.arxiv.org/abs/1402.5460
  3. [3]Amir Beck. First-order methods in optimization. SIAM, 2017.DOI
  4. [4]Dimitri P. Bertsekas and John N. Tsitsiklis. An analysis of stochastic shortest path problems. Mathematics of Operations Research, 16(3):580–595, 1991.DOI
  5. [5]Ethan Blaser and Shantong Zhang. Asymptotic and finite sample analysis of nonexpansive stochastic approximations with Markovian noise. Proceedings of the AAAI Conference on Artificial Intelligence, 2026.arxiv.org/abs/2409.19546
  6. [6]Mario Bravo and Roberto Cominetti. Stochastic fixed-point iterations for nonexpansive maps: Convergence and error bounds. SIAM Journal on Control and Optimization, 62(1):191–219, 2024.arxiv.org/abs/2208.04193
  7. [7]Siddharth Chandak, Vivek S. Borkar, and Parth Dodhia. Concentration of contractive stochastic approximation and reinforcement learning. Stochastic Systems, 12(4):411–430, 2022.arxiv.org/abs/2106.14308
  8. [8]Zaiwei Chen. Non-asymptotic guarantees for average-reward q-learning with adaptive stepsizes. Advances in Neural Information Processing Systems, 38:147194–147249, 2026.DOI
  9. [9]Zaiwei Chen, Siva Theja Maguluri, Sanjay Shakkottai, and Karthikeyan Shanmugam. Finite-sample analysis of contractive stochastic approximation using smooth convex envelopes. Advances in Neural Information Processing Systems, 33:8223–8234, 2020.
  10. [10]Zaiwei Chen, Sheng Zhang, Jimmy Zhang, Shaan Ul Haque, and Siva Theja Maguluri. A nonasymptotic theory of seminorm lyapunov stability: From deterministic to stochastic iterative algorithms. Mathematics of Operations Research, 2026. doi: 10.1287/moor.2025.0920.DOI
  11. [11]Zijun Chen, Zaiwei Chen, Nian Si, and Shengbo Wang. Achieving e−2 dependence for average-reward Q-learning with a new contraction principle. arXiv preprint arXiv:2601.21301, 2026.arxiv.org/abs/2601.21301
  12. [12]Roberto Cominetti, José A. Soto, and José Vaisman. On the rate of convergence of Krasnosel’skiĭ–Mann iterations and their connection with sums of Bernoulli random variables. Israel Journal of Mathematics, 199(2):757–772, 2014.DOI
  13. [13]Ying Jin, Ramki Gummadi, Zhengyuan Zhou, and Jose Blanchet. Feasible Q-learning for average reward reinforcement learning. In Proceedings of the 27th International Conference on Artificial Intelligence and Statistics, volume 238 of Proceedings of Machine Learning Research, pages 1630–1638. PMLR, 2024.
  14. [14]Jongmin Lee, Mario Bravo, and Roberto Cominetti. Near-optimal sample complexity for MDPs via anchoring. In Proceedings of the 42nd International Conference on Machine Learning, volume 267, pages 32907–32929. PMLR, 2025.arxiv.org/abs/2502.04477
  15. [15]Gen Li, Changxiao Cai, Yuxin Chen, Yuting Wei, and Yuejie Chi. Is Q-learning minimax optimal? a tight sample complexity analysis. Operations Research, 72(1):222–236, 2024.arxiv.org/abs/2102.06548
  16. [16]Martin L Puterman. Markov decision processes: discrete stochastic dynamic programming. John Wiley & Sons, 2014.
  17. [17]Paul J Schweitzer and Awi Federgruen. The functional equations of undiscounted Markov renewal programming. Mathematics of Operations Research, 3(4):308–321, 1978.
  18. [18]R. Srikant and Lei Ying. Finite-time error bounds for linear stochastic approximation and TD learning. In Proceedings of the Thirty-Second Conference on Learning Theory, volume 99 of Proceedings of Machine Learning Research, pages 2803–2830. PMLR, 2019.arxiv.org/abs/1902.00923
  19. [19]Martin J. Wainwright. Stochastic approximation with cone-contractive operators: Sharp ℓ∞-bounds for Q-learning. arXiv preprint arXiv:1905.06265, 2019.arxiv.org/abs/1905.06265
  20. [20]Yi Wan, Abhishek Naik, and Richard S. Sutton. Learning and planning in average-reward Markov decision processes. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 10653–10662. PMLR, 2021.arxiv.org/abs/2006.16318
  21. [21]Yi Wan, Huizhen Yu, and Richard S. Sutton. On convergence of average-reward Q-learning in weakly communicating Markov decision processes. arXiv preprint arXiv:2408.16262, 2024.arxiv.org/abs/2408.16262
  22. [22]Sheng Zhang, Zhe Zhang, and Siva Theja Maguluri. Finite sample analysis of average-reward TD learning and Q-learning. In Advances in Neural Information Processing Systems, volume 34, pages 1230–1242, 2021.
  23. [23]Matthew Zurek and Yudong Chen. Span-based optimal sample complexity for weakly communicating and general average reward MDPs. Advances in Neural Information Processing Systems, 37, 2024.arxiv.org/abs/2403.11477

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Pick where to look, or just type