Abstract
OC-STORM is a novel reinforcement learning framework that leverages a handful of human-annotated frames to teach a "world model" to focus on critical objects rather than background pixels. By integrating pretrained video segmentation models, it achieves state-of-the-art sample efficiency on the Atari 100k benchmark and masters complex boss fights in the visually dense game Hollow Knight.
Introduction: The Pixel-Level Bottleneck
Deep Reinforcement Learning (RL) agents are notoriously "data-hungry," often requiring millions of frames to learn tasks that a human could grasp in minutes. Model-Based Reinforcement Learning (MBRL) attempts to solve this by training a "world model"—a mini-simulator the agent uses to "imagine" and practice scenarios without actually interacting with the live environment.
However, most standard world models rely heavily on pixel-level reconstruction. In a game with a massive, detailed background and a tiny, deadly projectile, the model’s loss function naturally prioritizes the background because it occupies more pixels. Consequently, the tiny projectile—the most critical element for survival—is often ignored as "noise." This paper tackles the challenge of directing a model’s limited capacity toward semantically meaningful, task-critical objects without requiring thousands of manual labels or accessing the game's internal code.
Methodology: The OC-STORM Framework
To overcome these limitations, the authors introduce OC-STORM (Object-Centric Stochastic Transformer-based World Model). The core innovation lies in its two-stage pipeline:
- Few-Shot Perception: Instead of training a vision system from scratch, OC-STORM utilizes frozen, pretrained "foundation" models for video segmentation (such as Cutie or SAM2). A user provides a minimal number of annotations (just 6–12 frames) to identify key objects like the player, the boss, or a ball.
- Hybrid World Model: The system extracts compact, vector-based features for these objects from high-resolution frames. These object-centric features are then fused with a low-resolution (64x64) global pixel view to maintain context.
- Spatial-Temporal Dynamics: The model employs a transformer architecture with alternating attention blocks. Spatial attention reasons about how objects relate to each other and the scene within a single frame, while temporal attention tracks how those relationships evolve over time.
- Imagination-Based Training: Finally, the agent trains its policy entirely within the "imagination" of this object-aware world model, drastically reducing the need for real-world environment samples.
Experimental Domains
The researchers evaluated OC-STORM across three distinct and challenging domains:
- Atari 100k: The gold standard for sample-efficient RL, consisting of 26 games where the agent is limited to only 100,000 frames of experience (roughly 2-3 hours of real-time play).
- Hollow Knight: A visually complex modern "Metroidvania" game. The authors focused on challenging boss fights (like the Mage Lord and Pure Vessel) which feature dynamic backgrounds and intricate character animations that typically baffle standard RL agents.
- Meta-world: A benchmark for robotic manipulation and continuous control, testing the framework's versatility beyond 2D gaming environments.
Key Insights
- Vectors Outperform Masks: A major finding is that representing objects as compact feature vectors is vastly superior to using binary segmentation masks. Masks tend to be noisy and lose critical detail when downsampled, whereas vectors act as a "semantic summary" that is much easier for the world model to predict.
- Foundation Models Generalize Well: Surprisingly, vision models trained primarily on natural images (like SAM2) work remarkably well on pixelated Atari games or the hand-drawn sprites of Hollow Knight with minimal prompting.
- The Power of Inductive Bias: By forcing the model to represent the world as a collection of interacting entities, the authors provide a powerful "inductive bias." This prevents the agent from getting distracted by visual noise, such as flickering torches or moving clouds in the background.
Results and Performance
- Atari Superiority: OC-STORM achieved a Human Normalized Score (HNS) mean of 134.8%, significantly outperforming the base STORM model (114.2%) and other highly competitive baselines like DreamerV3.
- Hollow Knight Mastery: In Hollow Knight, OC-STORM converged much faster than standard models. For the "Mage Lord" boss, it achieved nearly double the win rate of the baseline within the strict 100k frame limit.
- Computational Efficiency: Despite the addition of a sophisticated vision model, the system maintains real-time performance, running at roughly 27-32 iterations per second on a consumer-grade GPU (RTX 3090/4090).
Limitations and Future Directions
While highly effective, the authors identify two primary hurdles for future development:
- Identical Twins: Current segmentation models struggle with "duplicated instances." If a scene contains three identical enemies, the model might swap their identities or fail to track them individually, confusing the RL agent.
- Static Geometry: While the model excels at tracking moving objects, it is less adept at understanding static geometric structures like walls, floors, or platforms. Currently, the model still relies on a raw pixel module to handle these "navigable spaces."
Future work could involve integrating "geometric map" representations to help agents better understand the physical boundaries of their environments, further bridging the gap between pixel-based learning and human-like spatial awareness.
Summary updated