Gradient Temporal Difference with Momentum: Stability and Convergence

Rohan Deb, Shalabh Bhatnagar

Introduction

Policy evaluation is a fundamental component of reinforcement learning (RL), focused on estimating the value function of a given policy. While Temporal Difference (TD) learning is a standard approach, it is known to diverge under off-policy sampling when combined with linear function approximation. Gradient Temporal Difference (GTD) algorithms were introduced to address this instability. However, GTD methods often suffer from slow convergence rates in practice.

This work introduces momentum—specifically Polyak’s "heavy ball" method—to the GTD family of algorithms (GTD, GTD2, and TDC). While momentum is a staple in deep learning optimization, its application to RL algorithms is non-trivial due to the multi-timescale nature of stochastic approximation (SA) in these settings. This paper provides the first rigorous theoretical framework for analyzing momentum-based GTD algorithms using a novel three-timescale stochastic approximation approach.

Methodology: Three-Timescale Momentum

The authors propose momentum-augmented versions of standard algorithms: GTD-M, GTD2-M, and TDC-M. The primary challenge in proving their stability lies in the interaction between the primary iterates, the auxiliary weights used in GTD, and the momentum history.

Theoretical Framework

To analyze these algorithms, the authors decompose the heavy ball momentum iterates into three distinct recursions. This leads to a three-timescale stochastic approximation framework, extending traditional one- or two-timescale analyses.

  1. Iterate Decomposition: Momentum is treated as an additional layer of history, effectively creating a third timescale.
  2. Stability and Convergence: By applying the "ODE method," the authors view the discrete updates as a continuous dynamical system. They establish a set of general conditions (B1-B7) ensuring that the system's trajectories are bounded and converge to a unique, globally stable equilibrium—the optimal TD solution.
  3. Parameter Tuning: The framework provides specific guidance on selecting step sizes ($\alpha, \beta, \rho$) and the momentum parameter ($w$) to guarantee almost sure convergence.

Experimental Evaluation

The algorithms were benchmarked on four classic RL environments: Boyan Chain, 5-State and 19-State Random Walks, and a 20-State Random MDP. Performance was measured using the Root Mean Square Projected Bellman Error (RMSPBE) over 500 episodes.

Key Results

The empirical results consistently demonstrate that momentum significantly accelerates the learning process. Specifically, the three-timescale (Three-TS) momentum formulation allows for more aggressive parameter choices in early learning phases, helping the agent navigate flat regions of the error landscape more effectively than vanilla GTD or more restrictive one-timescale momentum variants.

RMSPBE reduction for GTD, GTD2, and TDC variants on a standard benchmark.

As shown in the figures, the Three-TS versions (green lines) achieve a much faster initial reduction in RMSPBE compared to vanilla versions (blue lines). This speedup is robust across different environments and error scales, including more complex environments like the Random MDP.

Performance comparison on a more complex Random MDP environment showing consistent speedup across all GTD variants.

Discussion and Future Work

While momentum provides a clear empirical advantage, it introduces higher variance in the parameter updates, leading to more "jittery" learning paths. Furthermore, while this work proves asymptotic convergence, it does not establish specific convergence rates or sample complexity bounds.

Future research directions include extending the three-timescale framework to Nesterov’s Accelerated Gradient and quantifying the sample complexity to provide a more granular understanding of the speedup provided by momentum in reinforcement learning.

Summary updated

BibTeX
@inproceedings{deb2022gradient,
  author = {Rohan Deb and Shalabh Bhatnagar},
  title = {{Gradient Temporal Difference with Momentum: Stability and Convergence}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i6.20601},
}
Figure