The Convergence of TD(lambda) for General lambda

Peter Dayan

Abstract

This paper provides a foundational mathematical proof for the convergence of Temporal Difference learning, specifically the TD(λ) algorithm, for arbitrary values of λ ∈ [0, 1]. While previous work established convergence for the one-step lookahead case (TD(0)), this study generalizes the result to multi-step predictions. By bridging TD learning with dynamic programming and matrix algebra, the author demonstrates that TD(λ) converges in expected value for absorbing Markov chains and identifies how state representation influences the final converged solution.

Introduction

In the early 1990s, Temporal Difference (TD) methods emerged as a powerful framework for learning to predict future outcomes from experience. Richard Sutton had previously proved that TD(0)—which updates predictions based solely on the immediate next time step—would converge to the correct value. However, a formal proof for the more general TD(λ) algorithm, which weights future steps exponentially, was missing. This paper addresses that gap, providing a rigorous analysis of TD(λ) convergence and its behavior under different state representations.

Theoretical Framework and Methods

Dayan approaches the convergence problem by framing TD updates as contraction mappings. This perspective, inspired by Chris Watkins, shows that each update step mathematically reduces the error between the current estimate and the true value.

Mathematical notation and definitions for the Markov processes analyzed in the paper.

The analysis focuses on "Linear TD(λ)," where states are represented by vectors. Using the notation defined above, the paper tracks how the weights of these vectors evolve over time. To achieve a stronger form of proof—convergence with probability one—Dayan maps a modified version of TD(0) onto the established Q-learning framework.

Experimental Setup: Sutton's Random Walk

As a theoretical work, the paper utilizes synthetic Markov processes to validate its proofs. The primary example is Sutton’s Random Walk, a classic chain of states (A through G).

Sutton's Random Walk: A classic synthetic Markov process used to test TD(λ) convergence.

In this process, the system starts at state D and moves left or right with equal probability (0.5) until it reaches the absorbing terminal states (A or G). This setup allows for the generalization of proofs to any Markov process that eventually terminates.

Key Insights and Results

The λ Spectrum

Dayan formalizes λ as a bridge between pure TD (λ=0) and standard supervised learning (λ=1, equivalent to Least Mean Squares). Values in between allow a trade-off between bias (relying on potentially inaccurate internal estimates) and variance (relying on noisy future outcomes).

Convergence Theorems

  • Theorem T Extension: The paper proves that for any absorbing Markov chain and any linearly independent set of observation vectors, TD(λ) converges in expected value for any λ between 0 and 1.
  • Strong Convergence: For "localist" representations (where each state is a unique entry in a look-up table), TD(0) is shown to converge with probability one, provided the learning rate decreases appropriately.

The Representation Trap

A critical discovery is that if state features are linearly dependent (overlapping), TD(λ) for λ < 1 will converge to a different solution than the standard LMS algorithm. The paper provides specific matrix equations to quantify this bias.

Conclusion and Future Work

While this work successfully proves convergence in the mean for all λ, the stronger "probability one" proof remains largely restricted to TD(0) and localist representations. Furthermore, while TD(λ) converges with distributed representations, it does not necessarily find the statistically "best" fit, leaving open questions regarding optimal feature design. Future research is needed to extend these rigorous proofs to non-absorbing, continuing tasks.

Summary updated

BibTeX
@article{dayan1992convergence,
  author = {Peter Dayan},
  title = {{The Convergence of TD(lambda) for General lambda}},
  journal = {Machine Learning},
  year = {1992},
  doi = {10.1007/bf00992701},
}
Figure