Off-policy learning enables a reinforcement learning (RL) agent to reason counterfactually about policies that are not executed, making it one of the most important ideas in RL. However, it can lead to instability when combined with function approximation and bootstrapping—two indispensable ingredients for large-scale RL. This combination is known as the notorious "deadly triad."
This paper revisits a discarded branch of RL history to provide a simpler, more robust solution to this persistent challenge. The authors resurrect $A^\top$TD, an algorithm previously dismissed as inefficient during the development of Gradient Temporal Difference (GTD) learning. By introducing a time-varying "gap function" to decorrelate samples, they prove that this "inferior" algorithm is actually a computationally efficient, single-learning-rate solution to the deadly triad.
The Problem: The Deadly Triad and GTD
In reinforcement learning, researchers often chase the "holy grail" of combining three specific ingredients:
- Off-policy learning: Learning about a target policy while executing a different behavior policy.
- Function approximation: Using models (like neural networks or linear features) to represent value functions in large state spaces.
- Bootstrapping: Updating an estimate based on other estimates (the "TD" in TD-learning).
When these three meet, they form the deadly triad, which often causes learning to become unstable or diverge entirely. The seminal work by Sutton et al. (2008) pioneered Gradient TD (GTD) as the first solution to the deadly triad. However, GTD algorithms are notoriously difficult to use because they require tuning two sets of parameters and two different learning rates simultaneously.
During the original derivation of GTD, an intermediate algorithm called $A^\top$TD was proposed but immediately discarded. It was thought to require $O(K^2)$ memory and computation (where $K$ is the number of features), making it too expensive for large-scale use.
Methods: Resurrecting $A^\top$TD
The paper introduces $A_t^\top$TD, a refined version of the discarded algorithm. The key innovations include:
- The Gap Function ($f(t)$): To estimate the gradient correctly without "double sampling" (which usually requires two independent samples from the same state), the authors use a single stream of data but pick two samples separated by a time gap. As the gap $f(t)$ increases over time (e.g., $f(t) = \lfloor \ln^2(t+1) \rfloor$), the correlation between the samples vanishes, allowing the algorithm to converge.
- Computational Efficiency: They demonstrate that by carefully ordering the mathematical operations (computing from right to left), the per-step complexity is reduced to $O(K)$—exactly the same as standard GTD.
- Memory Management: While the algorithm requires a small buffer to store transitions for the "gap," the authors prove the memory cost grows so slowly ($O(\ln^2 t)$) that it is practically negligible. Even if an agent ran for the entire age of the universe at 3 GHz, the required buffer would only be about 4,000 entries.
Experimental Setup and Key Results
The authors evaluated the algorithm on two classic RL benchmarks designed to test stability:
- Boyan’s Chain: A standard task for evaluating the convergence of value function approximation in an on-policy setting.
- Baird’s Counterexample: The "final boss" of RL stability tests, specifically designed to make standard TD learning diverge in off-policy settings.
- Theoretical Convergence: The authors provide the first asymptotic convergence proof for $A_t^\top$TD and a finite-sample analysis for a projected version.
- Competitive Performance: In experiments, $A_t^\top$TD matched or outperformed established baselines like GTD2, TDC, and TDRC.
- Convergence Rate: The finite sample analysis shows a convergence rate of $O(\frac{f(t) \ln t}{t})$, which is essentially on par with canonical on-policy TD learning, despite the added difficulty of the off-policy setting.
- Stability: In Baird’s counterexample, $A_t^\top$TD remained stable and converged to the correct solution, while "naive" off-policy TD diverged rapidly.
Key Insights
- Time as a Decorrelator: The most profound insight is that the "mixing" property of Markov chains can replace the need for i.i.d. (independent and identically distributed) samples. By simply waiting a few steps, the second sample becomes "independent enough" to provide a valid gradient estimate.
- Simplicity is a Feature: Unlike GTD, which requires a "secondary" weight vector and a second learning rate, $A_t^\top$TD uses only one set of weights and one learning rate. This makes it significantly easier for practitioners to tune and deploy.
- Resurrecting "Dead" Ideas: The paper proves that early algorithmic "failures" are often just victims of the computational context of their time. With modern analysis techniques, these discarded ideas can outperform current standards.
Limitations and Future Work
- Theoretical Conservatism: The mathematical assumptions required for the proof are quite strict regarding how fast the gap function can grow. However, experiments suggest the algorithm is much more robust in practice than the theory currently requires.
- Linear Focus: This paper focuses on linear function approximation. While linear methods are the foundation of RL theory, extending this "gap sampling" logic to deep neural networks (non-linear approximation) is a logical and necessary next step.
- Hyperparameter $f(t)$: While the authors suggest a log-squared function works well, finding the optimal gap function for a specific Markov Decision Process (MDP) remains an open question.
Summary updated