Collaborative World Models: An Online-Offline Transfer RL Approach

Qi Wang, Junming Yang, Yunbo Wang, Xin Jin, Wenjun Zeng, Xiaokang Yang · DOI

Introduction

Reinforcement Learning (RL) has demonstrated remarkable success in complex tasks but typically demands millions of environment interactions. Offline RL offers a promising alternative by learning exclusively from pre-collected datasets. However, visual offline RL faces two critical challenges: representation overfitting, where models "memorize" limited visual data, and value overestimation, where agents erroneously assign high rewards to out-of-distribution (OOD) actions because they haven't seen those actions fail.

The CoWorld Framework

To address these issues, we introduce CoWorld (Collaborative World Models), an offline-online-offline transfer learning paradigm. CoWorld leverages readily available online simulators as a "test bed" to ground the learning of offline agents, bridging the gap between static data and dynamic exploration.

The CoWorld framework: aligning source (online) and target (offline) domains through state and reward alignment, guided by a value constraint.

The framework operates in three distinct stages:

  1. Offline-to-Online State Alignment: Separate world models are trained for the online "source" and offline "target" environments. A KL-divergence loss forces the target's latent representations to align with the source's, preventing the model from overfitting to its limited visual inputs.
  2. Online-to-Offline Reward Alignment: The source agent is fine-tuned to understand the target's goals by relabeling rewards, bridging discrepancies in reward scales or definitions across domains.
  3. Min-Max Value Constraint: This core innovation uses a "knowledgeable" source critic—which has interacted with the online environment—to regulate the offline agent's plans.

Flexible Value Constraints vs. Over-Conservatism

Traditional offline RL methods often employ rigid "conservative" penalties that assume any unseen state is low-value. While this prevents catastrophic failure, it often leads to over-conservatism, where the agent becomes too "scared" to find optimal paths that weren't explicitly shown in the data.

Comparison of value estimation strategies: CoWorld achieves 'mild-conservatism' by leveraging a target-informed source critic to avoid both overestimation and over-conservatism.

CoWorld introduces a "mild-conservatism" approach. Instead of a flat penalty, the source critic provides a reality check. If the offline agent overestimates a value relative to the source critic's experience, it is penalized. Conversely, if the source critic recognizes potential in a path, the agent is permitted to explore it, effectively using the simulator's "common sense" to guide offline learning.

Experimental Evaluation

CoWorld was evaluated on three major benchmarks: Meta-World, RoboDesk, and DeepMind Control Suite (DMC), focusing on challenging "medium-replay" datasets which lack expert demonstrations.

Key Results:

  • Performance: In Meta-World, CoWorld achieved an average return of 4241, significantly outperforming the standard offline world model (2730). In DMC, it outperformed the baseline by 169.6%.
  • Robustness: The method proved effective even with significant domain gaps, such as differing camera viewpoints (side-view vs. top-view), robot morphologies (Sawyer vs. Franka), and reward structures.
  • Efficiency: Despite training dual models, CoWorld remains computationally accessible, requiring approximately two days on a single consumer-grade GPU (RTX 3090).

Conclusion

CoWorld demonstrates that simulators do not need to be perfect replicas of the target task to be useful. By aligning latent spaces and utilizing a collaborative value constraint, agents can transcend the limitations of static datasets. This "collaborative" approach suggests a scalable path forward for robotics, where general-purpose simulators can provide the necessary priors for specialized offline tasks.

Summary updated

BibTeX
@inproceedings{wang2024collaborative,
  author = {Qi Wang and Junming Yang and Yunbo Wang and Xin Jin and Wenjun Zeng and Xiaokang Yang},
  title = {{Collaborative World Models: An Online-Offline Transfer RL Approach}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=ucxQrked0d},
}
Figure