TL;DR
Training robots to adapt on the fly to brand-new environments usually requires messy, approximate math that destabilizes learning. This paper introduces GLiBRL, an architecture that uses neural networks to warp complex task dynamics into a clean feature space where exact Bayesian inference can be done in closed form. By ditching approximations, GLiBRL seamlessly plugs into standard reinforcement learning algorithms and achieves top aggregate zero-shot performance on tough robotic locomotion and manipulation benchmarks—often with a fraction of the training data.
What Problem Does This Paper Address?
Standard Reinforcement Learning (RL) agents are creatures of habit: change the friction of the floor or move the goalposts at test time, and their performance tanks. Bayesian Reinforcement Learning (BRL)—a branch of Meta-RL—solves this by maintaining a probabilistic "belief" over the environment's unknown transition physics and reward rules, updating that belief as the agent interacts with the world.
However, scaling BRL with deep neural networks hits a mathematical brick wall. Passing data and task parameters jointly through non-linear neural networks makes exact Bayesian updates mathematically intractable. Researchers usually fall back on variational inference, optimizing a surrogate objective called the Evidence Lower Bound (ELBO). Unfortunately, ELBO brings noisy gradient estimates and "posterior collapse," where the network ignores the task context and outputs indistinct, mushy task representations. Furthermore, summarizing interaction histories with sequence models (like RNNs or Transformers) makes the belief dependent on the order of data, breaking compatibility with sample-efficient, off-policy RL algorithms like Soft Actor-Critic (SAC) that shuffle replay buffers.
Methods
Instead of running Bayesian inference over an entire neural network, GLiBRL (Generalised Linear Models in Deep Bayesian RL with Learnable Basis Functions) splits the labor: deep neural networks handle the non-linear heavy lifting to extract features (basis functions), while the final layer models the task parameters linearly.
Here is how the pieces fit together:
- Exact Conjugate Updates: GLiBRL places a Normal-Wishart prior (or Normal-Gamma for diagonal noise) over both the task weights and the model noise, paired with a Matrix-Normal likelihood. Because these distributions are conjugate, the posterior belief after seeing new transitions and rewards can be computed analytically—no variational approximations needed. Using the matrix inversion lemma, online step-by-step updates run in fast quadratic time rather than cubic time.
- ELBO-Free Training: Because the posterior is exact, the marginal log-likelihood of the observed data has a closed-form equation. The feature-extracting neural networks are trained directly via gradient descent on this exact likelihood (plus a Frobenius norm regularizer to prevent overfitting).
- Policy Integration: To make decisions, the deterministic means of the posterior distributions are normalized, flattened, and fed alongside the current state into standard model-free RL policies—specifically SAC (off-policy) or PPO (on-policy). At test time, neural weights freeze, and adaptation happens purely via sequential Bayesian math.
Datasets
Rather than static datasets, GLiBRL is evaluated on two established interactive Meta-RL simulation suites (no new benchmarks are introduced):
- MuJoCo Locomotion:
HalfCheetahDir,AntDir, andHalfCheetahVel, where simulated multi-legged robots must infer from rewards whether to run forward/backward or hit a hidden target velocity. - MetaWorld Manipulation (V3 with V2 rewards): Specifically the ML10 and ML45 benchmarks, containing 10 and 45 training robotic arm manipulation tasks, respectively. Both evaluate zero-shot adaptation on 5 held-out test tasks where both physics transitions and reward functions are unseen.
Key Insights and Ideas
- Permutation Invariance for Free: Exact Bayesian updates naturally do not care what order you feed the observations in ($A$ then $B$ yields the exact same posterior as $B$ then $A$). This unlocks seamless integration with off-policy replay buffers (like SAC) without the shifting optimization targets or performance drops that plague sequence-model baselines.
- Inferring Noise Actually Matters: Prior "Bayesian last layer" methods (like ALPaCA) assumed model noise was fixed and known, and required known reward functions. GLiBRL proves you can infer unknowntransition and reward noises simultaneously in closed form, which actively reduces prediction errors in unseen tasks.
- Analytically Traceable Geometry: The authors prove an exact mathematical identity showing that the Euclidean distance between two GLiBRL task representations equals a kernel discrepancy (specifically, signed-measure Maximum Mean Discrepancy or Cosine Mean Similarity) over the task datasets. In plain English: tasks that behave similarly are guaranteed to sit close together in the policy's representation space.
Key Results
Evaluated in zero-shot test settings (online belief updates only; zero test-time gradient steps) against eight baselines (including PEARL, VariBAD, $\text{RL}^2$, MAML, TrMRL, AMAGO, SDVT, and ECET), GLiBRL achieves the highest aggregate test performance across both benchmarks.
- MuJoCo Sample Efficiency: Paired with SAC for just $1 \times 10^6$ steps, GLiBRL matches or beats PPO-based baselines ($\text{RL}^2$, TrMRL, VariBAD) by up to $1.5\times$ while using only 10% of their $1 \times 10^7$ step budget. It also outperforms the strong SAC-based baseline PEARL by up to $1.8\times$.
- MetaWorld Manipulation: Paired with PPO, GLiBRL achieves the highest aggregate test success rate on both ML10 ($2 \times 10^7$ steps, peaking around ~0.31 IQM success rate) and ML45 ($5 \times 10^7$ steps, reaching >0.40 IQM success rate), and secures the best mean per-task rank on ML45 (2.32).
- Crisp Task Clustering: In a 2D PCA projection of
HalfCheetahVelrepresentations after $5 \times 10^5$ steps, GLiBRL cleanly orders continuous target velocities along a smooth spectrum, whereas TrMRL remains noticeably tangled even with $10\times$ more training steps.
Limitations and Future Work
- Unused Uncertainty in the Policy: Although GLiBRL computes full posterior covariance matrices (uncertainty), the authors only feed the posterior means into the policy network. They candidly note that feeding covariances directly into the policy caused high training instability. Finding stable ways to let model-free policies exploit this uncertainty is an open challenge.
- Not Uniformly Dominant on Every Single Task: While GLiBRL wins on aggregate IQM success rate in MetaWorld ML10, MAML still edges it out slightly on mean per-task rank during training (2.25 vs. 2.50).
- Model-Based RL: Because GLiBRL already learns explicit transition and reward models, integrating it with model-based planning algorithms is a natural next step to push sample efficiency even further.
Summary updated