[Paper Review] STORM: Efficient Stochastic Transformer based World Models for Reinforcement Learning
STORM introduces a Transformer-based stochastic world model with a VAE encoder to improve sample efficiency and training speed in Atari 100k, achieving a new mean human-normalized score without lookahead search and faster real-time training.
Recently, model-based reinforcement learning algorithms have demonstrated remarkable efficacy in visual input environments. These approaches begin by constructing a parameterized simulation world model of the real environment through self-supervised learning. By leveraging the imagination of the world model, the agent's policy is enhanced without the constraints of sampling from the real environment. The performance of these algorithms heavily relies on the sequence modeling and generation capabilities of the world model. However, constructing a perfectly accurate model of a complex unknown environment is nearly impossible. Discrepancies between the model and reality may cause the agent to pursue virtual goals, resulting in subpar performance in the real environment. Introducing random noise into model-based reinforcement learning has been proven beneficial. In this work, we introduce Stochastic Transformer-based wORld Model (STORM), an efficient world model architecture that combines the strong sequence modeling and generation capabilities of Transformers with the stochastic nature of variational autoencoders. STORM achieves a mean human performance of $126.7\%$ on the Atari $100$k benchmark, setting a new record among state-of-the-art methods that do not employ lookahead search techniques. Moreover, training an agent with $1.85$ hours of real-time interaction experience on a single NVIDIA GeForce RTX 3090 graphics card requires only $4.3$ hours, showcasing improved efficiency compared to previous methodologies.
Motivation & Objective
- Motivate improving sample efficiency in model-based RL for visual environments.
- Develop an efficient world model that leverages Transformers and stochastic latent representations.
- Reduce prediction error accumulation and training time while maintaining or improving performance on Atari 100k.
Proposed method
- Use a categorical VAE encoder to map observations to a stochastic latent z_t (32 categories × 32 classes).
- Fuse z_t and action a_t into a single token e_t and feed a GPT-like Transformer as the sequence model to produce h_t.
- Predict rewards, continuation flags, and next latent distribution via MLP heads from h_t.
- Train the world model with a self-supervised loss combining reconstruction, reward, continuation, dynamics (KL), and representation (KL) terms (with beta weights).
- Learn the agent policy entirely from imagined experiences using a DreamerV3-style actor-critic objective with a lambda-return and KV-cache accelerated inference.
Experimental results
Research questions
- RQ1Can a stochastic Transformer-based world model outperform RNN-based or Transformer-XL based models on Atari 100k?
- RQ2Does a single stochastic latent representation per image effectively capture dynamics for policy learning?
- RQ3How does the proposed loss design and imagination-based learning affect sample efficiency and computational efficiency?
- RQ4What is the impact of world model design choices (encoder type, state representation, transformer depth) on performance?
- RQ5Is it feasible to achieve high performance with limited real-environment interactions using STORM?
Key findings
- STORM achieves a mean human-normalized score of 126.7% on Atari 100k, setting a new record among methods without lookahead search.
- Training with about 1.85 hours of real data on an RTX 3090 takes around 4.3 hours, showing improved efficiency over prior methods.
- Compared to SimPLe, TWM, IRIS, and DreamerV3, STORM benefits from Transformer sequence modeling and a stochastic latent representation, yielding better performance on games with large or multiple reward-related objects.
- Ablations show that using a Transformer as the sequence model with a single stochastic latent and a combined observation-action token is effective, while larger Transformer depth does not necessarily improve results on Atari 100k.
- Incorporating a single demonstration trajectory can improve exploration in sparse-reward games (e.g., Pong) but may hinder dense-reward games (e.g., Ms. Pacman).
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.