Abstract
Offline Reinforcement Learning (RL) faces significant challenges due to distribution shift, where agents encounter "out-of-support" states not present in the training data. We present MoDAP (Model-based Diverse Adaptive Policy Learning), a framework that utilizes an information-theoretic objective to train a highly diverse ensemble of dynamics models. By pairing this ensemble with a history-dependent adaptive policy, MoDAP allows agents to infer environment dynamics on-the-fly and navigate unexplored regions more effectively. Our results on D4RL and NeoRL benchmarks demonstrate that MoDAP achieves state-of-the-art performance, often requiring fewer models than traditional ensemble methods.
Addressing Distribution Shift in Offline RL
The primary hurdle in offline RL is the inability to interact with the environment during training. When a learned policy deviates from the behavior policy used to collect the dataset, the agent enters regions where the dynamics are uncertain. Standard approaches typically rely on pessimism—penalizing the agent for leaving the data's support—or Bayes-adaptive methods that use ensembles to represent uncertainty. However, standard ensembles often collapse into similar models, failing to provide the diverse hypotheses necessary for robust adaptation.
MoDAP: Model-based Diverse Adaptive Policy Learning
MoDAP introduces a novel approach to ensemble training and policy architecture:
- Information-Theoretic Diversity: Instead of simple Maximum Likelihood Estimation, MoDAP incorporates a Mutual Information (MI) objective. This forces the ensemble models to produce distinct trajectories for the same policy, ensuring the agent is exposed to a wide variety of potential environment behaviors.
- Adaptive Policy with Memory: The agent utilizes a Gated Recurrent Unit (GRU) to process its history of states, actions, and rewards. This memory allows the policy to "identify" the current dynamics model it is interacting with, enabling real-time strategy adjustment.
- Iterative Training: The algorithm alternates between optimizing the adaptive policy for maximum return across the ensemble and refining the models to maintain both accuracy on real data and diversity in simulated rollouts.
Experimental Evaluation
MoDAP was evaluated on the D4RL and NeoRL benchmarks. D4RL includes standard MuJoCo tasks with varying data quality, while NeoRL provides a more challenging "near-real-world" setting with narrower data distributions.
As shown in the results table above, MoDAP consistently outperforms or matches state-of-the-art methods like EDAC and RAMBO, particularly in "medium" and "medium-replay" scenarios where the data is imperfect but contains enough information for model-based generalization.
Key Insights: The Power of Diversity
A critical finding of this work is that the diversity of the ensemble is more important than its size. MoDAP with only 5 models frequently outperformed existing methods using 14 or more models. This is because MoDAP focuses on making the outcomes (trajectories) different, presenting the agent with distinct decision-making challenges rather than just varying model parameters.
Furthermore, the effectiveness of longer rollout lengths is tied to ensemble diversity. As illustrated in the training curves, increasing the rollout length significantly improves performance when the models are diverse enough to prevent the agent from over-optimizing to a single, potentially erroneous, dynamics hypothesis. Without sufficient diversity, longer simulations often lead to compounding errors that degrade performance.
Conclusion
MoDAP demonstrates that fostering diversity in model ensembles is a powerful tool for overcoming distribution shift in offline RL. By treating environment uncertainty as a context to be inferred through interaction, MoDAP provides a robust framework for training agents that can generalize beyond their static training data. Future work will explore the application of this diversity-driven approach to Offline Meta-RL.
Summary updated