Feature Selection for Value Function Approximation Using Bayesian Model Selection

Tobias Jung, Peter Stone

Introduction

In Reinforcement Learning (RL), the ability of an agent to learn an optimal policy is fundamentally constrained by its representation of the environment. Most RL algorithms rely on value function approximation—mapping states to their expected cumulative rewards. Traditionally, this mapping requires researchers to manually design "basis functions" or features. This manual selection is often described as a "dark art," requiring significant domain expertise and iterative trial-and-error. If the feature set is too sparse, the agent fails to capture the nuances of the task; if it is too dense, the model suffers from overfitting and prohibitive computational costs.

This paper presents a principled approach to automate this process by integrating Bayesian model selection into the Gaussian Process Temporal Difference (GPTD) framework. By treating feature selection as a model selection problem, the authors enable agents to autonomously identify relevant state variables and ignore noise, leading to superior generalization and enhanced computational efficiency.

The GPTD Framework and Bayesian Optimization

The authors build upon the Gaussian Process Temporal Difference (GPTD) framework. GPTD models the unknown value function as a Gaussian Process (GP), which offers a non-parametric way to represent uncertainty alongside value estimates. The core innovation of this work lies in how the GP's hyperparameters—the parameters governing the shape and behavior of the kernel—are determined.

Marginal Likelihood Optimization

Rather than hand-tuning kernel parameters, the authors utilize a Bayesian approach to maximize the marginal likelihood. This mathematical objective function naturally incorporates a "complexity penalty," effectively acting as an automated Occam’s Razor. It seeks the simplest model that sufficiently explains the observed state transitions and rewards, preventing the agent from adopting overly complex, "wiggly" models that do not generalize well to unseen states.

Automatic Relevance Determination (ARD)

To handle high-dimensional state spaces where many variables may be irrelevant, the authors derive gradients for an Automatic Relevance Determination (ARD) kernel. This kernel assigns a distinct "lengthscale" to every dimension of the state vector. During the optimization of the marginal likelihood, the system identifies dimensions that do not contribute to predicting rewards. The optimization process effectively "turns off" these irrelevant dimensions by setting their influence to near zero, thereby performing automated feature selection.

Factor Analysis Kernels

Beyond simple variable selection, the paper introduces a Factor Analysis kernel. This variant identifies relevant directions—linear combinations of variables—rather than just individual dimensions. This allows the agent to discover low-dimensional manifolds within high-dimensional data, capturing the underlying structure of the environment's dynamics more effectively than standard isotropic kernels.

Computational Efficiency and Sparsification

One primary drawback of Gaussian Processes is their $O(n^3)$ computational complexity relative to the number of data points. To make this approach viable for RL, the authors employ a "Subset of Regressors" strategy combined with Incomplete Cholesky Decomposition (ICD). By identifying the most informative data points and dimensions, the model can represent the value function with a sparse set of basis elements, significantly reducing the memory and processing requirements without sacrificing accuracy.

Experimental Evaluation

Pendulum Swing-up Task

The method was tested on the classic Pendulum Swing-up benchmark, a nonlinear control problem. The results demonstrated that the Factor Analysis kernel significantly outperformed standard approaches. In terms of generalization, the Factor Analysis kernel achieved a Mean Squared Error (MSE) of 12.24 on a test grid, whereas a standard isotropic kernel resulted in a much higher MSE of 46.36. Furthermore, the optimized model required only approximately 80 basis elements to represent the value function, compared to the 175 elements required by the unoptimized model to reach the same level of precision.

2D Gridworld with Latent Dimensions

To test the ARD kernel's ability to filter noise, the authors designed an $11 \times 11$ gridworld where only one dimension ($x$) was relevant to the task, while the second ($y$) was purely decorative. The ARD kernel successfully identified the irrelevance of the $y$-axis, assigning it a weight of $10^{-5}$, effectively eliminating it from the model's decision-making process.

Conclusion

By framing feature selection as a Bayesian model selection problem, this research provides a robust solution to the challenge of representation learning in RL. The approach not only improves the accuracy and generalization of value function approximation but also yields significant computational savings through automated sparsification. While the authors note that the non-convex nature of the optimization lacks certain formal theoretical guarantees, the practical implications for high-dimensional robotic control and automated agent design are substantial. Future work aims to extend these techniques from policy evaluation to full policy improvement (Q-learning) and real-world robotic applications.

Summary updated

BibTeX
@inproceedings{jung2009feature,
  author = {Tobias Jung and Peter Stone},
  title = {{Feature Selection for Value Function Approximation Using Bayesian Model Selection}},
  booktitle = {ECML/PKDD},
  year = {2009},
  doi = {10.1007/978-3-642-04180-8\_60},
}
Figure