TL;DR
This paper establishes the first sublinear (no-regret) theoretical guarantees for Thompson Sampling in continuous-state reinforcement learning by modeling rewards and transitions jointly using a multi-output Gaussian Process (GP). The authors overcome the long-standing challenge of analyzing recursive, non-Gaussian value functions to prove a regret bound of $\tilde{\mathcal{O}}(\sqrt{KH\Gamma(KH)})$. This work bridges a critical gap between the empirical popularity of posterior sampling in RL and its theoretical foundations.
What Problem Does This Paper Address?
Thompson Sampling (TS) is a classic, elegant framework for balancing exploration and exploitation: sample a model from your current posterior distribution, act optimally according to that sample, and repeat. While TS enjoys strong theoretical backing in simple bandit settings, proving its efficacy in Reinforcement Learning (RL) has been notoriously difficult—especially for continuous state spaces.
The core challenge lies in the recursive nature of RL. An agent's value function is built by composing reward and transition dynamics over time via Bellman updates. Even if you place a clean Gaussian Process prior over the environment's dynamics, passing those dynamics through a recursive optimization step makes the resulting value function highly non-Gaussian. Tracking and bounding this uncertainty as it propagates across a multi-step horizon has remained an open mathematical challenge, forcing prior work to rely on restrictive assumptions like discrete states or strict linearity.
Methods
The authors introduce RL-GPS (Reinforcement Learning with GP Sampling). At the start of each episode, the agent samples a realization of both the reward and transition functions from a joint multi-output GP posterior and computes the optimal policy via backward induction.
To prove that this strategy achieves "no-regret" (meaning the agent asymptotically matches the optimal policy), the authors developed three novel mathematical tools:
- Confidence Bounds for Composed GPs (Theorem 1): Using a Taylor expansion, they bound the deviation of a function composed with a GP, controlling how error accumulates through recursive Bellman updates based only on mild smoothness assumptions (bounded gradients and Hessians).
- Multi-Output Elliptical Potential Lemma (Lemma 1): Classical GP theory uses an elliptical potential lemma to bound cumulative uncertainty for scalar outputs. The authors extend this to vector-valued outputs, allowing the analysis to exploit correlations between different state dimensions rather than treating them independently.
- Delayed-Update Lemma (Lemma 2): Because RL agents typically update their models at the end of an episode rather than at every single timestep, the authors adapted batch-observation GP techniques to handle this delayed feedback loop without degrading the horizon dependency.
Datasets
The paper focuses on theoretical verification and evaluates the algorithm using controlled synthetic environments designed to match their structural assumptions:
- GP-Sampled MDPs: Continuous state and action spaces where the true underlying reward and transition dynamics are directly sampled from GP priors.
- Sparse Navigation Tasks: A 2D continuous grid where an agent must navigate to a destination, receiving a sparse reward (+1 when close to the goal, -0.01 otherwise).
- Sparse Maze Problems: A more complex variant of the navigation task where the agent's movement is constrained by walls, making exploration significantly harder.
Note: For computational tractability during value iteration, continuous spaces were discretized into 25 equally sized bins per dimension.
Key Insights and Ideas
- Smoothness is Enough: You don't need the value function itself to be a Gaussian Process to bound its uncertainty. As long as the value function is twice-differentiable with bounded derivatives, you can rigorously control error propagation.
- Exploiting Correlations Pays Off: Modeling rewards and transitions jointly using a Linear Model of Coregionalization (LMC) drastically improves sample efficiency. By capturing cross-output dependencies, the agent learns the environment structure much faster than if it modeled each state dimension independently.
- The Kernel Double-Edge: Smoother kernels like the Radial Basis Function (RBF) yield faster theoretical regret decay ($\tilde{\mathcal{O}}(\sqrt{T})$). However, in rough or sparse environments (like the maze), RBF suffers from model misspecification, allowing rougher Matérn kernels to adapt faster and achieve lower empirical regret.
Key Results
- Theoretical Bound: The authors proved a generic cumulative regret bound of $\tilde{\mathcal{O}}(\sqrt{KH\Gamma(KH)})$ over $K$ episodes of horizon $H$. For an RBF kernel, this translates to a clean $\tilde{\mathcal{O}}(\sqrt{T})$ bound, while for a Matérn kernel with smoothness $\nu > 1$, it scales as $\tilde{\mathcal{O}}(T^{\frac{\nu+d}{2\nu+d}})$.
- Empirical Validation: Across 200 randomized trials, RL-GPS demonstrated clear sublinear regret growth. Notably, in the sparse maze task, the Matérn 1.5 kernel utilizing joint LMC modeling significantly outperformed independent GP modeling, validating the benefit of their multi-output formulation.
Limitations and Future Work
- Strict Smoothness Assumptions: The proof relies on the value functions being twice differentiable with bounded gradients and Hessians. This excludes environments with sharp discontinuities, such as hard physical collisions or step-change reward boundaries.
- Computational Scalability: Exact value iteration on the sampled GP models requires discretization, which suffers from the curse of dimensionality. Scaling this approach to high-dimensional control tasks will require pairing it with approximate value function methods (like deep neural networks).
- Horizon Extensions: This work is strictly tailored to finite-horizon episodic settings. Extending these recursive GP bounds to infinite-horizon or average-reward settings remains an open avenue for future research.
Summary updated