Direct Gradient Temporal Difference Learning

Xiaochi Qian, Shangtong ZhangarXiv 2023 · DOI

Abstract

Reinforcement Learning (RL) often struggles with the "deadly triad": the instability arising from combining off-policy learning, function approximation, and bootstrapping. While Gradient Temporal Difference (GTD) methods offer a solution, they typically require complex hyperparameter tuning. This paper revisits a previously discarded approach, $A^\top TD$, and introduces a modified version, $A^\top_t TD$. By utilizing a "gap function" to break sample correlations, $A^\top_t TD$ achieves stability and competitive performance with a single learning rate and linear computational complexity.

Introduction

In Reinforcement Learning, the "deadly triad" describes the convergence issues that occur when off-policy learning, function approximation, and bootstrapping are used together. For over a decade, Gradient Temporal Difference (GTD) learning has been the standard defense against this instability. However, GTD's practical utility is hampered by the need to tune two interdependent learning rates and manage two sets of parameters.

A new study, "Revisiting a Design Choice in Gradient Temporal Difference Learning" (ICLR 2025), suggests that a simpler solution was overlooked during the initial development of GTD. The authors revive $A^\top TD$, an algorithm once dismissed due to perceived memory inefficiencies and uncertain convergence.

The $A^\top_t TD$ Algorithm

The core innovation is $A^\top_t TD$, where the "t" denotes a gap function $f(t)$. This function addresses the "double sampling" problem—the requirement for two independent samples from the same state to estimate the gradient of the RL objective. In practice, trajectories provide only single samples.

The authors observed that in Markovian systems, samples taken several steps apart eventually become independent. By using a sample at time $t$ and another at $t + f(t)$, $A^\top_t TD$ can estimate necessary matrices without a second weight vector.

Key Advantages

  • Single Learning Rate: Unlike standard GTD, $A^\top_t TD$ uses only one learning rate, making it as easy to tune as standard TD learning.
  • Computational Efficiency: While the original $A^\top TD$ was thought to require $O(K^2)$ memory, this variant maintains $O(K)$ computation per step. The memory overhead for the gap buffer is logarithmic and negligible for practical applications.
  • Theoretical Soundness: The authors provide proofs for asymptotic convergence and a finite-sample convergence rate of $O(\frac{f(t) \ln t}{t})$, comparable to on-policy TD learning.

Experimental Evaluation

The algorithm was tested on two foundational RL benchmarks: Boyan’s Chain (on-policy performance) and Baird’s Counterexample (the classic test for deadly triad stability).

Performance comparison of $A^\top_t TD$ against standard GTD variants on Boyan's Chain (left) and Baird's Counterexample (right).

Key Results

The experiments demonstrate that $A^\top_t TD$ is both stable and high-performing:

  • Stability: On Baird’s counterexample, where standard TD learning diverges, $A^\top_t TD$ remains stable and converges to the correct solution.
  • Performance: In Boyan’s chain, $A^\top_t TD$ outperformed standard GTD variants like GTD2 and TDC in terms of final Root Mean Squared Projected Bellman Error (RMSPBE).
  • Practicality: The algorithm works effectively even with smaller gap functions than those strictly required by the current theory, such as $O(\log t)$.

Conclusion and Future Work

$A^\top_t TD$ offers a simpler, more robust alternative to traditional GTD methods by eliminating the need for dual learning rates. While currently proven for linear function approximation, future research will focus on extending these guarantees to non-linear neural networks and optimizing the gap function for various environments. This work demonstrates that revisiting discarded ideas with fresh theoretical insights can lead to significant practical improvements in RL stability.

Summary updated

BibTeX
@misc{qian2023direct,
  author = {Xiaochi Qian and Shangtong Zhang},
  title = {{Direct Gradient Temporal Difference Learning}},
  year = {2023},
  eprint = {2308.01170},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.01170},
}
Figure