Practical Kernel-Based Reinforcement Learning.

André da Motta Salles Barreto, Doina Precup, Joelle PineauJMLR 2014

TL;DR

This paper introduces Kernel-Based Stochastic Factorization (KBSF), a novel algorithm that makes theoretically sound but computationally expensive Kernel-Based Reinforcement Learning (KBRL) practical for large-scale and online problems. KBSF achieves this by compressing KBRL's growing model into a fixed-size representation, offering linear computational complexity and constant memory usage with respect to the number of data samples.

What Problem Does This Paper Address?

Reinforcement Learning (RL) aims to train agents to make optimal decisions through interaction with an environment. Kernel-Based Reinforcement Learning (KBRL) offers strong theoretical guarantees, ensuring convergence to a unique and statistically consistent solution. However, KBRL's core limitation is its computational cost: its internal model grows with the number of observed data transitions. This makes it impractical for large-scale or real-time (online) applications where data can be abundant. The paper addresses this gap by proposing KBSF, an algorithm that retains KBRL's theoretical benefits while drastically reducing computational demands.

Methods

The core innovation of KBSF lies in the "stochastic-factorization trick." This technique leverages the idea that a transition probability matrix can be represented as a product of two smaller stochastic matrices. By swapping these factors, a new, potentially much smaller, transition matrix is obtained that preserves key topological properties of the original. KBSF applies this to compress KBRL's model into a fixed-size representation, effectively decoupling the model's complexity from the amount of data. This allows for:

  • Batch KBSF: A version that constructs a reduced-size MDP from sample transitions, enabling efficient policy computation.
  • Incremental KBSF (iKBSF): A fully online version that updates the model and value function incrementally, requiring constant memory and making it suitable for continuous learning scenarios.

Datasets

The paper evaluates KBSF on several benchmark tasks:

  • Puddle World: A standard two-dimensional RL problem.
  • Pole Balancing (Single, Double, Triple): Classic control tasks with increasing difficulty.
  • HIV Drug Schedule Domain: A medical problem based on real-world data.
  • Epilepsy Suppression: A neuro-stimulation policy learning task.
  • Helicopter Hovering: A challenging control task using real flight data.

The experiments utilize sample transitions collected via random exploration policies or pre-defined strategies, as described in the respective sections.

Key Insights and Ideas

  • Stochastic Factorization as Compression: The core insight is that by factorizing transition matrices, we can create a smaller, equivalent representation that captures essential dynamics. This is akin to dimensionality reduction for the state-action space.
  • Decoupling Model Size from Data Size: KBSF's fixed-size model is a game-changer. It means that even with vast amounts of data, the computational burden doesn't explode, unlike in standard KBRL.
  • Theoretical Guarantees Remain: The paper proves that KBSF's approximation error is bounded and can be made arbitrarily small by adjusting parameters, ensuring it theoretically converges to KBRL's solution.
  • Practicality for Online Learning: The incremental version (iKBSF) is particularly significant, enabling continuous learning without storing all past data, a crucial feature for real-world robotic and control applications.

Key Results

  • Performance: KBSF achieved comparable or superior performance to state-of-the-art algorithms (LSPI, Fitted Q-Iteration, SARSA) on various challenging tasks, including some previously unsolved.
  • Computational Efficiency: KBSF demonstrated significant speedups. For instance, in the HIV drug schedule task, KBSF(10000) was 15-20 times faster than FQIT. In the triple pole-balancing task, iKBSF processed 10^7 samples in under 20 minutes, while FQIT(1000) took over an hour for 10 times less data.
  • Memory Efficiency: iKBSF achieved constant memory usage, independent of the number of sample transitions, a stark contrast to KBRL's memory requirements that grow with data. For example, iKBSF used less than 0.03 GB of memory for the triple pole-balancing task, where KBRL would have required approximately 2 GB.
  • Theoretical Soundness: Upper bounds were derived for the difference between KBSF and KBRL value functions, showing that the approximation error can be controlled.

Limitations and Future Work

  • Representative State Selection: The performance of KBSF is sensitive to the choice of representative states. While k-means clustering is used, more principled methods for selecting these states are suggested as a direction for future research.
  • Kernel Parameter Tuning: Defining optimal kernel widths (τ and τ) can be challenging and problem-dependent. The paper offers some practical advice but acknowledges that this remains an area for further investigation.
  • Automated Parameter Selection: The authors suggest exploring automated procedures for setting kernel widths and potentially even selecting representative states.
  • Model Averaging: While KBSF's low computational cost makes it amenable to model averaging, the paper notes that the specific strategy used was basic and could be further improved.
  • Exploration Strategies: More sophisticated exploration strategies, building on existing research, could further enhance KBSF's performance.
  • Theoretical Guarantees for Non-Uniform Sampling: While empirical results suggest KBSF is robust to non-uniform data sampling, more theoretical analysis is needed to generalize these findings.

Summary updated

BibTeX
@misc{barreto2014practical,
  author = {André da Motta Salles Barreto and Doina Precup and Joelle Pineau},
  title = {{Practical Kernel-Based Reinforcement Learning.}},
  year = {2014},
  eprint = {1407.5358},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1407.5358},
}
Figure