Abstract
Reinforcement learning (RL) in continuous state spaces requires a delicate balance between exploring new strategies and exploiting known ones. This paper introduces Linear Bayesian Reinforcement Learning (LBRL), a framework that utilizes multivariate linear regression to model environment dynamics and Thompson sampling for principled exploration. By capturing correlations between state features and sampling full models from the posterior, LBRL achieves significantly more stable and data-efficient learning compared to standard methods like Least-Squares Policy Iteration (LSPI).
Introduction
Reinforcement Learning agents must navigate the "exploration-exploitation" trade-off: should they stick to what they know works, or try something new to find a better strategy? In continuous state spaces, this is particularly difficult. Many existing Bayesian RL methods rely on Gaussian Processes (GPs), which are computationally heavy and often model each state dimension independently, ignoring crucial correlations between variables like position and velocity. Conversely, popular non-Bayesian methods like LSPI can be unstable and rely on ad-hoc exploration heuristics that do not scale well. LBRL seeks a middle ground: a method that is computationally efficient, captures feature correlations, and explores in a principled, Bayesian way.
Methodology
The core of LBRL is a multivariate Bayesian linear-Gaussian model.
Dynamics Modeling
The agent assumes the next state is a linear function of the current state (transformed by a basis function) plus Gaussian noise. Crucially, it uses a Matrix-Normal Inverse-Wishart (MNIW) prior. This allows the agent to learn the correlations between different state dimensions in closed form, maintaining a distribution over both the linear weights and the noise covariance. This joint distribution is conjugate to the likelihood, enabling efficient updates as new data is observed.
Thompson Sampling for Exploration
Instead of acting based on the "average" or "most likely" model, LBRL employs Thompson sampling. At the start of an episode, the agent draws a single sample model from its current posterior distribution. It treats this sampled model as the "truth" for the entire episode, which forces the agent to commit to a "possible reality" and leads to more purposeful exploration than point-wise heuristics like $\epsilon$-greedy.
Policy Optimization
Once a model is sampled, the agent uses Approximate Dynamic Programming (ADP)—specifically Least-Squares Temporal Differences (LSTD) or Fitted Value Iteration (FVI)—to find the best policy for that specific model. This policy is executed in the real environment, and the resulting data is used to update the Bayesian posterior, making the agent "greedier" as its certainty increases.
Experimental Results
The authors evaluated LBRL on two classic RL benchmarks: the Inverted Pendulum (balancing a pole) and the Mountain Car (gaining momentum to reach a hilltop).
Offline Stability and Performance
In offline settings, LBRL demonstrated superior stability and convergence. While both LBRL and LSPI eventually find good policies, LSPI often exhibits high variance across different training runs, whereas LBRL variants converge more reliably.
Online Performance
In online settings, the advantages of LBRL's principled exploration are even more pronounced. In the Inverted Pendulum domain, LBRL-LSTD reached optimal performance (3,000 steps) within roughly 80 episodes. In contrast, the online version of LSPI struggled to converge even after hundreds of episodes and maintained significantly higher variance.
Discussion and Future Work
LBRL's success highlights the importance of modeling feature correlations and using consistent exploration strategies like Thompson sampling. By committing to a sampled model for an entire episode, the agent avoids the "dithering" behavior common in simpler exploration methods.
However, like all linear methods, LBRL's performance depends on the choice of basis functions. If the environment dynamics are highly non-linear and the basis is poor, the model may fail to generalize. Future work could involve moving toward non-parametric models, such as multivariate GPs, while maintaining the computational efficiency and correlation-tracking benefits demonstrated in this framework.
Summary updated