TL;DR
This paper tackles the challenge of generating diverse training data for world models, which are crucial for understanding and simulating complex environments. By replacing costly human demonstrations or limited random agent exploration with data generated by trained reinforcement learning agents, the authors significantly improve the visual fidelity and controllability of their world model, GenieRedux.
What Problem Does This Paper Address?
World models are powerful tools for AI agents, allowing them to learn the rules and consequences of actions within an environment. However, training these models effectively requires vast amounts of diverse data. The original Genie model, while capable of learning from visually varied environments, relied on expensive human-collected demonstrations. An alternative approach using random agents for data collection proved insufficient, leading to models that overfit to limited environmental scenarios. This paper addresses the need for a more scalable, cost-effective, and effective method for generating high-quality training data for world models, enabling them to generalize better to unseen situations and actions.
Methods
The core contribution of this work is the development of a data generation strategy using trained reinforcement learning (RL) agents. Instead of relying on human demonstrations or random exploration, the authors train an RL agent on the target environment (specifically, the Coinrun game). This trained agent then generates a diverse dataset of interactions, which is subsequently used to train their world model.
They introduce two main model variants:
- GenieRedux: A reproduction of the original Genie model, serving as a baseline.
- GenieRedux-G: A modified version that directly uses the agent's actual actions during evaluation, rather than relying on the world model's internal prediction of actions (from its Latent Action Model). This allows for a cleaner evaluation of the world model's performance by removing the uncertainty introduced by the action prediction component.
The underlying architecture for both models is based on the Spatiotemporal Transformer (ST-ViViT), which encodes visual input into spatio-temporal tokens. A dynamics model then predicts future frames based on these tokens and actions.
Datasets
The primary environment used for training and evaluation is Coinrun, a platformer game.
- Random Agent Exploration Data: Used to train baseline models (GenieRedux-Base, GenieRedux-G-Base). This dataset consists of 88k episodes on random hard levels.
- Trained Agent Exploration Data: Used to train the improved models (GenieRedux-TA, GenieRedux-G-TA). This dataset is collected using a CNN agent trained on easy Coinrun levels and comprises 10k episodes.
- Basic Test Set: A set of 1000 episodes used for evaluating the baseline models.
- Diverse Test Set: A set of 1000 episodes used for evaluating the models trained with trained agent exploration, designed to be more representative of diverse scenarios.
Key Insights and Ideas
- RL Agents as Data Generators: The most significant insight is that using RL-trained agents for data collection is a scalable and effective alternative to human demonstrations or random exploration. This approach yields more diverse and representative data, leading to better world model performance.
- Factoring Out Action Uncertainty: GenieRedux-G's approach of using ground-truth agent actions during evaluation is crucial. It allows for a more accurate assessment of the dynamics model's predictive capabilities by removing the confounding factor of the Latent Action Model's prediction errors.
- Controllability Gains: The trained agent exploration not only improves visual fidelity but also significantly enhances the controllability of the world model, allowing it to consistently perform environment actions.
- Reproducibility and Scalability: The proposed method is presented as reproducible and scalable, suggesting its applicability to other environments and tasks.
Key Results
- Improved Visual Fidelity: GenieRedux-G-TA consistently outperforms baseline models (trained with random exploration) on visual fidelity metrics like PSNR and SSIM across both Basic and Diverse Test Sets. For instance, on the Diverse Test Set, GenieRedux-G-TA achieves a PSNR of 34.44 and SSIM of 0.92, compared to GenieRedux-Base's 23.82 PSNR and 0.73 SSIM.
- Enhanced Controllability: The trained agent exploration leads to significant gains in controllability, as measured by the $\Delta$PSNR metric. GenieRedux-G-TA shows a $\Delta$PSNR of 1.89 on the Diverse Test Set, indicating its superior ability to enact actions over time.
- Action Execution: Qualitative results (Figures 2, 4, 5, 6, 7, 9, 10) demonstrate that GenieRedux-G-TA can consistently perform all environment actions and progress motions, even in complex scenarios.
- Comparison with Jafar: The paper compares its models to Jafar, a concurrent implementation of Genie. GenieRedux-Base, even when trained with Jafar's parameters, shows better visual fidelity and avoids problematic artifacts like "hole digging."
Limitations and Future Work
- Limited Input Frame: The paper notes a limitation where the model struggles when the first frame shows an in-progress motion (e.g., falling). The agent lacks information about the direction of motion, leading to uncertainty or inaction. The authors suggest that providing more input frames could mitigate this.
- New Environment Discovery: When a large, unknown part of the environment is revealed, the model might struggle to accurately reconstruct it, especially if it involves complex exploration.
- Future Work: The authors emphasize the scalability and adaptability of their approach, suggesting it can be extended to new types of environments. The core idea of using RL-trained agents for data generation is a promising direction for future research in world models.
Summary updated