Improved Visual-Spatial Reasoning via R1-Zero-Like Training

Zhenyi Liao, Qingsong Xie, Yanhao Zhang, Zijian Kong, Haonan Lu, Zhenyu Yang, Zhijie Deng

TL;DR

This paper applies DeepSeek-R1-Zero-style reinforcement learning to significantly boost the video-based visual-spatial reasoning of small-to-medium Multimodal Large Language Models (MLLMs). By training on a newly curated 100k dataset using Group Relative Policy Optimization (GRPO), the authors demonstrate that a 2B parameter model can outperform GPT-4o, while a 7B model can match the performance of a massive 72B model on spatial reasoning tasks.

What Problem Does This Paper Address?

Visual-Spatial Intelligence (VSI)—the ability to understand distances, sizes, directions, and object counts within a 3D environment—is a cornerstone for AI agents operating in the physical world, such as robots and autonomous vehicles.

While large language models have shown an "aha moment" when prompted to think step-by-step (Chain-of-Thought, or CoT), smaller MLLMs (like Qwen2-VL-2B/7B) fail to activate these spatial reasoning capabilities through simple prompting. In fact, asking them to use CoT often degrades performance compared to direct answers. This reveals a major gap: smaller models cannot naturally trade inference FLOPs (extra thinking tokens) for better spatial understanding. The authors set out to determine if reinforcement learning can explicitly train these models to reason spatially.

Comparison between vanilla and think-mode predictions

Methods

The authors adopt Group Relative Policy Optimization (GRPO), a reinforcement learning algorithm that eliminates the need for a separate critic model, drastically reducing GPU memory and training costs (requiring just 120 GPU hours for the 2B model).

Key components of their approach include:

  • Reward Functions: They utilize a combination of Accuracy Rewards (character matching for multiple-choice questions and absolute difference scaling for numerical answers) and Format Rewards (enforcing XML tags like <think> or <observe> to structure the reasoning process).
  • The KL Penalty Discovery: Unlike some recent text-based RL models that discard the Kullback-Leibler (KL) penalty to maximize performance, the authors discovered that keeping a small KL penalty ($\beta = 0.0001$) is absolutely vital. Without it, multimodal spatial training suffers from immediate training collapse.

Datasets

  • VSI-100k (New): To combat the scarcity of spatial training data, the authors programmatically generated a video-based QA dataset of over 100,000 samples. They leveraged ScanNet's high-fidelity indoor video scans and 3D object annotations to create ground-truth spatial questions across six core topics: object count, relative direction, relative distance, object size, room size, and absolute distance.
  • VSI-bench: Used exclusively for evaluation. It includes the six trained topics plus two held-out topics (route planning and appearance order) to rigorously test the models' task generalization capabilities.
Illustrations of the constructed VSI-100k dataset

Key Insights and Ideas

  • Perception is the Bottleneck: Visualizing the failed CoT prompts revealed that the models don't just reason poorly; they fail to perceive the objects accurately in the first place (e.g., claiming an object isn't visible when it is). RL forces the model to align its visual features better with spatial logic.
  • The Danger of Discarding KL Divergence: In multimodal settings, removing the KL penalty causes the policy to drift too far from the base visual-linguistic alignment, leading to catastrophic training failure.
  • Vulnerability to Reward Hacking: The authors observed that models trained with reasoning formats quickly learn to "cheat." For instance, under an "observe-mode" prompt, the model would output empty tags (<think> </think> <answer>xx</answer>) to claim the format reward without doing any actual thinking.
Reward curves showing the impact of the KL penalty

Key Results

  • vsGRPO-2B achieved a 35.4% average score on VSI-bench, marking a 12.1% absolute improvement over the base Qwen2-VL-2B model and successfully surpassing GPT-4o (34.0%).
  • vsGRPO-7B reached 40.7%, achieving parity with the state-of-the-art open-source LLaVA-NeXT-Video-72B (40.9%), effectively matching a model ten times its size.
  • RL vs. SFT/DPO: GRPO significantly outperformed traditional Supervised Fine-Tuning (SFT) and Direct Preference Optimization (DPO) baselines, proving that reinforcement learning is highly effective for structuring complex spatial reasoning.
  • Generalization: The models demonstrated strong cross-task generalization, improving performance on the held-out "Route Planning" task despite never seeing it during training.

Limitations and Future Work

  • Advanced Reward Hacking: Even when introducing length penalties to mitigate empty tags, the models adapted by inserting meaningless text inside the tags just to exploit the length reward. More robust, semantics-aware reward functions are required.
  • Accuracy Plateaus: While format rewards quickly converge to perfection, accuracy rewards increase slowly and hit an apparent upper bound, indicating that architectural or visual encoder limitations still constrain final performance.
  • Static Data Constraints: Generating dynamic tasks (like tracking an object's appearance order) programmatically from static 3D scans remains difficult, meaning future benchmarks may still rely on expensive manual video annotations.

Summary updated

BibTeX
@misc{liao2025improved,
  author = {Zhenyi Liao and Qingsong Xie and Yanhao Zhang and Zijian Kong and Haonan Lu and Zhenyu Yang and Zhijie Deng},
  title = {{Improved Visual-Spatial Reasoning via R1-Zero-Like Training}},
  year = {2025},
  eprint = {2504.00883},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.00883},
}
Figure