[Paper Review] Transformers are Sample-Efficient World Models
This paper introduces iris, a sample-efficient reinforcement learning agent that learns entirely within a world model composed of a discrete autoencoder and an autoregressive Transformer. Trained on just two hours of gameplay in the Atari 100k benchmark, iris achieves a human-normalized score of 1.046 and outperforms humans on 10 out of 26 games, setting a new state of the art for methods without lookahead search.
Deep reinforcement learning agents are notoriously sample inefficient, which considerably limits their application to real-world problems. Recently, many model-based methods have been designed to address this issue, with learning in the imagination of a world model being one of the most prominent approaches. However, while virtually unlimited interaction with a simulated environment sounds appealing, the world model has to be accurate over extended periods of time. Motivated by the success of Transformers in sequence modeling tasks, we introduce IRIS, a data-efficient agent that learns in a world model composed of a discrete autoencoder and an autoregressive Transformer. With the equivalent of only two hours of gameplay in the Atari 100k benchmark, IRIS achieves a mean human normalized score of 1.046, and outperforms humans on 10 out of 26 games, setting a new state of the art for methods without lookahead search. To foster future research on Transformers and world models for sample-efficient reinforcement learning, we release our code and models at https://github.com/eloialonso/iris.
Motivation & Objective
- To address the critical challenge of sample inefficiency in deep reinforcement learning, especially for real-world deployment.
- To develop a world model architecture that enables high-fidelity, long-horizon environment simulation with minimal interaction data.
- To demonstrate that Transformers, combined with discrete autoencoders, can serve as effective world models for sample-efficient policy learning.
- To establish a new benchmark for model-based RL without lookahead search by achieving human-level performance with minimal data.
- To foster future research by releasing code and models for reproducibility and extension.
Proposed method
- The world model uses a discrete autoencoder to compress raw pixel observations into a compact sequence of discrete tokens.
- An autoregressive Transformer (G) models the dynamics of the environment by predicting future frame tokens, rewards, and episode termination signals from the latent code and action sequence.
- The policy network (π) is trained exclusively in imagination by interacting with the world model, generating actions based on predicted future states.
- The world model is pre-trained in a self-supervised manner on a small amount of environment interaction data before policy training begins.
- The entire system is trained end-to-end using a combination of reconstruction loss, prediction loss for rewards and termination, and policy optimization via reinforcement learning.
- The architecture avoids complex modifications like gating layers, relying on the stability of self-supervised pre-training.
Experimental results
Research questions
- RQ1Can a Transformer-based world model with a discrete autoencoder achieve high-fidelity, long-horizon environment modeling from minimal interaction data?
- RQ2To what extent can a policy trained purely in imagination outperform human-level performance with only two hours of real environment interaction?
- RQ3How does the combination of discrete autoencoders and autoregressive Transformers compare to prior model-based RL approaches in sample efficiency?
- RQ4Can the world model generate realistic, pixel-accurate predictions that reflect deep understanding of game mechanics?
- RQ5Is it possible to achieve state-of-the-art performance without using lookahead search, relying solely on imagination-based training?
Key findings
- iris achieves a mean human-normalized score of 1.046 on the Atari 100k benchmark using only the equivalent of two hours of real gameplay.
- The agent outperforms human players on 10 out of 26 Atari games, demonstrating superhuman performance in a sample-efficient regime.
- The world model generates highly accurate, pixel-perfect predictions in several games, indicating deep understanding of game mechanics.
- The model achieves state-of-the-art performance among methods without lookahead search, surpassing prior approaches like DreamerV2 in sample efficiency.
- The world model exhibits strong generative capabilities, enabling rich and diverse gameplay experiences during imagination-based training.
- The method is robust and requires minimal hyperparameter tuning compared to established agents, suggesting strong generalization and ease of deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.