Learning Transformer-based World Models with Contrastive Predictive Coding

Maxime Burchi, Radu Timofte
3/6/2025
cs.LGcs.AIcs.CV

No official code found. Best implementation: burchim/TWISTER (60 stars, Apache-2.0, last commit 2025-03-09). 1 more below.

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 action-conditioned Contrastive Predictive Coding to learn high-level temporal feature representations and improve the agent performance. TWISTER achieves a human-normalized 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.

View on arXivView PDF

Code Implementations(2)

burchim/TWISTERCommunity57%
Apache-2.0

[ICLR 2025] Learning Transformer-based World Models with Contrastive Predictive Coding (TWISTER)

607Shell, PythonFeb 15, 20251 years agoApache-2.0
Apache-2.0

[ICLR 2025] Learning Transformer-based World Models with Contrastive Predictive Coding (TWISTER)

00Shell, PythonJun 5, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{burchi2025learning,
  title  = {Learning Transformer-based World Models with Contrastive Predictive Coding},
  author = {Maxime Burchi and Radu Timofte},
  year   = {2025},
  eprint = {2503.04416},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.04416v2},
  journal = {ICLR 2025 2025}
}

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/2503.04416.svg)](https://codeofpaper.com/paper/2503.04416)

Discussion