TL;DR
This paper introduces a novel video world model architecture that leverages State-Space Models (SSMs) to achieve long-term temporal memory in video generation, overcoming the limitations of existing attention-based models. By combining a block-wise SSM scan with local attention, their model maintains consistent visual worlds over extended horizons while achieving efficient training and constant per-frame inference speed, crucial for interactive applications.
What Problem Does This Paper Address?
Current video world models, often based on diffusion models and transformers, struggle with maintaining long-term temporal consistency. This is primarily due to the quadratic computational complexity of attention mechanisms with respect to sequence length, which limits the context window they can process. Consequently, these models often fail to remember and accurately reconstruct previously seen parts of an environment when generating long videos, leading to inconsistencies and a lack of persistence in simulated worlds. This limitation hinders their use in interactive applications like games, where remembering past states is crucial.
Methods
The proposed architecture, "Long-Context State-Space Video World Models," tackles this problem by integrating State-Space Models (SSMs) into a video diffusion framework.
- Block-wise SSM Scan: Instead of a single, long SSM scan over all spatio-temporal tokens, the authors divide the spatial dimensions into blocks. An independent SSM scan is performed for each block. This approach balances temporal memory and spatial coherence by controlling the block size, allowing for a trade-off between remembering distant temporal information and maintaining local spatial consistency.
- Frame Local Attention: To further improve frame-wise quality and temporal consistency, a frame-local attention block is added after each SSM scan. This block allows tokens within a frame to attend to tokens in the same frame and a fixed window of previous frames, ensuring coherence between consecutive frames.
- Diffusion Forcing with Modified Training: The model utilizes a modified diffusion forcing training scheme. Instead of adding independent noise to all frames, a random number of initial frames are kept completely clean (noise-free). This encourages the model to learn long-term dependencies by providing clean context frames that are more informative than noisy local frames.
- Action Conditioning: Actions are incorporated by processing them through an MLP and adding them to noise level embeddings, which are then injected into the network via adaptive normalization layers.
Datasets
The paper evaluates its model on two datasets:
- Memory Maze: A 3D domain of randomized mazes designed for evaluating long-term memory capabilities in RL agents. Trajectories consist of 2000 action-frame pairs.
- TECO Minecraft: A dataset of 200K gameplay trajectories collected from Minecraft. Agents take one of four actions (forward, turn left, turn right, jump), leading to trajectories where regions are occasionally revisited.
Key Insights and Ideas
- SSMs as a Natural Fit for Causal Sequence Modeling: The paper highlights that SSMs, unlike attention mechanisms, are inherently suited for causal sequence modeling, making them a strong candidate for autoregressive generation tasks.
- Block-wise SSM for Balancing Trade-offs: The novel block-wise SSM scan is a key innovation that allows for explicit control over the trade-off between long-term temporal memory and short-term spatial coherence, a critical challenge in video generation.
- Modified Training for Long-Term Dependencies: The proposed training strategy, which keeps initial frames clean, is crucial for pushing models beyond local minima and encouraging them to learn meaningful long-term correlations, which standard diffusion forcing struggles with.
- Hybrid Architectures are Key: The success of the model lies in the synergy between SSMs and local attention, demonstrating that combining different architectural components can overcome individual limitations.
Key Results
- Superior Long-Term Memory: The proposed model significantly outperforms baselines in preserving long-range memory on both Memory Maze and Minecraft datasets, as evidenced by spatial retrieval and reasoning tasks.
- Efficient Inference: The model achieves constant per-frame inference speed and memory usage, making it suitable for interactive applications, unlike attention-based models whose complexity scales linearly with context length.
- Competitive Performance: On the Memory Maze retrieval task, the model achieved a PSNR of 30.8, closely approaching the performance of full-context causal transformers (32.6) while maintaining sub-quadratic training complexity.
- Qualitative Improvements: Visualizations show that the model generates sharper and more consistent video predictions, accurately reconstructing previously visited regions of the environment, a feat that baselines struggle with.
Limitations and Future Work
- Interactive Frame Rates: While achieving constant inference time, the model does not yet support interactive frame rates. The authors suggest timestep distillation as a potential solution.
- Training Context Length Limitation: The model's memory is still limited by the training context length. Future work could explore length extrapolation techniques for SSMs.
- Low-Resolution Experiments: Current experiments are limited to low-resolution synthetic videos due to computational constraints. Scaling up to high-resolution, realistic videos is a direction for future research.
Summary updated