Lyapunov stability, stochastic approximation, smooth Q-learning, ordinary differential equations

A Smooth Polynomial Lyapunov Certificate for Convergence of Q-Learning and Its Smooth Variants

arXiv:2404.14442 · 2024

Donghwan Lee, Hyunjun Na

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

Choose the operator

Specify maximum, log-sum-exp, mellowmax, or Boltzmann updates.

Approach

Certify the mean dynamics

Use a smooth polynomial matched to positive diagonal scaling.

Insight

Transfer to sampled learning

Obtain almost-sure fixed-point or invariant-set convergence under the sampling assumptions.

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

A smooth polynomial certificate unifies stability analysis for Q-learning and several smooth Bellman updates.

Key Contributions

A smooth certificate for a nonsmooth contraction norm

A weighted even-degree polynomial replaces direct differentiation of the infinity norm. A sufficiently large finite degree supplies a strict Lyapunov decrease for any stated infinity-norm contraction factor.

Positive diagonal mean-field scaling

Choosing weights inversely proportional to the diagonal entries accommodates unequal update frequencies. The framework distinguishes asynchronous single-coordinate sampling from a separately defined synchronous full-update algorithm.

One framework with different conclusions

Contractive maximum, log-sum-exp, and mellowmax operators yield fixed-point convergence. Boltzmann smoothing uses a uniform perturbation bound, producing an invariant-set guarantee rather than an unjustified unique-fixed-point claim.

Abstract

A summary of the paper, written for this page.

Convergence proofs for Q-learning often rely on the infinity norm, which is nonsmooth. This paper transfers infinity-norm contraction to a smooth finite-degree polynomial Lyapunov function. The construction handles positive diagonal scaling, including the mean dynamics of asynchronous updates. It proves global exponential stability for the ODEs associated with maximum, log-sum-exp, and mellowmax operators. Independent-sampling stochastic approximation then converges almost surely to their respective fixed points. For the generally noncontractive Boltzmann operator, a perturbation argument instead gives approach to an explicit invariant error set.

The problem

How can a smooth stability proof respect asynchronous updates?

The infinity norm captures Bellman contraction naturally, but it is not differentiable everywhere. Unequal coordinate update frequencies also change the associated continuous-time dynamics. The challenge is to construct one smooth Lyapunov function that respects this scaling, then use it to distinguish exact convergence for contractive operators from bounded approximation error for a smooth operator that can fail to be contractive.

From problem to solution

How the method works

Match polynomial weights to the mean dynamics

For the ODE with drift D(F(x)-x), use weights equal to the inverse positive diagonal entries of D. Finite-dimensional norm comparisons turn infinity-norm contraction into decay of an even-degree polynomial.

Equation (2) and Theorem 1, pp. 4-5

Separate contraction from perturbation

Apply the contraction certificate to maximum, log-sum-exp, and mellowmax updates. For Boltzmann updates, compare with the maximum operator and retain the uniform approximation term. Finally verify stochastic-approximation conditions for the sampled recursions.

Theorems 2-4, pp. 6-7; Section K, pp. 39-40

Here x denotes the error relative to the relevant fixed point (or to the ordinary optimal Q-function in the perturbation result). Positive weights compensate for unequal update rates. The even integer power makes the certificate smooth everywhere, including zero error.

Main results

What the analysis establishes

Global exponential stability of contractive ODEs

Each maximum, log-sum-exp, and mellowmax ODE has its own unique globally exponentially stable equilibrium. The polynomial degree must satisfy the stated contraction-margin condition; the smooth operators generally have different fixed points.

Theorem 3, p. 7

Almost-sure convergence with diminishing step sizes

Under independent samples, positive probability for every state-action pair, and the usual divergent-sum/square-summable step-size conditions, the three contractive stochastic recursions converge almost surely to their corresponding fixed points.

Section 6 and Theorem 11, pp. 9 and 39

A temperature-dependent Boltzmann error set

The Boltzmann recursion approaches an explicit invariant neighborhood of the ordinary optimal Q-function with probability one. Its certified radius shrinks as the temperature parameter lambda tends to zero; this is an upper-bound statement, not a positive lower bound on actual error.

Theorem 12, p. 40

Reading the guarantees

Assumptions and scope

This is an ODE stability and asymptotic convergence framework, not a finite-time sample-complexity bound. The stochastic results require independent resampling and full state-action coverage; a stationary behavior distribution alone does not make consecutive trajectory samples independent. Learning rates diminish under the stated summability conditions. Boltzmann smoothing receives an invariant-set guarantee rather than exact convergence to the optimal Q-function. The theory is tabular and does not establish convergence for general neural function approximation.

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

BibTeX

Citation for the arXiv version.

@misc{lee2024_240414442,
  title={A Smooth Polynomial Lyapunov Certificate for Convergence of Q-Learning and Its Smooth Variants},
  author={Donghwan Lee and Hyunjun Na},
  year={2024},
  eprint={2404.14442},
  archivePrefix={arXiv},
  primaryClass={cs.LG},
  url={https://arxiv.org/abs/2404.14442}
}