Non-asymptotic Convergence of Adam-type Reinforcement Learning Algorithms under Markovian Sampling

Huaqing Xiong, Tengyu Xu, Yingbin Liang, Wei Zhang

Abstract

While Adam-type optimizers are the standard for training deep reinforcement learning (RL) agents, their theoretical properties under the non-i.i.d. conditions of RL have remained largely unexplored. This paper provides the first non-asymptotic convergence guarantees for Adam-type RL algorithms, specifically focusing on the AMSGrad variant. By analyzing Policy Gradient (PG) and Temporal Difference (TD) methods under realistic Markovian sampling, we demonstrate that these adaptive algorithms converge to stationary points or global optima at rates comparable to—and in some cases better than—standard stochastic gradient methods. Our results bridge the gap between the practical success of Adam in deep RL and its theoretical foundations.

Introduction

The Adam optimizer is widely used in deep RL due to its empirical speed and stability. However, most existing convergence proofs for Adam assume independent and identically distributed (i.i.d.) sampling. Reinforcement learning fundamentally violates this assumption because agents move through environments in sequences where the next state depends on the current one—a property known as Markovian sampling. This dependency introduces significant bias in gradient estimates. Furthermore, in Policy Gradient methods, the sampling distribution itself shifts as the policy evolves. This work addresses the primary challenge of bridging Adam’s practical success with its theoretical behavior under these complex, non-i.i.d. conditions.

Methodology

The analysis focuses on AMSGrad, a variant of Adam that ensures stability by using a non-decreasing estimate of the second moment of gradients. Two primary algorithms are examined:

  1. PG-AMSGrad: An Adam-type Policy Gradient algorithm utilizing general nonlinear function approximation.
  2. TD-AMSGrad: An Adam-type Temporal Difference learning algorithm utilizing linear function approximation.

To establish convergence, new technical tools were developed to bound the "bias error" arising from the coupling of adaptive momentum updates with Markovian noise. For the PG analysis, a novel technique handles the time-varying Markov chain, accounting for the shifting sampling distribution as the agent learns.

Theoretical Results

The study establishes specific finite-time convergence rates for both PG and TD variants of AMSGrad. A key finding is that the "non-decreasing" property of AMSGrad's second-moment term is essential for stability in RL settings.

Policy Gradient Convergence

For PG-AMSGrad with nonlinear approximation, the authors proved the following rates (where $T$ is the number of iterations):

  • Constant Stepsize: Reaches a neighborhood of a stationary point at a rate of $O(1/T)$.
  • Diminishing Stepsize: Converges exactly to a stationary point at a rate of $O(\log^2 T / \sqrt{T})$.

Notably, the analysis also yields improved convergence bounds for "vanilla" Policy Gradient (PG-SGD), outperforming previous state-of-the-art theoretical results in terms of computational complexity.

Comparison of convergence rates for Policy Gradient (PG) algorithms across different studies.

Temporal Difference Convergence

For TD-AMSGrad with linear approximation:

  • Constant Stepsize: Reaches a neighborhood of the global optimum at a rate of $O(1/T)$.
  • Diminishing Stepsize: Converges exactly to the global optimum at a rate of $O(\log T / \sqrt{T})$.

These results confirm that Adam-type RL is theoretically sound, matching the convergence speed of the best-known SGD-based RL algorithms while retaining the practical benefits of adaptivity.

Conclusion and Future Work

This work provides a rigorous foundation for the use of adaptive optimizers in reinforcement learning. However, several avenues for future research remain. The analysis for Temporal Difference learning is currently restricted to linear function approximation; extending this to nonlinear (deep) cases remains an open challenge. Additionally, while the authors have proven convergence, determining if these specific rates are optimal for Adam-type RL is a subject for future study. Finally, extending this framework to Actor-Critic architectures, where PG and TD algorithms run simultaneously, represents a natural next step in this research direction.

Summary updated

BibTeX
@inproceedings{xiong2021non,
  author = {Huaqing Xiong and Tengyu Xu and Yingbin Liang and Wei Zhang},
  title = {{Non-asymptotic Convergence of Adam-type Reinforcement Learning Algorithms under Markovian Sampling}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i12.17252},
}
Figure