Regularized Q-learning, linear function approximation, switching systems, convergence

Regularized Q-Learning

arXiv:2202.05404 · 2024

Han-Dong Lim, Donghwan Lee

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

The central ideaFrom the research question to the result
Problem

Add parameter shrinkage

Modify the linear TD update by a regularization term.

Approach

Stabilize the mean dynamics

Verify comparison-system conditions and the regularized Bellman target.

Insight

Assess the limiting solution

Separate convergence from the approximation bias it leaves.

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

A simple parameter-shrinkage term can stabilize Q-learning under specified linear-feature assumptions.

Key Contributions

A small change to the learning update

RegQ combines the ordinary linear Q-learning increment with parameter shrinkage. The modification retains a single parameter vector and introduces a regularization strength that enters both the dynamics and their limiting equation.

A regularized Bellman target

The analysis characterizes the solution through a regularized projection. A contraction condition ensures existence and uniqueness, while sufficient regularization conditions support switching-system stability.

Stability with an explicit accuracy tradeoff

The paper connects almost-sure convergence to the regularized solution with an error bound relative to the optimal Q-function. It separately illustrates behavior on classical examples where unregularized linear Q-learning diverges.

Abstract

A summary of the paper, written for this page.

Q-learning can diverge when off-policy sampling, bootstrapping, and function approximation interact. RegQ adds a linear regularization term to the parameter update and studies the resulting regularized projected Bellman equation. Switching-system comparisons establish stability of the mean ODE, and stochastic-approximation theory gives almost-sure convergence under explicit feature, sampling, learning-rate, and regularization conditions. The paper also bounds approximation error and illustrates convergence on familiar divergence examples. Stability comes with a changed solution: the limiting regularized approximation need not equal the ordinary optimal Q-function.

The problem

How can regularization control unstable linear Q-learning?

Linear features reduce storage requirements, but their interaction with off-policy bootstrapping can destroy the convergence enjoyed by tabular Q-learning. Simply obtaining a bounded parameter vector is also insufficient: the destination must have a meaningful Bellman interpretation. This work asks when parameter shrinkage provides a stable learning process, what equation its limit solves, and how much approximation bias regularization can introduce.

From problem to solution

How the method works

Regularize the sampled parameter update

Subtract eta times the current parameter vector from each TD-based update. The mean recursion solves a modified projected Bellman equation involving the feature covariance plus eta times the identity.

Equations (9)-(10) and (13), pp. 5 and 8

Bound the ODE with comparison systems

Construct upper and lower systems for the affine switching error dynamics. Sufficient regularization supplies common stability certificates; the ODE method then transfers stability to the independent-sampling stochastic recursion with Robbins-Monro step sizes.

Equation (15), Theorems 5.1-5.2, pp. 8-9

The ordinary feature-weighted TD increment is combined with shrinkage of the parameter vector. Eta controls regularization, and the theorem uses diminishing step sizes satisfying the Robbins-Monro conditions.

Main results

What the analysis establishes

Almost-sure convergence under explicit conditions

With full sampling coverage, bounded data, full-rank nonnegative features with orthogonal columns, sufficient regularization, and an existing regularized Bellman solution, RegQ converges to that unique solution with probability one. The stronger S1 regularization threshold also guarantees existence.

Assumptions 2.1-2.3 and Theorem 5.2, pp. 4 and 9

A bound on the limiting approximation error

When the regularized projected Bellman map is contractive, the value error is bounded by its regularized projection error divided by a contraction margin. Increasing regularization can improve stability while changing the target; in the large-regularization limit, the parameter solution approaches zero.

Lemmas 3.6-3.7, p. 7

Illustrations on divergence examples

Experiments include the Tsitsiklis-Van Roy and Baird examples, with additional parameter studies and Mountain Car results in the appendix. These selected tests illustrate the method; they do not establish universal improvement over other Q-learning algorithms.

Section 6, Figure 2 and Appendix B

Reading the guarantees

Assumptions and scope

The main convergence theorem does not cover arbitrary linear features: it assumes nonnegative, full-column-rank features with orthogonal columns, along with independent samples and diminishing Robbins-Monro step sizes. Its regularization conditions are sufficient, not necessary. Existence of a regularized Bellman solution is a separate premise unless a stated stronger condition supplies it. Convergence concerns a biased regularized approximation rather than general recovery of the optimal value function. The paper does not prove convergence for nonlinear deep networks.

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{lim2024_220205404,
  title={Regularized Q-learning},
  author={Han-Dong Lim and Donghwan Lee},
  year={2024},
  eprint={2202.05404},
  archivePrefix={arXiv},
  primaryClass={cs.LG},
  url={https://arxiv.org/abs/2202.05404}
}