TL;DR
The paper introduces Compression and Retrieval (CaR), a framework that equips video world models with long-term, geometry-aware memory without the prohibitive computational cost of full-context attention. By pairing a dual-branch context compression network with an implicit, attention-driven retrieval mechanism, CaR maintains exceptional scene consistency across complex, long-horizon camera trajectories. The authors also introduce SceneFly, a large-scale synthetic dataset tailored specifically for training and evaluating long-term memory in video generation.
What Problem Does This Paper Address?
Video world models show immense promise for simulating interactive 3D environments for applications like autonomous driving and embodied AI. However, a major hurdle is maintaining long-term memory consistency: when a camera revisits a previously seen area after a long, complex trajectory, the model must render it identically to preserve world consistency.
Current approaches face a stark trade-off between memory coverage and efficiency:
- Full-context models retain all past frames, but the quadratic computational cost of temporal attention makes long histories impractical.
- Explicit retrieval models use hand-crafted heuristic rules (such as field-of-view overlap or feature similarity) to select a subset of history. These rigid rules often fail during large viewpoint changes or occlusions and separate the retrieval process from the video generation itself.
Methods
The authors propose CaR (Compression and Retrieval), which shifts memory retrieval from an explicit preprocessing step to an implicit operation embedded directly within the model's attention layers.
- Relative Pose Encoding: Instead of standard relative positional encodings (like RoPE), CaR embeds 4x4 camera projection matrices directly into the attention mechanism. This mathematically ensures that attention scores naturally suppress irrelevant viewpoints and amplify geometrically similar ones.
- Retrieval Attention Branch: To avoid disrupting the pretrained video diffusion model's priors, the authors introduce a zero-initialized parallel attention branch dedicated solely to learning these geometry-aware interactions.
- Dual-Branch Context Compression: To make global attention over extended histories affordable, CaR compresses context tokens by roughly 97% using two complementary paths:
- Coarse Branch: Downsamples the pixel space before VAE encoding to efficiently preserve global layout and coarse geometry.
- Detail Branch: Encodes original-resolution frames via the VAE first, then applies a lightweight latent downsampler to retain fine-grained textures and boundaries.
Datasets
- SceneFly (New): A newly introduced synthetic dataset built using Unreal Engine 5. It contains approximately 1,000 minutes of video across 100 diverse indoor, outdoor, and stylized environments. It features stochastic, long-range camera trajectories with exact frame-level camera intrinsics/extrinsics and motion-agnostic text captions.
- SpatialVid: An existing real-world dataset with spatial annotations, utilized to evaluate the model's open-domain generalization capabilities.
Key Insights and Ideas
- Soft vs. Hard Decisions: Traditional retrieval mechanisms make a hard, irreversible choice about which frames matter before generation. CaR allows the generation model itself to dynamically weight and combine partial evidence across multiple historical views using continuous attention weights.
- Geometry as an Implicit Filter: By injecting camera projection matrices into the attention computation, the dot product naturally resolves to a relative projective transformation. This allows the model to filter features from nearby viewpoints without manual intervention.
- Handling Camera Hard Cuts: Because retrieval is implicit and globally aware, CaR uniquely supports "Camera Hard Cuts"—synthesizing scene-consistent videos across abrupt, discontinuous jumps in camera perspective where local frame continuity is completely lost.
Key Results
- SceneFly Benchmark: CaR significantly outperformed explicit retrieval baselines (like CaM and HyDRA). On the Scene Revisiting task, CaR achieved a PSNR of 21.23 and an SSIM of 0.672, outperforming HyDRA (PSNR 20.38, SSIM 0.610).
- SpatialVid Generalization: CaR demonstrated strong zero-shot generalization on real-world data, leading the baselines in both video extension (PSNR 18.17) and scene revisiting (PSNR 20.77, SSIM 0.699).
- Compression Necessity: Ablation studies showed that naive downsampling (Ours-DS) caused severe performance drops, proving that the dual-branch compression architecture is vital for retaining fine-grained details.
Limitations and Future Work
- Static Environment Bias: SceneFly and CaR primarily focus on camera motion within static environments. The model currently struggles to handle dynamic objects that change position or appearance over time.
- Autoregressive Drift: CaR lacks a dedicated anti-drift mechanism, meaning minor errors (such as color shifts or loss of sharpness) can still accumulate during very long autoregressive generation rollouts.
- Inference Overhead: The model does not operate in real time due to the iterative nature of diffusion sampling and global attention over compressed history. The authors point to step distillation and consistency-based training as promising future directions to reduce sampling costs.
Summary updated