Introduction
Deep Reinforcement Learning (DRL) has demonstrated remarkable success in complex environments, yet its practical application remains limited by extreme sample inefficiency. Traditional model-free agents often require millions of interactions to master a task, a requirement that is prohibitive in real-world domains like robotics. Model-based Reinforcement Learning (MBRL) offers a solution by training agents within a "world model"—a learned simulation of the environment. However, existing world models frequently struggle with the "reality gap," where compounding prediction errors lead to divergent trajectories, and computational inefficiencies inherent in recurrent architectures.
STORM (Stochastic Transformer-based wORld Model) addresses these challenges by integrating the sequence modeling capabilities of Transformers with the stochastic robustness of Variational Autoencoders (VAEs). By optimizing for both predictive accuracy and computational throughput, STORM establishes a new state-of-the-art on the Atari 100k benchmark for non-search-based methods.
The STORM Architecture
STORM's design is centered on three synergistic components:
- Stochastic Image Encoding: High-dimensional visual observations are compressed into discrete latent variables using a Categorical VAE. This stochasticity serves as a buffer against the reality gap; by introducing controlled noise into the latent space, the model becomes more resilient to the minor prediction errors that typically accumulate during long-horizon "imagination."
- Transformer-based Sequence Modeling: Moving away from the sequential bottlenecks of Recurrent Neural Networks (RNNs), STORM utilizes a GPT-like Transformer. To balance expressivity with the constraints of limited data, the authors found that a shallow, 2-layer Transformer architecture is optimal. This configuration captures necessary temporal dependencies without the overfitting risks associated with deeper models.
- Discrete Dynamics: The model predicts the distribution of future states rather than deterministic outcomes. Utilizing a "straight-through" gradient estimator, STORM learns to navigate the discrete latent space efficiently.
During training, the agent (an Actor-Critic model similar to DreamerV3) is trained entirely within the world model's imagination, leveraging KV (Key-Value) caching to accelerate the generation of synthetic trajectories.
Benchmarking on Atari 100k
The efficacy of STORM was evaluated on the Atari 100k benchmark, a rigorous test of sample efficiency where agents are restricted to 100,000 environment steps—equivalent to roughly two hours of real-time gameplay.
STORM achieved a mean human-normalized score (HNS) of 126.7% and a median score of 58.4%. This performance surpasses DreamerV3, the previous state-of-the-art for methods without lookahead search, which achieved 112%.
Beyond raw performance, STORM demonstrates significant computational advantages. The model completes the full 100k-step training cycle in just 4.3 hours on a single NVIDIA RTX 3090. This represents a substantial improvement over previous Transformer-based models like IRIS, which required more intensive hardware and longer training times to achieve lower scores.
Key Insights
- The Power of Shallow Transformers: A critical finding of the STORM research is that deeper is not always better in the low-data regime. While 10-layer models are standard in NLP, they often hinder performance in Atari 100k. A 2-layer Transformer provides the right inductive bias for the temporal context required in these games.
- Attention vs. Recurrence: STORM excels in games with many moving entities, such as Ms. Pacman and Gopher. The Transformer's attention mechanism appears better suited for tracking disparate objects across time compared to the compressed hidden states of RNNs.
- Efficiency via Parallelism: By utilizing Transformers, STORM benefits from parallelized updates during the world model training phase. Combined with KV caching during the imagination phase, the system achieves a training speed of 11.9 FPS on a V100 GPU, nearly doubling the speed of its predecessors.
Limitations and Future Directions
Despite its success, STORM faces challenges with "small object sensitivity." In games like Pong or Breakout, where the movement of a tiny ball is critical, the CNN-based autoencoder sometimes fails to preserve these vital details in the latent representation. Additionally, the joint training of the image encoder and sequence model introduces non-stationarity, as the sequence model's targets are constantly evolving.
Future work may involve integrating lookahead search techniques, such as Monte Carlo Tree Search (MCTS), which could further bridge the gap between STORM and search-based models like MuZero. The authors have released their code on GitHub, providing a highly efficient baseline for the community to build upon.
Summary updated