Introduction
Standard Reinforcement Learning (RL) agents often struggle with generalization; for instance, a robot trained to open a specific door may fail if the handle height or spring tension is altered. Bayesian Reinforcement Learning (BRL) addresses this by treating task-specific properties as latent variables to be inferred from experience. However, scaling BRL to complex environments using deep learning is challenging. Current "Deep BRL" methods typically optimize the Evidence Lower Bound (ELBO), which is notoriously unstable and prone to high-variance gradients and "posterior collapse," where the model fails to learn distinct task representations.
The GLiBRL Framework
We introduce GLiBRL (Generalised Linear Models in Deep Bayesian RL with Learnable Basis Functions), a method that balances the expressive power of deep learning with the mathematical tractability of classical statistics. GLiBRL utilizes a neural network to transform raw states and actions into a set of features, or "basis functions." It then assumes a linear relationship between these learned features and task parameters.
By employing Normal-Wishart conjugate priors, GLiBRL enables exact, closed-form equations for calculating the posterior distribution and marginal likelihood. This allows for ELBO-free optimization, where model parameters are optimized directly via gradient descent on the tractable marginal likelihood. Additionally, GLiBRL performs inference on model noise, allowing it to better handle varying environmental predictability compared to previous linear-Bayesian approaches.
Experimental Results
GLiBRL was evaluated on the MetaWorld benchmark (V3), specifically the ML10 and ML45 subsets, which test an agent's ability to adapt to new robotic manipulation tasks with minimal data.
On the challenging ML45 benchmark, GLiBRL achieved a 0.45 success rate, significantly outperforming VariBAD (0.38), MAML (0.20), and RL$^2$ (0.23). In the simpler ML10 benchmark, GLiBRL improved the success rate of VariBAD by 2.7x. Beyond raw performance, GLiBRL demonstrated much lower variance across different random seeds compared to meta-RL baselines like MAML, which are often highly sensitive to initialization.
Key Insights and Discussion
- Stability through Tractability: By avoiding variational inference, GLiBRL avoids the "posterior collapse" seen in methods like VariBAD. While VariBAD’s task representations often converge to a single point, GLiBRL maintains distinct, meaningful distributions.
- Permutation Invariance: Unlike Recurrent Neural Network (RNN) based summaries, GLiBRL’s Bayesian update rule is naturally invariant to the order of transitions, leading to a cleaner learning signal.
- Computational Efficiency: The use of the Matrix Inversion Lemma reduces the complexity of online belief updates from $O(D^3)$ to $O(D^2)$, where $D$ is the feature dimension. With only ~200k parameters, the model is suitable for deployment on low-power mobile robots.
Limitations and Future Work
While updates are efficient, sampling from learned Wishart distributions can be computationally expensive for certain model-based planning algorithms. Future research could investigate feeding the full task covariance (uncertainty) into the policy network, rather than just the mean. Additionally, integrating GLiBRL into a fully model-based framework that plans using learned dynamics is a promising direction for further improving sample efficiency.
Summary updated