Statistical Inference for Temporal Difference Learning with Linear Function Approximation

Weichen Wu, Gen Li, Yuting Wei, Alessandro RinaldoarXiv 2024 · DOI

Introduction

In the field of Reinforcement Learning (RL), policy evaluation is a fundamental task that involves estimating the value function—the expected cumulative reward—of a given policy. While Temporal Difference (TD) learning has long been the standard algorithm for this task, theoretical research has traditionally focused on convergence "in expectation" or asymptotic consistency. However, for high-stakes applications like autonomous driving or medical decision-making, point estimates are insufficient. Practitioners require a rigorous understanding of the uncertainty associated with these predictions.

This paper addresses the challenge of providing sharp, finite-sample distributional guarantees for TD learning. By establishing faster convergence rates for the distribution of iterates and introducing a computationally efficient online variance estimator, the authors provide a framework for constructing reliable confidence intervals in RL.

Methodology: TD Learning with Polyak-Ruppert Averaging

The authors analyze TD learning with linear function approximation, specifically employing Polyak-Ruppert averaging. This technique involves computing the average of all previous iterates, which serves to smooth out stochastic noise and accelerate the convergence of the estimator toward the true value.

A key innovation presented is a novel online plug-in estimator for the asymptotic covariance matrix. Unlike traditional batch methods or bootstrapping—which are memory-intensive and require storing large datasets—this online estimator updates uncertainty estimates on-the-fly. With a space complexity of $O(d^2)$, where $d$ is the dimension of the feature space, it is highly practical for real-time applications.

Theoretical Contributions: Refined Berry-Esseen Bounds

The core theoretical achievement of this work is the derivation of refined Berry-Esseen bounds. The Berry-Esseen theorem quantifies the rate at which the distribution of a sum of random variables approaches a Normal distribution.

Previously, the state-of-the-art convergence rate for averaged TD iterates was $O(T^{-1/4})$. Through a sophisticated decomposition of the estimation error, the authors improve this bound to $O(T^{-1/3})$. This faster rate implies that the Gaussian approximation becomes accurate much earlier in the learning process than previously thought. Furthermore, the authors provide high-probability guarantees that do not rely on artificial "projection steps," making the theory more aligned with practical implementations.

Empirical Validation

To verify these theoretical findings, the authors conducted extensive simulations using synthetic Markov Decision Processes (MDPs). These environments were specifically designed with feature maps of varying dimensions (e.g., $d=3, 5, 7, 9$) to test the limits of the statistical inference.

Figure 1: Comparison of empirical and asymptotic distributions of the TD estimator across different iteration counts $T$. As $T$ increases, the empirical distribution (blue histogram) aligns more closely with the predicted Gaussian curve (red line).

As shown in Figure 1, the empirical distribution of the scaled TD error $\sqrt{T}(\bar{\Delta}_T)_1$ converges toward the predicted asymptotic Gaussian distribution as the number of iterations $T$ increases from $2^{10}$ to $2^{20}$. These results, based on 10,000 independent trials, confirm that the constructed 95% confidence intervals achieve the desired coverage in practice.

Conclusion and Future Directions

This research provides a significant step forward in the statistical foundation of RL. By bridging the gap between asymptotic theory and finite-sample practice, it enables more robust policy evaluation.

However, several avenues for future work remain. The current analysis assumes independent and identically distributed (i.i.d.) data samples, whereas real-world RL data is typically Markovian. While the authors suggest their results extend to general linear stochastic approximation, a dedicated treatment of Markovian noise is necessary. Additionally, reducing the polynomial dependence on the feature dimension $d$ and investigating whether the $O(T^{-1/3})$ rate can be further improved to $O(T^{-1/2})$ are key open questions for the community.

Summary updated

BibTeX
@misc{wu2024statistical,
  author = {Weichen Wu and Gen Li and Yuting Wei and Alessandro Rinaldo},
  title = {{Statistical Inference for Temporal Difference Learning with Linear Function Approximation}},
  year = {2024},
  eprint = {2410.16106},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.16106},
}
Figure