Finite Sample Analysis of Linear Temporal Difference Learning with Arbitrary Features

Zixuan Xie, Xinyu Liu, Rohan Chandra, Shangtong Zhang

Abstract

Linear Temporal Difference (TD) learning is a fundamental algorithm for policy evaluation in reinforcement learning. However, existing finite-sample convergence guarantees typically rely on the assumption that state features are linearly independent—an assumption often violated in practical applications like continual learning or high-dimensional sensing. This paper provides the first finite-sample analysis for Linear TD($\lambda$) with arbitrary features. By developing a novel stochastic approximation framework that measures convergence to a set of solutions rather than a single point, we establish $L^2$ convergence rates of $O(\ln t / t)$ for both discounted and average-reward settings. These results match the efficiency of traditional analyses while removing the restrictive independence requirement.

1. Introduction

In reinforcement learning, policy evaluation often relies on Linear Temporal Difference (TD) learning to approximate value functions in large state spaces. For decades, theoretical guarantees for these algorithms have rested on a crucial assumption: the features used to represent states must be linearly independent.

In real-world scenarios—particularly in "continual learning" where data arrives sequentially or in systems with redundant sensors—this assumption is often impossible to verify or simply untrue. When features are dependent, the "optimal" solution is no longer a unique point, but a set of possible weight vectors that produce the same value estimate. Previous theoretical work either required modifying the algorithm to ensure uniqueness or only provided asymptotic results. This paper bridges the gap by providing concrete finite-sample convergence rates for the standard TD algorithm under arbitrary feature sets.

2. Comparison with Existing Literature

The primary contribution of this work is filling the theoretical gaps in both discounted and average-reward settings where features are not necessarily independent. As shown in the comparison below, while previous literature established rates for independent features, this work (Theorems 1 and 2) provides the first checked convergence rates for arbitrary features.

Table 1: Comparison of the proposed work with existing literature on Linear TD learning.

3. Methodology: Convergence to a Solution Set

The authors achieve this breakthrough by reinventing the mathematical tools used to analyze TD learning, focusing on three key innovations:

  1. Set-Based Convergence: Instead of tracking the distance of weights $w_t$ to a single point $w_*$, the analysis proves convergence to a solution set $W_*$.
  2. Novel Lyapunov Function: A new Lyapunov function $L(w) = \frac{1}{2}d(w, W_*)^2$ is introduced to measure the squared Euclidean distance from the current weights to the nearest point in the solution set. The authors prove this function is "smooth," which allows them to track progress even when the underlying system is only negative semidefinite—a direct mathematical consequence of redundant features.
  3. Feature Decomposition for Average Rewards: The average-reward setting is notoriously complex. The authors introduce a novel decomposition of the feature matrix $X = X_1 + X_2$, where $X_2$ is a rank-one matrix representing the "bias" or "offset." This allows for a precise characterization of the solution set $W_*$ in the average-reward context for the first time.

4. Key Theoretical Results

Discounted Setting (Theorem 1)

The paper establishes the first $L^2$ convergence rate for linear TD($\lambda$) with arbitrary features in the discounted reward setting. For a standard learning rate (step size $\xi=1$), the error decreases at a rate of $O(\ln t / t)$. This suggests that linear independence was a mathematical convenience for earlier proofs rather than a fundamental requirement for algorithmic efficiency.

Average-Reward Setting (Theorem 2)

The authors provide the first finite-sample analysis for the average-reward setting without requiring full-rank features or specific subspace assumptions. This unifies the analysis of TD learning across different reward structures.

5. Empirical Validation

The theoretical findings were validated using a variant of Boyan’s chain, a standard benchmark in reinforcement learning. The experimental configuration involved 15 states and a feature matrix $X$ specifically designed to be rank 3, ensuring high linear dependence. The results confirmed that the distance to the solution set $d(w_t, W_*)$ vanishes over time across various $\lambda$ values, matching the predicted theoretical rates.

6. Conclusion and Future Work

This work provides a unified analysis for Linear TD learning that accommodates the complexities of real-world feature representations. While a major step forward, several avenues for future research remain:

  • Non-linear Approximation: Extending these set-convergence ideas to non-linear models, such as neural networks via Neural Tangent Kernels.
  • High Probability Bounds: Moving beyond $L^2$ (mean squared) convergence to establish "high probability" or $L^p$ convergence rates.
  • Robust Parameter Tuning: Developing techniques like Polyak-Ruppert averaging to reduce sensitivity to initial step-size parameters, making the algorithm more robust in practice.

Summary updated

BibTeX
@inproceedings{xie2025finite,
  author = {Zixuan Xie and Xinyu Liu and Rohan Chandra and Shangtong Zhang},
  title = {{Finite Sample Analysis of Linear Temporal Difference Learning with Arbitrary Features}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=3lVBn7U07P},
}
Figure