VRAG: Learning World Models for Interactive Video Generation

Taiye Chen, Xun Hu, Zihan Ding, Chi Jin

TL;DR

Autoregressive video diffusion models often fail over long horizons due to compounding errors and a lack of long-term memory. This paper introduces Video Retrieval Augmented Generation (VRAG), a framework that combines explicit global state conditioning with a specialized memory retrieval training strategy. VRAG significantly reduces long-term drift and maintains spatiotemporal consistency, paving the way for more faithful video-based world models.

What Problem Does This Paper Address?

Building "world models"—AI systems capable of simulating future environments based on actions—is crucial for model-based reinforcement learning and robotics. While video diffusion models excel at generating short, high-quality clips, extending them to generate long, interactive videos introduces two major hurdles:

  1. Compounding Errors: Small inaccuracies in early frames accumulate over time, causing the simulation to rapidly drift into unrealistic states.
  2. Insufficient Memory Mechanisms: Models struggle to maintain the identity of objects, spatial layouts, and world states over extended periods (e.g., forgetting what a room looked like after turning around).

In Large Language Models (LLMs), these issues are mitigated by expanding the context window or using Retrieval-Augmented Generation (RAG). However, the authors discover that current video diffusion models possess much weaker in-context learning capabilities than LLMs, meaning naive adaptations of these techniques fail to preserve long-term video coherence.

Methods

The authors present VRAG, which enhances a Latent Video Diffusion Model (with a Diffusion Transformer backbone) using two core components:

  • Explicit Global State Conditioning: Instead of forcing the model to implicitly deduce its location from pixels, VRAG explicitly feeds the agent's 3D coordinates and orientation (pose) into the model via Adaptive Layer Normalization (AdaLN).
  • Video Retrieval Augmented Generation (VRAG): The model maintains a first-in, first-out (FIFO) buffer of past frames. It uses a similarity search based on the global state to retrieve the most relevant historical frames and appends them to the current generation context.
Figure 2: Overview of our VRAG framework for interactive video generation. The framework incorporates global state conditioning and memory retrieval mechanisms to ensure spatiotemporal consistency and mitigate error accumulation. During both training and inference, retrieved memory serves as context for joint self-attention in spatiotemporal DiT blocks. The model employs per-frame noise injection during training to facilitate autoregressive sampling at inference time.

Crucially, because video models have poor in-context learning, simply throwing retrieved frames into the model at inference time doesn't work. The authors introduce several specialized training modifications:

  1. Temporal Offsets: They add a temporal offset ($\Delta t$) to the Rotary Position Embeddings (RoPE) of retrieved frames to clearly distinguish them from immediate context frames.
  2. Low-Noise Injection: They apply lower noise levels to retrieved frames during training to simulate the imperfect, partially denoised history available during inference.
  3. Loss Masking: They mask out the diffusion loss for retrieved frames, forcing the model to focus its capacity on denoising the current chunk.
  4. Action Masking: They strip action conditions from historical frames to prevent action-related artifacts from causing temporal discontinuities.

Datasets

The framework was trained and evaluated on two primary datasets:

  • Minecraft Gameplay (MineRL): 1,000 long videos (17 hours total). Each sequence spans 1,200 frames and is annotated with action vectors (movement, jumping, camera rotation) and exact world coordinates ($x, y, z$, and yaw angle).
  • RealEstate10K: A real-world dataset of camera trajectories through indoor spaces, used to demonstrate VRAG's ability to generalize beyond synthetic game environments.

Key Insights and Ideas

  • LLM Techniques Don't Copy-Paste to Video: Popular LLM long-context methods like YaRN (position interpolation) or naive frame retrieval show negligible improvement in video world models. Video transformers struggle to leverage long-range dependencies implicitly.
  • Explicit Grounding is Necessary: Relying solely on autoregressive pixel prediction leads to rapid world dissolution. Explicitly conditioning on a coordinate system provides the necessary spatial anchor.
  • RAG Requires Specialized Training for Diffusion: For retrieval to work in generative video, the model must be trained to treat retrieved context differently from immediate history, utilizing distinct noise schedules and loss masking.

Key Results

VRAG was compared against several baselines, including vanilla Diffusion Forcing (DF), YaRN, and a naive History Buffer.

  • World Coherence (300 frames): On a curated test set featuring looping and turning trajectories, VRAG achieved the highest Structural Similarity Index (SSIM) of 0.506 and PSNR of 17.097, noticeably outperforming the baseline DF20 (SSIM: 0.466, PSNR: 16.643).
  • Compounding Error Mitigation (1,200 frames): Over long rollouts, VRAG maintained structural fidelity far better than other models, scoring an average SSIM of 0.349 compared to the naive History Buffer's 0.188.
  • Negligible Overhead: Because the retrieval similarity search is computed on the CPU using low-dimensional state vectors, VRAG adds almost no additional GPU memory or inference-time overhead compared to standard autoregressive generation.
Figure 3: Visual comparison of VRAG with ground truth videos on world coherence evaluation. With 100 initial frames as history buffer, VRAG predicts 200 subsequent frames.

Limitations and Future Work

  • Hardware Constraints: GPU memory limitations still restrict the maximum size of the memory buffer and the length of training sequences.
  • State Dependency: VRAG currently relies on having access to global states (like coordinates). While the authors successfully trained a lightweight pose predictor to estimate these states when ground truth isn't available, extending this to complex environments without explicit coordinates remains an open challenge.
  • Future Directions: The authors suggest exploring more compact, compressed neural memory representations and combining VRAG with frame-compression techniques.

Summary updated

Abstract

Foundational world models must be both interactive and preserve spatiotemporal coherence for effective future planning with action choices. However, present models for long video generation have limited inherent world modeling capabilities due to two main challenges: compounding errors and insufficient memory mechanisms. We enhance image-to-video models with interactive capabilities through additional action conditioning and autoregressive framework, and reveal that compounding error is inherently irreducible in autoregressive video generation, while insufficient memory mechanism leads to incoherence of world models. We propose video retrieval augmented generation (VRAG) with explicit global state conditioning, which significantly reduces long-term compounding errors and increases spatiotemporal consistency of world models. In contrast, naive autoregressive generation with extended context windows and retrieval-augmented generation prove less effective for video generation, primarily due to the limited in-context learning capabilities of current video models. Our work illuminates the fundamental challenges in video world models and establishes a comprehensive benchmark for improving video generation models with internal world modeling capabilities.
BibTeX
@inproceedings{chen2025vrag,
  author = {Taiye Chen and Xun Hu and Zihan Ding and Chi Jin},
  title = {{VRAG: Learning World Models for Interactive Video Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=FzfYoUp8F1},
}
Figure