Q-learning · Final iterates · Stochastic switching systems · Finite-time bounds

Final Iteration Convergence Bound of Q-Learning: Switching System Approach

arXiv:2205.05455 · 2022

Donghwan Lee

Department of Electrical Engineering, KAIST, Daejeon, South Korea

The central ideaFrom the research question to the result
Problem

Switching update

The greedy policy selects a mode in the stochastic Q-learning recursion.

Approach

Two comparison systems

A lower system and an upper system enclose the estimate.

Insight

Final-iterate guarantee

Moment bounds and a noise-canceling difference bound control expected error.

Explanatory diagram created for this page from the paper; not an experimental result. See the methods and source references below.

Comparison systems yield a finite-time bound for the Q-learning estimate used at the final iteration.

Key Contributions

Analyze the actual final estimate

The bound concerns the last Q iterate directly, removing the averaging operation required by an earlier switching-system analysis while retaining the standard learning update.

Propagate second moments

For the lower comparison system, the analysis follows an autocorrelation-matrix recursion. This supplies a tractable route to expected error bounds for the stochastic dynamics.

Separate transients from residual error

The final bound distinguishes terms that decay with iteration count from a constant-step residual. It makes the roles of discounting and state-action sampling frequencies explicit.

Abstract

A summary of the paper, written for this page.

This paper develops a finite-time analysis of standard tabular Q-learning with a constant step size. Rather than bounding an average of past estimates, it studies the final iterate through a stochastic switching-system representation. A linear lower comparison system captures the noise contribution, while the difference between upper and lower systems reveals a recursion in which their common noise cancels. Combining these bounds yields expected sup-norm error estimates with decaying transient terms and a step-size-dependent residual. The result provides a control-theoretic explanation under independent sampling and a fixed behavior policy.

The problem

Bounding the estimate available now

Q-learning changes one sampled state-action value and then uses maximization to choose future targets. Its update is stochastic and nonlinear, so a useful finite-time bound must account for both effects. Bounds on averaged estimates do not directly describe the final learned value table. The problem is to quantify that table's expected error without adding an averaging step to the algorithm.

From problem to solution

How the method works

Enclose the Q-learning dynamics

Express the update as an affine switching system, with switching induced by the greedy policy. Construct upper and lower trajectories that bound the original iterate componentwise and share its stochastic noise.

Sections III.A–III.C, pp. 3–6

Use moment propagation and cancellation

Bound the lower system through its autocorrelation recursion. Subtract the lower system from the upper one so that their shared noise cancels, then combine the resulting gap bound with the lower-system bound.

Sections III.B and III.D, pp. 5–6

Equation (5), p. 3: the geometric decay factor, where alpha is the constant step size, d_min is the smallest state-action sampling probability, and gamma is the discount factor.

Main results

What the analysis establishes

An expected final-iterate bound

Theorem 2 bounds expected sup-norm error for every iteration under the stated assumptions. Its transient terms decay, while a residual proportional to sqrt(alpha) remains when the step size is held fixed.

Theorem 2, pp. 6–7

Interpretable decay forms

Corollary 1 replaces the polynomial-times-geometric transient with simpler geometric upper bounds. The decay factor depends on the minimum state-action sampling probability, linking sufficient exploration to the speed represented by the bound.

Definition 1 and Corollary 1, pp. 3, 7

Complementary rather than universal improvement

The paper reports a better sample-complexity dependence than the earlier averaged switching-system result, but explicitly states that its bounds are not consistently tighter than other approaches, which also use different observation assumptions.

Section IV, Table I, p. 7

Reading the guarantees

Assumptions and scope

The theorem assumes a finite discounted tabular problem, bounded rewards and initialization, a constant step size in (0,1), and independent samples from a fixed distribution with positive probability for every state-action pair. It does not cover a general Markov trajectory or the usual Q-dependent epsilon-greedy policy. Its primary result is in expectation; a separate remark derives a probability bound using Markov's inequality. The fixed-step residual must not be described as exact asymptotic convergence, and no empirical superiority is established.

See the reviewed paper version for complete hypotheses, constants, and proofs.

Paper presentation

Watch the explanation

A presentation of this paper on Next State AI.

Watch on YouTube

BibTeX

Citation for the arXiv version.

@misc{lee2022_220505455,
  title={Final Iteration Convergence Bound of Q-Learning: Switching System Approach},
  author={Donghwan Lee},
  year={2022},
  eprint={2205.05455},
  archivePrefix={arXiv},
  primaryClass={eess.SY},
  url={https://arxiv.org/abs/2205.05455}
}