Kernel-Based Reinforcement Learning on Representative States

Branislav Kveton, Georgios TheocharousAAAI 2012

Abstract

Markov decision processes (MDPs) are an established framework for solving sequential decision-making problems under uncertainty. In this work, we propose a new method for batch-mode reinforcement learning (RL) with continuous state variables. The method is an approximation to kernel-based RL on a set of $k$ representative states. Similarly to kernel-based RL, our solution is a fixed point of a kernelized Bellman operator and can approximate the optimal solution to an arbitrary level of granularity. Unlike standard kernel-based RL, which has a computational complexity of $\omega(n^2)$, our method is fast, with policies computed in $O(n)$ time. We evaluate the method on classic control problems and a new 64-variable image navigation task, outperforming state-of-the-art results with simpler solutions.

Scaling Kernel-Based Reinforcement Learning

Reinforcement learning in continuous state spaces is notoriously difficult. While MDPs provide a solid framework, solving them exactly is impossible when states are continuous. Kernel-Based Reinforcement Learning (KBRL) is a popular non-parametric approach because it doesn't require a predefined model or a specific functional form for the value function.

However, KBRL has a massive bottleneck: its computational complexity scales quadratically with the number of training samples ($n$). As more data is collected to improve the policy, the algorithm becomes exponentially slower, making it impractical for large-scale or real-time applications. This research bridges the gap between the theoretical elegance of kernel methods and the practical need for speed by introducing a highly efficient approximation.

The Representative State Algorithm

The proposed method approximates KBRL on a set of $k$ representative states through a four-step process:

  1. State Space Quantization: Instead of treating every sample as a potential kernel center, a cover tree is used to select $k$ representative states ($Z$). This ensures the state space is "covered" such that no data point is further than a certain distance ($d_{max}$) from a representative state.
  2. Mapping: Every sampled transition $(x_t, a_t, r_t, x'_t)$ from the simulator is mapped to its nearest representative states in $Z$.
  3. Model Building: A simplified transition and reward model is constructed specifically for these $k$ states, summarizing the dynamics of the entire dataset into a much smaller $k \times k$ matrix.
  4. Policy Iteration: This summarized MDP is solved using standard policy iteration.

State Space Quantization with Cover Trees

Unlike previous methods that used $k$-means or random sampling, the use of cover trees allows for a uniform covering of the state space. Cover trees are superior for RL because they minimize the maximum distance to a representative state (the "cover error"). In contrast, $k$-means focuses on average distance, which often leaves "holes" in sparsely sampled regions—regions that are often critical for learning robust policies.

Evolution of state space coverage and value function resolution across cover tree levels 4 and 5.

Furthermore, the cover tree structure provides a natural way to automatically set the "heat parameter" ($\sigma$) of the Gaussian kernel based on the depth of the tree, removing the need for tedious manual tuning. As shown in the figure above, increasing the tree level leads to a denser set of representative states and a significantly more refined value function approximation.

Experimental Evaluation

The method was evaluated on three distinct problems:

  • Mountain Car: A classic 2D control benchmark. The algorithm reached the goal in just 69 steps, outperforming previous state-of-the-art kernel methods.
  • Acrobot: A complex 4D control problem involving a two-link underactuated robot.
  • Favorite Images: A high-dimensional synthetic problem using the CIFAR-10 dataset. States are represented by 64-dimensional features. The agent must learn to navigate through images to find categories the "user" likes (e.g., airplanes). On this task, the proposed method achieved a 150% higher reward than a greedy baseline and outperformed Fitted Q-Iteration (FQI) with CART by 12%.

Conclusion

By fixing the number of representative states $k$, the algorithm's complexity becomes $O(n)$, allowing it to solve problems with nearly 200,000 training samples in less than 3 minutes. This approach maintains the stability and convergence guarantees of kernel methods while offering the scalability required for modern, high-dimensional RL tasks. Future work includes integrating intelligent exploration strategies and extending the framework to Partially Observable MDPs (POMDPs).

Summary updated

BibTeX
@inproceedings{kveton2012kernel,
  author = {Branislav Kveton and Georgios Theocharous},
  title = {{Kernel-Based Reinforcement Learning on Representative States}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2012},
  url = {https://openreview.net/forum?id=H1ZNnTeu-S},
}
Figure