Model-Based Offline Reinforcement Learning With Adversarial Data Augmentation

Hongye Cao, Fan Feng, Jing Huo, Shangdong Yang, Meng Fang, Tianpei Yang, Yang Gao

Introduction

Offline Reinforcement Learning (RL) presents a significant challenge: learning an optimal policy from a static dataset without the ability to interact with the environment. Model-based approaches address this by learning a "world model"—a predictive simulator—from the offline data. The agent is then trained using synthetic "rollouts" within this simulator.

However, these methods are plagued by extrapolation error. World models are inherently imperfect; if an agent identifies a region where the model incorrectly predicts high rewards, it will exploit this "bug," resulting in a policy that performs poorly in reality. Traditionally, researchers have mitigated this by manually tuning "rollout horizons"—limiting how far the agent can look ahead. MORAL (Model-based Offline Reinforcement learning with AdversariaL data augmentation) proposes a more robust solution: replacing manual tuning with an automated, adversarial sampling process.

Methodology: The Adversarial Game

MORAL frames data augmentation as a two-player adversarial game to generate pessimistic transitions, preventing the agent from exploiting model inaccuracies. This framework consists of three primary stages: dataset initialization, adversarial augmentation, and policy updates.

The MORAL framework architecture, detailing the adversarial data augmentation process and policy update cycle.

The Two-Player Framework

  1. Primary Player (Dynamics): Utilizing an ensemble of learned dynamics models, the primary player generates a set of $N'$ candidate next-state transitions. This ensures a diverse range of potential outcomes based on the current state and action.
  2. Secondary Player (Pessimistic Filter): The secondary player acts as an adversary by selecting the $k$-th minimum transition from the candidates. This forces the agent to account for "worst-case" scenarios, instilling conservatism in regions of high uncertainty.

Differential Factor (DF) Regularization

To further stabilize the learning process, MORAL integrates a "differential factor" penalty. This penalty is based on the maximum disagreement between models in the ensemble, ensuring the agent is more heavily penalized in states where the world models lack consensus. The algorithm alternates between optimizing this adversarial sampling strategy and updating the policy via an actor-critic framework, allowing the augmentation to adapt as the policy evolves.

Evaluation and Benchmarking

The researchers evaluated MORAL using the D4RL benchmark, focusing on MuJoCo locomotion tasks (HalfCheetah, Hopper, and Walker2d) across various data quality levels, from random noise to expert demonstrations.

Key Results and Stability

MORAL achieved an average normalized score of 86.3 across 15 D4RL tasks, surpassing the previous state-of-the-art model-based method, PMDB (83.5). The method proved particularly effective in "random" and "medium" datasets where model errors are most prevalent. For instance, in the Hopper-random task, MORAL scored 35.7, nearly 40% higher than competing methods.

Comparison of learning curves on the hopper-medium-expert task. MORAL exhibits faster convergence and higher final rewards than baselines like RAMBO and TD3+BC.

As shown in the learning curves, MORAL reaches stable performance faster and with significantly less variance than adversarial competitors like RAMBO. This efficiency is partly due to its one-step sampling approach, which is more computationally lean than complex multi-step adversarial updates.

Conclusion

By replacing fixed rollout horizons with an adaptive adversarial process, MORAL eliminates a finicky hyperparameter and improves generalizability across diverse tasks. While challenges remain regarding generalization to completely out-of-distribution regions, MORAL represents a significant step forward in making model-based offline RL more robust and automated. Future work will explore extending this framework to model-free methods and incorporating hierarchical learning for long-horizon tasks.

Summary updated

Abstract

Model-based offline reinforcement learning (RL) constructs environment models from offline datasets to perform conservative policy optimization. Existing approaches focus on learning state transitions through ensemble models, rolling out conservative estimation to mitigate extrapolation errors. However, the static data makes it challenging to develop a robust policy, and offline agents cannot access the environment to gather new data. To address these challenges, we introduce Model-based Offline Reinforcement learning with AdversariaL data augmentation (MORAL). In MORAL, we replace the fixed horizon rollout by employing adversarial data augmentation to execute alternating sampling with ensemble models to enrich training data. Specifically, this adversarial process dynamically selects ensemble models against policy for biased sampling, mitigating the optimistic estimation of fixed models, thus robustly expanding the training data for policy optimization. Moreover, a differential factor (DF) is integrated into the adversarial process for regularization, ensuring error minimization in extrapolations. This data-augmented optimization adapts to diverse offline tasks without rollout horizon tuning, showing remarkable applicability. Extensive experiments on the D4RL benchmark demonstrate that MORAL outperforms other model-based offline RL methods in terms of policy learning and sample efficiency.
BibTeX
@article{cao2025model,
  author = {Hongye Cao and Fan Feng and Jing Huo and Shangdong Yang and Meng Fang and Tianpei Yang and Yang Gao},
  title = {{Model-Based Offline Reinforcement Learning With Adversarial Data Augmentation}},
  journal = {IEEE Transactions on Neural Networks and Learning Systems},
  year = {2025},
  doi = {10.1109/tnnls.2025.3636176},
}
Figure