On TD(0) with function approximation: Concentration bounds and a centered variant with exponential convergence

Nathaniel Korda, Prashanth L. A.

In the world of Reinforcement Learning (RL), Temporal Difference (TD) learning is a cornerstone algorithm for policy evaluation. We’ve known for decades that it works eventually (asymptotic convergence), but in the real world, we don't have an infinite amount of time. We need to know how many samples are required to get a "good enough" answer.

This paper bridges the gap between theory and practice by providing the first non-asymptotic (finite-time) bounds for TD(0) with linear function approximation and introducing a new variant that converges exponentially fast.

The Challenge of Finite-Time Analysis

Most theoretical guarantees for TD learning are asymptotic, meaning they prove the algorithm reaches the correct answer as the number of iterations $n$ goes to infinity. However, for engineers and researchers, the more pressing question is: How close am I to the solution after $n$ steps?

Analyzing TD(0) in a finite-time window is notoriously difficult for two reasons:

  1. Markovian Noise: Unlike standard stochastic gradient descent where samples are independent, RL samples come from a trajectory. This means the current state depends on the previous one, introducing "noise" that is hard to bound.
  2. Step-Size Sensitivity: To get the optimal convergence rate ($1/\sqrt{n}$), you have to tune the step-size constant perfectly. Unfortunately, the "perfect" constant depends on the stationary distribution of the Markov chain—something we almost never know in a model-free RL setting.

Methods: Bounding and Centering TD(0)

The authors tackle these challenges using three distinct approaches:

  1. Standard TD(0) Analysis: They use martingale decomposition techniques to derive high-probability and expectation bounds. They prove that TD(0) achieves an $O(1/\sqrt{n})$ convergence rate, but confirm that this rate is highly sensitive to step-size tuning.
  2. Iterate Averaging: To solve the step-size tuning problem, they analyze a version of TD where the final estimate is the average of all previous estimates (Polyak-Ruppert averaging). They show this version achieves the optimal rate without needing to know the underlying transition dynamics.
  3. Centered TD (CTD): This is the paper's most novel contribution. Inspired by variance reduction methods in convex optimization (like SVRG), CTD adds a "centering" term to the update rule. By periodically calculating a reference point and using it to "center" the updates, the algorithm reduces the variance of the stochastic increments.
Block diagram illustrating the Epoch Run of the Centered TD algorithm.

Key Insights and Results

The paper evaluates these theoretical bounds on two synthetic experimental setups: a 2-state "toy" MDP (Example 1) and a more complex 100-state MDP (Example 2).

  • The "Stationary Distribution" Trap: The authors highlight a major practical hurdle: standard TD theory suggests a step size of $c/n$, but if you pick $c$ even slightly wrong because you don't know the MDP's stationary distribution, your convergence rate can tank.
  • Averaging is a Safety Net: Iterate averaging isn't just a trick for smoother plots; it's mathematically shown here to decouple the convergence rate from the need for precise knowledge of the MDP's eigenvalues.
  • Exponential Convergence in RL: Perhaps the most "aha" moment is the proof that CTD can achieve an exponential rate of convergence in expectation. In the world of stochastic approximation, moving from sublinear ($1/\sqrt{n}$) to exponential is a massive leap in efficiency.
Performance comparison of TD(0), Averaged TD(0), and CTD across two example MDPs.

In the 100-state experiment, CTD showed significantly lower variance than both standard and averaged TD. While standard TD struggled with noise, CTD's error dropped sharply and stayed low. The empirical results closely matched the predicted theoretical bounds, proving that their non-asymptotic analysis holds up in practice.

Limitations and Future Work

  • Linear Approximation Only: The analysis is strictly for linear function approximation. Extending these exponential rates to non-linear function approximators (like deep neural networks) remains a significant challenge.
  • Projection Step: The proof for CTD requires a projection step (keeping the parameters within a bounded "H-ball"). While common in theory, this can be tricky to implement in practice if the bounds of the ball aren't known.
  • Computational Overhead: CTD requires periodic "epoch" calculations which add some computational cost per update, though the authors argue this is offset by the much faster convergence.

This paper serves as a vital roadmap for anyone looking to move beyond "it works eventually" and toward a more rigorous, engineering-focused understanding of Reinforcement Learning.

Summary updated

BibTeX
@inproceedings{korda2015td,
  author = {Nathaniel Korda and Prashanth L. A.},
  title = {{On TD(0) with function approximation: Concentration bounds and a centered variant with exponential convergence}},
  booktitle = {International Conference on Machine Learning},
  year = {2015},
  url = {https://openreview.net/forum?id=yK-qFvZ-lFk},
}
Figure