Gradient Temporal Difference Networks

David SilverEWRL 2012

Abstract

Temporal-difference (TD) networks are powerful tools for predictive representation learning, but their standard learning algorithms are notoriously unstable and prone to divergence. This paper introduces the first mathematically sound, true gradient descent learning rule for TD networks by combining Gradient TD (GTD) methods with recurrent neural network training techniques. This breakthrough guarantees convergence and unlocks the ability to use arbitrary, unconstrained network architectures.

Introduction: The Challenge of Predictive Representations

In reinforcement learning, an agent requires a robust representation of its state to make informed decisions. Predictive State Representations (PSRs) and Temporal-Difference (TD) networks address this by building state representations entirely out of predictions about future observations. TD networks are particularly compelling because they allow for compositional predictions—where the network can predict future state variables (predicting a prediction), enabling higher-level reasoning.

However, the original learning algorithm for TD networks was fundamentally flawed. It relied on a computationally cheap one-step approximation that ignored critical components of the gradient. In a TD network, a single node acts simultaneously as a state (input for future predictions), an answer (the current prediction), and a target (the value other nodes aim to predict). Updating a node to improve its "answer" role can inadvertently degrade its utility as a "state" or "target," leading to catastrophic divergence even in simple environments.

The TD Network Architecture

To understand the proposed solution, it is helpful to visualize the dual-network structure of TD networks.

The structure of a Temporal-Difference network, consisting of a Question network (defining targets) and an Answer network (generating predictions).

The Question network (left) defines the semantics of the predictions—what is being predicted and under what conditions. The Answer network (right) is a recurrent neural network that generates these predictions based on the history of observations.

Methods: A Sound Gradient Descent Rule

To resolve the divergence issue, the author develops a true gradient descent algorithm that accounts for all three roles of a TD network node.

  1. The Bellman Network Equation: The standard Bellman equation is generalized into a Bellman Network Equation applicable to a linear network of compositional predictions.
  2. A New Objective Function: The paper defines the Mean Squared Projected Bellman Network Error (MSPBNE), which measures error across the entire prediction network.
  3. Recurrent GTD/TDC: The objective is minimized by combining:
  4. Gradient Temporal-Difference (GTD/TDC) learning: This handles the gradient with respect to the "target" role, preventing divergence with non-linear function approximators.
  5. Recurrent Training (RTRL/BPTT): Standard RNN techniques (Real-Time Recurrent Learning or Backpropagation Through Time) are used to calculate the gradient with respect to the "state" history.

Experimental Evaluation

The algorithm was evaluated on the 6-state "cycle world," a synthetic benchmark consisting of a cyclic Markov chain. This environment is a well-known counter-example where standard TD network learning rules consistently diverge.

Key Results

  • Empirical Stability: While baseline TD network learning initially performed well, it reliably fell into unstable divergence after approximately 25,000 steps.
  • Robust Convergence: The proposed recurrent GTD and TDC network learning rules converged in 100% of the test runs over 50,000 steps, starting from random initial weights.
  • Theoretical Foundation: The paper provides a formal proof outline demonstrating that the augmented GTD network learning algorithm converges to a local minimum with probability 1.

Discussion and Insights

The primary contribution of this work is the "Three Roles" insight, which diagnoses why previous attempts failed by formalizing the mathematical necessity of accounting for a node's role as state, answer, and target.

By providing a sound learning rule, this work grants researchers architectural freedom. Previously, recurrent architectures had to be constrained (e.g., separating hidden states from outputs) to prevent collapse. With this new rule, any node can serve all three roles simultaneously. This represents a significant bridge between reinforcement learning and deep learning, showing how to safely bootstrap predictions within an RNN.

Limitations and Future Work

The main drawback is computational complexity. Calculating the true gradient is expensive; using RTRL results in $O(n^2(m+n)^2)$ complexity per step. While automatic differentiation can mitigate this, it remains a challenge for large-scale applications. Future work will explore the vast spectrum of unconstrained recurrent architectures enabled by this sound learning rule.

Summary updated

BibTeX
@inproceedings{silver2012gradient,
  author = {David Silver},
  title = {{Gradient Temporal Difference Networks}},
  booktitle = {EWRL},
  year = {2012},
}
Figure