Q-learning, joint spectral radius, switching systems, linear programming

Switching Theory for Q-Learning

arXiv:2604.19569 · 2026

Donghwan Lee

Department of Electrical Engineering, Korea Advanced Institute of Science and Technology (KAIST), Daejeon, South Korea

The central ideaFrom the research question to the result
Problem

Linearize the error exactly

A stochastic policy represents the Bellman-max difference.

Approach

Analyze the policy family

Compute the joint spectral radius through linear-programming feasibility.

Insight

Add sampling effects

Combine drift transients with independent or Markovian noise bounds.

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

An exact switching-system representation exposes instance-dependent convergence rates of tabular Q-learning.

Key Contributions

An exact error representation

A statewise convexity argument replaces the Bellman-max difference with an average under a suitable stochastic policy. This removes the affine error offset while retaining the martingale noise.

A computable spectral rate

The joint spectral radius equals the largest ordinary spectral radius among deterministic-policy modes. An equivalent linear-programming characterization avoids explicitly enumerating all deterministic policies.

Sampling-aware finite-time bounds

Separate analyses cover independent samples and a single geometrically mixing Markov chain. Both retain the drift-controlled transients and the additional terms generated by sampling noise.

Abstract

A summary of the paper, written for this page.

This work rewrites the Q-learning error as a stochastic linear switching system without the affine offset used in earlier comparison analyses. Its deterministic drift is governed by a family of policy-dependent nonnegative matrices. The joint spectral radius of that family supplies an instance-dependent exponential rate, while stochastic bounds separately account for sampling noise. Special structure makes the rate computable through linear-programming feasibility and bisection. The paper treats independent observations and geometrically mixing Markovian observations, and illustrates why sharper drift rates need not mean uniformly better finite-time bounds.

The problem

Which rate belongs to the learning dynamics themselves?

A convenient row-sum estimate can obscure the actual worst-case growth of the matrices underlying Q-learning. Earlier switching formulations also introduce an affine offset that requires auxiliary comparisons. This paper asks whether the original error drift can be represented directly, whether its intrinsic matrix-family rate can be characterized, and how that rate can enter finite-time estimates without ignoring noise or transient constants.

From problem to solution

How the method works

Remove the affine offset

Express the difference between two action maxima as a convex combination of actionwise errors. The resulting predictable stochastic-policy matrix lies in the convex hull of the deterministic-policy family, giving an exact stochastic recursion.

Section 4, Theorem 1, p. 5

Compute a common contraction certificate

Exploit nonnegative policy structure to characterize the joint spectral radius. For a trial rate, test linear inequalities in state-action and state weights; bisection then approaches the rate while producing a weighted-norm certificate.

Section 6, Theorems 3-4, p. 7

The error follows a predictable policy-dependent linear map plus sampling noise. In the independent-sampling setting, the noise is a martingale difference; the Markovian extension requires a separate decomposition.

Main results

What the analysis establishes

Independent-sampling error bound

Under full coverage and a constant step size in the stated range, expected error has joint-spectral-radius transients plus a residual upper bound. For fixed problem data, this residual term decreases with the square root of the step size.

Section 5, Theorem 2, p. 6

A Markovian extension

For an irreducible, aperiodic behavior-induced chain satisfying geometric mixing, a Poisson-equation argument controls temporal dependence. The same drift rate remains, with an additional mixing-time-dependent noise term.

Section 7, Theorem 5, pp. 7-8

Sharper rates on a constructed example

A small finite MDP has a joint spectral radius strictly below the row-sum bound. Simulation illustrates this distinction; the plotted normalized rate curves are not empirical sample-complexity bounds or a claim of universal practical superiority.

Section 8 and Figure 1, pp. 8-9

Reading the guarantees

Assumptions and scope

The results apply to finite discounted tabular Q-learning with positive sampling frequencies and fixed step sizes. The Markovian extension needs explicit mixing assumptions. A smaller exponential base alone does not establish a tighter bound at every iteration: product-growth constants, polynomial transient factors, and residual upper bounds also matter. The spectral rate is exact for the associated switching family, not a promise that every Q-learning trajectory attains its worst-case rate. Large linear programs may still be computationally demanding.

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{lee2026_260419569,
  title={Switching Theory for Q-Learning},
  author={Donghwan Lee},
  year={2026},
  eprint={2604.19569},
  archivePrefix={arXiv},
  primaryClass={cs.LG},
  url={https://arxiv.org/abs/2604.19569}
}