Temporal Difference Learning as Gradient Splitting

Rui Liu, Alex Olshevsky

Temporal Difference (TD) learning is a cornerstone of reinforcement learning, but its theoretical underpinnings have long been challenging to analyze. This paper introduces a novel theoretical framework that interprets TD learning as a "gradient splitting" of a specific quadratic cost function. This perspective allows researchers to apply standard gradient descent proofs to TD learning, yielding improved convergence bounds that avoid the notorious "blow up" as the discount factor $\gamma$ approaches 1.

The Problem: Policy Evaluation and the $\gamma$ Blowup

In reinforcement learning, Policy Evaluation—estimating the expected reward of a specific strategy—is a fundamental task. TD learning is the standard algorithm for this, particularly when paired with linear function approximation to handle large state spaces.

However, theoretical analysis of TD has historically been difficult. Standard gradient descent analysis doesn't directly apply because the TD update is not the gradient of any fixed objective function. Furthermore, existing convergence bounds for TD often include a multiplicative factor of $1/(1-\gamma)$. As the discount factor $\gamma$ approaches 1 (indicating a high prioritization of long-term rewards), these bounds explode. This suggests the algorithm becomes incredibly slow, contradicting its strong empirical performance. The authors set out to explain why TD works so well in practice and how to resolve this mathematical scaling issue.

Methodology: Gradient Splitting and Mean-Adjusted TD

To bridge the gap between empirical success and theoretical bounds, the authors introduce a new mathematical concept and a corresponding algorithmic adjustment.

  • The Concept of Gradient Splitting: A function $h(\theta)$ is defined as a gradient splitting of a quadratic function $f(\theta)$ if it preserves the same inner product with the direction toward the optimal solution, even if it isn't the exact gradient. Essentially, it points "in the right general direction" as much as the true gradient does.
  • The Dirichlet Connection: The paper proves that the expected update of TD(0) is a gradient splitting of a specific objective function. This objective is a weighted combination of the standard value error and the Dirichlet seminorm, which measures how much the value function changes between states that transition to one another.
  • Mean-Adjusted TD(0): Recognizing that the $1/(1-\gamma)$ blowup is mathematically unavoidable when estimating the mean value of a policy, the authors propose a new algorithm: Mean-adjusted TD(0). This approach estimates the mean separately, utilizing TD solely to learn the "shape" (or variations) of the value function.

Key Insights and Theoretical Results

By framing TD as gradient splitting, the authors successfully bridge heuristic RL methods and classical optimization theory, allowing decades of optimization research to be applied to TD variants.

Implicit Regularization and the $\gamma \to 1$ Paradox

The implicit minimization of the Dirichlet seminorm explains TD's effectiveness in capturing relationships between successive states. It acts as an explicit (if unintentional) regularization based on the Markov Chain's graph structure.

Furthermore, the paper resolves the paradox of high discount factors. It demonstrates that TD excels at learning the projection of the value function onto the space perpendicular to the all-ones vector ($1^\perp$). In plain English: TD quickly learns the relative differences between states, even if it struggles to find the absolute average value when $\gamma$ is large.

Improved Convergence Bounds

The authors provide rigorous mathematical backing for these insights:

  • Theorems 1 & 2: Formally identify the specific quadratic functions for which TD(0) and TD($\lambda$) act as gradient splittings.
  • Stable Dirichlet Bounds: For standard projected TD(0), a new bound (Corollary 2) shows that the error in the Dirichlet seminorm does not blow up as $\gamma \to 1$.
  • Mean-Adjusted Convergence: For the proposed Mean-adjusted TD(0) algorithm, they prove an $O(1/\sqrt{T})$ convergence rate. Crucially, the problematic $1/(1-\gamma)^2$ factor is attached to a $1/T$ term, meaning it disappears much faster than the main error term as iterations increase.

Limitations and Future Directions

While this framework represents a significant step forward in RL theory, the authors note a few limitations and areas for future research:

  • Spectral Gap Dependence: The new bounds depend on the inverse spectral gap of the underlying Markov Chain ($r(P)$). While standard in Markovian analysis, the authors note this specific bound might not be perfectly tight and could potentially be improved.
  • Linear Function Approximation Only: The analysis is currently restricted to linear function approximation. Extending this framework to non-linear architectures, like deep neural networks, remains an open challenge since the proofs rely heavily on the properties of quadratic forms.
  • Broader Optimization Variants: The gradient splitting interpretation opens the door to "splitting" other optimization techniques. Future work could explore splitting methods like mirror descent to tackle constrained reinforcement learning problems.

Summary updated

BibTeX
@inproceedings{liu2021temporal,
  author = {Rui Liu and Alex Olshevsky},
  title = {{Temporal Difference Learning as Gradient Splitting}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
}
Figure