Enhancing Offline Model-Based RL via Active Model Selection: A Bayesian Optimization Perspective

Yu-Wei Yang, Yun-Ming Chan, Wei Hung, Xi Liu, Ping-Chun Hsieh · DOI

Introduction

In the realm of offline reinforcement learning (RL), agents are tasked with learning optimal behaviors from static, pre-collected datasets without the luxury of continuous environment interaction. Model-based reinforcement learning (MBRL) has emerged as a powerful paradigm in this space, where a dynamics model—a "simulator"—is learned from the data to facilitate policy training. However, MBRL faces a critical bottleneck: model selection. Identifying which learned dynamics model will yield the best real-world policy is notoriously difficult, often described as the "Achilles' heel" of the field.

This paper introduces BOMS (Bayesian Optimization for Model Selection), a framework that reframes model selection as a Bayesian Optimization problem. By leveraging a minimal budget of online interactions—typically just 1-2.5% of the original training data size—BOMS identifies high-performing models with unprecedented precision.

The Challenge of Model Selection

During the training phase of offline MBRL, researchers often generate hundreds of candidate dynamics models. Selecting the best one is non-trivial for two primary reasons:

  1. Failure of Validation Loss: Standard supervised learning metrics, such as Mean Squared Error (MSE), are poor indicators of final policy performance. This is due to "distribution shift"—as a policy improves, it visits states and actions that may be poorly represented in the training data, leading to model exploitation.
  2. Inaccuracy of Off-Policy Evaluation (OPE): Statistical methods designed to estimate policy performance without new data are often unstable and inaccurate in complex, high-dimensional offline settings.

While "pure" offline RL forbids any interaction, many practical applications in robotics or industrial control can tolerate a very small amount of testing. BOMS addresses how to use this limited interaction budget most effectively.

The BOMS Framework

BOMS treats the true performance of a policy trained on a specific model as a black-box function. To maximize this function efficiently, it employs a Bayesian Optimization (BO) loop.

The BOMS framework for active model selection using Bayesian Optimization.

The framework consists of three core pillars:

  • Gaussian Process (GP) Surrogate: BOMS maintains a probabilistic map of model performance, allowing it to reason about uncertainty and potential gains.
  • Model-Induced Kernels: A critical innovation of BOMS is its distance metric. To measure similarity between dynamics models, BOMS looks at one-step prediction differences. If two models predict similar next-states and rewards for the same state-action pairs, they are considered "close" in the behavioral space. This is significantly more effective than comparing raw neural network weights.
  • Active Selection Loop: In each iteration, the system uses an acquisition function (GP-UCB) to select a promising model, trains a policy on it, and performs a few real-world trajectories to update the GP's knowledge.

Experimental Setup

The authors evaluated BOMS across several challenging benchmarks:

  • D4RL MuJoCo: Standard locomotion tasks including Walker2d, Hopper, and HalfCheetah across various data quality tiers (Medium, Replay, Expert).
  • D4RL Adroit: The "Pen" task, involving a complex 24-degree-of-freedom robotic hand.
  • Meta-World: A goal-oriented "Door Open" task designed to test generalization.

Results and Insights

The experimental results highlight the efficiency and robustness of the BOMS approach.

Regret comparison across D4RL tasks showing BOMS's superior efficiency.

Key Findings:

  • Rapid Regret Reduction: As shown in the performance curves, BOMS consistently achieves lower "inference regret"—the gap between the selected model's performance and the optimal model's performance—compared to OPE or standard validation. On tasks like Walker2d, BOMS reaches near-optimal performance within just 5-10 iterations.
  • Minimal Budget, Maximum Gain: The framework proves that a tiny amount of online data (20 to 50 trajectories) is sufficient to overcome the model selection hurdle. In the Meta-World "Door Open" task, where standard MOPO failed completely (0% success rate), BOMS achieved a 16.3% success rate.
  • One-Step Superiority: Theoretical and empirical analysis confirmed that one-step predictions provide a cleaner similarity signal than multi-step rollouts, which are prone to compounding errors.
  • Algorithm Agnostic: BOMS functions as a versatile "wrapper" and was successfully integrated with popular MBRL algorithms like MOPO and RAMBO, often outperforming state-of-the-art offline methods like IQL and COMBO.

Conclusion and Future Work

BOMS demonstrates that the "Achilles' heel" of offline MBRL can be protected with a strategic, Bayesian approach to model selection. By focusing on behavioral similarity rather than parameter distance, BOMS makes highly efficient use of limited environment interactions.

While BOMS requires a small online budget—making it unsuitable for "strictly" offline scenarios like historical medical data analysis—it offers a practical path forward for many real-world engineering tasks. Future research may look into integrating this selection logic directly into the model training phase or exploring more sophisticated acquisition functions to further reduce the interaction budget.

Summary updated

BibTeX
@article{yang2026enhancing,
  author = {Yu-Wei Yang and Yun-Ming Chan and Wei Hung and Xi Liu and Ping-Chun Hsieh},
  title = {{Enhancing Offline Model-Based RL via Active Model Selection: A Bayesian Optimization Perspective}},
  journal = {Machine Learning},
  year = {2026},
  doi = {10.1007/s10994-026-07119-6},
}
Figure