Learning Transformer-based World Models with Contrastive Predictive Coding
Maxime Burchi, Radu Timofte
Abstract
The DreamerV3 algorithm recently obtained remarkable performance across diverse environment domains by learning an accurate world model based on Recurrent Neural Networks (RNNs). Following the success of model-based reinforcement learning algorithms and the rapid adoption of the Transformer architecture for its superior training efficiency and favorable scaling properties, recent works such as STORM have proposed replacing RNN-based world models with Transformer-based world models using masked self-attention. However, despite the improved training efficiency of these methods, their impact on performance remains limited compared to the Dreamer algorithm, struggling to learn competitive Transformer-based world models. In this work, we show that the next state prediction objective adopted in previous approaches is insufficient to fully exploit the representation capabilities of Transformers. We propose to extend world model predictions to longer time horizons by introducing TWISTER (Transformer-based World model wIth contraSTivE Representations), a world model using actionconditioned Contrastive Predictive Coding to learn high-level temporal feature representations and improve the agent performance. TWISTER achieves a humannormalized mean score of 162% on the Atari 100k benchmark, setting a new record among state-of-the-art methods that do not employ look-ahead search. We release our code at https://github.com/burchim/TWISTER .
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.
13 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
- Mastering Atari with Discrete World Models cites A Simple Framework for Contrastive Learning of Visual Representations
- EDELINE: Enhancing Memory in Diffusion-based World Models via Linear-Time Sequence Modeling cites Mastering Atari with Discrete World Models
- EDELINE: Enhancing Memory in Diffusion-based World Models via Linear-Time Sequence Modeling cites Deep Reinforcement Learning at the Edge of the Statistical Precipice
- EDELINE: Enhancing Memory in Diffusion-based World Models via Linear-Time Sequence Modeling cites Dream to Control: Learning Behaviors by Latent Imagination
- Unsupervised Learning of Visual Features by Contrasting Cluster Assignments cites A Simple Framework for Contrastive Learning of Visual Representations
- DMWM: Dual-Mind World Model with Long-Term Imagination cites Mastering Atari with Discrete World Models
- DMWM: Dual-Mind World Model with Long-Term Imagination cites Dream to Control: Learning Behaviors by Latent Imagination
- medDreamer: Model-Based Reinforcement Learning with Latent Imagination on Complex EHRs for Clinical Decision Support cites Mastering Atari with Discrete World Models
- medDreamer: Model-Based Reinforcement Learning with Latent Imagination on Complex EHRs for Clinical Decision Support cites Dream to Control: Learning Behaviors by Latent Imagination
- Deep Reinforcement Learning at the Edge of the Statistical Precipice cites Mastering Atari with Discrete World Models
- Deep Reinforcement Learning at the Edge of the Statistical Precipice cites Dream to Control: Learning Behaviors by Latent Imagination
- R2-Dreamer: Redundancy-Reduced World Models without Decoders or Augmentation cites Mastering Atari with Discrete World Models
- R2-Dreamer: Redundancy-Reduced World Models without Decoders or Augmentation cites Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
- R2-Dreamer: Redundancy-Reduced World Models without Decoders or Augmentation cites A Simple Framework for Contrastive Learning of Visual Representations
- R2-Dreamer: Redundancy-Reduced World Models without Decoders or Augmentation cites Dream to Control: Learning Behaviors by Latent Imagination
- Improving Model-Based Reinforcement Learning by Converging to Flatter Minima cites Dream to Control: Learning Behaviors by Latent Imagination
Cited by top-tier papers13
- DMWM: Dual-Mind World Model with Long-Term ImaginationLingyi Wang, Rashed Shelim, Walid Saad, Naren RamakrishnanNeurIPS 2025 · 15 citations
- R2-Dreamer: Redundancy-Reduced World Models without Decoders or AugmentationNaoki Morihira, Amal Nahar, Kartik Bharadwaj, Yasuhiro Kato et al.ICLR 2026 · 13 citations
- EDELINE: Enhancing Memory in Diffusion-based World Models via Linear-Time Sequence ModelingJia-Hua Lee, Bor-Jiun Lin, Wei-Fang Sun, Chun-Yi LeeNeurIPS 2025 · 4 citations
- medDreamer: Model-Based Reinforcement Learning with Latent Imagination on Complex EHRs for Clinical Decision SupportQianyi Xu, Gousia Habib, Feng Wu, Dilruk Perera et al.KDD 2026 · 4 citations
- Improving Model-Based Reinforcement Learning by Converging to Flatter MinimaShrinivas Ramasubramanian, Benjamin Freed, Alexandre Capone, Jeff G. SchneiderNeurIPS 2025 · 3 citations
Builds on19
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- Unsupervised Learning of Visual Features by Contrasting Cluster AssignmentsMathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal et al.NeurIPS 2020 · 5,249 citations
- Dream to Control: Learning Behaviors by Latent ImaginationDanijar Hafner, Timothy P. Lillicrap, Jimmy Ba, Mohammad NorouziICLR 2020 · 1,852 citations
- Mastering Atari with Discrete World ModelsDanijar Hafner, Timothy P. Lillicrap, Mohammad Norouzi, Jimmy BaICLR 2021 · 1,170 citations
- Deep Reinforcement Learning at the Edge of the Statistical PrecipiceRishabh Agarwal, Max Schwarzer, Pablo Samuel Castro, Aaron C. Courville et al.NeurIPS 2021 · 1,067 citations
Related papers
- STORM: Efficient Stochastic Transformer based World Models for Reinforcement LearningWeipu Zhang, Gang Wang, Jian Sun, Yetian Yuan et al.NeurIPS 2023 · 154 citations
- Transformer-based World Models Are Happy With 100k InteractionsJan Robine, Marc Höftmann, Tobias Uelwer, Stefan HarmelingICLR 2023 · 4 citations
- Learning to Play Atari in a World of TokensPranav Agarwal, Sheldon Andrews, Samira Ebrahimi KahouICML 2024 · 6 citations
- Facing Off World Model Backbones: RNNs, Transformers, and S4Fei Deng, Junyeong Park, Sungjin AhnNeurIPS 2023 · 53 citations
- Transformers are Sample-Efficient World ModelsVincent Micheli, Eloi Alonso, François FleuretICLR 2023 · 11 citations
