4DThinker: Thinking with 4D Imagery for Dynamic Spatial Understanding

Zhangquan Chen, Manyuan Zhang, Xinlei Yu, Xiang An, Bo Li, Xin Xie, ZiDong Wang, Mingze Sun, Shuang Chen, Hongyu Li, Xiaobin Hu, Ruqi HuangarXiv 2026

TL;DR

4DThinker is the first framework that empowers Vision-Language Models (VLMs) to perform dynamic spatial reasoning by internally simulating 4D scene evolution within their continuous latent space. By combining an automated, annotation-free data generation pipeline with a two-stage training recipe (supervised fine-tuning and reinforcement learning), it achieves state-of-the-art performance on complex video reasoning tasks without relying on external geometric modules.

What Problem Does This Paper Address?

When humans watch a dynamic video, we naturally parse motion by mentally tracking landmarks—anchoring on static objects to infer camera movement while simultaneously tracing moving objects to understand their trajectories.

Current Vision-Language Models (VLMs) struggle significantly with this type of dynamic spatial reasoning. Existing attempts to fix this gap usually follow two flawed paths:

  1. Text-only Chain-of-Thought (CoT): Forcing the model to describe complex 3D/4D physics entirely in text, which is inherently verbose, clumsy, and imprecise for continuous spatial-temporal dynamics.
  2. External Geometric Modules: Plugging in external 3D foundation models or mask decoders. While this provides geometric priors, it heavily increases inference complexity and fails to build an intrinsic understanding within the VLM itself.

4DThinker introduces a third alternative: latent reasoning. It allows the VLM to generate continuous "mental imagery" blocks within its own hidden states, simulating how a scene evolves over time without leaving the autoregressive generation loop.

Methods

The 4DThinker framework consists of three main pillars:

  1. Scalable 4D Data Generation: To train the model without expensive manual annotations, the authors designed a pipeline that extracts camera trajectories (via MegaSaM) and tracks salient objects (via SAM3) from raw videos. It automatically constructs motion-centric multiple-choice questions (MCQs) paired with structured CoT reasoning traces that interleave text with special <imagery> placeholders.
  2. Dynamic-Imagery Fine-Tuning (DIFT): During this supervised warm-up stage, the <imagery> placeholders are mapped to compact latent visual tokens (continuous embeddings). The model is optimized using a dual-objective loss: a standard cross-entropy loss ($\mathcal{L}_{ce}$) for text tokens, and a cosine-similarity loss ($\mathcal{L}_{sim}$) that forces the model's hidden states to predict the next latent visual embedding. This teaches the model to internally simulate the visual dynamics of attended objects.
  3. 4D Reinforcement Learning (4DRL): To refine reasoning on complex compound motions, the authors implement a modified Group Relative Policy Optimization (GRPO) framework using outcome-based rewards. Crucially, they restrict the policy gradients to text tokens only. Excluding the latent positions avoids optimization noise caused by the mismatch between continuous hidden-state propagation and discrete log-probabilities.
Figure 1: Overview of 4DThinker. Top: Inference architecture. The model interleaves text reasoning with latent visual tokens as “mental imagery” on a continuous manifold, enabling correct dynamic reasoning where purely textual CoT (e.g., Gemini-3.1-Pro) fails. Bottom: Two-stage training pipeline built on the data from Fig. 2. DIFT (left) jointly supervises text tokens via Lce and latent tokens via Lsim; 4DRL (right) then applies modified GRPO with gradients on text tokens only, excluding latent positions to avoid noise from continuous-discrete mismatch.

Datasets

  • SpatialVID: A large-scale video collection used to automatically synthesize ~38K supervised training samples containing interleaved text and latent imagery.
  • DSR-Train: A dataset of ~37K QA-only samples used during the reinforcement learning (4DRL) stage to encourage autonomous exploration of reasoning paths.
  • DSR-Bench: A fine-grained benchmark covering 13 subtasks that assess quantitative geometric measurements (distance, orientation, speed) under absolute and relative viewpoints.
  • Dyn-Bench: A holistic benchmark evaluating semantic-level dynamic understanding across inter-object, object-scene, and camera-object interactions.

Key Insights and Ideas

  • The Power of Continuous Latents: Text is a poor medium for continuous physics. Moving the "imagination" step into the continuous hidden space allows the VLM to retain rich geometric context without blowing up the token count or breaking language coherence.
  • Gradient Restriction in RL: When applying RL to models that mix text and continuous latents, updating the policy based on continuous latent states destabilizes training. Restricting gradients to discrete text tokens ensures stable optimization while still benefiting from latent propagation.
  • Intrinsic vs. Modular Capability: 4DThinker outperforms models that use explicit external 3D geometric priors (like Geometry Selection Modules), proving that internalizing 4D simulation within the VLM's weights is more effective than modular pipelines.

Key Results

4DThinker delivers massive, consistent performance gains across multiple base VLM architectures (including Qwen2.5-VL, Qwen3-VL, and InternVL3.5):

  • DSR-Bench (Fine-Grained Geometry): The full pipeline (DIFT+4DRL) boosted the Qwen3-VL-32B base model by an incredible +34.0 percentage points (reaching 62.0% accuracy from a 28.0% baseline). This comfortably surpassed proprietary giants like Gemini-2.5-Pro (31.7%) and specialized spatial models like DSR Suite-Model (58.9%).
  • Dyn-Bench (Holistic Semantic Understanding): 4DThinker established a new state-of-the-art on the leaderboard. Qwen3-VL-32B achieved 75.4% accuracy (+10.9 pp over baseline), outperforming GPT-5 (61.4%) and all dedicated spatial understanding baselines.

Significant improvements on the camera-object axis confirm that the model genuinely learns to disentangle camera ego-motion from object dynamics rather than relying on local, single-viewpoint heuristics.

Limitations and Future Work

  • Upstream Error Propagation: The data generation pipeline relies entirely on off-the-shelf geometric estimators like MegaSaM. Any errors or noise in the upstream camera pose estimations propagate directly into the training data.
  • Format Constraints: The framework is currently optimized and evaluated on multiple-choice benchmarks. Extending this continuous latent 4D reasoning to open-ended generative tasks—such as long-form video description or embodied robotic planning—remains an open challenge for future research.

Summary updated

BibTeX
@misc{chen2026dthinker,
  author = {Zhangquan Chen and Manyuan Zhang and Xinlei Yu and Xiang An and Bo Li and Xin Xie and ZiDong Wang and Mingze Sun and Shuang Chen and Hongyu Li and Xiaobin Hu and Ruqi Huang},
  title = {{4DThinker: Thinking with 4D Imagery for Dynamic Spatial Understanding}},
  year = {2026},
  eprint = {2605.05997},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.05997},
}
Figure