Approximate Temporal Difference Learning is a Gradient Descent for Reversible Policies

Yann OllivierarXiv 2018

Introduction

Temporal Difference (TD) learning is a cornerstone of modern Reinforcement Learning (RL), enabling agents to estimate the value of states by bootstrapping from subsequent estimates. Despite its ubiquity, TD learning is notoriously unstable when combined with nonlinear function approximators like neural networks—a phenomenon often referred to as part of the "Deadly Triad." Unlike standard supervised learning, where models minimize a loss function via gradient descent, TD is traditionally viewed as a fixed-point iteration. This lack of a clear objective function makes convergence guarantees difficult to establish in complex settings.

In this work, Yann Ollivier provides a theoretical breakthrough by identifying a hidden "energy landscape" for TD learning. He proves that for a specific class of problems—those with reversible policies—approximate TD learning is not merely a heuristic but is exactly equivalent to gradient descent on a well-defined objective function: the Dirichlet norm of the error.

The Problem: Stability and the Deadly Triad

The instability of TD learning stems from the interaction of three elements: bootstrapping, off-policy learning, and function approximation. Even in on-policy settings, using nonlinear neural networks can lead to divergence because the agent is chasing a "moving target." Because the update is not the gradient of any standard loss function (like Mean Squared Error), there is no guarantee that the update step actually moves the parameters toward a global or even local optimum.

Methods: The Reversibility Assumption

The author analyzes the expected TD update—the average change in model parameters—through the lens of Markov chain theory. The core of the proof relies on the assumption of reversibility (or detailed balance). A policy is considered reversible if the probability of transitioning from state $A$ to $B$, weighted by the stationary distribution, equals the probability of transitioning from $B$ to $A$.

By assuming reversibility, the mathematical structure of the TD update transforms. The author demonstrates that under these conditions, the TD step aligns with the gradient of the Dirichlet norm. While standard MSE measures the error of state values in isolation, the Dirichlet norm measures the error in the differences between values of adjacent states. Essentially, it ensures the agent correctly captures the relative advantages of moving through the state-space graph.

Key Insights

The Dirichlet Norm as a Loss Function

The identification of the Dirichlet norm as the natural objective for TD is a significant shift in perspective. It suggests that TD is fundamentally concerned with the local consistency of the value function across edges in the state-space graph, rather than the global accuracy of absolute value estimates.

Stability at $\gamma = 1$

In traditional RL, a discount factor ($\gamma < 1$) is often required to ensure mathematical convergence and prevent values from reaching infinity. However, Ollivier shows that for reversible policies, TD remains stable even in the undiscounted case ($\gamma = 1$). The gradient descent structure inherent in the Dirichlet norm provides the necessary stability to prevent divergence.

The Navigation Connection

While reversibility may seem like a restrictive mathematical convenience, it accurately describes many physical and logical tasks. Navigation on undirected graphs—where any move from one location to another can be reversed—is a primary example. For these types of environments, TD learning is theoretically "safe" even with complex function approximators.

Reducing Policy Gradient Bias

The paper further connects value function accuracy to policy improvement. It demonstrates that minimizing the Dirichlet norm of the value function error directly minimizes the bias in the Policy Gradient. This implies that the specific way TD learns values is optimized for making better policy decisions.

Key Results

  • Theorem 1: Establishes that the expected TD step is a gradient descent of a mixed norm, combining the Dirichlet norm with the standard state-weighting norm.
  • Theorem 2: Proves that in the undiscounted setting ($\gamma = 1$), the TD step is exactly the gradient of the Dirichlet norm of the error.
  • Proposition 4: Quantifies the relationship between value error and policy improvement, showing that the Dirichlet norm controls the bias in the agent's learned policy.

Limitations and Future Work

The primary constraint of this theory is the requirement for policy reversibility. Most complex RL environments, such as Atari games or high-dimensional robotics, involve irreversible transitions (e.g., falling off a ledge). In non-reversible cases, the TD update deviates from pure gradient descent by a specific error term.

Future research may explore whether agents can be incentivized to maintain "nearly-reversible" policies to gain stability, or if new loss functions can be designed to explicitly mimic the Dirichlet norm in non-reversible environments. This work provides a vital theoretical anchor for understanding why TD works when it does, and a roadmap for stabilizing it when it fails.

Summary updated

BibTeX
@misc{ollivier2018approximate,
  author = {Yann Ollivier},
  title = {{Approximate Temporal Difference Learning is a Gradient Descent for Reversible Policies}},
  year = {2018},
  eprint = {1805.00869},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.00869},
}
Figure