Simple Algorithm
Reinforcement Learning · Fixed Point · 30 min

Q-Learning: Convergence & Sample Complexity

From Watkins and Dayan’s proof to sharp sample-complexity bounds.

Watkins argued in 1989 that Q-learning finds the optimal action values, and Watkins and Dayan made the proof rigorous in 1992 with a striking construction: an artificial MDP, built from the agent's own memories, whose optimal values are exactly the Q-table. How fast Q-learning gets there took three more decades to settle. With a generative model it needs on the order of ∣S∣∣A∣/((1−γ)4ε2)\abs{\mathcal S}\abs{\mathcal A}/\big((1-\gamma)^4\varepsilon^2\big) samples, and with the step sizes used in practice it cannot do better: one factor of the effective horizon more than the best possible algorithm. That extra factor is the price of the maximum.

What you’ll learn

  • State Watkins and Dayan's convergence theorem with its conditions, and prove that the Q-table equals the optimal action values of the action-replay process.
  • Explain how the step-size schedule sets the rate: why 1/n1/n steps can need time exponential in the effective horizon while polynomial steps need polynomial time.
  • State the sharp sample complexity of synchronous and asynchronous Q-learning, the matching lower bound for Q-learning and the minimax limit, and explain heuristically where the extra horizon factor comes from.
  • Describe how variance reduction attains the minimax rate, and how optimistic Q-learning explores episodic MDPs with near-optimal regret.

The action-replay process

DerivationThe Q-table is the ARP’s optimal value function
  1. QARP⋆(⟨s,0⟩,a)=Q0(s,a)Q^\star_{\text{ARP}}(\langle s,0\rangle,a) = Q_0(s,a)

    At level 0 no card lies above the bottom one, so every action ends at once with its initial value:

  2. QARP⋆(⟨sn,n⟩,an)=(1−αn) Qn−1(sn,an)+αn[rn+γmax⁡a′Qn−1(sn′,a′)]=Qn(sn,an)Q^\star_{\text{ARP}}(\langle s_n,n\rangle,a_n) = (1-\alpha_n)\,Q_{n-1}(s_n,a_n) + \alpha_n\Big[r_n + \gamma\max_{a'}Q_{n-1}(s'_n,a')\Big] = Q_n(s_n,a_n)

    Suppose QARP⋆(⟨⋅,n−1⟩,⋅)=Qn−1Q^\star_{\text{ARP}}(\langle\cdot,n-1\rangle,\cdot) = Q_{n-1}, and update nn is of the pair (sn,an)(s_n,a_n). For every other pair the deck at level nn is the deck at level n−1n-1, so nothing changes. For (sn,an)(s_n,a_n), card nn is on top: with probability αn\alpha_n it is replayed (reward rnr_n, then the state ⟨sn′,n−1⟩\langle s'_n, n-1\rangle, worth max⁡a′Qn−1(sn′,a′)\max_{a'}Q_{n-1}(s'_n,a') by the induction hypothesis); otherwise the process continues exactly as from level n−1n-1:

  3. The middle expression is Q-learning's update. By induction, on every sample path and at every nn, the Q-table is the optimal action-value function of the ARP at level nn. Nothing is approximate here: Q-learning solves, exactly and incrementally, an MDP made of its own experience. ■\blacksquare

Check your understanding

A pair has been updated four times, with step size 1/k1/k at its kk-th update, so its Q-value is the plain average of its four targets. At the top level, with what probability does the ARP replay each of the four cards?

  1. 1/2,1/4,1/8,1/161/2, 1/4, 1/8, 1/16 from newest to oldest, and 1/161/16 for the bottom card
  2. Only the newest card, with probability 1
  3. 1/41/4 each, and the bottom card is never reached
  4. 1/51/5 each, the fifth fifth going to the bottom card
Show the answer

C. 1/41/4 each, and the bottom card is never reached

Newest: 1/41/4. Next: (1−1/4)⋅1/3=1/4(1 - 1/4)\cdot 1/3 = 1/4. Then (3/4)(2/3)⋅1/2=1/4(3/4)(2/3)\cdot 1/2 = 1/4, and the oldest (3/4)(2/3)(1/2)⋅1=1/4(3/4)(2/3)(1/2)\cdot 1 = 1/4, which exhausts the probability because α1=1\alpha_1 = 1. With 1/k1/k steps the ARP replays a uniformly random past experience: its top level is the empirical model of the data. A constant step instead favors recent cards geometrically, and with α1<1\alpha_1 < 1 some probability always reaches the bottom: the initial guess never fully disappears.

From the ARP to the real MDP. Two facts finish the proof. First, the card replayed for (s,a)(s,a) from a high level is drawn from the pair's past experiences, card ii with probability αi∏j>i(1−αj)\alpha_i\prod_{j>i}(1-\alpha_j) (indices running over that pair's updates), the very weights with which Q-learning averages its targets. Under the two Robbins–Monro conditions these weighted rewards and next-state frequencies converge to r(s,a)r(s,a) and P(⋅∣s,a)P(\cdot \mid s,a). Second, ∑α=∞\sum\alpha = \infty makes deep descents rare: the probability of skipping every card down to some fixed level is ∏j(1−αj)≤exp⁡(−∑jαj)→0\prod_j(1-\alpha_j) \le \exp\big(-\sum_j\alpha_j\big) \to 0. Because γ<1\gamma < 1, only the first kk steps matter, up to γkRmax⁡/(1−γ)\gamma^kR_{\max}/(1-\gamma), and for kk steps from a high enough level the ARP behaves almost like the real MDP. Its optimal values, which are QnQ_n, therefore approach Q⋆Q^\star.

The proofs used today are shorter. Jaakkola, Jordan and Singh (1994) and Tsitsiklis (1994) treat Q-learning as asynchronous stochastic approximation of T⋆\mathcal T^\star, a γ\gamma-contraction in the max norm since ∣max⁡aq(a)−max⁡aq′(a)∣≤max⁡a∣q(a)−q′(a)∣\abs{\max_aq(a) - \max_aq'(a)} \le \max_a\abs{q(a) - q'(a)}, driven by martingale-difference noise with per-pair Robbins–Monro steps. Convergence of TD: Stochastic Approximation carries out that template for TD(0); for Q-learning only the operator changes. Neither kind of proof says how fast.

How fast? Step sizes and the effective horizon

Any Robbins–Monro schedule gives convergence; the rate depends heavily on which one. Even-Dar and Mansour (2003) gave the first explicit bounds and found a sharp dichotomy. Their main setting is synchronous Q-learning: in each iteration every pair is updated once, from a fresh sample of its next state.

The lower-bound example is the one-state loop of Convergence of TD: each 1/k1/k step shrinks the error only by the factor 1−(1−γ)/k1 - (1-\gamma)/k, because bootstrapping feeds most of the old error back into the target, so after kk updates the error is of order k−(1−γ)k^{-(1-\gamma)}.

Uneven sampling makes this worse. Szepesvári (1997) showed that with 1/n1/n steps, γ>1/2\gamma > 1/2, and pairs sampled independently from a fixed distribution in which the rarest pair has probability pmin⁡p_{\min} and the most common pmax⁡p_{\max}, the error decays asymptotically like t−R(1−γ)t^{-R(1-\gamma)} when R(1−γ)<1/2R(1-\gamma) < 1/2, where R=pmin⁡/pmax⁡R = p_{\min}/p_{\max}, and like log⁡log⁡t/t\sqrt{\log\log t/t} otherwise. The rarest pair sets the pace for everyone, and its rarity enters the exponent.

Check your understanding

In Even-Dar and Mansour's bound for αn=1/nω\alpha_n = 1/n^\omega, the second term, (11−γln⁡Vmax⁡ε)1/(1−ω)\big(\frac{1}{1-\gamma}\ln\frac{V_{\max}}{\varepsilon}\big)^{1/(1-\omega)}, explodes as ω→1\omega \to 1. What does it account for?

  1. Averaging out the noise in the sampled targets
  2. Forgetting the initial values: the total step size ∑k≤nαk\sum_{k\le n}\alpha_k grows only like n1−ωn^{1-\omega}
  3. The time needed to visit every pair at least once
  4. The upward bias of the maximum
Show the answer

B. Forgetting the initial values: the total step size ∑k≤nαk\sum_{k\le n}\alpha_k grows only like n1−ωn^{1-\omega}

The contraction removes the initial error at rate (1−γ)(1-\gamma) per unit of accumulated step size, roughly exp⁡(−(1−γ)∑k≤nαk)\exp\big(-(1-\gamma)\sum_{k\le n}\alpha_k\big). With αk=k−ω\alpha_k = k^{-\omega} the sum is about n1−ω/(1−ω)n^{1-\omega}/(1-\omega), so nn must reach order (11−γln⁡1ε)1/(1−ω)\big(\frac{1}{1-\gamma}\ln\frac{1}{\varepsilon}\big)^{1/(1-\omega)}. At ω=1\omega = 1 the sum grows only like ln⁡n\ln n, which is exactly the exponential slowness of linear steps. The first term is the price of noise, and it worsens as ω\omega falls toward 1/21/2; ω=4/5\omega = 4/5 balances the two.

Sample complexity: tight at (1 − γ)⁻⁴

To count samples cleanly, assume a generative model: in each iteration, synchronous Q-learning draws one next state for every pair, ∣S∣∣A∣\abs{\mathcal S}\abs{\mathcal A} samples per iteration, and applies the sampled backup T^t\hat{\mathcal T}_t to every entry. Rewards lie in [0,1][0,1], so values lie in [0,1/(1−γ)][0, 1/(1-\gamma)], and the goal is entrywise accuracy ε\varepsilon. Bounds of order (1−γ)−5(1-\gamma)^{-5} stood for years; the gap was closed from both sides in 2021.

No algorithm can beat order ∣S∣∣A∣/((1−γ)3ε2)\abs{\mathcal S}\abs{\mathcal A}/\big((1-\gamma)^3\varepsilon^2\big) samples, up to logarithms (Azar, Munos & Kappen, 2013), and the model-based plug-in method, which estimates PP from the samples and solves the estimated MDP exactly, attains that rate (Azar et al., 2013, for small ε\varepsilon; Agarwal, Kakade & Yang, 2020, over a wider range). Plain Q-learning is suboptimal by exactly one factor of the horizon. The lower-bound instance shows why. The calculation below is a heuristic that reproduces both exponents; it is not the proof.

DerivationWhere the extra factor comes from (heuristic)
  1. V⋆(1)=V⋆(2)=11−γp=34(1−γ),1−p=1−γ3γV^\star(1) = V^\star(2) = \frac{1}{1-\gamma p} = \frac{3}{4(1-\gamma)},\qquad 1 - p = \frac{1-\gamma}{3\gamma}

    The instance. State 1 has two identical actions: each pays 1, then stays in state 1 with probability p=(4γ−1)/(3γ)p = (4\gamma - 1)/(3\gamma) and otherwise moves to an absorbing state worth 0. State 2 has the same dynamics with a single action. Both are worth

  2. σ2=γ2p(1−p) V⋆(1)2≈316(1−γ)\sigma^2 = \gamma^2p(1-p)\,V^\star(1)^2 \approx \frac{3}{16(1-\gamma)}

    The noise. One sampled next state per iteration makes the backup's variance of order 1/(1−γ)1/(1-\gamma), not 1/(1−γ)21/(1-\gamma)^2, because the self-loop almost never breaks:

  3. TTD∝1(1−γ)3ε2T_{\text{TD}} \propto \frac{1}{(1-\gamma)^3\varepsilon^2}

    State 2 (TD). With a constant step η\eta, the error obeys et=(1−η(1−γp))et−1+η ξte_t = (1 - \eta(1-\gamma p))e_{t-1} + \eta\,\xi_t, so its stationary variance is about ησ2/(2(1−γp))∝η/(1−γ)2\eta\sigma^2/\big(2(1-\gamma p)\big) \propto \eta/(1-\gamma)^2. Keeping it below ε2\varepsilon^2 needs η∝ε2(1−γ)2\eta \propto \varepsilon^2(1-\gamma)^2, and the contraction then needs about 1/(η(1−γ))1/(\eta(1-\gamma)) iterations:

  4. bias≈γp1−γpη σ22π  ∝  η(1−γ)3/2\text{bias} \approx \frac{\gamma p}{1-\gamma p}\sqrt{\frac{\eta\,\sigma^2}{2\pi}} \;\propto\; \frac{\sqrt\eta}{(1-\gamma)^{3/2}}

    State 1 (Q-learning). Both actions bootstrap from the same max⁡bQ(1,b)\max_bQ(1,b), so their difference does not accumulate through the loop; its variance is only about ησ2\eta\sigma^2. The maximum picks the luckier action, adding a bias of E∣difference∣/2≈ησ2/(2π)\E\abs{\text{difference}}/2 \approx \sqrt{\eta\sigma^2/(2\pi)} to every target, and the self-loop compounds it over the effective horizon 1/(1−γp)1/(1-\gamma p):

  5. TQ∝1(1−γ)4ε2T_{\text{Q}} \propto \frac{1}{(1-\gamma)^4\varepsilon^2}

    Keeping the bias below ε\varepsilon forces η∝ε2(1−γ)3\eta \propto \varepsilon^2(1-\gamma)^3, one factor of 1−γ1-\gamma smaller than TD's step, and the iteration count grows by the same factor. This is the "over-estimation" that Li et al. make rigorous: their proof analyzes state 2 for steps that are too small or too large, and state 1, with its two identical actions, for everything in between.

Asynchronous Q-learning. With one trajectory from a behavior policy whose stationary state–action distribution has smallest entry μmin⁡\mu_{\min} and mixing time tmixt_{\text{mix}}, Li et al. also show that constant steps reach accuracy ε\varepsilon after O~(1/(μmin⁡(1−γ)4ε2)+tmix/(μmin⁡(1−γ)))\tilde O\big(1/(\mu_{\min}(1-\gamma)^4\varepsilon^2) + t_{\text{mix}}/(\mu_{\min}(1-\gamma))\big) samples, with a matching lower bound for the first term. Since 1/μmin⁡≥∣S∣∣A∣1/\mu_{\min} \ge \abs{\mathcal S}\abs{\mathcal A}, the first term generalizes the synchronous rate, and the second is a burn-in for the Markov chain to mix. Earlier analyses scaled at least as (1−γ)−5(1-\gamma)^{-5} (Li, Wei, Chi, Gu & Chen, 2020; Qu & Wierman, 2020).

Check your understanding

The effective horizon grows from 10 to 100 (γ\gamma from 0.9 to 0.99). By what factor does Q-learning's sample bound grow, and by what factor does the minimax limit grow, ignoring logarithms?

  1. Both by 100
  2. Q-learning by 10,000; the minimax limit by 1,000
  3. Q-learning by 1,000; the minimax limit by 100
  4. Q-learning by 100,000; the minimax limit by 10,000
Show the answer

B. Q-learning by 10,000; the minimax limit by 1,000

(1−γ)−4(1-\gamma)^{-4} goes from 10410^4 to 10810^8 and (1−γ)−3(1-\gamma)^{-3} from 10310^3 to 10610^6. At long horizons the gap between Q-learning and the best possible method is itself a factor of 100.

Closing the gap, and exploring with optimism

Variance reduction. Wainwright (2019) attacked the noise, not the maximum. Work in epochs. At the start of an epoch, freeze a reference Qˉ\bar Q and estimate its backup T⋆Qˉ\mathcal T^\star\bar Q accurately from many fresh samples. Within the epoch, run Q-learning on a recentered update, in which the same fresh samples enter both sampled backups:

text
Qbar ← Q0
for epoch m = 1, 2, …, M:
    Tref ← average of N_m sampled backups  T̂_i(Qbar)     # N_m fresh next states per pair
    Q ← Qbar
    for k = 1, …, K:
        draw one fresh next state per pair  →  sampled backup operator T̂_k
        Q ← (1 − α_k)·Q + α_k·[ T̂_k(Q) − T̂_k(Qbar) + Tref ]   # same samples in both T̂_k terms
    Qbar ← Q

Variance-reduced Q-learning, in the style of SVRG. T^k(Q)(s,a)=r(s,a)+γmax⁡a′Q(s′,a′)\hat{\mathcal T}_k(Q)(s,a) = r(s,a) + \gamma\max_{a'}Q(s',a') with the sampled s′s'. The expected update is still T⋆Q\mathcal T^\star Q, but the noise of T^k(Q)−T^k(Qˉ)\hat{\mathcal T}_k(Q) - \hat{\mathcal T}_k(\bar Q) is proportional to ∥Q−Qˉ∥∞\norm{Q - \bar Q}_\infty, which is small once the epoch has started near its target.

With suitably chosen epoch lengths and recentering sample sizes, and rescaled linear steps inside each epoch, variance-reduced Q-learning needs O~(∣S∣∣A∣/((1−γ)3ε2))\tilde O\big(\abs{\mathcal S}\abs{\mathcal A}/((1-\gamma)^3\varepsilon^2)\big) samples for every ε∈(0,1]\varepsilon \in (0,1]: minimax optimal, and model-free. The maximum is still there; what shrinks is the noise it acts on, and with it the bias of the previous step.

Exploration with optimism. Without a generative model the agent must also find the informative pairs. In episodic MDPs with HH steps per episode, KK episodes and T=KHT = KH steps, ε-greedy Q-learning can need a number of episodes exponential in HH. Jin, Allen-Zhu, Bubeck and Jordan (2018) made Q-learning optimistic instead: values start at HH, every update adds an exploration bonus btb_t that shrinks with the visit count tt, and the agent acts greedily on these upper confidence bounds:

Qh(x,a)←(1−αt) Qh(x,a)+αt[rh(x,a)+Vh+1(x′)+bt],αt=H+1H+t,Vh+1(x′)=min⁡(H,max⁡a′Qh+1(x′,a′)).Q_h(x,a) \leftarrow (1-\alpha_t)\,Q_h(x,a) + \alpha_t\big[r_h(x,a) + V_{h+1}(x') + b_t\big],\qquad \alpha_t = \frac{H+1}{H+t},\qquad V_{h+1}(x') = \min\big(H, \max_{a'}Q_{h+1}(x',a')\big).

The step (H+1)/(H+t)(H+1)/(H+t) rather than 1/t1/t is essential: 1/t1/t gives the first visits, whose targets used wildly wrong next-step values, a permanent equal share, and the error compounds over the HH steps, whereas (H+1)/(H+t)(H+1)/(H+t) keeps weight on roughly the last 1/H1/H fraction of visits. With Bernstein-type bonuses the regret is O~(H3∣S∣∣A∣T)\tilde O(\sqrt{H^3\abs{\mathcal S}\abs{\mathcal A}T}) plus lower-order terms (with simpler Hoeffding bonuses, O~(H4∣S∣∣A∣T)\tilde O(\sqrt{H^4\abs{\mathcal S}\abs{\mathcal A}T})), against a lower bound of Ω(H2∣S∣∣A∣T)\Omega(\sqrt{H^2\abs{\mathcal S}\abs{\mathcal A}T}). Zhang, Zhou and Ji (2020) closed the remaining H\sqrt H with a reference–advantage decomposition, variance reduction again, reaching O~(H2∣S∣∣A∣T)\tilde O(\sqrt{H^2\abs{\mathcal S}\abs{\mathcal A}T}) for large TT. Optimism in MDPs: UCRL2 & UCBVI covers the model-based side.

Key takeaways

  • Watkins and Dayan's proof: Q-learning's table equals, exactly, the optimal action values of an action-replay process built from experience, and that process approaches the real MDP when ∑α=∞\sum\alpha = \infty and ∑α2<∞\sum\alpha^2 < \infty for every pair.
  • The step-size schedule sets the rate: 1/n1/n steps can need time exponential in 1/(1−γ)1/(1-\gamma); polynomial steps 1/nω1/n^\omega need time polynomial in it, best around ω=4/5\omega = 4/5 in Even-Dar and Mansour's bound; uneven sampling slows 1/n1/n steps further.
  • With a generative model, Q-learning with rescaled linear or constant steps needs order ∣S∣∣A∣/((1−γ)4ε2)\abs{\mathcal S}\abs{\mathcal A}/((1-\gamma)^4\varepsilon^2) samples, and this is tight; the minimax limit, attained by model-based plug-in estimates, is one horizon factor lower, and with a single action (TD) the gap vanishes.
  • The extra factor is maximization bias compounded by bootstrapping. Recentering the noise (variance-reduced Q-learning) removes it; optimistic Q-learning with step (H+1)/(H+t)(H+1)/(H+t) explores episodic MDPs with regret O~(H3∣S∣∣A∣T)\tilde O(\sqrt{H^3\abs{\mathcal S}\abs{\mathcal A}T}), and reference–advantage decomposition reaches the H2∣S∣∣A∣T\sqrt{H^2\abs{\mathcal S}\abs{\mathcal A}T} lower bound.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

In Watkins and Dayan's proof, how is the Q-table after nn updates related to the action-replay process?

  1. It is an unbiased estimate of the ARP's optimal values
  2. It equals the ARP's optimal action values at level nn, exactly, on every sample path
  3. The ARP is the true MDP, and the Q-table approximates its values
  4. It is an upper bound on the ARP's optimal values
Show the answer

B. It equals the ARP's optimal action values at level nn, exactly, on every sample path

By induction on nn, the ARP's Bellman optimality equation at level nn is Q-learning's update, so Qn=QARP⋆(⟨⋅,n⟩,⋅)Q_n = Q^\star_{\text{ARP}}(\langle\cdot,n\rangle,\cdot) exactly. All the probability in the proof goes into showing that the ARP, seen from high levels, approaches the real MDP.

Question 2

In the hard instance behind the (1−γ)−4(1-\gamma)^{-4} lower bound, why must Q-learning's step size be of order (1−γ)3ε2(1-\gamma)^3\varepsilon^2, while TD learning gets away with (1−γ)2ε2(1-\gamma)^2\varepsilon^2?

  1. Because Q-learning has twice as many values to estimate
  2. Because its sampled targets have a larger variance than TD's
  3. Because the generative model gives it fewer samples per pair
  4. Because the maximum over two identical, noisy action values adds an upward bias at every update, the self-loop compounds it over the effective horizon, and only a smaller step keeps it below ε\varepsilon
Show the answer

D. Because the maximum over two identical, noisy action values adds an upward bias at every update, the self-loop compounds it over the effective horizon, and only a smaller step keeps it below ε\varepsilon

The two actions in state 1 have identical true values, so the maximum of their estimates is biased upward by an amount of order η σ\sqrt\eta\,\sigma. Bootstrapping through the self-loop multiplies that by about 1/(1−γ)1/(1-\gamma). Holding the bias below ε\varepsilon costs one extra factor of 1−γ1-\gamma in the step size, hence in the number of iterations. A one-action state has no maximum and no such bias.

Question 3

What lets variance-reduced Q-learning reach the minimax rate ∣S∣∣A∣/((1−γ)3ε2)\abs{\mathcal S}\abs{\mathcal A}/((1-\gamma)^3\varepsilon^2)?

  1. Recentering: each update uses T^k(Q)−T^k(Qˉ)\hat{\mathcal T}_k(Q) - \hat{\mathcal T}_k(\bar Q) plus an accurate estimate of T⋆Qˉ\mathcal T^\star\bar Q, so its noise scales with ∥Q−Qˉ∥∞\norm{Q - \bar Q}_\infty
  2. Two Q-tables, one choosing the maximizing action and one valuing it
  3. Linear step sizes 1/n1/n, which average the noise exactly
  4. Exploration bonuses that make every estimate optimistic
Show the answer

A. Recentering: each update uses T^k(Q)−T^k(Qˉ)\hat{\mathcal T}_k(Q) - \hat{\mathcal T}_k(\bar Q) plus an accurate estimate of T⋆Qˉ\mathcal T^\star\bar Q, so its noise scales with ∥Q−Qˉ∥∞\norm{Q - \bar Q}_\infty

The expected update is unchanged, but the noisy part is now the difference of two sampled backups computed with the same samples, which is small when QQ is close to the reference. The costly accurate backup at the reference is computed once per epoch. Less noise means less maximization bias and permits larger steps.

Question 4

Optimistic Q-learning for episodic MDPs uses the step size (H+1)/(H+t)(H+1)/(H+t) at the tt-th visit of a pair. Why not the sample-average step 1/t1/t?

  1. Because 1/t1/t violates the Robbins–Monro conditions
  2. Because 1/t1/t gives every early target an equal, permanent share, and those targets bootstrapped from badly wrong values of later steps; the error compounds across the HH steps of an episode
  3. Because larger steps reduce the variance of the targets
  4. Because the exploration bonus would otherwise become negative
Show the answer

B. Because 1/t1/t gives every early target an equal, permanent share, and those targets bootstrapped from badly wrong values of later steps; the error compounds across the HH steps of an episode

Early targets used next-step values that were themselves far off. Averaging them in forever, as 1/t1/t does, leaves errors that compound layer by layer, exponentially in HH. The step (H+1)/(H+t)(H+1)/(H+t) concentrates the weight on roughly the most recent 1/H1/H fraction of visits, so information can propagate smoothly through the HH layers.

Further reading

  • C. J. C. H. Watkins & P. Dayan, "Q-learning," Machine Learning 8, 279–292 (1992).
  • E. Even-Dar & Y. Mansour, "Learning rates for Q-learning," Journal of Machine Learning Research 5, 1–25 (2003).
  • G. Li, C. Cai, Y. Chen, Y. Wei & Y. Chi, "Is Q-learning minimax optimal? A tight sample complexity analysis," Operations Research 72(1), 222–236 (2024).
  • M. J. Wainwright, "Variance-reduced Q-learning is minimax optimal," arXiv:1906.04697 (2019).
  • C. Jin, Z. Allen-Zhu, S. Bubeck & M. I. Jordan, "Is Q-learning provably efficient?," Advances in Neural Information Processing Systems 31 (2018).