Bayes-Adaptive Deep Model-Based Policy Optimisation

Tai Hoang, Ngo Anh VienarXiv 2020

Abstract

Model-based reinforcement learning (MBRL) is theoretically more sample-efficient than model-free methods, yet it frequently fails due to model exploitation, where agents capitalize on inaccuracies in the learned dynamics. We introduce RoMBRL (Robust Bayesian Model-Based Reinforcement Learning), a framework that treats model uncertainty as a fundamental component of the decision-making process. By utilizing Bayesian Neural Networks (BNNs) for dynamics modeling and recurrent policies for implicit belief planning within a Bayes-Adaptive MDP framework, RoMBRL achieves significant gains in sample efficiency and robustness. Experimental results on MuJoCo locomotion tasks demonstrate that RoMBRL outperforms state-of-the-art ensemble-based methods, often requiring 5x fewer samples to reach comparable performance.

Introduction

Reinforcement Learning (RL) typically follows two paradigms: model-free learning, which relies on extensive trial and error, and model-based learning, which builds a predictive "world model" to simulate experiences. While model-based RL is significantly more sample-efficient, it is prone to "model exploitation." In this scenario, the agent's policy identifies and exploits slight inaccuracies in the learned model to achieve high rewards in simulation that do not translate to the real environment.

Standard approaches attempt to mitigate this using ensembles of models to represent uncertainty. However, these ensembles often suffer from "model collapse," where individual models converge to the same incorrect prediction, leading to a failure in capturing true epistemic uncertainty.

Methodology: RoMBRL

To address these challenges, we propose RoMBRL (Robust Bayesian Model-Based Reinforcement Learning). The framework integrates several key components to handle uncertainty robustly:

  1. Bayesian Neural Networks (BNNs): Instead of point estimates or simple ensembles, the world model is represented as a posterior distribution over weights. We employ Stochastic Gradient Hamiltonian Monte Carlo (SGHMC) to sample diverse, high-quality models, ensuring a more faithful representation of uncertainty in regions with sparse data.
Comparison of uncertainty estimation between Model Ensembles (ME) and Bayesian Neural Networks (BNNs).
  1. Bayes-Adaptive MDP (BAMDP): We reformulate the RL problem such that the agent’s state includes its current belief about the environment's dynamics. This transformation allows the agent to seek a policy that is robust across the entire distribution of possible world models.
  2. Recurrent Policy (LSTM-TRPO): Since the agent must act based on its history of interactions to resolve model uncertainty, we utilize a Long Short-Term Memory (LSTM) network. This enables the policy to "remember" past transitions and implicitly perform belief planning, adapting its behavior as it gathers more evidence.
  3. Root-Sampling: To maintain computational efficiency during planning, models are sampled once at the start of a simulation trajectory rather than at every time step, reducing the overhead of propagating uncertainty.

Experimental Results

We evaluated RoMBRL across a variety of high-dimensional physics benchmarks, including the MuJoCo Swimmer, Hopper, Half Cheetah, and Ant environments.

Sample Efficiency and Performance

RoMBRL significantly outperformed both model-free baselines (PPO, TRPO) and the leading model-ensemble baseline, ME-TRPO. As shown in the performance curves, RoMBRL variants (particularly those using LSTM policies) reached higher average returns faster than competing methods. In several tasks, RoMBRL achieved target performance levels using approximately 5x fewer samples than the baselines.

Performance comparison of RoMBRL variants against ME-TRPO and model-free baselines across MuJoCo tasks.

Key Insights

  • Robustness to Model Collapse: Unlike standard ensembles that tend to converge to a single point estimate, BNNs maintain a healthy spread of predictions in unknown regions. This "honest" uncertainty estimation prevents the policy from over-optimistically exploiting model errors.
  • Implicit Belief Planning: The use of a recurrent (LSTM) policy allows the agent to react to the history of its experience rather than just the current state. This allows for dynamic strategy adjustment as the agent learns more about the specific environment instance it is interacting with.
  • Stability in Long Horizons: In tasks with long horizons (e.g., Hopper with T=500), RoMBRL maintained stable performance, whereas ensemble methods often failed as small prediction errors compounded over time.
  • Transfer and Adaptation: RoMBRL demonstrated superior transfer learning capabilities. When task dynamics were suddenly altered (e.g., reversing the movement direction of the Ant), the robust uncertainty estimation allowed for much faster convergence to a new optimal policy compared to non-Bayesian methods.

Conclusion and Future Work

RoMBRL provides a principled approach to solving the uncertainty problem in model-based RL. By combining BNNs with recurrent policies, it enables agents to be both sample-efficient and robust to model inaccuracies.

However, challenges remain regarding computational complexity. Training recurrent policies and sampling from BNNs via SGHMC is more resource-intensive than standard MLP-based model-free methods. Future research will focus on scaling these techniques to environments with high-resolution visual inputs and developing more efficient methods for uncertainty propagation during the planning phase.

Summary updated

BibTeX
@misc{hoang2020bayes,
  author = {Tai Hoang and Ngo Anh Vien},
  title = {{Bayes-Adaptive Deep Model-Based Policy Optimisation}},
  year = {2020},
  eprint = {2010.15948},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.15948},
}
Figure