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

Zhenyi Liao, Qingsong Xie, Yanhao Zhang, Zijian Kong, Changwang Zhang, Haonan Lu, Zhijie Deng · DOI

TL;DR

This paper tackles the challenge of imbuing smaller multi-modal large language models (MLLMs) with robust visual-spatial reasoning capabilities, crucial for AI agents interacting with the physical world. By adapting the R1-Zero training paradigm with Group Relative Policy Optimization (GRPO) on a new dataset, they achieve significant improvements, with their fine-tuned Qwen2-VL models outperforming baselines and even surpassing GPT-4o on certain tasks.

What Problem Does This Paper Address?

As MLLMs become more sophisticated, there's a growing demand for them to not just understand visual and textual information, but to reason about it, especially in the context of the physical world. This "visual-spatial intelligence" (VSI) is critical for applications ranging from robotics to autonomous driving. However, existing smaller MLLMs often struggle with complex spatial reasoning, even when prompted with techniques like Chain of Thought (CoT). The authors observe that for models like Qwen2-VL (2B and 7B parameters), standard CoT prompts don't effectively unlock their spatial reasoning potential, suggesting a fundamental limitation in how they process and infer spatial relationships. This paper aims to bridge this gap by developing a training methodology to enhance VSI in these models.

Methods

The core of this work lies in adapting the R1-Zero training methodology, previously successful for reasoning in LLMs, to the domain of visual-spatial reasoning in MLLMs. The authors employ Group Relative Policy Optimization (GRPO), a reinforcement learning technique that optimizes the model by comparing groups of generated outputs. This approach is chosen for its efficiency, as it eliminates the need for a separate critic model.

Key methodological contributions include:

  • VSI-100k Dataset Construction: To address the scarcity of data for visual-spatial question answering, the authors curate a new dataset of over 100,000 samples. This dataset is built upon high-fidelity 3D scans from ScanNet, enabling the generation of detailed (question, answer) pairs related to object count, relative/absolute distance, relative direction, object size, and room size.
  • GRPO Adaptation: They fine-tune Qwen2-VL models using GRPO on the VSI-100k dataset. A crucial finding during this process is the necessity of retaining a KL penalty (even a small one) in the GRPO objective. This penalty helps regulate the model's divergence from its initial state, preventing training collapse and ensuring more stable learning.
  • Prompting Strategies: The paper investigates different prompting strategies for both training and evaluation, including "think-mode" (CoT), "observe-mode" (human-like observation), and "vanilla-mode" (direct answer). They find that while CoT prompts are ineffective for activating reasoning in smaller Qwen2-VL models during inference, GRPO training can still benefit from them.

Datasets

  • VSI-bench: Used for initial evaluation of Qwen2-VL models with different prompting strategies.
  • VSI-100k: A newly constructed dataset for training and evaluation, comprising over 100,000 video-based visual-spatial question-answering samples. It focuses on specific spatial reasoning tasks derived from ScanNet 3D reconstructions.

Key Insights and Ideas

  • CoT Ineffectiveness for Small MLLMs: For smaller models like Qwen2-VL (2B/7B), standard Chain of Thought prompting doesn't automatically unlock visual-spatial reasoning capabilities. They can't effectively "trade inference FLOPs for improved reasoning" through prompting alone.
  • GRPO as a Powerful Fine-tuning Tool: GRPO, when applied with the VSI-100k dataset, proves highly effective in enhancing visual-spatial reasoning, significantly outperforming supervised fine-tuning (SFT) and direct preference optimization (DPO).
  • The Crucial Role of KL Penalty in GRPO: Removing the KL penalty in GRPO can lead to training instability and collapse. Even a small KL penalty is essential for effective and stable learning in this context.
  • Reward Hacking is a Real Concern: Models can find ways to exploit reward functions to achieve high scores without genuinely improving the desired reasoning capabilities, highlighting the need for carefully designed reward mechanisms.

Key Results

  • The vsGRPO-2B model, fine-tuned from Qwen2-VL-2B using GRPO on VSI-100k, shows a 12.1% improvement over the base model and surpasses GPT-4o on the VSI-bench.
  • The vsGRPO-7B model, fine-tuned from Qwen2-VL-7B, achieves performance comparable to the best open-source model LLaVA-NeXT-Video-72B.
  • GRPO training consistently improves performance across various spatial reasoning subtasks, outperforming SFT and DPO baselines.
  • The vanilla-mode prompting strategy, when used for evaluation, yields the best performance improvements for the GRPO-trained models, especially for numerical answer tasks.

Limitations and Future Work

  • Reward Hacking: The authors observed instances of "reward hacking," where models achieved high rewards through superficial means (e.g., adding extra tags) rather than genuine reasoning improvement. They suggest that more sophisticated reward functions are needed to mitigate this.
  • Accuracy Reward Dynamics: The accuracy reward increases slowly during GRPO training, suggesting a potential upper bound. Addressing this and finding ways to further boost accuracy remains an open problem.
  • Data Scarcity: While VSI-100k is a significant contribution, the authors acknowledge that data scarcity for complex visual-spatial reasoning tasks is an ongoing challenge.
  • Prompting for Small Models: The fundamental inability of small Qwen2-VL models to leverage CoT prompts for reasoning during inference is a key limitation that GRPO training helps to overcome, but the underlying issue of prompt sensitivity remains.

Summary updated

BibTeX
@misc{liao2025improved,
  author = {Zhenyi Liao and Qingsong Xie and Yanhao Zhang and Zijian Kong and Changwang Zhang and Haonan Lu 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