Learning to Predict Independent of Span

Hado van Hasselt, Richard S. SuttonarXiv 2015

TL;DR

This paper introduces a novel class of algorithms for learning multi-step predictions that achieve the same accuracy as traditional methods but with significantly reduced computational and memory requirements, independent of the prediction span. This is achieved by deriving "span-independent" algorithms that naturally re-emerge well-known concepts like eligibility traces and TD errors, providing a unified framework for efficient long-term prediction.

What Problem Does This Paper Address?

Traditional algorithms for learning predictions, especially those involving multiple future steps (long "spans"), often require substantial computational resources. This is because they typically need to store all past observations and perform updates only after the final outcome is known. This "forward view" approach becomes computationally prohibitive when predictions are made frequently or over very long time horizons, leading to memory requirements that scale with the prediction span. The authors aim to develop algorithms that maintain prediction accuracy while ensuring that the computational cost per time step remains constant and independent of this span.

Methods

The core of the paper is a systematic derivation of span-independent algorithms. The authors start with a simple supervised learning setting (predicting a single final outcome) and a "forward view" algorithm. By analyzing the total change in the weight vector, they derive an equivalent "backward view" algorithm that achieves the same final predictions but with constant per-step computation and memory. This process is then generalized by introducing desired properties step-by-step:

  • Span-Independence: This is the primary goal, leading to the emergence of "dutch eligibility traces."
  • Online Updating: Allowing predictions to be updated towards interim targets before the final outcome is known, which naturally leads to "temporal difference (TD) errors."
  • Averaging: Combining online and offline updates, or different interim targets, to create a more robust prediction, leading to the emergence of averaging mechanisms.
  • Bootstrapping: Using predictions of future outcomes as targets for current predictions.
  • Cumulative Returns and Soft Terminations: Generalizing the problem to handle ongoing signals and predictions that don't necessarily end at a fixed point.

Each step builds upon the previous one, ensuring that the new algorithm subsumes the old ones, leading to a single, general algorithm applicable to a wide range of prediction tasks.

Datasets

Not discussed in the paper. The paper focuses on theoretical derivations and algorithmic development rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • Algorithmic Constructs Emerge Naturally: The paper demonstrates that fundamental concepts like dutch eligibility traces, TD errors, and averaging are not arbitrary additions but arise spontaneously from the desire to achieve span-independent computation and other desirable prediction properties. This provides a strong "why" for these constructs.
  • Backward View for Efficiency: The key to span-independence is the "backward view," which allows for efficient, constant-time updates by processing information in reverse order of observation, avoiding the need to store all past data.
  • Unified Framework: The authors successfully unify various prediction learning approaches (online, offline, bootstrapping, cumulative returns, soft terminations) into a single, general algorithm, highlighting the interconnectedness of these concepts.
  • New Notion of Trust: The paper introduces a nuanced way to combine online and offline predictions by introducing a "degree of trust" parameter ($\beta_t$), which allows for smooth transitions and weighted averaging of predictions, offering more flexibility than previous methods.

Key Results

  • Span-Independent Algorithms: The primary result is the derivation of algorithms whose computational and memory complexity per time step is constant and independent of the prediction span. This is illustrated with an example showing memory requirements dropping from Terabytes to Megabytes for long prediction spans.
  • General Algorithm (44): The paper culminates in a single, general algorithm (Equation 44) that subsumes all previously discussed methods, including offline LMS, online TD, and various forms of bootstrapping and generalized returns.
  • Convergence Guarantees: The paper provides theoretical convergence analysis (Theorems 1 and 2) for the derived algorithms under mild conditions, showing they converge to optimal solutions.

Limitations and Future Work

  • Control Problem: The authors acknowledge that their analysis primarily focuses on prediction and not directly on the control problem (finding optimal policies). While they suggest that action values can be derived from their prediction algorithms, a full treatment of adaptable policies and off-policy learning would require further work, potentially involving importance sampling or rejection sampling.
  • Non-linear Functions: The current framework is based on linear function approximation. Extending these span-independent principles to non-linear function approximators, such as deep neural networks, is a significant area for future research.
  • Empirical Validation: While the theoretical derivations are strong, the paper does not present empirical results on specific benchmarks. Future work would involve demonstrating the practical advantages of these algorithms on real-world tasks.

Summary updated

Abstract

We consider how to learn multi-step predictions efficiently. Conventional algorithms wait until observing actual outcomes before performing the computations to update their predictions. If predictions are made at a high rate or span over a large amount of time, substantial computation can be required to store all relevant observations and to update all predictions when the outcome is finally observed. We show that the exact same predictions can be learned in a much more computationally congenial way, with uniform per-step computation that does not depend on the span of the predictions. We apply this idea to various settings of increasing generality, repeatedly adding desired properties and each time deriving an equivalent span-independent algorithm for the conventional algorithm that satisfies these desiderata. Interestingly, along the way several known algorithmic constructs emerge spontaneously from our derivations, including dutch eligibility traces, temporal difference errors, and averaging. This allows us to link these constructs one-to-one to the corresponding desiderata, unambiguously connecting the `how' to the `why'. Each step, we make sure that the derived algorithm subsumes the previous algorithms, thereby retaining their properties. Ultimately we arrive at a single general temporal-difference algorithm that is applicable to the full setting of reinforcement learning.
BibTeX
@misc{hasselt2015learning,
  author = {Hado van Hasselt and Richard S. Sutton},
  title = {{Learning to Predict Independent of Span}},
  year = {2015},
  eprint = {1508.04582},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1508.04582},
}
Figure