Behavioral Priors and Dynamics Models: Improving Performance and Domain Transfer in Offline RL

Catherine Cang, Aravind Rajeswaran, Pieter Abbeel, Michael Laskin

TL;DR

Standard offline reinforcement learning (RL) methods often rely on complex dynamics uncertainty estimation or strict imitation to prevent out-of-distribution errors. This paper introduces MABE (Offline Model-based RL with Adaptive Behavioral Regularization), which pairs learned dynamics models with an advantage-weighted behavioral prior to regularize policy search. By combining model-based synthetic rollouts with behavioral regularization, MABE achieves state-of-the-art performance on D4RL benchmarks without requiring uncertainty quantification and unlocks zero-shot cross-domain behavior transfer.

What Problem Does This Paper Address?

Offline RL trains agents using static datasets collected by prior policies, removing the need for costly and unsafe real-world trial and error. However, standard policy optimization in offline settings suffers from distribution shift: policies exploit out-of-distribution actions or states where the learned value function or dynamics model makes overly optimistic prediction errors.

Prior model-based offline RL methods (such as MOPO and MOReL) enforce conservatism by penalizing states based on dynamics model uncertainty. However, deep neural network uncertainty quantification is notoriously challenging in high-dimensional or confounded state spaces. Conversely, model-free methods regularize policies toward the empirical dataset, but struggle to extrapolate or synthesize behaviors across tasks. This paper investigates whether an adaptive behavioral prior combined with model-based RL can replace or reduce reliance on explicit uncertainty estimation while expanding generalization across domains.

Methods

The authors propose MABE (Offline Model-Based RL with Adaptive Behavioral Regularization), built upon three main components:

  1. Dynamics Model Learning: Trains an ensemble of probabilistic Gaussian dynamics models $\hat{T}_\psi(s' \mid s, a)$ and a reward model $\hat{r}_\psi(s, a)$ on the offline dataset via maximum likelihood.
  2. Adaptive Behavioral Prior: Rather than fitting a vanilla behavior cloning model to all dataset actions, MABE trains an advantage-weighted behavioral prior $p_\alpha(a \mid s)$. High-reward trajectories receive exponential weights proportional to learned state-action advantages ($\omega(s, a) \propto \hat{Q}(s, a)$), filtering out poor demonstration data while maintaining data coverage.
  3. Behavior-Regularized Model-Based Policy Optimization: Using a Dyna-style setup (specifically MBPO/SAC), the policy optimizes rewards over synthetic model rollouts penalized by an explicit Kullback–Leibler (KL) divergence against the adaptive behavioral prior: $$\tilde{r}(s, a) = \hat{r}_\psi(s, a) - \beta \left(\log \pi_\theta(a \mid s) + \log p_\alpha(a \mid s)\right)$$ An optional uncertainty penalty term can be included, but the method is intentionally designed to work well without it.

Datasets

The authors evaluate MABE across two sets of tasks:

  • D4RL Benchmarks: 9 standard continuous locomotion tasks across three Gym environments (HalfCheetah, Hopper, and Walker2d) and three dataset configurations:
  • Medium (suboptimal policy rollout)
  • Medium-Replay (replay buffer history during training)
  • Medium-Expert (mix of suboptimal and expert transitions)
  • Custom Cross-Domain Transfer Tasks: A suite testing behavior and domain generalization across simulated environments with differing physics:
  • Dataset 1: Medium-replay forward walking on normal terrain (grass).
  • Dataset 2: Expert backward walking on low-friction terrain (ice).
  • Goal: Train the agent to walk backward on normal terrain without direct target-domain demonstrations of the target behavior.

Key Insights and Ideas

  • Dynamics models and behavioral priors are complementary: Dynamics models capture environment transition physics (enabling within-domain counterfactual exploration), while behavioral priors capture transferable movement strategies across domains.
  • Uncertainty quantification is optional: In ablation experiments, removing the behavioral prior dropped performance by 41% and removing RL fine-tuning dropped performance by 48%. In contrast, removing uncertainty estimation only reduced overall performance by 9%, demonstrating that explicit behavioral priors alone can provide the necessary conservatism.
  • Advantage weighting matters: Weighting behavioral priors toward high-return actions significantly improves training stability and asymptotic performance compared to "flat" behavioral cloning priors.
  • Cross-domain transfer becomes feasible: Decoupling behavior from environment dynamics allows an agent to take the behavior from one offline dataset (e.g., walking backward on ice) and apply it to the physics of another offline dataset (e.g., walking on normal friction terrain).

Key Results

  • D4RL Locomotion: MABE achieved the top score in 7 out of the 9 benchmark environments evaluated, securing the highest overall average normalized score (77.5), outperforming MOPO (42.1), MOReL (72.9), CQL (63.9), and BRAC-v (35.5).
  • Mixed Data Robustness: MABE showed substantial gains on mixed-quality datasets like med-expert halfcheetah (100.6 vs. CQL’s 62.4 and MOPO's 63.3) and hopper medium (94.1 vs. MOPO's 28.0).
  • Cross-Domain Adaptation: In the ice-to-grass backward locomotion experiment, standard offline MBRL (MOPO) scored near zero ($\le 0.05$ across environments). In contrast, MABE successfully completed cross-domain transfer with normalized scores of 0.78 (HalfCheetah), 0.94 (Hopper), and 0.72 (Walker).

Limitations and Future Work

  • Continuous Control Focus: The experimental evaluation was confined to simulated continuous locomotion tasks (MuJoCo/D4RL); it remains to be seen how well MABE scales to discrete action domains, complex manipulation, or pixel-based/visual observations.
  • Safety and Reward Exploitation: Because the policy optimizes a learned reward function while staying within behavioral priors, misspecified reward models could still cause agents to exploit unexpected behavior modes.
  • Explainability: MABE lacks explicit interpretability for learned prior weighting, warranting future work in constrained optimization and explainable policy architectures.

Summary updated

BibTeX
@inproceedings{cang2021behavioral,
  author = {Catherine Cang and Aravind Rajeswaran and Pieter Abbeel and Michael Laskin},
  title = {{Behavioral Priors and Dynamics Models: Improving Performance and Domain Transfer in Offline RL}},
  booktitle = {DeepRL @ NeurIPS},
  year = {2021},
  url = {https://openreview.net/forum?id=rOmMllKHNGD},
}
Figure