Bellman Error Based Feature Generation using Random Projections on Sparse Spaces

Mahdi Milani Fard, Yuri Grinberg, Amir-massoud Farahmand, Joelle Pineau, Doina Precup

Introduction

In Reinforcement Learning (RL), "policy evaluation"—determining the value of being in a certain state—is a fundamental hurdle. For complex, real-world problems, we cannot store every possible state in memory. Instead, we use function approximators (like linear models or neural networks) that rely on features to generalize across states.

Historically, these features were hand-crafted using techniques like tile coding. While automatic feature discovery methods exist—such as Bellman Error Basis Functions (BEBFs), which iteratively add features pointing in the direction of the current "error" in the value function—they often break down in high-dimensional spaces (e.g., $10^5$ to $10^6$ dimensions). In these "big data" regimes, standard regression either overfits or becomes computationally prohibitive.

This paper introduces CBEBF (Compressed Bellman Error Based Feature Generation), an algorithm that automatically discovers useful features for RL in massive, sparse state spaces. By combining the theoretical power of BEBFs with the computational efficiency of random projections, the authors prove that you can achieve error contraction using a compressed space that scales only logarithmically with the original dimension.

The CBEBF Methodology

The authors propose the Compressed Bellman Error Based Feature Generation (CBEBF) algorithm to tackle the curse of dimensionality in feature discovery. The core workflow operates as follows:

  1. Random Projection: Instead of working in the original $D$-dimensional space, the state features are projected into a much smaller $d$-dimensional space using a random Gaussian matrix.
  2. Compressed Regression: The algorithm calculates the Temporal Difference (TD) error (a proxy for the Bellman error) and performs Ordinary Least Squares (OLS) regression in the compressed space to find a weight vector that predicts this error.
  3. Feature Expansion: This weight vector is implicitly projected back to create a new basis function, which is then added to the value function approximator.
  4. Iteration: The process repeats, gradually increasing the complexity of the hypothesis space.

The paper also introduces a Simplified CBEBF (SCBEBF). SCBEBF treats the process as a form of regularized value iteration, adding new features with a constant weight of 1 to significantly reduce computational overhead.

Experimental Setup

The algorithm was evaluated using a high-fidelity autonomous helicopter simulator. The specific task was to evaluate a policy for a helicopter operating in a "hover" regime. To test the algorithm's robustness, the original 12 continuous features were expanded using tile-coding into a massive 65,536-dimensional sparse feature space. This setup serves as a rigorous benchmark for how the algorithm handles high-dimensional inputs where the "true" underlying representation is unknown.

Key Results

Performance vs. Regularization

In the helicopter domain, SCBEBF achieved prediction errors—measured in Normalized Root Prediction Error (NRPE)—that were highly competitive with $L^2$-regularized LSTD (Least Squares Temporal Difference). Furthermore, it significantly outperformed $L^1$-regularized methods (like LARS-TD) in both accuracy and computation time.

Prediction error (NRPE) comparison across different sample sizes.

Computational Efficiency

The most striking advantage of SCBEBF is its scalability. As the number of non-zero features in the state representation increased, the runtime for $L^2$-LSTD grew quadratically, quickly becoming prohibitive. In contrast, SCBEBF's runtime grew linearly and at a much slower rate. This is because the heavy lifting (the regression step) happens entirely within the small, compressed space.

CPU time vs. number of non-zero features.

Key Insights and Theoretical Contributions

  • Logarithmic Scaling: The most significant theoretical contribution is proving that the projection size $d$ only needs to be $O(k \log D)$ (where $k$ is the sparsity and $D$ is the original dimension) to guarantee that the error continues to shrink. This is a massive win for scalability.
  • The Bias-Variance Trade-off: Random projections introduce a controlled bias because some information is lost during compression. However, they drastically reduce the variance of the regression. In high dimensions, this trade-off is almost always worth it to prevent overfitting.
  • Agnostic Discovery: Because the projections are random and "agnostic," the method requires very little domain knowledge to generate effective features.
  • Robustness: The algorithm demonstrated that using a "gradual decreasing schedule" for projection sizes provides fast convergence while minimizing the risk of late-stage overfitting.

Limitations and Future Work

While powerful, the approach has limitations. The theoretical analysis assumes the Bellman error is linearly representable in the original high-dimensional space. While often true in discretized spaces, it might not hold for all complex environments. Additionally, while the paper suggests that a decreasing schedule for the projection size $d$ works well, finding the optimal schedule and the ideal number of iterations remains an open research question. Future work could involve using cross-validation to automate parameter selection, further reducing the need for human tuning.

Summary updated

BibTeX
@inproceedings{fard2013bellman,
  author = {Mahdi Milani Fard and Yuri Grinberg and Amir-massoud Farahmand and Joelle Pineau and Doina Precup},
  title = {{Bellman Error Based Feature Generation using Random Projections on Sparse Spaces}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2013},
  url = {https://openreview.net/forum?id=By-a-O-O-S},
}
Figure