Chaining Value Functions for Off-Policy Learning

Simon Schmitt, John Shawe-Taylor, Hado van Hasselt

Abstract

Off-policy reinforcement learning (RL) is notoriously unstable due to the "deadly triad"—the combination of function approximation, bootstrapping, and off-policy data. This paper introduces Chaining Value Functions, a novel framework that ensures convergence by decomposing a difficult off-policy problem into a sequence of stable, partially off-policy sub-problems called "k-step expeditions."

Introduction: The Deadly Triad

In reinforcement learning, an agent often needs to learn about a "target policy" $\pi$ (what it should do) while following a different "behavior policy" $\mu$ (what it is actually doing). This off-policy learning is essential for exploration and safety. However, when combined with function approximation and bootstrapping (updating estimates based on other estimates), standard algorithms like Temporal Difference (TD) learning can diverge. This instability, known as the "deadly triad," causes value estimates to spiral toward infinity. While existing solutions like Gradient TD (GTD) exist, they often suffer from high variance or complex implementations.

Methodology: The Chaining Framework

The authors propose a "chaining" approach that builds a bridge between the stable behavior policy and the unstable target policy through two main concepts:

  1. The k-step Expedition: Instead of learning the value of the target policy immediately, the agent learns the value of a "k-step expedition." This involves following the target policy $\pi$ for $k$ steps and then reverting to the behavior policy $\mu$ indefinitely.
  2. The Value Chain: The algorithm starts by learning the value of the behavior policy ($v^0 = v_\mu$), which is a stable on-policy task. It then learns $v^1$ by bootstrapping off $v^0$, then $v^2$ off $v^1$, and so on. Because each link in the chain bootstraps off a previously stabilized estimate, the authors prove that each step is mathematically guaranteed to be stable.

Implementation Strategies

The framework can be implemented in two primary ways:

  • Sequential Chained TD: Learns one link at a time until convergence before moving to the next.
  • Concurrent Chained TD: Updates all links in the chain simultaneously at every time step, allowing for faster overall convergence despite initial oscillations.
Comparison of Sequential and Concurrent estimation dynamics. Sequential estimation shows a steady climb, while Concurrent estimation exhibits initial oscillations before stabilizing at the target value.

Theoretical Insights

The authors frame TD learning as a numerical method for solving linear equations (Richardson Iteration). They demonstrate that while standard off-policy TD uses a matrix ($A_\pi$) that can have negative eigenvalues—the root cause of divergence—Chained TD effectively uses the feature covariance matrix ($X$). Since $X$ is always positive definite, stability is ensured by construction.

This approach also reveals a bias-stability trade-off. For a finite chain length $K$, the estimate is biased toward the behavior policy. However, this bias vanishes exponentially as $K$ increases. Furthermore, the paper provides a theoretical link to "target networks" used in Deep RL (like DQN); Sequential Chained TD is essentially TD with a target network that is updated only after the current network has fully converged.

Experimental Results

The algorithm was evaluated on several diagnostic Markov Decision Processes (MDPs), including Baird’s Counterexample, which is designed to break off-policy learners.

Robustness on Random MDPs

In tests across a suite of randomly generated environments, standard off-policy TD diverged in approximately 20% of cases. In contrast, Chained TD remained stable in 100% of those same environments, regardless of the number of states.

The ratio of solvable MDPs for standard Off-Policy TD versus Chained TD. Chained TD maintains a 100% success rate across varying state counts, while standard TD performance degrades.

Performance on Baird’s Counterexample

Chained TD successfully solved Baird’s counterexample, reaching the correct value where TD, GTD2, and TDC either diverged or made negligible progress, particularly at high discount factors (e.g., $\gamma = 0.99$). While concurrent training can cause initial oscillations, it converges significantly faster than sequential training and reaches the same stable fixed point.

Conclusion and Future Work

Chaining Value Functions provides a robust solution to the deadly triad by ensuring stability through its architectural design. While it introduces computational overhead by requiring $K$ sets of parameters, it offers a more reliable path to convergence in challenging off-policy scenarios. Future work may involve applying this principle to other estimators like V-trace or exploring "n-step" versions to reduce the required chain length.

Summary updated

BibTeX
@inproceedings{schmitt2022chaining,
  author = {Simon Schmitt and John Shawe-Taylor and Hado van Hasselt},
  title = {{Chaining Value Functions for Off-Policy Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i8.20792},
}
Figure