MOBODY: Model-Based Off-Dynamics Offline Reinforcement Learning

Yihong Guo, Yu Yang, Pan Xu, Anqi Liu

In the ideal world of Reinforcement Learning (RL), an agent learns by trial and error in the exact environment it is meant to master. In the real world, however, trial and error is often expensive, dangerous, or simply impossible. This reality necessitates Offline RL, where agents are trained using pre-collected datasets.

But there is a catch: often, the bulk of our data comes from a "source" domain (like a computer simulator) that does not perfectly match the "target" domain (the real world). This is known as the off-dynamics problem—where gravity, friction, or even the robot's physical proportions differ between training and deployment.

A new paper from researchers at Johns Hopkins and Duke University, titled MOBODY: Model-Based Off-Dynamics Offline Reinforcement Learning, proposes a model-based approach to bridge this gap. By allowing agents to "imagine" the target dynamics, MOBODY outperforms existing methods by significant margins.

TL;DR

MOBODY is a model-based offline RL algorithm designed to handle mismatched physics between training data and the deployment environment. By learning a shared latent representation with domain-specific action encoders and using a target-Q-weighted behavior cloning loss, it enables agents to explore high-reward regions of the target domain that traditional "data-filtering" methods typically ignore.

The Blind Spot of Conservative RL

Most existing off-dynamics offline RL methods are inherently "conservative." They compare the abundant source data with the limited target data, identify where the physics do not match, and then either penalize rewards in those regions or discard that data entirely.

While this prevents the agent from learning "fake" physics, it creates a massive blind spot. If the optimal path to a high reward in the real world requires moving through a region where the simulator was inaccurate, a conservative agent will never find it. They are effectively trapped in "low-shift" regions. MOBODY asks a different question: Instead of avoiding the gap, can we learn to cross it?

The MOBODY Approach

The authors introduce MOBODY, which relies on two main architectural innovations to solve the off-dynamics problem.

1. Domain-Specific Dynamics Learning

The core insight of MOBODY is that achieving the exact same result (the next state) in two different worlds often requires taking different actions. To model this, MOBODY uses a specialized architecture:

MOBODY Architecture
  • Shared State Encoder ($\phi_E$): Maps states from both domains into a unified latent space.
  • Separate Action Encoders ($\psi_{src}, \psi_{trg}$): These encode actions from the source and target domains differently into the same shared latent action space.
  • Unified Transition Function ($\phi_T$): Predicts the next latent state using the shared representations.

By sharing the state and transition logic but separating the "how-to-act" logic via domain-specific encoders, the model leverages the massive source dataset to learn the general structure of the task, while using the limited target data to "tune" the specific physics.

2. Target Q-Weighted Behavior Cloning

In offline RL, Behavior Cloning (BC) is often used to keep the agent from trying "out-of-distribution" actions. However, blindly imitating the source data is a recipe for failure if the source physics are wrong. MOBODY introduces a Target Q-weighted BC loss. This pushes the policy toward actions that have a high predicted value in the target domain, rather than just imitating whatever was most common in the dataset.

Experimental Setup

The researchers evaluated MOBODY using the ODRL benchmark, which includes:

  • MuJoCo Environments: HalfCheetah, Ant, Walker2d, and Hopper.
  • Adroit Manipulation Tasks: Pen and Door.
  • Dynamics Shifts: Four levels of gravity and friction shifts (from 0.1x to 5.0x) and structural shifts like "broken joints" (kinematics) or changed limb sizes (morphology).
  • Data Split: A massive source dataset (1 million transitions) paired with a very small target dataset (only 5,000 transitions).

Key Results and Insights

MOBODY's approach to exploration via imagination yields impressive results. Unlike model-free methods that just filter data, MOBODY uses its learned model to perform "imaginary" rollouts in the target domain. This allows the agent to explore the target environment's high-reward states without needing real-world interaction.

Performance across mismatch types
  • Massive Performance Gains: MOBODY achieved a 44% average improvement over the best baseline (REAG) on gravity and friction tasks.
  • Structural Adaptability: On more complex kinematic and morphology shifts, it showed a 25% improvement, proving its robustness to severe physical alterations.
  • Consistency: MOBODY performed as the best or second-best algorithm in 28 out of 32 MuJoCo gravity/friction scenarios.
  • Ablation Success: Removing the "Cycle Transition Loss" or the "Q-weighting" led to significant performance drops, proving that the architectural choices were essential to the model's success.

Limitations and Future Work

While MOBODY is a significant step forward, the authors note a few hurdles:

  • Shared Structure Assumption: The method assumes there is a shared underlying structure between the two domains. If the environments are too fundamentally different, the shared latent space might fail to align them.
  • Sparse Rewards: Like most RL algorithms, MOBODY still struggles in "sparse reward" environments (like Antmaze), where the agent rarely sees a reward signal to learn from.

The team suggests exploring goal-conditional RL and zero-shot transfer as the next frontiers for this model-based approach, potentially allowing agents to adapt to new physics without any target data at all.

Paper Citation: Guo, Y., Yang, Y., Xu, P., & Liu, A. (2026). MOBODY: Model-Based Off-Dynamics Offline Reinforcement Learning. Published as a conference paper at ICLR 2026.

Summary updated

BibTeX
@inproceedings{guo2026mobody,
  author = {Yihong Guo and Yu Yang and Pan Xu and Anqi Liu},
  title = {{MOBODY: Model-Based Off-Dynamics Offline Reinforcement Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=7c0YS3cuno},
}
Figure