Pre-training Contextualized World Models with In-the-wild Videos for Reinforcement Learning
Jialong Wu, Haoyu Ma, Chaoyi Deng, Mingsheng Long
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
33 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- DreamDojo: A Real-Time Robot World Model from Large-Scale Human Videos cites ReSim: Reliable World Simulation for Autonomous Driving
- DreamDojo: A Real-Time Robot World Model from Large-Scale Human Videos cites iVideoGPT: Interactive VideoGPTs are Scalable World Models
- DreamDojo: A Real-Time Robot World Model from Large-Scale Human Videos cites Vista: A Generalizable Driving World Model with High Fidelity and Versatile Controllability
- ReSim: Reliable World Simulation for Autonomous Driving cites High-Resolution Image Synthesis with Latent Diffusion Models
- ReSim: Reliable World Simulation for Autonomous Driving cites Dream to Control: Learning Behaviors by Latent Imagination
- ReSim: Reliable World Simulation for Autonomous Driving cites Vista: A Generalizable Driving World Model with High Fidelity and Versatile Controllability
- iVideoGPT: Interactive VideoGPTs are Scalable World Models cites High-Resolution Image Synthesis with Latent Diffusion Models
- iVideoGPT: Interactive VideoGPTs are Scalable World Models cites Dream to Control: Learning Behaviors by Latent Imagination
- Vista: A Generalizable Driving World Model with High Fidelity and Versatile Controllability cites High-Resolution Image Synthesis with Latent Diffusion Models
- Vista: A Generalizable Driving World Model with High Fidelity and Versatile Controllability cites Dream to Control: Learning Behaviors by Latent Imagination
- Facing Off World Model Backbones: RNNs, Transformers, and S4 cites Dream to Control: Learning Behaviors by Latent Imagination
Cited by top-tier papers33
- Vista: A Generalizable Driving World Model with High Fidelity and Versatile ControllabilityShenyuan Gao, Jiazhi Yang, Li Chen, Kashyap Chitta et al.NeurIPS 2024 · 403 citations
- iVideoGPT: Interactive VideoGPTs are Scalable World ModelsJialong Wu, Shaofeng Yin, Ningya Feng, Xu He et al.NeurIPS 2024 · 177 citations
- DreamDojo: A Real-Time Robot World Model from Large-Scale Human VideosShenyuan Gao, William Liang, Kaiyuan Zheng, Ayaan Malik et al.ICML 2026 · 96 citations
- ReSim: Reliable World Simulation for Autonomous DrivingJiazhi Yang, Kashyap Chitta, Shenyuan Gao, Long Chen et al.NeurIPS 2025 · 53 citations
- Facing Off World Model Backbones: RNNs, Transformers, and S4Fei Deng, Junyeong Park, Sungjin AhnNeurIPS 2023 · 53 citations
Builds on31
- High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
- Flamingo: a Visual Language Model for Few-Shot LearningJean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech et al.NeurIPS 2022 · 6,707 citations
- Random Erasing Data AugmentationZhun Zhong, Liang Zheng, Guoliang Kang, Shaozi Li et al.AAAI 2020 · 4,134 citations
- Dream to Control: Learning Behaviors by Latent ImaginationDanijar Hafner, Timothy P. Lillicrap, Jimmy Ba, Mohammad NorouziICLR 2020 · 1,852 citations
- HowTo100M: Learning a Text-Video Embedding by Watching Hundred Million Narrated Video ClipsAntoine Miech, Dimitri Zhukov, Jean-Baptiste Alayrac, Makarand Tapaswi et al.ICCV 2019 · 1,437 citations
Related papers
- Reinforcement Learning with Action-Free Pre-Training from VideosYounggyo Seo, Kimin Lee, Stephen James, Pieter AbbeelICML 2022 · 150 citations
- Context-aware Dynamics Model for Generalization in Model-Based Reinforcement LearningKimin Lee, Younggyo Seo, Seunghyun Lee, Honglak Lee et al.ICML 2020 · 158 citations
- Disentangled World Models: Learning to Transfer Semantic Knowledge from Distracting Videos for Reinforcement LearningQi Wang, Zhipeng Zhang, Baao Xie, Xin Jin et al.ICCV 2025
- The Surprising Ineffectiveness of Pre-Trained Visual Representations for Model-Based Reinforcement LearningMoritz Schneider, Robert Krug, Narunas Vaskevicius, Luigi Palmieri et al.NeurIPS 2024 · 10 citations
- Become a Proficient Player with Limited Data through Watching Pure VideosWeirui Ye, Yunsheng Zhang, Pieter Abbeel, Yang GaoICLR 2023
