TL;DR
This paper introduces GameFactory, a novel framework that leverages large pre-trained video diffusion models to generate interactive game videos with controllable actions. By disentangling game style from action control and introducing a new Minecraft dataset, GameFactory achieves scene-generalizable action control, enabling the creation of entirely new game experiences beyond existing game genres.
What Problem Does This Paper Address?
The dream of generative AI creating dynamic, interactive game worlds has been hampered by a critical challenge: scene-generalizable action control. While existing video diffusion models can generate impressive visuals, making them respond reliably to user inputs (like keyboard presses and mouse movements) across diverse and unseen game environments has been elusive. Most prior work focused on controlling specific games (e.g., DOOM, Minecraft) using game-specific datasets, leading to models that "collapse" to those specific styles and fail to generalize. The authors aim to bridge this gap by enabling action control that works across a wide range of open-domain scenes, paving the way for truly novel game experiences.
Methods
GameFactory builds upon a transformer-based latent video diffusion model backbone. The core innovations lie in:
- Action Control Module: This module is designed to inject precise control over keyboard and mouse inputs into the diffusion process. It uses cross-attention for discrete keyboard actions and concatenation for continuous mouse movements, allowing for fine-grained control.
- GF-Minecraft Dataset: To train the action control module without human bias and with diverse scenes, the authors created a new dataset by recording 70 hours of gameplay in Minecraft. This dataset features an unbiased distribution of actions and includes textual descriptions for each scene.
- Autoregressive Generation: To enable practical game experiences, GameFactory supports generating long, continuous video sequences. It achieves this by iteratively conditioning the generation on previously generated frames, allowing for infinite-length videos.
- Style-Action Decoupling: A key insight is that directly fine-tuning pre-trained models on game data leads to style leakage. GameFactory addresses this by disentangling game style learning from action control. This is achieved through a multi-phase training strategy:
- Phase #1 (Style Adaptation): A lightweight adapter (LoRA) is fine-tuned on game videos to capture specific game styles.
- Phase #2 (Action Control Training): The style adapter is frozen, and only the action control module is trained on game videos. This allows the model to learn action control independently of specific game styles.
- Phase #3 (Inference): During inference, the style adapter is removed, allowing the action control module to generalize to open-domain scenes.
Datasets
- GF-Minecraft Dataset: A newly introduced dataset consisting of 70 hours of Minecraft gameplay videos. It's notable for its unbiased action distribution (no human bias) and textual scene descriptions, designed to facilitate scene-generalizable action control.
- VPT Dataset: Used for comparison, this dataset is collected from human gameplay and exhibits human behavioral biases.
Key Insights and Ideas
- Disentangling Style and Control is Crucial: The most significant insight is that directly fine-tuning large video models on game data leads to style bias, hindering generalization. Separating the learning of game style from action control is essential for achieving scene-generalizable action control.
- Unbiased Data Enables Rare Actions: Using a dataset like GF-Minecraft, which avoids human biases, allows models to learn and execute actions that human players rarely perform, opening up new gameplay possibilities.
- Leveraging Pre-trained Priors is Key: The framework effectively utilizes the rich generative priors from large, open-domain video diffusion models, which are crucial for generating diverse and novel scenes.
- Multi-Phase Training for Decoupling: The proposed multi-phase training strategy is a clever way to achieve the desired disentanglement, allowing for style adaptation without compromising action control generalization.
Key Results
- Scene Generalization: GameFactory successfully generates interactive game videos in diverse, open-domain scenes, demonstrating a significant step towards generalized game creation. Qualitative results show impressive control in novel environments.
- Action Control Performance: Ablation studies show that the proposed action control mechanisms (cross-attention for discrete, concatenation for continuous) achieve good action-following capabilities, outperforming simpler approaches.
- Long Video Generation: The autoregressive generation method can produce videos exceeding 300 frames, crucial for playable game experiences.
- Comparison to Related Works: GameFactory is presented as the only technical paper validating scene-generalizable action control on a complex action space and extensive open-domain scenarios, outperforming prior methods in key metrics like Cam and Flow.
Limitations and Future Work
- Limitations: The paper acknowledges that generative game engines still face challenges, including designing diverse levels, implementing player feedback systems, in-game object manipulation, long-context memory, and real-time generation. The current work is presented as a first step in this direction.
- Future Work: The authors aim to continue progressing towards the realization of a fully capable generative game engine, implying further research into the aforementioned challenges.
Summary updated