Video World Models with Long-term Spatial Memory

Tong Wu, Shuai Yang, Ryan Po, Yinghao Xu, Ziwei Liu, Dahua Lin, Gordon Wetzstein

Abstract

Current video world models struggle with long-term consistency, often "forgetting" scene details when a camera revisits a location. We present a novel framework that incorporates three distinct memory layers: short-term working memory, geometry-grounded 3D spatial memory, and snapshot-based episodic memory. By decoupling static environments from dynamic elements and utilizing TSDF fusion, our model maintains high fidelity and spatial consistency over extended sequences, significantly outperforming existing baselines in view recall and aesthetic quality.

Introduction

Generative video world models aim to predict future frames based on actions or camera trajectories. However, a persistent challenge is "temporal amnesia." Most current models, built on Diffusion Transformers (DiTs), have limited context windows. When a virtual camera moves through an environment and returns to a previously visited spot, the model often fails to reconstruct the original scene accurately because the initial data has been purged from its short-term memory. This quadratic growth in computational cost for attention mechanisms makes infinite context windows currently infeasible.

The Three-Layer Memory Architecture

To address this, researchers have introduced a framework inspired by human cognitive memory systems. The model utilizes three distinct layers to maintain consistency:

The three-layer memory architecture: Working, Episodic, and Spatial memory.
  1. Working Memory (Short-term): Uses the most recent frames to ensure immediate motion continuity and pixel-level smoothness.
  2. Spatial Memory (Long-term): The core innovation. The model generates a 3D point map alongside video frames. Using Truncated Signed Distance Function (TSDF) fusion, it integrates new observations into a global 3D point cloud. This process specifically filters out dynamic elements (like pedestrians) to create a persistent map of the static environment.
  3. Episodic Memory (Long-term): To preserve fine visual textures that point clouds might lose, the system stores "keyframes" or snapshots. These are triggered when the camera enters a new area, and are retrieved via cross-attention to maintain object identity over long durations.
Overview of the video generation pipeline, showing the integration of global point clouds and memory layers to produce consistent dynamic video.

Methods and Implementation

The system is built upon the CogVideoX architecture, modified to accept these memory streams as conditioning signals. By treating geometry as a "hard" constraint, the model is fed rendered views of its own 3D map, forcing the generation to align with established spatial structures.

Dataset Curation

Training such a model required high-quality 3D ground truth. The authors curated a dataset from MiraData, using Mega-SAM for 4D reconstruction to extract camera intrinsics and per-frame depth maps. The resulting dataset includes 90,000 structured video samples, each paired with explicit 3D spatial memory.

Key Results and Insights

The model demonstrates a significant leap in maintaining scene consistency. In "View Recall" tests—where the camera returns to a previous pose—the model achieved a PSNR of 19.10, nearly 60% higher than state-of-the-art baselines like Wan2.1.

  • Static/Dynamic Decoupling: Filtering the 3D memory allows the model to learn that the environment remains static even as actors move, preventing the "drifting architecture" bug common in other generative models.
  • Event-Driven Snapshots: Episodic memory efficiency is maximized by only saving reference frames when significant new territory is revealed.
  • Human Evaluation: In user studies, the model was ranked twice as high as competitors for camera accuracy and static consistency.

Limitations and Future Directions

While a major step forward, the model faces challenges with extremely jerky camera movements, which can cause artifacts in the TSDF fusion process. Additionally, while spatial consistency is high, character consistency (the "who") remains a separate challenge that could be addressed by combining this spatial memory with frame-packing techniques. Future work will also focus on mitigating the small error accumulations that can still occur over very long sequences.

Summary updated

BibTeX
@inproceedings{wu2025video,
  author = {Tong Wu and Shuai Yang and Ryan Po and Yinghao Xu and Ziwei Liu and Dahua Lin and Gordon Wetzstein},
  title = {{Video World Models with Long-term Spatial Memory}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=HbTxc6U1fO},
}
Figure