Abstract
Vision-Language Models (VLMs) often suffer from "language shortcuts," relying on textual priors rather than visual evidence. We present VTool-R1, a reinforcement learning framework that trains VLMs to "think with images" by interleaving textual thought with intermediate visual reasoning steps via Python-based tools. Using Group Relative Policy Optimization (GRPO) and outcome-based rewards, VTool-R1 enables models to autonomously highlight, mask, or zoom in on relevant data. Our results show significant accuracy gains on complex chart and table reasoning tasks, with a 3B model outperforming much larger base systems and rivaling closed-source models like GPT-4o.
Introduction
While Large Language Models (LLMs) have achieved significant reasoning breakthroughs through Reinforcement Learning Finetuning (RFT), Vision-Language Models (VLMs) have remained largely "text-dominant." Standard VLMs typically encode an image once and generate a purely textual reasoning chain, which often leads to hallucinations or reliance on internal language biases rather than the provided visual evidence. VTool-R1 addresses this by treating visual tool use as a fundamental component of the model's internal reasoning process.
Methodology: Multimodal Chain of Thought
VTool-R1 introduces a framework where the model generates a Multimodal Chain of Thought (CoT). Instead of producing only text, the model can generate Python code to invoke visual editing tools such as highlight_column, mask_row, or draw_bounding_box.
Iterative Rollout and GRPO
The reasoning process follows a two-stage rollout. In the first stage, the model generates an initial thought and a tool call (Action 0). An external environment executes the code, producing a modified image. In the second stage, the model receives the augmented visual input to generate its final reasoning and answer.
Training is conducted using Group Relative Policy Optimization (GRPO), which estimates advantages from a group of sampled responses without requiring a separate critic model. Crucially, the system uses outcome-based rewards; the model is only rewarded for the correctness of the final answer, forcing it to learn strategic, rather than performative, tool use.
Visual Reasoning in Action
By using tools to mask irrelevant data or highlight specific rows, the model effectively simulates human-like selective attention. This "thinking with images" clears the visual noise that often confuses standard VLMs.
Key Results and Insights
VTool-R1 demonstrated dramatic improvements across structured visual reasoning datasets, including ChartQA and various table-based tasks:
- Performance Gains: The Qwen2.5-VL-7B model improved from 76.2% to 80.7% on ChartQA and from 64.7% to 71.7% on table reasoning.
- Scaling Efficiency: A small 3B model tuned with VTool-R1 saw a massive boost (51.8% to 64.0% on charts), approaching the performance of much larger systems.
- Strategic Tool Use: RL training led to an "Aha moment" where the model learned to be selective. Early in training, models might overuse tools, but they eventually learn to skip tool calls for simple queries and only invoke them for complex visual data.
Conclusion and Future Work
VTool-R1 proves that RL can successfully teach open-source VLMs to use visual tools to enhance reasoning. While currently limited to single-turn tool use and predefined functions, future work will explore multi-turn iterative editing and generalized generative tools to further bridge the gap between open-source models and top-tier closed systems.
Summary updated