Skip to main content
QUICK REVIEW

[Paper Review] True Online Temporal-Difference Learning

Harm van Seijen, A. Rupam Mahmood|arXiv (Cornell University)|Dec 13, 2015
Reinforcement Learning in RoboticsComputer Science18 references56 citations
TL;DR

This paper introduces True Online Temporal-Difference Learning, a novel algorithm that maintains exact equivalence to the forward view of TD(λ) at every time step by modifying standard TD(λ) updates with two key changes. Empirical results across random Markov Reward Processes, a myoelectric prosthetic arm, and Atari environments show that True Online TD(λ) and Sarsa(λ) consistently outperform standard versions in learning speed with no degradation, while eliminating the need to choose between accumulating and replacing traces.

ABSTRACT

The temporal-difference methods TD($λ$) and Sarsa($λ$) form a core part of modern reinforcement learning. Their appeal comes from their good performance, low computational cost, and their simple interpretation, given by their forward view. Recently, new versions of these methods were introduced, called true online TD($λ$) and true online Sarsa($λ$), respectively (van Seijen & Sutton, 2014). These new versions maintain an exact equivalence with the forward view at all times, whereas the traditional versions only approximate it for small step-sizes. We hypothesize that these true online methods not only have better theoretical properties, but also dominate the regular methods empirically. In this article, we put this hypothesis to the test by performing an extensive empirical comparison. Specifically, we compare the performance of true online TD($λ$)/Sarsa($λ$) with regular TD($λ$)/Sarsa($λ$) on random MRPs, a real-world myoelectric prosthetic arm, and a domain from the Arcade Learning Environment. We use linear function approximation with tabular, binary, and non-binary features. Our results suggest that the true online methods indeed dominate the regular methods. Across all domains/representations the learning speed of the true online methods are often better, but never worse than that of the regular methods. An additional advantage is that no choice between traces has to be made for the true online methods. Besides the empirical results, we provide an in-depth analysis of the theory behind true online temporal-difference learning. In addition, we show that new true online temporal-difference methods can be derived by making changes to the online forward view and then rewriting the update equations.

Motivation & Objective

  • To address the theoretical and empirical limitations of standard TD(λ) and Sarsa(λ), which only approximate the forward view except in the limit of small step-sizes.
  • To develop a method that maintains exact equivalence to the forward view at every time step, ensuring full control over the bias-variance trade-off.
  • To empirically evaluate whether the improved theoretical properties of True Online TD(λ) translate into superior performance across diverse domains and function approximation settings.
  • To demonstrate that the method eliminates the need to choose between accumulating and replacing eligibility traces, simplifying practical deployment.

Proposed method

  • Introduces a new online forward view based on a bounded version of the λ-return that grows incrementally over time, enabling online updates.
  • Derives the True Online TD(λ) update equations directly from this online forward view, ensuring exact equivalence at every step.
  • Modifies the standard TD(λ) update by incorporating a correction term based on the difference between current and previous weight vector projections, using the eligibility trace.
  • Maintains eligibility traces via a recursive update: $\mathbf{e}_t = \gamma\lambda\mathbf{e}_{t-1} + \bm{\phi}_t - \alpha\gamma\lambda(\mathbf{e}_{t-1}^\top\bm{\phi}_t)\bm{\phi}_t$, which enables exact online computation.
  • Applies the same derivation framework to derive True Online Sarsa(λ) for control tasks, ensuring forward-view equivalence in off-policy learning.
  • Uses linear function approximation with tabular, binary, and non-binary features to evaluate generalization across representation types.

Experimental results

Research questions

  • RQ1Does True Online TD(λ) achieve better learning speed than standard TD(λ) across diverse environments and function approximation schemes?
  • RQ2Can True Online TD(λ) maintain exact equivalence to the forward view at every time step, even with non-infinitesimal step-sizes?
  • RQ3Does the method eliminate the need to choose between accumulating and replacing traces, as claimed by the authors?
  • RQ4How does True Online Sarsa(λ) compare to standard Sarsa(λ) in terms of learning speed and performance on control tasks?
  • RQ5Can the proposed online forward view framework be generalized to derive other true online temporal-difference algorithms?

Key findings

  • True Online TD(λ) consistently achieves faster learning speeds than standard TD(λ) across all tested domains, including random MRPs, a myoelectric prosthetic arm, and Atari environments.
  • In every tested environment and representation type (tabular, binary, non-binary features), True Online TD(λ) never underperforms standard TD(λ), and often significantly outperforms it in terms of convergence speed.
  • The method achieves exact equivalence to the forward view at every time step, even with moderate step-sizes, unlike standard TD(λ), which only approximates this equivalence in the limit of small step-sizes.
  • True Online Sarsa(λ) shows superior performance compared to standard Sarsa(λ) with both accumulating and replacing traces, particularly in control tasks such as the prosthetic arm and Atari.
  • The algorithm eliminates the need to choose between accumulating and replacing traces, as the update rule inherently handles both cases through its derivation from the online forward view.
  • Empirical results on random MRPs with varying parameters (k=10, k=100, b=3, b=10, σ=0.1, σ=0) confirm consistent superiority of the true online method across different noise and complexity levels.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.