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:
- Compounding Errors: Small inaccuracies in early frames accumulate over time, causing the simulation to rapidly drift into unrealistic states.
- 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.
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:
- 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.
- Low-Noise Injection: They apply lower noise levels to retrieved frames during training to simulate the imperfect, partially denoised history available during inference.
- Loss Masking: They mask out the diffusion loss for retrieved frames, forcing the model to focus its capacity on denoising the current chunk.
- 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.
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