TL;DR
CityRAG introduces a retrieval-augmented video generation framework that simulates real-world locations by grounding AI video generation in actual geospatial data (like Street View). By training on temporally unaligned data, it successfully decouples permanent city geometry from transient factors like weather and traffic, enabling minutes-long, 3D-consistent virtual walkthroughs along arbitrary user-defined paths.
What Problem Does This Paper Address?
Standard image-to-video (I2V) models excel at creating visually plausible motion, but they hallucinate details when moving beyond the initial frame's field of view. Conversely, traditional 3D reconstruction methods like NeRFs or 3D Gaussian Splatting accurately capture real-world geometry but require dense, static captures and struggle to simulate dynamic elements or change environmental conditions (e.g., turning a sunny day into a snowstorm).
CityRAG bridges this gap by creating a navigable, 3D-consistent video simulation of real physical locations. It respects both the static layout of the city (buildings, roads) derived from pre-collected geospatial data and the transient attributes (weather, pedestrians) provided by a single conditioning prompt image.
Methods
The authors build CityRAG on top of a state-of-the-art I2V model, Wan 2.1 (14B). They introduce a Retrieval-Augmented Generation (RAG) pipeline that injects a multi-view "memory" of a location via a dedicated branch of cross-attention layers.
- Trajectory Conditioning: Camera paths are fed as extrinsic matrices, processed via a Conv1D layer and a two-layer MLP, and added as residuals to the Diffusion Transformer (DiT) blocks.
- Temporally Unaligned Training: The core algorithmic strategy relies on training the model on pairs of videos captured at the same location but at different times (e.g., morning vs. evening). This forces the cross-attention mechanism to extract global structural invariants (buildings, roads) from the reference data while ignoring transient changes (lighting, cars), which are instead driven by the initial conditioning image.
- Arbitrary Trajectory Stitching: During inference, if a user wants to turn down a street where a single continuous video doesn't exist, CityRAG stitches together perpendicular geospatial clips. The model's cross-attention mechanism proves robust to these spatial and temporal discontinuities.
Datasets
The authors curated a massive dataset from Google Maps consisting of 5.5 million panorama-pose pairs across 10 diverse global cities (including London, Paris, San Francisco, Honolulu, and São Paulo). To implement their unaligned training strategy, they filtered this down to 1.3 million panoramas forming overlapping paths captured at different times or dates.
Key Insights and Ideas
- Disentanglement via Temporal Mismatch: Instead of using complex semantic segmentation heuristics to separate static and dynamic elements, CityRAG achieves this purely through data curation by matching geographically aligned but temporally unaligned paths.
- Global Context over Pixel Alignment: Because the conditioning frames have different lighting and traffic, the model learns to extract global 3D layouts rather than relying on simple pixel-to-pixel warping. This makes it highly robust to imperfect or stitched reference data during inference.
- Leveraging Pretrained VAE Distributions: The authors found that the base video model integrates context much better when the conditioning frames are processed through the model's own temporal VAE, rather than using external feature extractors like VGGT.
Key Results
CityRAG significantly outperforms existing video generation and editing baselines (like Gen3C, TrajCrafter, and AnyV2V) across both view-synthesis and visual quality metrics.
- Quantitative Performance: CityRAG achieved a PSNR of 15.03 and an FID of 16.55, drastically outperforming the closest baseline (Gen3C I2V achieved an FID of 61.07).
- Qualitative Excellence: It generates stable, minutes-long videos spanning thousands of frames, successfully maintaining loop closure and consistent weather conditions even when navigating complex, user-defined trajectories.
Limitations and Future Work
- Inference Latency: The model is not real-time, taking about 90 seconds to generate 73 frames on 8x A100 GPUs (dropping to 30.5 seconds on 8x B200s).
- Autoregressive Drift: Long-horizon generation relies on a simple frame-stitching heuristic (using the last generated frame as the next chunk's first frame), which could benefit from more advanced autoregressive context windows.
- Fixed Text Prompts: Due to a lack of text captions in the Street View dataset, the text cross-attention layers were frozen with a fixed prompt, preventing users from changing the scene via text during inference.
- Data Biases: The underlying dataset lacks extreme weather conditions (like heavy snow or rain) due to the limitations of Street View capture vehicles.
Summary updated