Sample Efficient Reinforcement Learning with Gaussian Processes

Robert C. Grande, Thomas J. Walsh, Jonathan P. HowICML 2014

This paper addresses a fundamental tension in Reinforcement Learning (RL): the trade-off between sample efficiency (learning from as few experiences as possible) and computational efficiency (acting in real-time).

TL;DR

The authors prove that Gaussian Processes (GPs) are "KWIK-learnable" (Knows What It Knows), making model-based GP-RL provably sample-efficient. They then introduce Delayed-GPQ (DGPQ), the first model-free algorithm for continuous spaces that is both provably sample-efficient (PAC-MDP) and fast enough for real-time control of complex systems like an F-16 aircraft.

The Core Problem

In RL, agents learn to make decisions by interacting with an environment. In continuous state spaces (like robotics or flight control), two main approaches exist:

  1. Model-based RL: The agent learns a model of the physics (transitions and rewards). These are "sample efficient"—they need very few trials to learn—but they are computationally "heavy" because they require solving a complex planning problem after every single new observation.
  2. Model-free RL: The agent learns the "value" of actions directly. These are computationally "light" and can run in real-time, but they often lack theoretical guarantees and can be incredibly slow to converge (requiring an exponential number of samples).

The authors aim to bridge this gap. They want an algorithm that has the theoretical "Probably Approximately Correct" (PAC-MDP) guarantees of model-based methods but the real-time performance of model-free methods.

Introducing Delayed-GPQ (DGPQ)

The paper's primary contribution is Delayed-GPQ (DGPQ). It builds on the "Delayed Q-Learning" (DQL) framework but adapts it for continuous spaces using Gaussian Processes.

Key technical components include:

  • KWIK Analysis: The authors provide the first formal proof that GPs can determine when they have enough data to make an accurate prediction within a specific tolerance.
  • Two-Tier Value Representation: DGPQ maintains two versions of the value function: a temporary GP that collects data and updates at every step, and a "safe" stored value function used for actual decision-making.
  • The "Delayed" Update & Reset: Unlike standard GP-RL, which updates a single GP indefinitely, DGPQ only updates the "safe" function when the temporary GP has "converged" to a value significantly different from the current estimate. Crucially, once an update happens, the GP is reset. This reinitializes the variance (uncertainty), preventing the "decaying learning rate" problem that plagues naive model-free GP methods.
  • Optimistic Exploration: To ensure the agent explores, it uses a Lipschitz-based "bonus" to overestimate the value of unknown regions.

Key Insights: Why Naive GPs Fail

The authors show that simply plugging a GP into a model-free algorithm (like GP-Sarsa) is mathematically doomed to be slow. Because GP variance reduces as more data is collected, the "learning rate" effectively vanishes. If the early estimates were wrong, the GP becomes too "confident" to change its mind quickly.

Action selection comparison showing DGPQ stabilizing quickly while naive GPs oscillate.

The "aha moment" is that forgetting can be a feature. By resetting the GP after a successful update to the value function, the algorithm regains its "curiosity" (high variance), allowing it to learn the next refinement of the value function much faster. By using the GP to trigger discrete updates to a stored value function, you get the same theoretical guarantees as model-based R-max without the massive computational cost of re-solving the MDP every step.

Performance and Results

The authors evaluated DGPQ on two simulated environments: a 2D continuous navigation task and a high-fidelity, 5-dimensional F-16 Aircraft Simulator.

  • Theoretical Proof: The paper proves that GP-Rmax (model-based) and DGPQ (model-free) are both PAC-MDP, meaning they will find a near-optimal policy using a polynomial number of samples.
  • Computational Speedup: In the 2D domain, DGPQ took 0.003s per step, while C-PACE (a state-of-the-art PAC-MDP competitor) took over 10s.
Comparison of C-PACE and DGPQ on steps to goal and CPU time per step.
  • Real-time Flight Control: In the 5D F-16 simulation, DGPQ maintained a 20Hz command frequency (approx. 0.04s per step). In contrast, C-PACE took over 60s per step, making it useless for actual flight control.
  • Sample Efficiency: DGPQ learned to stabilize the unstable F-16 in fewer than 100 episodes for certain configurations, demonstrating high sample efficiency in a high-dimensional space.

Limitations and Future Work

  • The Curse of Dimensionality: While DGPQ is efficient, its complexity still scales with the "covering number" of the state space. As the number of dimensions or the Lipschitz constant increases, the number of required samples grows significantly.
  • Hyperparameter Sensitivity: The algorithm relies on a Lipschitz constant ($L_Q$) and a precision threshold ($\epsilon_1$). Choosing these correctly is vital for performance, but the paper does not provide an automated way to tune them.
  • Kernel Dependency: The proofs and performance are tied to the choice of the GP kernel (e.g., RBF). Exploring how different kernels affect the "KWIK" bounds in practice remains an open area.

Summary updated

BibTeX
@inproceedings{grande2014sample,
  author = {Robert C. Grande and Thomas J. Walsh and Jonathan P. How},
  title = {{Sample Efficient Reinforcement Learning with Gaussian Processes}},
  booktitle = {International Conference on Machine Learning},
  year = {2014},
}
Figure