Video4Spatial: Towards Visuospatial Intelligence with Context-Guided Video Generation

Zeqi Xiao, Yiwei Zhao, Lingxiao Li, Yushi Lan, Ning Yu, Rahul Garg, Mohammad H. Taghavi, Xingang Pan

TL;DR

VIDEO4SPATIAL demonstrates that standard video diffusion models can develop robust visuospatial intelligence using only raw RGB video context, completely bypassing the need for explicit 3D signals like depth maps or camera poses. By framing video generation as an end-to-end spatial reasoning task, the framework successfully navigates complex environments and localizes target objects based purely on text or pose instructions.

What Problem Does This Paper Address?

When humans look at a video of a room, we don't just see a sequence of 2D pixels; we implicitly understand the 3D geometry, the layout of objects, and how to navigate through the space. For AI, however, visuospatial intelligence has traditionally required explicit 3D representations—such as depth maps, point clouds, or exact camera trajectories—which are expensive to collect and difficult to scale.

The authors of this paper ask a fundamental question: Can video generative models achieve true spatial reasoning using visual data alone? They tackle the challenge of teaching a model to infer 3D structure, understand semantic layouts, and plan goal-directed actions (like finding a specific object) purely by conditioning a video diffusion model on a set of raw context frames.

Methods

Instead of treating a video model merely as a high-fidelity renderer, the authors frame it as a spatial reasoner. The core architecture is a standard video diffusion transformer (fine-tuned from Wan2.2), but with three key design modifications that unlock spatial intelligence:

  1. Joint Classifier-Free Guidance (CFG): The authors extend standard CFG to operate jointly over both the text instruction and the video context. This significantly forces the model to maintain strict geometric and contextual consistency with the environment.
  2. Auxiliary Bounding Boxes as a Reasoning Prior: To improve object grounding, the model is trained to physically draw a red bounding box around the target object in the final generated frames. This acts as a visual "chain-of-thought" mechanism, anchoring the model's spatial attention.
  3. Non-Contiguous Context Sampling & Sparse RoPE: Continuous video contains massive redundancy. The framework samples sparse, non-contiguous frames from the context pool but indexes them using their original temporal positions via Rotary Positional Embeddings (RoPE). This allows the model to efficiently ingest long-horizon context and extrapolate to even longer sequences at inference time.
Figure 2. We frame video diffusion models as spatial reasoners, treating context and target frames equally in the model architecture except that context frames are noise-free.
Figure 3. Auxiliary bounding box. The model is trained to gen- erate a bbox (pixel values) located at the target object in the final frames as an explicit reasoning pattern [20]. This auxiliary output improves object grounding accuracy.
Figure 4. RoPE indexing for non-contiguous context. Context frames(blue) are sampled sparsely to reduce redundancy but retain their original temporal indices. Target generation frames (orange) are given new indices with a fixed offset.

Datasets

Because no public datasets were tailored for this specific task, the authors repurposed two prominent indoor scanning datasets:

  • ScanNet++ and ARKitScenes: These provided long camera trajectories through diverse rooms.
  • Automated Pipeline: The authors leveraged an off-the-shelf vision-language model (Qwen3-VL) to automatically identify video clips that end on a centered object and generate natural-language grounding instructions, resulting in 400K text-video pairs.

Evaluation was conducted on 18 completely unseen scenes from ScanNet++.

Key Insights and Ideas

  • Generative Models as Implicit 3D Engines: The paper proves that optimizing for a pure video diffusion objective implicitly forces the network to learn 3D geometry and spatial planning. The model doesn't just hallucinate plausible pixels; it plans diverse, geometrically sound trajectories to reach a goal.
  • Visual Chain-of-Thought: Just as large language models benefit from "thinking step-by-step," video models benefit from generating explicit visual markers (like bounding boxes). Forcing the model to output pixel-level boxes drastically reduces spatial drift.
  • Sparse Training, Long Inference: By decoupling the context frames using sparse RoPE indexing, the model avoids overfitting to short temporal windows. A model trained on only 169 context frames can seamlessly extrapolate to 337 frames during inference, resulting in even better spatial accuracy.

Key Results

The framework was evaluated on two primary tasks: video-based object grounding (navigating to a text-specified object) and scene navigation (following a camera-pose trajectory).

  • Object Grounding: VIDEO4SPATIAL achieved a Spatial Distance (SD) score of 0.1099 (where lower is closer to ground-truth 3D geometry), vastly outperforming powerful baselines like Veo3 (0.2211) and Wan2.2 (0.5341).
  • Instruction Following: Under strict geometric constraints, its Instruction Following (IF) rate reached 0.6486, compared to just 0.2242 for standard Wan2.2.
  • Out-of-Domain Generalization: Despite being trained strictly on indoor datasets, the model successfully generalized to outdoor environments (e.g., finding a bicycle in a park) and localized object categories it had never seen during training.

Limitations and Future Work

While a major step forward, the authors note a few key limitations:

  • Resolution Constraints: Due to the lack of context compression, the model currently operates at a modest resolution of $416 \times 256$. Integrating context compression techniques is a priority for achieving higher visual fidelity.
  • Long-Tail Failures: The model can still suffer from temporal discontinuities or incorrect grounding when faced with rare, long-tail object categories.
  • Static Scene Assumption: The current framework assumes static environments. Extending VIDEO4SPATIAL to complex, dynamic environments containing moving objects or agents remains an exciting open frontier.

Summary updated

BibTeX
@inproceedings{xiao2026video,
  author = {Zeqi Xiao and Yiwei Zhao and Lingxiao Li and Yushi Lan and Ning Yu and Rahul Garg and Mohammad H. Taghavi and Xingang Pan},
  title = {{Video4Spatial: Towards Visuospatial Intelligence with Context-Guided Video Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=n52kmPlRkz},
}
Figure