Memory forcing: Spatio-temporal Memory for Long-Horizon Interactive Video Generation

Junchao Huang, Xinting Hu, Boyao Han, Shaoshuai Shi, Zhuotao Tian, Tianyu He, Li JiangNeurIPS 2026

TL;DR

Interactive video generators—AI "world models" that let you play games like Minecraft in real time—usually suffer from a frustrating Catch-22: they either forget what a room looked like the moment you turn around, or they remember so rigidly that they glitch out when exploring somewhere new. Memory Forcing solves this by pairing a lightweight, 3D-mapped memory bank with a clever training regime that teaches the AI when to trust its long-term spatial memory and when to improvise. The result is an interactive world model that stays consistent over thousands of frames, explores novel terrain smoothly, and runs in real time.

What Problem Does This Paper Address?

Imagine walking through a forest in a video game, turning 360 degrees, and finding the trees have completely rearranged themselves. That is what happens in standard autoregressive video diffusion models—systems that generate video frame-by-frame based on your controller inputs. Because latency and GPU memory limits restrict these models to a tiny "context window" (say, the last 16 frames), anything outside that window vanishes from existence.

Figure 1: Memory Forcing balances temporal context and geometry-indexed spatial memory through Hybrid Training and Chained Forward Training. (a) Previous methods over-relying on long-term spatial memory maintain revisit consistency but fail in new scene exploration. (b) Methods relying only on temporal memory enable effective exploration but lack spatial consistency. (c) Our method excels in both scenarios, maintaining high-quality exploration while ensuring spatial consistency.

Researchers have tried bolting on long-term "spatial memory" by retrieving older frames from similar camera angles. However, this exposes a sharp trade-off:

  • Temporal-only models (using just recent frames) are great at dreaming up new, unexplored territory, but have total amnesia when revisiting old spots.
  • Spatial-memory models remember old spots well, but become overly dependent on that memory bank. When you walk somewhere new where spatial history is sparse, generation quality collapses.
  • Furthermore, standard frame-retrieval methods search through every past frame, meaning memory storage and lookup times bloat linearly the longer you play.

Methods

Built atop a standard Diffusion Transformer (DiT) backbone with cross-attention for injecting historical frames, the authors introduce Memory Forcing, which innovates on two fronts: how the model is trained, and how it stores 3D history.

  1. Hybrid Training: Within a fixed 16-frame context budget, half the slots are reserved for immediate recent frames. The other half dynamically switches based on the training data: when trained on exploratory human gameplay, it fills with extended recent frames; when trained on revisit-heavy trajectories, it pulls from long-term spatial memory. This teaches the model to seamlessly shift gears between improvising and remembering.
  2. Chained Forward Training (CFT): Standard training feeds the model pristine ground-truth past frames ("teacher forcing"), hiding the slight camera drift and visual errors that accumulate during real gameplay. CFT rolls out the model's own predictions across sequential windows during training. As small errors naturally compound, recent frames become slightly unreliable, forcing the model to lean on its long-term spatial memory to anchor the scene.
  3. Geometry-Indexed Spatial Memory: Instead of saving every frame and comparing camera poses, the system uses an off-the-shelf 3D reconstruction network (VGGT) to build a coarse, streaming 3D point cloud of the world—only saving "keyframes" when genuinely new areas appear. Each 3D point remembers which historical frame created it. To generate a new frame, Point-to-Frame Retrieval checks which 3D points are currently in view and grabs the top-$k$ source frames in constant $O(1)$ time, using voxel downsampling to cap point density.

Datasets

  • VPT (Video PreTraining): Unlabeled human Minecraft gameplay paired with player actions, used during Hybrid Training to teach open-ended exploration.
  • MineDojo: Used to generate 11,000 synthetic 1,500-frame Minecraft sequences featuring frequent loop-backs and revisits for spatial memory training, alongside evaluation splits for memory, unseen terrains, and new environments.
  • RealEstate10K: A dataset of real-world indoor camera walkthroughs, used to test whether the method generalizes beyond blocky video games to realistic 3D spaces.

Key Insights and Ideas

  • Letting errors accumulate in training is a feature, not a bug: Chained Forward Training reveals why models ignore long-term memory—if immediate past frames are always crystal clear during training, why bother looking up old ones? Introducing realistic rollout drift forces the spatial cross-attention modules to actually do their job.
  • Memory should scale with space, not time: If a player paces around the same small cabin for an hour, your memory bank shouldn't grow. By tying frame storage to novel 3D spatial coverage and voxelizing the point cloud, retrieval stays blazingly fast whether you are on frame 100 or frame 4,000.

Key Results

  • Superior Quality & Consistency: On Minecraft benchmarks (generating frames 600 to 800), Memory Forcing beats temporal baselines (Oasis, NFD) and spatial-memory baselines (WorldMem) across the board—dropping Fréchet Video Distance (FVD, lower is better) on revisit tasks from WorldMem's 122.2 down to 84.9, and on unseen terrain generalization from 328.3 to 253.7.
  • Massive Efficiency Gains: Across 4,000-frame sequences, the 3D memory system runs 7.3× faster overall than WorldMem's pose-based retrieval (31.21 FPS vs. 4.27 FPS, jumping to 25.7× faster between frames 3,000–3,999) while slashing stored frames by 98.2% (averaging ~73 keyframes vs. 4,000).
  • Real-Time Speed & Real-World Transfer: Distilled to single-step denoising, the model hits 44.9 FPS at 384×224 resolution on an H100 GPU. On RealEstate10K forward-backward camera tests, adding their memory slashes 3D geometric error (Chamfer distance) from 0.1246 to 0.0389 and boosts PSNR from 16.47 to 25.69.

Limitations and Future Work

Not discussed in the paper. (Note: While the text does not include a dedicated limitations section, the architecture relies on camera poses derived from movement actions and assumes largely static scene geometry in its 3D voxel cache, leaving dynamic, moving objects in long-term memory as an open frontier).

Summary updated

Abstract

Autoregressive video diffusion models have demonstrated effectiveness in interactive game generation, with Minecraft gameplay serving as a representative application. To faithfully simulate gameplay, a model must generate natural content when exploring new scenes while preserving spatial consistency when revisiting explored areas. Under limited computation budgets, it must compress and exploit historical cues within a finite context window, which exposes a trade-off: models relying solely on temporal context offer flexible exploration but suffer from poor revisit consistency, whereas adding spatial memory strengthens consistency but may degrade new scene generation quality when the model over-relies on sparse or unreliable spatial context. We present Memory Forcing, a learning framework that pairs training protocols with a geometry-indexed spatial memory. Specifically, our Hybrid Training exposes the model to both exploration and revisitation regimes, guiding the model to rely on temporal memory in new scenes while effectively incorporating spatial memory upon revisits. Chained Forward Training creates larger pose variations and encourages reliance on spatial memory for maintaining consistency. For spatial memory, we integrate Point-to-Frame Retrieval with an incremental 3D cache generated by VGGT, enabling constant-time retrieval of relevant historical context regardless of sequence length. Extensive experiments demonstrate that Memory Forcing achieves superior performance in both long-term spatial consistency and visual quality in new scenes with real-time interaction.
BibTeX
@inproceedings{huang2026memory,
  author = {Junchao Huang and Xinting Hu and Boyao Han and Shaoshuai Shi and Zhuotao Tian and Tianyu He and Li Jiang},
  title = {{Memory forcing: Spatio-temporal Memory for Long-Horizon Interactive Video Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=57vx3F2jgX},
}
Figure