Incremental Basis Construction from Temporal Difference Error

Yi Sun, Faustino J. Gomez, Mark B. Ring, Jürgen SchmidhuberICML 2011

Introduction

In Reinforcement Learning (RL), agents often need to estimate a "value function" to determine how much reward they can expect from a given state. Because real-world state spaces are massive, tracking every single state individually (the tabular approach) is impossible. Instead, researchers use Linear Function Approximators (LFAs), which approximate the value function as a weighted sum of fixed "basis functions" (features).

While optimizing the weights for a given set of features is a well-understood problem, basis discovery—finding the right features to begin with—remains a major challenge. Researchers from IDSIA have developed a novel way to automatically discover these basis functions. Instead of adding a long sequence of features to slowly chip away at approximation error, they demonstrate that there is a single "ideal" basis function that can theoretically reduce error to zero in one step: the Value Function of the Bellman Error (V-BEBF).

The Challenge with Existing Methods

Existing methods, such as Bellman Error Basis Functions (BEBFs), add the current error directly as a new feature. However, this is inefficient. You often need a vast number of these features to achieve a good result, especially when the agent is looking far into the future (i.e., when the discount factor, $\gamma$, is high). Standard BEBFs perform poorly when $\gamma$ is close to 1 because their improvement is limited by a factor of $\gamma^2$.

The V-BEBF Solution

The authors introduce Incremental Basis Projection with V-BEBF (IBP-V). The core logic relies on a clever "nested" learning approach:

  1. Primary Learner: Estimates the value function using its current set of basis functions and generates a Temporal Difference (TD) error.
  2. Secondary Learner: Takes that TD error and treats it as a reward function for a secondary RL problem within the same environment.
  3. The "Ideal" Basis: The value function calculated by the secondary learner becomes the new basis function for the primary learner.

The paper proves that if you could calculate this secondary value function perfectly, adding it as a single feature would reduce the primary learner's error to zero immediately. Furthermore, the V-BEBF is naturally orthogonal to the existing basis functions. Adding it doesn't require the agent to "re-learn" or adjust the weights of the features it already has; it simply fills in the missing information.

The authors provide two implementations:

  • Batch IBP-V: Uses Least-Squares Temporal Difference (LSTD) for stable, offline learning.
  • Online IBP-V: A more computationally efficient version that works on-the-fly using standard TD or TDC updates.

Experimental Results

The authors evaluated their approach using randomly generated Markov Chains (500 states, branching factor of 5) with "raw" binary basis functions. They compared IBP-V against standard BEBFs (IBP-B), random feature projections (RFP), and baseline TD learning.

Superior Efficiency and High Discount Performance

In batch experiments, IBP-V reduced error significantly faster than both random projections and standard BEBFs. This difference becomes stark at high discount factors.

Error reduction vs. number of refined basis functions

As shown above, when $\gamma = 0.999$, standard BEBFs (green line) require many iterations to improve, while IBP-V (red line) continues to drive the error down effectively with far fewer basis functions. Even when the secondary learner only had access to a small subset of "raw" features to approximate the ideal V-BEBF, the resulting "refined" basis function was still far more powerful than using the raw features directly.

Error reduction over time-steps

When evaluated over time-steps in an online setting, IBP-V maintains its advantage. The periodic addition of new basis functions results in distinct "staircase" drops in error, rapidly outperforming baseline TD and standard BEBF methods, particularly in the challenging $\gamma = 0.999$ regime.

Limitations and Future Work

While highly effective, the V-BEBF approach has practical limitations:

  • Approximation Errors: In the real world, you cannot compute the exact V-BEBF because the full transition matrix is unknown. Approximating it introduces error from the choice of raw features, unconverged weights, and finite sample noise.
  • Computational Overhead: IBP-V is highly "feature-efficient," but running a secondary learner adds computational complexity per step.
  • Scaling to Non-Linearity: The current work focuses on linear architectures. Extending this "value function of the error" concept to non-linear architectures, such as deep neural networks, represents a highly promising direction for future research.

Summary updated

BibTeX
@inproceedings{sun2011incremental,
  author = {Yi Sun and Faustino J. Gomez and Mark B. Ring and Jürgen Schmidhuber},
  title = {{Incremental Basis Construction from Temporal Difference Error}},
  booktitle = {International Conference on Machine Learning},
  year = {2011},
  url = {https://openreview.net/forum?id=Hk-19ob_-B},
}
Figure