Abstract
Recent advancements in Model-Based Reinforcement Learning (RL) have leveraged Transformer architectures to build world models that simulate environment dynamics. However, these models often suffer from high computational costs due to the quadratic scaling of Transformers relative to sequence length. We present $\Delta$-IRIS, an agent that introduces context-aware tokenization to significantly reduce the number of tokens required to represent environment states. By focusing on "stochastic deltas"—the unpredictable changes between frames—$\Delta$-IRIS achieves a 10x speedup in training time compared to its predecessors while setting new state-of-the-art performance on the Crafter benchmark.
Introduction
In Model-Based Reinforcement Learning, an agent learns a "world model" to simulate its environment, allowing it to practice behaviors in "imagination" before executing them in the real world. While Transformers have become the standard architecture for these models due to their sequence-modeling capabilities, they face a significant bottleneck: computational cost. Standard Transformer world models represent every video frame as a long sequence of discrete tokens. In visually complex environments, this leads to an explosion in memory and processing requirements, limiting the complexity of the worlds an agent can master.
$\Delta$-IRIS addresses this by rethinking how frames are encoded. Instead of re-encoding the entire visual field at every timestep, the model learns to isolate and encode only the unpredictable elements of a transition, effectively disentangling the laws of physics from stochastic events.
Methodology
$\Delta$-IRIS introduces two primary architectural innovations to improve efficiency and performance:
1. Context-Aware Tokenization ($\Delta$-tokens)
Traditional models encode each frame independently. In contrast, $\Delta$-IRIS uses an autoencoder conditioned on the past. In a typical environment, much of the visual change is deterministic (e.g., the background scrolling as an agent moves). The $\Delta$-IRIS autoencoder learns to handle these predictable parts internally. It only generates discrete "$\Delta$-tokens" to describe the stochastic (unpredictable) parts of the transition, such as the sudden appearance of an enemy or a change in a status bar. This allows the model to represent a frame with as few as 4 tokens, compared to the 16 or 64 tokens required by previous iterations.
2. Continuous I-tokens
To maintain a stable representation of the current state without requiring the Transformer to constantly attend to every historical delta, the authors interleave "I-tokens" (continuous image embeddings). These tokens act as a "soft Markov blanket," providing a condensed summary of the current world state. This allows the Transformer to anchor its next prediction in a high-fidelity representation of the present while focusing its attention mechanism on the sequence of changes over time.
Experimental Evaluation
The model was evaluated on two rigorous benchmarks designed to test different aspects of RL performance:
- Crafter: A survival game inspired by Minecraft that requires long-term planning and exploration across 22 distinct tasks. It is a primary test for an agent's ability to handle non-deterministic events.
- Atari 100k: A benchmark consisting of 26 classic games where the agent is restricted to only 100,000 interactions, testing sample efficiency and the ability to learn quickly from limited data.
Key Insights and Results
Disentangling Determinism from Chance
Qualitative analysis reveals that the autoencoder successfully offloads the deterministic rules of the environment. When researchers provided the model with random $\Delta$-tokens, the agent’s movement and the terrain scrolling remained consistent with the environment's physics; only the stochastic elements (like the spawning of animals) became chaotic. This demonstrates that the model has successfully separated the underlying "laws" of the world from random occurrences.
Performance and Efficiency
$\Delta$-IRIS demonstrated superior performance across both benchmarks:
- State-of-the-Art on Crafter: The model solved an average of 17 out of 22 tasks, surpassing DreamerV3 and setting a new record for high-frame budgets (10M frames).
- Computational Speedup: $\Delta$-IRIS is 10 times faster to train than the original IRIS on Crafter and 5 times faster on Atari 100k.
- Reconstruction Quality: Despite using significantly fewer tokens (4 vs 16), the context-aware approach allowed for more accurate environment reconstructions than the baseline.
Discussion and Future Work
While $\Delta$-IRIS represents a significant leap in efficiency, several avenues for future research remain. Currently, the model uses a fixed token budget per timestep. A potential improvement involves dynamic tokenization, where the model uses more tokens for chaotic scenes and zero tokens for perfectly predictable sequences. Additionally, while the world model is highly efficient, the current version does not share internal representations directly with the policy. Integrating these features could further improve performance in data-scarce scenarios.
By focusing on the "boring" vs. "surprising" elements of an environment, $\Delta$-IRIS proves that context-aware compression is not just a tool for saving memory, but a fundamental mechanism for building more capable and efficient autonomous agents.
Summary updated