Finite Sample Analysis for TD(0) with Linear Function Approximation

Gal Dalal, Balázs Szörényi, Gugan Thoppe, Shie MannorarXiv 2017

Introduction

Temporal Difference (TD) learning is a foundational pillar of Reinforcement Learning (RL). While the asymptotic convergence of TD(0) has been established for decades, understanding its finite sample analysis—how many samples are required to reach a specific accuracy—has remained a persistent theoretical challenge.

Previously, finite sample results were only available for "altered" versions of the algorithm that included artificial constraints like projection steps (manually bounding weights) or required stepsizes tuned to unknown system parameters. This paper provides the first-ever finite sample analysis for the standard, unaltered TD(0) algorithm with linear function approximation, bridging the gap between theoretical guarantees and the "vanilla" implementations used by practitioners.

Methodology

The authors derive their convergence bounds using two distinct mathematical frameworks:

1. Expectation Bounds via Lyapunov Functions

By employing a Lyapunov function approach combined with inductive proof techniques, the authors analyze a wide family of stepsizes. This method reveals a fundamental tradeoff between the underlying noiseless convergence of the system and the impact of martingale noise. A key technical contribution is Lemma 5.1, which proves that the martingale noise in TD(0) is linearly bounded by the distance to the optimal solution, effectively removing the need for artificial projection steps.

2. High-Probability Bounds via ODE Methods

To establish high-probability guarantees, the authors utilize the Ordinary Differential Equation (ODE) method and the Variation of Parameters (VoP) formula. Rather than assuming the iterates stay within a bounded region, they prove that the iterates naturally remain within an $O(n_0)$ ball and eventually contract toward the optimal solution $\theta^*$.

Visualization of the TD(0) iterate trajectory relative to the limiting ODE solution and the optimal point.

Key Insights and Results

The Role of Stepsize and Eigenvalues

The convergence rate is heavily influenced by the smallest eigenvalue ($\lambda$) of the driving matrix $A$. If $\lambda < 1$, the rate is dominated by the "limiting ODE" physics; if $\lambda > 1$, the rate is limited by noise, hitting a floor of $1/\sqrt{n}$. The choice of stepsize further modulates this behavior, as summarized below:

Summary of discretization error, noise impact, and algorithm behavior across different stepsize regimes.

Concrete Convergence Rates

The paper establishes the following rates for an iterate $\theta_n$ compared to the optimal weights $\theta^*$:

  • Expectation Bound: The error decays at $O(1/n^\sigma)$, where $\sigma$ is the stepsize decay parameter: $E[||\theta_n - \theta^*||^2] \leq K_1 e^{-(\lambda/2)n^{1-\sigma}} + \frac{K_2}{n^\sigma}$.

  • High-Probability Bound: With probability at least $1-\delta$, the error is: $||\theta_n - \theta^*|| = \tilde{O}\left(n^{-\min\{1/2, \lambda/(\lambda+1)\}}\right)$.

Limitations and Future Work

While this work represents a significant step forward, it relies on the assumption that samples are independent and identically distributed (i.i.d.). In practical RL, samples are typically correlated along trajectories. Extending this analysis to Markovian noise is a primary objective for future research. Additionally, while the authors suggest their Variation of Parameters approach could extend to non-linear architectures (like Deep Neural Networks) via Alekseev’s formula, this remains an open area for investigation.

Summary updated

BibTeX
@misc{dalal2017finite,
  author = {Gal Dalal and Balázs Szörényi and Gugan Thoppe and Shie Mannor},
  title = {{Finite Sample Analysis for TD(0) with Linear Function Approximation}},
  year = {2017},
  eprint = {1704.01161},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1704.01161},
}
Figure