NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Is Temporal Difference Learning Optimal? An Instance-Dependent Analysis

Koulik Khamaru, Ashwin Pananjady, Feng Ruan, Martin J. Wainwright, Michael I. Jordan · DOI

TL;DR

This paper investigates the optimality of Temporal Difference (TD) learning for policy evaluation in Markov Decision Processes (MDPs). The authors show that standard TD with averaging is suboptimal in finite samples, even though it's asymptotically optimal. They then propose a variance-reduced TD algorithm that achieves instance-dependent optimality in finite samples.

What Problem Does This Paper Address?

Policy evaluation, a fundamental problem in reinforcement learning (RL), aims to estimate the long-term expected reward of a fixed policy. While many RL algorithms exist, theoretical guarantees often rely on worst-case assumptions, failing to capture the diverse performance observed in practice. This paper addresses this gap by developing instance-dependent analyses, which provide guarantees tailored to specific problem instances rather than uniform bounds. The authors focus on the $l_\infty$-norm error, which is crucial for policy iteration methods. They specifically question whether the widely-used Temporal Difference (TD) learning algorithm, even with common improvements like Polyak-Ruppert averaging, achieves optimal performance in a finite-sample setting.

Methods

The paper introduces and analyzes two main types of results:

  • Local Minimax Lower Bounds: The authors derive both asymptotic and non-asymptotic lower bounds on the $l_\infty$-error for policy evaluation. These bounds are "local" in that they depend on specific characteristics of the problem instance (defined by complexity measures like $\nu(P, \theta^*)$ and $\rho(P, r)$), rather than being uniform over all possible instances. The non-asymptotic bound is derived using techniques for constructing "hardest local alternatives."
  • Variance-Reduced TD Algorithm: To address the suboptimality of standard TD, the authors propose a variance-reduced version of the TD algorithm. This algorithm operates in epochs and uses a "re-centering" mechanism to reduce the variance of updates. They analyze this algorithm and prove that it achieves the derived instance-dependent lower bounds up to logarithmic factors.

Datasets

Not discussed in the paper. The authors use a generative model for MDPs, meaning they can draw samples from the transition and reward functions as needed, rather than relying on a fixed dataset.

Key Insights and Ideas

  • Finite-Sample Suboptimality of TD: The most striking insight is that standard TD learning, even with Polyak-Ruppert averaging, is not optimal in finite samples for policy evaluation, despite its asymptotic optimality. This highlights a crucial gap between theoretical guarantees and practical performance.
  • Instance-Dependent Complexity: The paper formalizes how the "difficulty" of a policy evaluation problem depends on specific instance characteristics, quantified by novel complexity measures. This provides a more nuanced understanding of algorithm performance.
  • Variance Reduction for Optimality: The proposed variance-reduced TD algorithm demonstrates that by carefully managing variance, one can achieve instance-dependent optimality in finite samples, a feat not accomplished by standard TD with averaging.
  • Asymptotic vs. Finite-Sample Trade-offs: The work clearly distinguishes between asymptotic optimality (achieved by standard TD with averaging) and finite-sample optimality (achieved by the proposed variance-reduced method), emphasizing the importance of sample size and its interaction with algorithm design.

Key Results

  • Lower Bounds: The paper establishes both asymptotic and non-asymptotic local minimax lower bounds for policy evaluation in the $l_\infty$-norm. These bounds are characterized by instance-specific complexity measures.
  • TD Suboptimality: Simulations show that TD with Polyak-Ruppert averaging fails to achieve the derived instance-dependent rates in non-asymptotic settings, even with large sample sizes.
  • Variance-Reduced TD Optimality: The proposed variance-reduced TD algorithm is shown to achieve the instance-dependent lower bounds up to logarithmic factors in dimension, provided the sample size is sufficiently large (satisfying specific conditions related to the discount factor $\gamma$).
  • Sample Size Requirements: Both the lower bounds and the upper bounds for the variance-reduced algorithm depend on the sample size $N$ and the discount factor $\gamma$, often requiring $N \gtrsim (1-\gamma)^{-3}$ for optimal performance.

Limitations and Future Work

  • Minimum Sample Size: The authors note that both their lower bounds and the upper bounds for the variance-reduced algorithm require the sample size $N$ to exceed a certain threshold. They suggest that relaxing this minimum sample size requirement is an interesting future research direction.
  • Tabular Setting: The current analysis focuses on the tabular policy evaluation problem (where the number of states is finite and fixed). The authors point out that the proposed variance-reduced algorithm can be applied more generally and suggest exploring its applications in non-tabular settings (e.g., with function approximation).

Summary updated

BibTeX
@article{khamaru2020is,
  author = {Koulik Khamaru and Ashwin Pananjady and Feng Ruan and Martin J. Wainwright and Michael I. Jordan},
  title = {{Is Temporal Difference Learning Optimal? An Instance-Dependent Analysis}},
  journal = {SIAM J. Math. Data Sci.},
  year = {2020},
  doi = {10.1137/20m1331524},
}
Figure