Pre-training Contextualized World Models with In-the-wild Videos for Reinforcement Learning

Jialong Wu, Haoyu Ma, Chaoyi Deng, Mingsheng Long
5/29/2023
cs.CVcs.LGcs.RO

Official code: thuml/ContextWM (70 stars, MIT, last commit 2024-09-29).

Abstract

Unsupervised pre-training methods utilizing large and diverse datasets have achieved tremendous success across a range of domains. Recent work has investigated such unsupervised pre-training methods for model-based reinforcement learning (MBRL) but is limited to domain-specific or simulated data. In this paper, we study the problem of pre-training world models with abundant in-the-wild videos for efficient learning of downstream visual control tasks. However, in-the-wild videos are complicated with various contextual factors, such as intricate backgrounds and textured appearance, which precludes a world model from extracting shared world knowledge to generalize better. To tackle this issue, we introduce Contextualized World Models (ContextWM) that explicitly separate context and dynamics modeling to overcome the complexity and diversity of in-the-wild videos and facilitate knowledge transfer between distinct scenes. Specifically, a contextualized extension of the latent dynamics model is elaborately realized by incorporating a context encoder to retain contextual information and empower the image decoder, which encourages the latent dynamics model to concentrate on essential temporal variations. Our experiments show that in-the-wild video pre-training equipped with ContextWM can significantly improve the sample efficiency of MBRL in various domains, including robotic manipulation, locomotion, and autonomous driving. Code is available at this repository: https://github.com/thuml/ContextWM.

View on arXivView PDF

Code Implementations(1)

thuml/ContextWMOfficial100%
MIT

Code release for "Pre-training Contextualized World Models with In-the-wild Videos for Reinforcement Learning" (NeurIPS 2023), https://arxiv.org/abs/2305.18499

703Shell, PythonOct 18, 20232 years agoMIT

Similar Papers

Cite this paper

@article{wu2023pretraining,
  title  = {Pre-training Contextualized World Models with In-the-wild Videos for Reinforcement Learning},
  author = {Jialong Wu and Haoyu Ma and Chaoyi Deng and Mingsheng Long},
  year   = {2023},
  eprint = {2305.18499},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.18499v2},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.18499.svg)](https://codeofpaper.com/paper/2305.18499)

Discussion