Paper deep dive
ToolVision: Learning When and How to Use Visual Tools with Capability-Aligned Supervision
Delin Mao, Chenghao Sun, Jingwei Song, Chishui Chen, Linfeng Zhang
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 89%
Last extracted: 8/12/2026, 2:53:58 AM
Summary
The paper introduces ToolVision, a framework for multimodal large language models (MLLMs) to learn when and how to use visual tools. It addresses supervision misalignments in the standard SFT-then-RL pipeline by implementing capability-aligned supervised fine-tuning (SFT) and necessity-aware reinforcement learning (RL). During SFT, a multi-agent pipeline with a committee of models scores stepwise evidence gain to retain only useful trajectories. For RL, the system measures tool necessity by comparing performance with and without tools, rewarding tool use only when it provides clear benefit. ToolVision-8B outperforms several baselines on high-resolution benchmarks.
Entities (13)
Relation Signals (8)
ToolVision → uses → SFT
confidence 95% · During SFT, a multi-agent pipeline explores candidate trajectories
ToolVision → uses → RL
confidence 95% · Before RL, ToolVision compares the learner's performance with and without tools
ToolVision-8B → outperforms → Thyme-7B
confidence 90% · surpasses Thyme-7B, CodeVision-8B, and CodeDance-7B on all three high-resolution benchmarks
ToolVision-8B → outperforms → CodeVision-8B
confidence 90% · surpasses Thyme-7B, CodeVision-8B, and CodeDance-7B on all three high-resolution benchmarks
ToolVision-8B → outperforms → CodeDance-7B
confidence 90% · surpasses Thyme-7B, CodeVision-8B, and CodeDance-7B on all three high-resolution benchmarks
ToolVision-8B → outperforms → Qwen3-VL-32B-Thinking
confidence 90% · outperforms Qwen3-VL-32B-Thinking on V* and HRBench 8K
ToolVision → employs → OCR
confidence 85% · An optical character recognition (OCR) tool reads dense text
ToolVision → employs → DINO
confidence 80% · box = _call_dino(“boat”)[0]
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Thinking with images allows a multimodal model to compensate for limited perception by invoking visual tools through code. Yet the prevailing SFT-then-RL recipe creates a different supervision misalignment at each stage. SFT is expected to teach how to use tools, but trajectories from stronger teachers may succeed through perceptual capabilities that a smaller student cannot reliably reproduce or exploit, causing the student to imitate tool-call patterns without learning how to make them useful. RL is expected to teach when to use tools, but outcome-only rewards make fallible tool execution a liability and suppress tool use, whereas a blanket bonus for every correct tool-using trajectory encourages valid but ineffective operations. To address these two misalignments, we introduce ToolVision. During SFT, a multi-agent pipeline explores candidate trajectories, and a committee including student-scale models scores stepwise evidence gain to rank and prune the search branches. Only successfully executed trajectories with correct final answers are retained for SFT. Before RL, ToolVision compares the learner's performance with and without tools, then rewards successful tool use only on questions where tools provide a clear benefit. Both signals are constructed automatically from public task data without additional human annotations of tool use or necessity. ToolVision-8B improves over its base on all seven main benchmarks, surpasses Thyme-7B, CodeVision-8B, and CodeDance-7B on all three high-resolution benchmarks, and outperforms Qwen3-VL-32B-Thinking on V* and HRBench 8K. We will publicly release the datasets and source code.
Tags
Links
- Source: https://arxiv.org/abs/2608.08907v1
- Canonical: https://arxiv.org/abs/2608.08907v1
Trouble viewing inline? Open PDF directly →
Full Text
85,897 characters extracted from source content.
Expand or collapse full text
ToolVision: Learning When and How to Use Visual Tools with Capability-Aligned Supervision Delin Mao ∗1 , Chenghao Sun ∗2 , Jingwei Song 1 , Chishui Chen 3 , Linfeng Zhang 1† 1 Shanghai Jiao Tong University 2 University of Chinese Academy of Sciences 3 Fudan University Abstract Thinking with images allows a multimodal model to compen- sate for limited perception by invoking visual tools through code. Yet the prevailing SFT-then-RL recipe creates a dif- ferent supervision misalignment at each stage. SFT is ex- pected to teach how to use tools, but trajectories from stronger teachers may succeed through perceptual capabilities that a smaller student cannot reliably reproduce or exploit, causing the student to imitate tool-call patterns without learning how to make them useful. RL is expected to teach when to use tools, but outcome-only rewards make fallible tool execution a liability and suppress tool use, whereas a blanket bonus for every correct tool-using trajectory encourages valid but ineffective operations. To address these two misalignments, we introduce ToolVision. During SFT, a multi-agent pipeline explores candidate trajectories, and a committee including student-scale models scores stepwise evidence gain to rank and prune the search branches. Only successfully executed trajectories with correct final answers are retained for SFT. Be- fore RL, ToolVision compares the learner’s performance with and without tools, then rewards successful tool use only on questions where tools provide a clear benefit. Both signals are constructed automatically from public task data without addi- tional human annotations of tool use or necessity. ToolVision- 8B improves over its base on all seven main benchmarks, sur- passes Thyme-7B, CodeVision-8B, and CodeDance-7B on all three high-resolution benchmarks, and outperforms Qwen3- VL-32B-Thinking on V * and HRBench 8K. We will publicly release the datasets and source code. 1 Introduction Multimodal large language models (MLLMs) can now rea- son about an image by acting on it rather than describing it once. Under the thinking with images paradigm popularized by o3 (OpenAI 2025), a model interleaves reasoning with tool calls that transform or query the visual input, recovering evidence a single forward pass would miss (Bai et al. 2025b; Chen et al. 2024b). Recent systems replace early fixed crop- and-zoom operations (Wu and Xie 2024; Wang et al. 2025) with a code-as-tool interface, letting the model write exe- cutable code to invoke arbitrary image operations (Guo et al. 2026; Zhang et al. 2026). The promise is a form of lever- age. A model may zoom into a distant region, read dense text with an OCR tool (Cui et al. 2025), or delegate local- ization to an open-vocabulary detector (Liu et al. 2024a); by ∗ These authors contributed equally. † Corresponding author. 85.9 82.2 77.5 67.5 81.4 77.0 72.4 65.0 75.9 72.0 68.1 59.6 85.1 86.3 81.9 80.9 90.1 86.1 88.6 85.7 59.5 55.2 46.9 52.0 68.7 64.6 57.4 59.7 V * H R - 4 K K 8 - R H h c n e B R C O A Q t r a h C M M E - R W - L M M E - R W - C N ToolVision-8B (ours) Thyme-7B Qwen3-VL-8B-Thinking GPT-4o Figure 1: ToolVision-8B against its base model (Qwen3-VL- 8B-Thinking), Thyme-7B, and GPT-4o across the seven main benchmarks. Bar lengths are scaled within each benchmark; labels give absolute scores. routing perception through the right tool, even a modestly sized model can reach answers that would otherwise demand far stronger perception. Yet for an 8B learner, the prevailing SFT-then-RL recipe breaks down in a different way at each stage (Figure 2). Misalignment in How to Use Visual Tools. Existing work commonly uses SFT to distill tool-use trajectories from a much stronger teacher (Zhang et al. 2026). The teacher chooses tools according to its own visual capabilities. For example, it may read small text directly when the student needs an OCR tool, or predict crop coordinates from fine- grained visual cues that the student cannot reliably perceive. Traditional SFT imitates the complete teacher trajectory without checking whether the student can reproduce the capabilities behind it, so the student copies tool-call patterns arXiv:2608.08907v1 [cs.CV] 9 Aug 2026 Problem 1 Distilled trajectories rely on teacher-only abilities Problem 2 The tool-reward dilemma in RL Q: What’s the number written on the boat? (A) 15 (B) 25 (C) 10 (D) 5 Traditional SFT 1 2 3 img.crop((380,530, 420,550)) img.crop((0,3760, 5046,6600)) ToolVision (ours) Original 5046×7680 420,550)) img.crop((1180,4360, 1860,4720)) Answer: A Answer: D box = _call_dino(“boat”)[0] crop = img.crop(box) result = crop I need to call dino to find the boat ... Figure 2: Two failure modes in the SFT-then-RL recipe. Left: coordinate-crop failures in the distilled-then-RL policy, alongside detector-guided localization in ToolVision. Right, top: total reward and tool calls per trajectory under outcome- only optimization. Right, bottom: ineffective-operation rates and the seven-benchmark average for the uniform-bonus variant (w ≡ 0.2 for every question) and ToolVision. Ineffective operations are unmodified-image re-displays or unnecessary rotate/flips. without learning to obtain useful visual evidence. As shown in Figure 2 (left), the distilled policy does invoke the crop tool, but it follows the teacher’s direct coordinate-prediction pattern and misses the target because it lacks the same localization ability. The problem is therefore not that the teacher trajectory is invalid, but that the demonstration is misaligned with the student’s capabilities. Misalignment in When to Use Visual Tools. RL supervi- sion faces two opposite failures, neither of which teaches the model when tool use is worthwhile given its own capabilities. Without a tool-specific incentive, each tool call is a liability because code generation, execution, or perception may fail. Under outcome-only optimization, avoiding tools can there- fore be safer than exploring them. As shown in Figure 2 (right, top), total reward continues to rise while tool calls fall to zero, consistent with Thyme’s observation that unre- liable code generation pressures the policy toward direct an- swers (Zhang et al. 2026). At the opposite extreme, giving the same bonus to every correct tool-using trajectory teaches the policy that tool use is generally profitable, even when it pro- vides no useful evidence. As shown in Figure 2 (right, bot- tom), this produces more ineffective operations while reduc- ing average accuracy. The RL problem is therefore not simply to preserve or increase tool use, but to reward it only when it provides useful evidence for the learner on that question. To address these two misalignments, we introduce ToolVi- sion, which aligns supervision for how and when to use visual tools with the learner’s capabilities. For SFT, a multi- agent pipeline proposes and executes candidate tool opera- tions through a unified code interface, and a cross-scale com- mittee scores the evidence each step yields for student-scale models; only verified trajectories enter SFT. For RL, ToolVi- sion compares the frozen SFT model’s performance with and without tools on each question, and grants the tool-success reward only where tools provide a clear benefit. Both stages share a heterogeneous visual toolbelt spanning OCR, open- vocabulary detection and segmentation, depth estimation, counting, and pure image operations (Section 3.1). Figure 3 summarizes the pipeline, with details in Section 3.2. ToolVision-8B improves over its base on all seven main benchmarks (Figure 1). It reaches 85.9 on V * , 81.4 on HRBench 4K, and 75.9 on HRBench 8K, surpassing Thyme- 7B, CodeVision-8B, and CodeDance-7B on all three. Despite using only 8B parameters, it outperforms Qwen3-VL-32B- Thinking on V * and HRBench 8K. Behavioral analysis shows that specialist operations are used more often on tasks where their evidence is relevant, including text reading, counting, and small-target localization. In summary, our contributions are threefold: • We identify capability misalignment in both how visual-tool use is demonstrated during SFT and when it is rewarded during RL. ToolVision aligns both stages using supervision built automatically from public task data. • For SFT, we introduce capability-aligned trajectory synthesis, which retains only trajectories whose stepwise evidence measurably helps student-scale models, teach- ing executable tool behaviors rather than surface-level tool-call patterns. • For RL, we introduce model-conditioned must-use-tool (MUT) supervision, whose fixed necessity labels gate the tool-success reward only where tools demonstrably help the frozen SFT model, avoiding both tool collapse and question-agnostic overuse. 1 Capability-Aligned Sampling Base MLLM planner Hard: incorrect What coloris the helmet on the left side? Attribute recognition Depth estimation Chart Understanding Counting Text reading Teaches when not to use tools Requires tool use Evidence-Seeking Construction what is written in the last row of the notes? How many macarons are there in the image? Easy: correct Direct answer Which object is closer to the camera , the window frame or the radiator? What is the average of 1972.0 from Belize to Benin? 2 Evidence-Seeking Construction Original image & question What book is this? Plan A (candidate) Accumulated Evidence X` CropRotate X` Current step OCR Plan B (candidate) 1) Crop region 2) Rotate image 3) OCR content 1) Rotate image 2) Crop region 3) Sharpness Executor Executor from tools import * img = crop(img,bbox) img = rotate(img,90) text = ocr(img) from tools import * img = rotate(img,90) img = crop(img,bbox) img = sharpness(img) OCR Grounding Segmentation Depth Counting PIL Tools Evidence-Gain Verification 3 budget≤6 steps One code interface for all tools Before step t . . . 8-model Judge Committee 푆 ! =퐴푣푔 푀푎푡푐ℎ(푝푟푒푑,퐺푇) The Complete Book of GREEK COOKING Execute tool t rotate After step t 푆 !"# =0.5 푆 ! =0.875 ∆ ! =0.375 Evidence-Gain Capability-Aligned SFT Data 4 ∆ " <0 ∆ " >0 ∆ " =0 Keep & continue Prune branch Bridge once; next step 2 step no gain Easy (no-tool) dialogues Q: who has the secret diaries? A: <think>...</think> Bob Dole In which part of the picture is the car? A: <think>...</think> right How many bread rolls are there in the image? A: <think>...</think> 10 Q: Q: Merged SFT dataset Student MLLM GroundCrop ... yellow Count ... 10 DepthCrop ... radiator Spatial Understanding Counting Question Text Reading Figure 3: Overview of the capability-aligned SFT construction pipeline. Base-model successes provide direct-answer dia- logues, while failures enter Planner–Executor search over the shared visual-tool interface. An eight-model committee scores stepwise evidence gain to retain or prune branches; validated trajectories merge with direct dialogues for SFT. 2 Related Work Visual Tool Interfaces. Systems that implement thinking with images (OpenAI 2025) differ mainly in their tool interfaces. Early systems bind this ability to a small set of fixed operations—guided visual search, crop-and-zoom, region-level highlighting—that augment but do not tran- scend the model’s original visual encoder (Wu and Xie 2024; Zheng et al. 2026; Su et al. 2025a; Liu et al. 2024c; Shao et al. 2024a; Fan et al. 2025; Wu et al. 2025; Yang et al. 2023). A complementary line of visual-programming methods compiles a natural-language query into a program over vision APIs, obtaining compositional reasoning without training (Surís, Menon, and Vondrick 2023; Gupta and Kembhavi 2023; Hu et al. 2024). More recent work replaces the fixed tool registry with a code-as-tool interface in which the model writes executable code to invoke arbitrary image operations (Zhao et al. 2025; Zhang et al. 2026; Song et al. 2026; Guo et al. 2026); see Su et al. (2025b) for a survey. These systems make diverse visual operations executable; the remaining question is how to supervise which operations produce usable evidence and when they are worth invoking. Learning Visual Tool Use. Group-relative policy opti- mization (Shao et al. 2024b; Yu et al. 2025; Zheng et al. 2025; Guo et al. 2025) has become a standard approach for eliciting reasoning, and a parallel line integrates external tools into the reasoning loop (Yao et al. 2023; Schick et al. 2023; Gou et al. 2024; Feng et al. 2026; Qian et al. 2025; Jin et al. 2025; Liu et al. 2025). In visual tool use, outcome-only objectives and blanket tool bonuses reproduce the two extremes discussed in the introduction (Zheng et al. 2026; Su et al. 2025a). Among code-as-tool systems, Thyme (Zhang et al. 2026) activates broad code capabilities through large-scale curated SFT and uses an outcome-centered RL objective augmented with for- mat and reasoning-consistency rewards. CodeVision (Guo et al. 2026) strengthens this recipe with dense process su- pervision constructed from required-tool metadata, image transformations, and ground-truth crop regions. This guid- ance makes the target operation explicit, but also predefines the tool distribution and requires new rules and metadata as tasks and tools expand. CodeDance (Song et al. 2026) takes a different route: rather than specifying a required operation, it adapts tool incentives using the aggregate accuracy of the current rollout group and execution feedback. Empirical dif- ficulty, however, is not the counterfactual benefit of tools: a low-accuracy group may represent either a tool-responsive question or one that neither the model nor its tools can solve; successful execution need not yield useful evidence; and the online proxy changes with the policy. ToolVision instead ver- ifies evidence gain across model scales for SFT and measures tool necessity offline for the frozen SFT model. 3 Methodology 3.1 Preliminaries Problem Setup and Supervision Targets. Let x = (I,q) denote an image–question pair with reference answer y. An MLLM policy π θ solves x over multiple turns. At turn t, it either emits a final answer or produces a code action a t over the exposed operations O. Executing a t in a sandbox returns an image or text result z t , which is appended to the accumulated evidence E t = (I,z 1 ,...,z t ). A tool step is useful only when the returned result becomes evidence that the learner can exploit. We formalize this requirement with the cross-scale Judge committeeC introduced below. Its answerability score after High-ResolutionText & ChartReal World ModelV * HR-4K HR-8K OCRBench ChartQA MME-L MME-CN Closed-Source MLLMs GPT-4o † 67.565.059.680.985.752.059.7 Open-Source MLLMs Qwen2.5-VL-7B † 76.468.865.388.483.744.160.8 Qwen2.5-VL-32B † 81.273.470.485.581.146.260.5 InternVL3-8B † 70.270.069.388.185.948.660.5 Qwen3-VL-30B-A3B-Thinking ‡ 81.277.871.383.9 § — Qwen3-VL-32B-Thinking ‡ 84.882.174.885.5 § — Qwen3-VL-8B-Thinking (base)77.572.468.181.988.646.957.4 Tool-Integrated Open-Source MLLMs Thyme-7B † 82.277.072.086.386.155.264.6 CodeVision-8B ‡ 82.477.173.4— CodeDance-7B ♣ 84.875.272.3—87.5— ToolVision-8B (ours)85.9 (+8.4) 81.4 (+9.0) 75.9 (+7.8) 85.1 (+3.2)90.1 (+1.5) 59.5 (+12.7) 68.7 (+11.3) Table 1: Main results on seven benchmarks. Sources: † Thyme (Zhang et al. 2026); ‡ CodeVision (Guo et al. 2026); ♣ CodeDance (Song et al. 2026); and § the Qwen3-VL technical report (Bai et al. 2025a). “—” denotes unreported results. MME-L/CN denote MME-RealWorld-Lite and MME-RealWorld-CN. Bold marks the column best; parenthesized deltas are improvements over the base model, computed before rounding the displayed scores. ModelArxivQA-2k↑ FSC-147↓ Qwen3-VL-8B-Thinking58.344.70 ToolVision-8B (ours)74.5 (+16.2) 11.56 (−74%) Table 2: Results on ArxivQA-2k and FSC-147-test. Paren- theses report the accuracy gain and relative MAE reduction over the base model, respectively. step t is J (E t ;x) = 1 |C| X m∈C score(m(q,E t ),y), ∆ t = J (E t ;x)− J (E t−1 ;x). Here score(·) grades each member’s answer to q, produced from the evidence E t , against the reference y. The stepwise difference ∆ t is a capability-sensitive evidence-gain signal: it measures whether the new result improves answerability across model scales, rather than whether a strong proposer can use it by itself. Tool necessity is a separate, question-level target. We write w(x,π SFT ) for the necessity confidence obtained by com- paring paired rollouts of the frozen SFT policy π SFT with tools disabled and enabled. Its construction is specified in Section 3.3. Making the model explicit is essential: the same question may require a tool for one policy but not for a stronger one. Together, the two quantities align supervision at complementary stages: ∆ t guides SFT toward evidence usable at the learner’s scale, whereas w(x,π SFT ) guides RL toward questions that benefit from tools. SFT thereby places useful behaviors within the policy’s practical sup- port—making them likely enough to be explored—and RL selectively reweights and amplifies them. A Heterogeneous Visual Toolbelt. The two supervision targets become meaningful only when the interface exposes heterogeneous sources of visual evidence rather than geomet- ric edits alone. Behind a single code interface, we assemble a toolbelt that spans specialist services and a set of pure image operations. An optical character recognition (OCR) tool reads dense text (Cui et al. 2025); an open-vocabulary detector paired with a promptable segmenter localizes, crops, and masks objects by text phrase (Liu et al. 2024a; Ravi et al. 2025); a monocular estimator returns metric depth (Bochkovskii et al. 2025); and an open-world counter returns instance counts (Amini-Naieni, Han, and Zisserman 2024). Alongside these, pure operations—cropping, resiz- ing, rotation, flipping, contrast and sharpness adjustment, and drawing—handle geometric and photometric transforms without external models. This heterogeneity makes both decisions nontrivial: whether a returned result becomes usable evidence for student-scale models, and whether a given question–model pair benefits from invoking a tool. All specialist services fit within 16 GB of GPU memory on a single shared GPU. Deployment details are provided in the Appendix and the accompanying code release. 3.2 Capability-Aligned Supervised Fine-Tuning The supervised stage addresses the teacher–student capabil- ity misalignment by constructing tool trajectories primarily from questions the base model fails, while retaining a smaller set of short direct-answer trajectories to preserve the option of answering without a tool (Figure 3). SFT Dataset. Our SFT set contains 4,057 examples drawn from public training splits that span compositional and spa- tial reasoning, text reading, counting, and orientation cor- rection (Hudson and Manning 2019; Daxberger et al. 2025; Singh et al. 2019; Ranjan et al. 2021; Guo et al. 2026). CodeVision training examples are used only to provide seed demonstrations for the reversible rotate and flip operations. All remaining tool calls and step-level values are synthe- sized without additional human annotations of tool use or step utility. Capability-Aligned Trajectory Synthesis. For each base-model failure, a Planner observes the accumulated evi- dence and either proposes up to two alternative next actions or decides that the question can be answered. An Executor realizes each proposal as Python code over the toolbelt and runs it in the sandbox. Both roles use Qwen3.6-plus, but a strong model is used only to propose and execute candidates: an action does not become supervision merely because the teacher produced it. The search retains at most two child trajectories after each round and allows at most six executed steps along any trajectory. Execution provides the first filter. Exceptions while pro- ducing the code or running it in the sandbox mark the branch as erroneous; an unsuccessful tool return marks it as failed; and a branch whose return contains neither an image nor text is pruned. Such branches leave the search frontier and cannot enter the exported SFT data. Every successfully executed step is evaluated by an eight-model committee spanning strong multimodal mod- els, student-scale models, and multiple model families. The full roster, scoring protocol, and a proposer-sensitivity check are given in the Appendix. Strong members stabilize the esti- mate of whether the accumulated evidence remains sufficient, while student-scale members keep the score sensitive to evi- dence that becomes usable at the target scale. The committee score ranks the search frontier and controls termination: a branch is pruned immediately when its score decreases, a single zero-gain step is tolerated, and a second consecutive zero-gain step terminates the branch. Completed trajectories are finally checked for a correct final answer, and only those are exported as supervised examples. The resulting examples seed executable tool behaviors whose returned evidence is useful beyond the strong model that proposed them. The resulting checkpoint, referred to below as the frozen SFT model, initializes RL. 3.3 Necessity-Aware Reinforcement Learning Reinforcement learning can in principle discover new behav- ior, but in practice it primarily sharpens the practical support seeded by supervised fine-tuning. We optimize the policy with Group Sequence Policy Optimization (GSPO) (Zheng et al. 2025). Tool incentives face the two extremes identified in the introduction: outcome-only rewards suppress tool ex- ploration, while question-agnostic bonuses encourage valid but ineffective operations. A useful tool incentive must there- fore depend on both the question and the model being trained. Measuring Tool Necessity and Constructing the RL Set. As noted above, tool necessity is model-dependent: the same question may require an OCR or localization tool for the frozen SFT model while a stronger model can answer it di- rectly. Difficulty alone is also insufficient, because a question that is difficult without tools may either become solvable with tools or remain beyond both the model and its tools. We there- fore estimate w(x,π SFT ) once before RL using a sequential rollout procedure and keep the resulting confidence fixed throughout training. This contrast also addresses a blind spot of conventional outcome filtering: all-correct and all-wrong rollout groups have zero group-relative advantage, yet some questions in the latter group become solvable with tools. We first sample sixteen responses from the frozen SFT model with tools disabled. Questions answered correctly at most eight times are retained as tool-benefit candidates. This stage identifies questions on which the model is unreliable, without assuming that a tool can actually help. For each can- didate, we then expose the full tool interface and sample eight additional agent trajectories. Tool use is optional: the model may invoke one or more tools or answer directly. We define the grounded tool-correct count (GTC) as the number of cor- rect trajectories in the tool-enabled arm that choose to invoke at least one tool. The no-tool correct count (NTC) records cor- rect trajectories that answer directly without invoking a tool in this tool-enabled stage. Since this measurement precedes RL, no reward yet favors tool calls, so a policy that can answer from internal knowledge simply answers directly—and such successes are precisely what the no-tool rollouts and NTC record. A question enters the necessity-weighted tiers only when correct answers co-occur with tool use and rarely arise without it, so the GTC–NTC contrast acts as a question-level counterfactual signal, not a per-trajectory usage check. We use these counts to form three training groups. Strong MUT questions show repeated correct tool-using trajecto- ries but little direct success (GTC ≥ 2, NTC ≤ 1) and receive w = 0.5. Questions with a single correct tool-using trajectory (GTC = 1) form the weak group and receive w = 0.2. To preserve direct reasoning, we then sample ordi- nary questions—stratified by source—from those answered correctly in nine to fifteen of the sixteen no-tool rollouts and set w = 0. Questions always solved without tools and hard candidates without clear tool benefit are excluded. Beyond the SFT sources, the RL pool uses publicly re- leased splits spanning chart understanding, scientific figures, spatial reasoning, and counting, including ChartQA, Arx- ivQA, and PixMo-Count (Masry et al. 2022; Li et al. 2024; Deitke et al. 2025). The full source list, split choices, and per-source counts are provided in the Appendix. The final set contains 24,921 questions: 8,460 strong MUT, 6,481 weak, and 9,980 ordinary. Necessity-Conditioned Reward. Writingn for the number of tool calls, we optimize R = R acc +λR proto +w(x,π SFT )R mut −μ max(0, n−τ ), where R acc marks a correct final answer. R proto is a format- and-protocol gate: the reasoning and answer tags must be well formed and, when a tool call is present, its JSON must be valid. It is independent of whether a tool is used, so a valid direct answer can receive the full protocol score. The trajectory-level indicator R mut ∈ 0, 1 marks tool-use suc- cess: the final answer is correct, at least one tool is used, and no tool call raises an execution error. The frozen label con- fidence w(x,π SFT ) determines whether, and how strongly, a successful tool-using trajectory is rewarded through the product w(x,π SFT )R mut . The final term penalizes calls beyond an overuse threshold τ. Ordinary questions have w = 0 but retain the accuracy, protocol, and overuse terms, so nothing in their reward favors calling a tool. On a necessity-weighted question answered without a tool, R mut = 0 but the answer is not penalized. The reward therefore selectively amplifies successful tool behavior where the paired measurement finds it useful, rather than rewarding tool use on every question. 4 Experiments 4.1 Experimental Settings ToolVision-8B is initialized from Qwen3-VL-8B-Thinking and fine-tuned on the 4,057 SFT examples described above. We train the language model for two epochs with a global batch size of 128, freezing the vision encoder and projector. Optimizer settings are listed in the Appendix. Reinforcement learning then runs GSPO on the 24,921-question training mixture with 128 prompts per batch, eight rollouts per prompt, a mini-batch size of 32, and an actor learning rate of 10 −6 . Rollouts use a maximum of 12 assistant turns, temperature 0.7, and top-p 0.95. We set λ = 0.2, μ = 0.05, the tool-call overuse threshold τ = 6, and confidence weights w = 0.5/0.2/0 for strong MUT, weak, and ordinary questions. We report the checkpoint at step 180. Benchmark instances and metric implementations are aligned with LMMs-Eval (Zhang et al. 2025a). Metrics follow each benchmark’s standard protocol (multiple-choice accuracy; ChartQA relaxed accuracy; OCRBench inclusion-based score; FSC-147 MAE, lower is better), with details in the Appendix. ToolVision rollouts use our multi-turn agent harness, after which final answers are scored with the same benchmark-specific logic. Following CodeVision’s released evaluation procedure (Guo et al. 2026), we use a fixed, zero-temperature, reference-conditioned LLM judge only when the benchmark’s rule-based matcher cannot reliably resolve semantic equivalence. At evaluation, we sample four trajectories per question at temperature 0.7 and report avg@4 as the primary accuracy-oriented metric. Across the four evaluation runs, the per-benchmark standard deviation of ToolVision-8B ranges from 0.17 (MME-RealWorld-CN) to 0.99 (HRBench 4K); the Appendix reports the full table. We will release the training and evaluation code, data-construction scripts, and configurations. 4.2 Benchmarks and Baselines We evaluate performance on nine benchmarks covering high- resolution perception (V * (Wu and Xie 2024), HRBench 4K/8K (Wang et al. 2025)), text and chart reading (OCR- Bench (Liu et al. 2024b), ChartQA (Masry et al. 2022)), real-world scenes (MME-RealWorld-Lite/CN (Zhang et al. 2025b)), scientific figures (ArxivQA-2k (Li et al. 2024)), and counting (FSC-147-test (Ranjan et al. 2021)). Table 1 reports the seven benchmarks for which external baselines have pub- licly reported numbers. Before training-data preprocessing, we randomly sample and fix 2,000 ArxivQA questions for evaluation and exclude their question identifiers from the training mixtures. This ArxivQA-2k subset and FSC-147- test appear in Table 2. Baselines fall into four groups: the closed-source GPT- 4o; open-source MLLM baselines Qwen2.5-VL-7B/32B and InternVL3-8B (Zhu et al. 2025); larger reasoning mod- els Qwen3-VL-30B-A3B-Thinking and Qwen3-VL-32B- Thinking; and the three closest code-as-tool systems, Thyme- 7B, CodeVision-8B, and CodeDance-7B (built on Qwen2.5- VL-7B), together with our base model. Source symbols fol- low Table 1; unreported entries are marked “—”. 4.3 Main Results Across all seven benchmarks in Table 1, ToolVision-8B improves over its base. The largest gains appear on MME- RealWorld-Lite (+12.7), MME-RealWorld-CN (+11.3), and HRBench 4K (+9.0). Against the three closest code-as-tool systems, ToolVision-8B leads on all three high-resolution bench- marks (Table 1). Since part of the absolute margin reflects base-model differences, we compare each system’s gain over its own base: our gains match or exceed all three on every high-resolution benchmark, reaching +9.0 on HRBench 4K. CodeVision-8B builds on the same Qwen3-VL-8B-Thinking as ToolVision, so its absolute gap (up to +4.3) reflects the method rather than the base. The comparison with larger rea- soning models points the same way: ToolVision-8B exceeds Qwen3-VL-30B-A3B-Thinking on every benchmark both report, and, at a quarter of the parameter count, surpasses Qwen3-VL-32B-Thinking on both V * and HRBench 8K. On perception-heavy tasks, access to useful specialist evidence can partly offset model scale. The gains concentrate on tool-dependent tasks (Table 2): ArxivQA-2k rises from 58.3 to 74.5 (+16.2), and the FSC- 147-test MAE drops from 44.7 to 11.6, a 74% reduction. 4.4 Stage-wise Ablations and Analysis Table 3 organizes the analysis by training stage: the base model, the two supervised initializations, and two component ablations alongside the complete ToolVision-8B model. Capability-Aligned SFT. Distilled SFT distills trajecto- ries from Qwen3.6-plus on the same question pool, with the same toolbelt and code interface. Before RL, ToolVision SFT outperforms Distilled SFT on eight of the nine bench- marks and matches it on OCRBench. The largest gains are +17.3 on V * , +11.5 on MME-RealWorld-CN, and +10.9 on MME-RealWorld-Lite. Figure 4 examines the three high-resolution benchmarks before RL. Distilled SFT trails ToolVision SFT by 8–17 accuracy points, crops on 54–74% of questions versus our 35–41%, and spends 2–3× more tool turns. Crucially, none of its crops are detection-guided: the distilled policy inherits the teacher’s habit of emitting raw crop coordinates, but not the fine-grained perception that made those coordinates accurate. On questions beyond its own perception, it still predicts coordinates rather than delegating localization to the detector. ToolVision SFT delegates on 29–35% of questions and answers in fewer turns. Thus the SFT gain V*HR-4KHR-8K 0 25 50 75 100 77.0 74.3 69.5 59.7 65.9 60.8 Accuracy (%) V*HR-4KHR-8K 0 15 30 45 31.3 28.6 35.1 0.00.00.0 Detection-guided crop (%) V*HR-4KHR-8K 0 20 40 60 80 37.5 34.6 40.8 74.0 54.1 59.9 Any crop (%) V*HR-4KHR-8K 0 1 2 3 4 5 1.3 1.0 1.2 4.1 2.2 2.4 Mean tool turns ToolVision SFTDistilled SFT Figure 4: Pre-RL comparison of Distilled SFT and ToolVision SFT on three high-resolution benchmarks (left to right: accuracy, detection-guided crop rate, any-crop rate, mean tool turns). Distilled SFT crops more images and takes more tool turns, yet never invokes detection-guided cropping and scores lower: it inherits the teacher’s coordinate-crop pattern without the perception to aim it. ToolVision SFT delegates localization to the detector and answers in fewer turns. High resolutionReadingReal worldSpecialized ModelV * HR-4K HR-8K OCRBench ChartQA MME-L MME-CN ArxivQA-2k FSC-147↓ Base model Qwen3-VL-8B-Thinking 77.5 72.4 68.181.988.646.957.458.344.70 After SFT Distilled SFT59.7 65.9 60.878.284.841.842.959.516.11 ToolVision SFT77.0 74.3 69.578.287.852.754.466.915.77 After RL Distilled SFT + MUT RL 83.8 78.9 75.383.390.258.668.271.813.53 Uniform bonus (w ≡ 0.2) 77.0 76.0 68.681.788.452.350.669.112.16 ToolVision-8B85.9 81.4 75.985.190.159.568.774.511.56 Table 3: Stage-wise results on nine benchmarks. Bold: best within each block; FSC-147 reports MAE (lower is better). comes not from more tool activity, but from localization evidence that the student can use reliably. Stage-wise Component Ablations. To isolate the SFT stage, we apply the same MUT RL training to Distilled SFT. The resulting Distilled SFT + MUT RL model scores below ToolVision-8B on seven of the eight accuracy benchmarks and has a higher FSC-147 MAE. This shows that MUT RL does not remove the need for capability-aligned SFT. The score gap is accompanied by a behavioral difference. In a separate behavior analysis on the same three benchmarks, the Distilled SFT + MUT RL model uses detection-guided cropping on only 0.0%, 0.5%, and 0.1% of questions, respec- tively; Figure 2 (left) illustrates a coordinate-crop failure. The reward design must also avoid two opposite failures. Without a tool-success reward, tool calls collapse to zero even as total reward rises (Figure 2, right top). At the other extreme, the uniform-bonus variant fixes w = 0.2 for every question. It retains R mut , so every correct, execution-error- free trajectory that uses at least one tool receives the same bonus, regardless of whether the question benefits from tool use. ToolVision instead uses necessity-conditioned weights of 0.5, 0.2, and 0: it increases the reward for strong MUT questions, keeps the weak tier unchanged, and removes the tool bonus from ordinary questions. The uniform-bonus vari- ant underperforms ToolVision-8B on all nine benchmarks, by up to 18.1 points on MME-RealWorld-CN, and produces more ineffective operations (Figure 2, right bottom). These results show that the benefit comes from conditioning the tool-success reward on measured necessity rather than from rewarding successful tool use indiscriminately. After RL, tool choice specializes by task: ToolVision-8B invokes the counting tool on 100% of FSC-147 questions, OCR on 84% of OCRBench questions, and open-vocabulary grounding on 72% of V * questions, while manual coordinate cropping all but disappears (≤ 0.1% on every benchmark). The Appendix reports the detailed breakdown. 5 Conclusion We study why the standard SFT-then-RL recipe fails to teach smaller multimodal models to use visual tools effectively. ToolVision addresses the two misalignments with capability- aligned trajectory synthesis and necessity-gated tool rewards. ToolVision-8B improves over its base across all seven main benchmarks and outperforms the closest code-as-tool sys- tems on all three high-resolution benchmarks, with substan- tial gains on scientific-figure understanding and counting. References Amini-Naieni, N.; Han, T.; and Zisserman, A. 2024. CountGD: Multi-Modal Open-World Counting. In Advances in Neural In- formation Processing Systems, volume 37, 48810–48837. Curran Associates, Inc. Bai, S.; Cai, Y.; Chen, R.; Chen, K.; Chen, X.; Cheng, Z.; Deng, L.; Ding, W.; Gao, C.; Ge, C.; et al. 2025a. Qwen3-VL Technical Report. arXiv preprint arXiv:2511.21631. Bai, S.; Chen, K.; Liu, X.; Wang, J.; Ge, W.; Song, S.; Dang, K.; Wang, P.; Wang, S.; Tang, J.; et al. 2025b. Qwen2.5-VL Technical Report. arXiv preprint arXiv:2502.13923. Bochkovskii, A.; Delaunoy, A.; Germain, H.; Santos, M.; Zhou, Y.; Richter, S. R.; and Koltun, V. 2025. Depth Pro: Sharp Monocular Metric Depth in Less Than a Second. In International Conference on Learning Representations. Chen, J.; Wei, F.; Zhao, J.; Song, S.; Wu, B.; Peng, Z.; Chan, S.-H. G.; and Zhang, H. 2025. Revisiting Referring Expression Comprehension Evaluation in the Era of Large Multimodal Models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, 513–524. Chen, L.; Li, J.; Dong, X.; Zhang, P.; Zang, Y.; Chen, Z.; Duan, H.; Wang, J.; Qiao, Y.; Lin, D.; and Zhao, F. 2024a. Are We on the Right Way for Evaluating Large Vision-Language Models? In Advances in Neural Information Processing Systems, volume 37, 27056–27087. Curran Associates, Inc. Chen, Z.; Wu, J.; Wang, W.; Su, W.; Chen, G.; Xing, S.; Zhong, M.; Zhang, Q.; Zhu, X.; Lu, L.; et al. 2024b. InternVL: Scaling up Vision Foundation Models and Aligning for Generic Visual- Linguistic Tasks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 24185–24198. Cui, C.; Sun, T.; Lin, M.; Gao, T.; Zhang, Y.; Liu, J.; Wang, X.; Zhang, Z.; Zhou, C.; Liu, H.; et al. 2025. PaddleOCR 3.0 Technical Report. arXiv:2507.05595. Daxberger, E.; Wenzel, N.; Griffiths, D.; Gang, H.; Lazarow, J.; Kohavi, G.; Kang, K.; Eichner, M.; Yang, Y.; Dehghan, A.; and Grasch, P. 2025. M-Spatial: Exploring 3D Spatial Understanding in Multimodal LLMs. In Proceedings of the IEEE/CVF Interna- tional Conference on Computer Vision (ICCV), 7395–7408. Deitke, M.; Clark, C.; Lee, S.; Tripathi, R.; Yang, Y.; Park, J. S.; Salehi, M.; Muennighoff, N.; Lo, K.; Soldaini, L.; et al. 2025. Molmo and PixMo: Open Weights and Open Data for State-of-the- Art Vision-Language Models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 91–104. Fan, Y.; He, X.; Yang, D.; Zheng, K.; Kuo, C.-C.; Zheng, Y.; Guan, X.; and Wang, X. 2025. GRIT: Teaching MLLMs to Think with Images. In Advances in Neural Information Processing Systems, volume 38, 116522–116543. Curran Associates, Inc. Feng, J.; Huang, S.; Qu, X.; Zhang, G.; Qin, Y.; Zhong, B.; Jiang, C.; Chi, J.; and Zhong, W. 2026. ReTool: Reinforcement Learning for Strategic Tool Use in LLMs. In The Fourteenth International Conference on Learning Representations. Fu, L.; Kuang, Z.; Song, J.; Huang, M.; Yang, B.; Li, Y.; Zhu, L.; Luo, Q.; Wang, X.; Lu, H.; et al. 2025. OCRBench v2: An Improved Benchmark for Evaluating Large Multimodal Models on Visual Text Localization and Reasoning. In Advances in Neural Information Processing Systems, volume 38. Curran Associates, Inc. Gou, Z.; Shao, Z.; Gong, Y.; Shen, Y.; Yang, Y.; Huang, M.; Duan, N.; and Chen, W. 2024. ToRA: A Tool-Integrated Reasoning Agent for Mathematical Problem Solving. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Aus- tria, May 7-11, 2024. OpenReview.net. Guo, D.; Yang, D.; Zhang, H.; Song, J.; Wang, P.; Zhu, Q.; Xu, R.; Zhang, R.; Ma, S.; Bi, X.; et al. 2025. DeepSeek-R1 Incen- tivizes Reasoning in LLMs through Reinforcement Learning. Na- ture, 645(8081): 633–638. Guo, Z.; Hong, M.; Zhang, F.; Jia, K.; and Jin, T. 2026. Thinking with Programming Vision: Towards a Unified View for Thinking with Images. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 33467–33476. Gupta, T.; and Kembhavi, A. 2023. Visual Programming: Compo- sitional Visual Reasoning Without Training. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recogni- tion (CVPR), 14953–14962. Hu, Y.; Shi, W.; Fu, X.; Roth, D.; Ostendorf, M.; Zettlemoyer, L.; Smith, N.; and Krishna, R. 2024. Visual Sketchpad: Sketching as a Visual Chain of Thought for Multimodal Language Models. In Advances in Neural Information Processing Systems, volume 37, 139348–139379. Curran Associates, Inc. Hudson, D. A.; and Manning, C. D. 2019. GQA: A New Dataset for Real-World Visual Reasoning and Compositional Question An- swering. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). Jin, B.; Zeng, H.; Yue, Z.; Yoon, J.; Arik, S. O.; Wang, D.; Zamani, H.; and Han, J. 2025. Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learning. In Second Conference on Language Modeling. Kembhavi, A.; Salvato, M.; Kolve, E.; Seo, M.; Hajishirzi, H.; and Farhadi, A. 2016. A Diagram is Worth a Dozen Images. In Com- puter Vision – ECCV 2016, 235–251. Cham: Springer International Publishing. Li, L.; Wang, Y.; Xu, R.; Wang, P.; Feng, X.; Kong, L.; and Liu, Q. 2024. Multimodal ArXiv: A Dataset for Improving Scientific Com- prehension of Large Vision-Language Models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Lin- guistics (Volume 1: Long Papers), 14369–14387. Bangkok, Thai- land: Association for Computational Linguistics. Liu, S.; Zeng, Z.; Ren, T.; Li, F.; Zhang, H.; Yang, J.; Jiang, Q.; Li, C.; Yang, J.; Su, H.; Zhu, J.; and Zhang, L. 2024a. Grounding DINO: Marrying DINO with Grounded Pre-training for Open-Set Object Detection. In Leonardis, A.; Ricci, E.; Roth, S.; Russakovsky, O.; Sattler, T.; and Varol, G., eds., Computer Vision - ECCV 2024 - 18th European Conference, Milan, Italy, September 29-October 4, 2024, Proceedings, Part XLVII, volume 15105 of Lecture Notes in Computer Science, 38–55. Springer. Liu, Y.; Li, Z.; Huang, M.; Yang, B.; Yu, W.; Li, C.; Yin, X.-C.; Liu, C.-L.; Jin, L.; and Bai, X. 2024b. OCRBench: on the hidden mystery of OCR in large multimodal models. Science China Information Sciences, 67(12). Liu, Z.; Dong, Y.; Rao, Y.; Zhou, J.; and Lu, J. 2024c. Chain- of-Spot: Interactive Reasoning Improves Large Vision-Language Models. arXiv preprint arXiv:2403.12966. Liu, Z.; Sun, Z.; Zang, Y.; Dong, X.; Cao, Y.; Duan, H.; Lin, D.; and Wang, J. 2025. Visual-RFT: Visual Reinforcement Fine- Tuning. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2034–2044. Masry, A.; Long, D. X.; Tan, J. Q.; Joty, S.; and Hoque, E. 2022. ChartQA: A Benchmark for Question Answering about Charts with Visual and Logical Reasoning. In Findings of the Association for Computational Linguistics: ACL 2022, 2263–2279. Dublin, Ireland: Association for Computational Linguistics. Mathew, M.; Bagal, V.; Tito, R.; Karatzas, D.; Valveny, E.; and Jawa- har, C. 2022. InfographicVQA. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), 1697–1706. Mathew, M.; Karatzas, D.; and Jawahar, C. 2021. DocVQA: A Dataset for VQA on Document Images. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), 2200–2209. OpenAI. 2025. Introducing OpenAI o3 and o4-mini. https://openai. com/index/introducing-o3-and-o4-mini/. Qian, C.; Acikgoz, E. C.; He, Q.; Wang, H.; Chen, X.; Hakkani-Tur, D.; Tur, G.; and Ji, H. 2025. ToolRL: Reward is All Tool Learning Needs. In Advances in Neural Information Processing Systems, volume 38, 105523–105553. Curran Associates, Inc. Ranjan, V.; Sharma, U.; Nguyen, T.; and Hoai, M. 2021. Learning To Count Everything. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 3394–3403. Ravi, N.; Gabeur, V.; Hu, Y.-T.; Hu, R.; Ryali, C.; Ma, T.; Khedr, H.; Rädle, R.; Rolland, C.; Gustafson, L.; et al. 2025. SAM 2: Segment Anything in Images and Videos. In International Conference on Learning Representations, volume 2025, 28085–28128. Sarch, G. H.; Saha, S.; Khandelwal, N.; Jain, A.; Tarr, M. J.; Kumar, A.; and Fragkiadaki, K. 2025. Grounded Reinforcement Learning for Visual Reasoning. In The Thirty-ninth Annual Conference on Neural Information Processing Systems. Schick, T.; Dwivedi-Yu, J.; Dessì, R.; Raileanu, R.; Lomeli, M.; Hambro, E.; Zettlemoyer, L.; Cancedda, N.; and Scialom, T. 2023. Toolformer: Language Models Can Teach Themselves to Use Tools. In Advances in Neural Information Processing Systems, volume 36, 68539–68551. Curran Associates, Inc. Shao, H.; Qian, S.; Xiao, H.; Song, G.; Zong, Z.; Wang, L.; Liu, Y.; and Li, H. 2024a. Visual CoT: Advancing Multi-Modal Lan- guage Models with a Comprehensive Dataset and Benchmark for Chain-of-Thought Reasoning. In Advances in Neural Information Processing Systems, volume 37, 8612–8642. Curran Associates, Inc. Shao, Z.; Wang, P.; Zhu, Q.; Xu, R.; Song, J.; Bi, X.; Zhang, H.; Zhang, M.; Li, Y. K.; Wu, Y.; and Guo, D. 2024b. DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models. arXiv:2402.03300. Singh, A.; Natarajan, V.; Shah, M.; Jiang, Y.; Chen, X.; Batra, D.; Parikh, D.; and Rohrbach, M. 2019. Towards VQA Models That Can Read. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). Song, Q.; Li, H.; Yu, Y.; Zhou, H.; Yang, L.; Bai, S.; She, Q.; Huang, Z.; and Zhao, Y. 2026. CodeDance: A Dynamic Tool-integrated MLLM for Executable Visual Reasoning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recogni- tion (CVPR), 19186–19195. Su, A.; Wang, H.; Ren, W.; Lin, F.; and Chen, W. 2025a. Pixel Rea- soner: Incentivizing Pixel Space Reasoning via Curiosity-Driven Reinforcement Learning. In Advances in Neural Information Pro- cessing Systems, volume 38, 8222–8251. Curran Associates, Inc. Su, Z.; Xia, P.; Guo, H.; Liu, Z.; Ma, Y.; Qu, X.; Liu, J.; Li, Y.; Zeng, K.; Yang, Z.; Li, L.; Cheng, Y.; Ji, H.; He, J.; and Fung, Y. R. 2025b. Thinking with Images for Multimodal Reasoning: Foundations, Methods, and Future Frontiers. arXiv:2506.23918. Surís, D.; Menon, S.; and Vondrick, C. 2023. ViperGPT: Visual Inference via Python Execution for Reasoning. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 11888–11898. Tamarapalli, J. S.; Grover, R.; Pande, N.; and Yerramilli, S. 2025. CountQA: How Well Do MLLMs Count in the Wild? arXiv:2508.06585. Wang, W.; Ding, L.; Zeng, M.; Zhou, X.; Shen, L.; Luo, Y.; Yu, W.; and Tao, D. 2025. Divide, Conquer and Combine: A Training-Free Framework for High-Resolution Image Perception in Multimodal Large Language Models. Proceedings of the AAAI Conference on Artificial Intelligence, 39(8): 7907–7915. Wu, J.; Guan, J.; Feng, K.; Liu, Q.; Wu, S.; Wang, L.; Wu, W.; and Tan, T. 2025. Reinforcing Spatial Reasoning in Vision-Language Models with Interwoven Thinking and Visual Drawing. In Advances in Neural Information Processing Systems, volume 38, 143297– 143330. Curran Associates, Inc. Wu, P.; and Xie, S. 2024. V*: Guided Visual Search as a Core Mechanism in Multimodal LLMs. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 13084–13094. Yang, J.; Zhang, H.; Li, F.; Zou, X.; Li, C.; and Gao, J. 2023. Set- of-Mark Prompting Unleashes Extraordinary Visual Grounding in GPT-4V. arXiv preprint arXiv:2310.11441. Yao, S.; Zhao, J.; Yu, D.; Du, N.; Shafran, I.; Narasimhan, K. R.; and Cao, Y. 2023. ReAct: Synergizing Reasoning and Acting in Language Models. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net. Yu, Q.; Zhang, Z.; Zhu, R.; Yuan, Y.; Zuo, X.; Yue, Y.; Dai, W.; Fan, T.; Liu, G.; Liu, J.; et al. 2025. DAPO: An Open-Source LLM Reinforcement Learning System at Scale. In Advances in Neural In- formation Processing Systems, volume 38, 113222–113244. Curran Associates, Inc. Zhang, K.; Li, B.; Zhang, P.; Pu, F.; Cahyono, J. A.; Hu, K.; Liu, S.; Zhang, Y.; Yang, J.; Li, C.; and Liu, Z. 2025a. LMMs-Eval: Reality Check on the Evaluation of Large Multimodal Models. In Findings of the Association for Computational Linguistics: NAACL 2025, 881–916. Albuquerque, New Mexico: Association for Com- putational Linguistics. Zhang, Y.; Lu, X.; Yin, S.; Fu, C.; Chen, W.; Hu, X.; Wen, B.; Jiang, K.; Liu, C.; Zhang, T.; et al. 2026. Thyme: Think Beyond Images. In The Fourteenth International Conference on Learning Representations. Zhang, Y.; Zhang, H.; Tian, H.; Fu, C.; Zhang, S.; Wu, J.; Li, F.; Wang, K.; Wen, Q.; Zhang, Z.; Wang, L.; and Jin, R. 2025b. MME-RealWorld: Could Your Multimodal LLM Challenge High- Resolution Real-World Scenarios that are Difficult for Humans? In International Conference on Learning Representations, volume 2025, 89655–89701. Zhao, S.; Zhang, H.; Lin, S.; Li, M.; Wu, Q.; Zhang, K.; and Wei, C. 2025. PyVision: Agentic Vision with Dynamic Tooling. In First Workshop on Multi-Turn Interactions in Large Language Models. Zheng, C.; Liu, S.; Li, M.; Chen, X.-H.; Yu, B.; Gao, C.; Dang, K.; Liu, Y.; Men, R.; Yang, A.; Zhou, J.; and Lin, J. 2025. Group Sequence Policy Optimization. arXiv:2507.18071. Zheng, Z.; Yang, M.; Hong, J.; Zhao, C.; Xu, G.; Yang, L.; Shen, C.; and Yu, X. 2026. DeepEyes: Incentivizing “Thinking with Im- ages” via Reinforcement Learning. In The Fourteenth International Conference on Learning Representations. Zhu, J.; Wang, W.; Chen, Z.; Liu, Z.; Ye, S.; Gu, L.; Tian, H.; Duan, Y.; Su, W.; Shao, J.; et al. 2025. InternVL3: Exploring Advanced Training and Test-Time Recipes for Open-Source Multimodal Mod- els. arXiv:2504.10479. A Detailed Algorithms The two procedures below expand the supervised trajectory construction and MUT measurement described in the main text. A.1 Capability-Aligned SFT Trajectory Synthesis The procedure separates proposal, execution, and verifica- tion. A strong model may propose and execute an operation, but the operation becomes a training target only after suc- cessful execution and cross-scale evidence-gain verification. A.2 The Distilled SFT Baseline The Distilled SFT baseline used in the main text distills trajectories from Qwen3.6-plus on the same question pool as ToolVision SFT, with the same visual toolbelt exposed through the same code interface. Tool use is at the teacher’s discretion: it may invoke tools or answer directly. Trajecto- ries are retained whenever they execute successfully and end in a correct final answer, without committee filtering, yield- ing 4,257 trajectories, comparable to the 4,057 of ToolVision SFT. Because the teacher’s own perception rarely needs spe- cialist localization, the retained trajectories contain almost no detector-guided cropping—the pattern the student then imitates (Figure 4). A.3 MUT Measurement and RL-Set Construction The tool-enabled arm permits both tool calls and direct an- swers. The grounded tool-correct count (GTC) counts cor- rect trajectories that choose to invoke at least one tool, while the no-tool correct count (NTC) provides the direct-answer counterfactual. For an RL trajectory ξ, R mut (ξ) = 1 only when the final answer is correct, at least one tool is used, and no tool exe- cution fails. We use the same symbolic reward definition as in the main text: R = R acc + λR proto + w(x,π SFT )R mut − μ max(0,n− τ ), whereR acc indicates final-answer correctness,R proto checks response and tool-call format, and n is the number of tool calls. The final setting uses λ = 0.2, μ = 0.05, τ = 6, and confidence weights w = 0.5/0.2/0 for strong MUT, weak MUT, and ordinary questions, respectively. B Data Sources and Splits B.1 SFT and RL Sources The SFT set contains 4,057 examples from the public sources summarized in Table 4. Tool-use trajectories and step-utility signals are synthesized without additional human tool-use annotations. All source images, questions, and reference an- swers retain their original dataset licenses. The RL pool combines publicly released sources spanning general and diagram QA, text and chart understanding, scien- tific figures, spatial reasoning, grounding, visual search, and counting. We first apply the paired measurement described below and then perform source-aware sampling. Table 5 re- ports the exact composition of the resulting 24,921-question set. The three columns correspond to the frozen confidence tiers used by training: w = 0.5 for strong MUT, w = 0.2 for weak MUT, and w = 0 for ordinary questions. B.2 ArxivQA-2k Holdout Before preprocessing the training pool, we randomly sam- ple and fix 2,000 ArxivQA questions for evaluation. Their question identifiers are excluded from the SFT and RL mix- tures, so the reported ArxivQA-2k result is question-disjoint from training. This statement concerns question-level isola- tion and does not assume that different questions never reuse the same source figure. C Evaluation Protocol Benchmark instances and metric implementations follow LMMs-Eval where available (Zhang et al. 2025a). V * , HRBench 4K/8K, MME-RealWorld-Lite/CN, and ArxivQA- 2k use multiple-choice option accuracy. ChartQA uses re- laxed accuracy with a 5% tolerance for numerical answers; OCRBench uses inclusion-based text matching; and FSC- 147-test uses mean absolute error (MAE; lower is bet- ter). Following the released CodeVision evaluation proce- dure (Guo et al. 2026), a fixed, zero-temperature, reference- conditioned LLM judge is used only when a task rule cannot reliably resolve semantic equivalence. At evaluation, we sam- ple four trajectories per question at temperature 0.7 and report avg@4 as the primary accuracy-oriented metric. Table 6 re- ports the standard deviation of ToolVision-8B’s scores across the four evaluation runs, where each run scores one of the four sampled trajectories per question. D Safeguard Activation The protocol and overuse terms prevent malformed responses and extreme tool overuse rather than driving the task reward. Across the complete 194-step training log, which includes the continuation beyond the step-180 checkpoint reported in the paper, R proto = 1 for 99.72% of the 198,656 logged trajectories. The overuse penalty activates on only 297 trajec- tories (0.15%), whose tool-call counts exceed τ = 6. These low activation rates show that both terms act as safeguards for exceptional failures. E Task–Tool Specialization Table 7 reports, for representative benchmarks, the share of ToolVision-8B evaluation questions on which the se- mantically matched specialist operation is invoked at least once, computed on complete evaluation generations. Task– tool alignment is sharp after RL: grounding dominates high- resolution search, OCR dominates text reading, and counting saturates FSC-147. Manual coordinate cropping is essen- tially absent (0.0% macro average over the nine benchmarks; at most 0.1% on any single one), and unmodified-image re- display stays below 2% of questions on every benchmark. As a tool-only reference for FSC-147-test, invoking the counting tool alone on every image yields an MAE of 14.76, above ToolVision-8B’s 11.56: the policy adds value beyond routing questions to the specialist. Algorithm 1: Capability-aligned SFT trajectory synthesis Require: Question x, answer y, toolbeltO, committeeC; depth D = 6, Planner proposal budget B = 2, beam width K = 2 1: Initialize the frontier with original evidence E 0 = (I) 2: for t = 1,...,D and while the frontier is nonempty do 3: Ask the Planner for candidate setA t with|A t |≤ B for each frontier state 4: for each a∈A t do 5:Execute a overO; discard errors and invalid returns 6:Append the valid return to the evidence E t and compute the committee score J (E t ;x) 7:∆ t ← J (E t ;x)− J (E t−1 ;x) 8:if ∆ t < 0, or this is the second consecutive zero-gain step then 9:Prune the branch 10:else 11:Retain the child and record whether a zero-gain step has already been tolerated 12:end if 13: end for 14: Keep at most the top K children by committee score 15: end for 16: Generate final answers from surviving states 17: return Trajectories whose final answers match y Figure 5: Capability-aligned construction of SFT trajectories. Candidate steps are executed before scoring, and only non- regressive branches with valid tool returns can survive. Algorithm 2: MUT measurement and RL-set construction Require: Frozen SFT policy π SFT and public question poolQ 1: for each question x∈Q do 2: Run 16 no-tool rollouts and count correct answers c(x) 3: if c(x)≤ 8 then 4:Run 8 tool-enabled rollouts; compute GTC and NTC 5:if GTC≥ 2 and NTC≤ 1 then 6:Assign strong MUT with w(x,π SFT ) = 0.5 7:else if GTC= 1 then 8:Assign weak MUT with w(x,π SFT ) = 0.2 9:end if 10: else if 9≤ c(x)≤ 15 then 11:Add x to the source-aware ordinary pool with w(x,π SFT ) = 0 12: end if 13: end for 14: Source-balance the ordinary pool and merge the three groups 15: return Fixed RL set and confidence weights w(x,π SFT ) Figure 6: Paired measurement of tool necessity and construction of the fixed RL mixture. The tool-enabled arm allows either tool use or a direct answer. SourceExamples Role in SFT GQA (Hudson and Manning 2019)1,155 General visual QA CA-VQA (Daxberger et al. 2025)793 Spatial and attribute QA TextVQA (Singh et al. 2019)598 Text reading FSC-147 (Ranjan et al. 2021)511 Counting CodeVision (Guo et al. 2026)1,000 Rotate/flip seeding Total4,057 Table 4: Composition of the SFT set. The first four sources use their public training data; the CodeVision examples are from its released training set and are used to seed rotate and flip operations. F Prompt and Output Interfaces At inference and during RL, the policy sees exactly one system prompt and one tool contract; the Planner–Executor– Judge structure of Algorithm 1 exists only inside the SFT synthesis pipeline, where each role receives a separate min- imal interface. This section reproduces those interfaces and SourceReleased split or subsetStrong Weak Ordinary Total GQA (Hudson and Manning 2019)train961 6001,635 3,196 TextVQA (Singh et al. 2019)train659 1831,047 1,889 FSC-147 (Ranjan et al. 2021)validation57828240846 ChartQA (Masry et al. 2022)train154 323872 1,349 ArxivQA (Li et al. 2024)public pool, excluding ArxivQA-2k357 1,807661 2,825 PixMo-Count (Deitke et al. 2025)train1,181 446218 1,845 ViGoRL visual search (Sarch et al. 2025)released visual-search set1,277 1,2561,563 4,096 ViGoRL SAT-2 (Sarch et al. 2025)released SAT-2 set1,768 661859 3,288 Ref-L4 (Chen et al. 2025)public release575 2331,201 2,009 AI2D (Kembhavi et al. 2016)train via The Cauldron71 320646 1,037 CountQA (Tamarapalli et al. 2025)public test split299 140192631 MMStar (Chen et al. 2024a)validation101 264239604 InfographicVQA (Mathew et al. 2022)validation215 125197537 OCRBench v2 (Fu et al. 2025)public test, text-recognition subset17454221449 DocVQA (Mathew, Karatzas, and Jawahar 2021) validation9041189320 Total8,460 6,4819,980 24,921 Table 5: Exact source distribution of the final RL set after paired measurement and source-aware sampling. Strong, weak, and ordinary denote the three fixed necessity-confidence tiers used during RL. CountQA and OCRBench v2 are public benchmark splits used only as RL sources; neither is used as a reported evaluation set in this paper. V * HR-4K HR-8K OCRBench ChartQA MME-L MME-CN ArxivQA-2k FSC-147 Std of per-run scores 0.79 0.990.500.310.250.580.170.330.67 Table 6: Standard deviation of ToolVision-8B benchmark scores across the four evaluation runs underlying avg@4. FSC-147 is in MAE points; all other columns are accuracy points. BenchmarkOperation Share (%) V * Grounding71.7 OCRBenchOCR84.2 FSC-147-test Counting100.0 Table 7: Share of ToolVision-8B evaluation questions that invoke the task-matched specialist operation at least once. states their information boundaries. F.1 Policy System Prompt The same system prompt is used for SFT training targets, RL rollouts, and evaluation; it is reproduced in Figure 7. It fixes the response protocol (think, then either a tool call or an answer) and gives evidence-oriented guidance for choosing operations. It contains no task-specific hints and no information about rewards, judges, or reference answers. F.2 Tool Contract All operations go through a single function, code_image_tool, whose arguments are executable Python code, a natural-language description, and an image_index selecting the input from the visible image timeline (root images first, then each successful tool return, append-only). The code runs against a pre-bound image variable; reading from local paths or URLs is disallowed, and the resulting image must be assigned to result. Helper functions expose the external visual services; Table 8 CapabilityHelper functions OCR _call_ocr_assist Counting _call_count_assist Localization / crop _call_ground_box, _call_dino_crop, _call_manual_box, _call_manual_crop Segmentation focus _call_sam_mask, _call_blur_bg Depth _call_manual_depth, _call_ground_depth Direct image opsPIL/OpenCV/NumPy (rotate, flip, brightness, contrast, crop, . . . ) Table 8: Helper families available inside code_image_tool. The prompt documents each helper with one usage line and a one-sentence applicability rule. groups them by capability. Syntax errors, runtime errors, tool-service failures, empty outputs, and invalid outputs are all rejected: the call returns an error message instead of an image, and the turn simply continues. F.3 Turn-Level Feedback Template Every tool return is wrapped in the same continuation tem- plate, shown in Figure 8. Successful and failed calls use the same template (failures replace the first sentence with the error message), so the decision to keep calling tools or to answer always remains with the policy. No variant of this You are an advanced MLLM that can solve complex problems with image processing and analysis tools. You must think step-by-step inside the <think></think> tags first to determine the next action. If tools are needed to inspect evidence, call them inside the <tool_call></tool_call> tags. Otherwise, provide your final answer within the <answer></answer> tag. ## Analysis Chain ** Think and Analyze ** -> ** Use Evidence Tools When Helpful ** -> ** Validate ** -> ** Iterate When Needed ** -> ** Answer ** 1. ** Think and Analyze ** : Examine the image and question, identify key objects, text, regions, counts, spatial relations, charts, or other visual evidence needed for the answer. 2. ** Use Evidence Tools When Helpful ** : Select the tool operation that best matches the missing evidence. Use OCR for text-heavy or hard-to-read text, counting assistance for object-counting questions, crop or zoom for small details or local regions, point or line drawing for precise locations, boundaries, alignments, or comparisons, grounding or object-focused crop for locating described objects, depth tools for relative-depth questions, and other image operations only when they directly help inspect the evidence. 3. ** Validate ** : Analyze the tool returns and check whether they answer the question. Cross-check with the original image or another focused tool call when needed. 4. ** Iterate When Needed ** : If the tool invocation fails, the observation is incomplete, or the current hypothesis is uncertain, analyze the reason and choose a better targeted action. 5. ** Answer ** : Once the visual evidence supports an answer, provide your final answer inside the <answer></answer> tag. ** Key Principles ** : Be systematic, use tools only to reveal task-relevant evidence, prefer the simplest targeted operation, and avoid unnecessary image modifications. Figure 7: The policy system prompt, shared by SFT, RL, and evaluation. The text is verbatim; line breaks are adjusted for typesetting. Here is the processed image. Now, analyze the returned results. Please keep thinking step-by-step inside the <think></think> tags to determine the next action. If additional tools are required, call them inside the <tool_call></tool_call> tags. Otherwise, provide your final answer within the <answer></answer> tags. On failure, the leading sentence is replaced by the error text, e.g. Error: The result has an invalid image size (0x136)., followed by the same continuation. Figure 8: The turn-level feedback template appended to every tool response. template comments on whether the current reasoning is on the right track. F.4 Synthesis-Time Interfaces Planner. The Planner receives the conversation so far (question, visible images, prior actions, and tool out- puts), the visible-image timeline, the remaining step bud- get, and the available capability list, and must return exactly one JSON object: either mode="answer" or mode="suggestions" with at most two executable strat- egy branches. Which modes are legal in a given round is controlled by a three-level round policy: MUST_SUGGEST (opening rounds), MAY_ANSWER_OR_SUGGEST (interme- diate rounds), and MUST_ANSWER (final round, once the execution budget is exhausted). Figure 9 reproduces the MUST_ANSWER block, which is the only mechanism that ever forces an answer: it closes the trajectory but supplies no answer content beyond the committee’s own consensus can- didate, derived from visible evidence and re-verified against the image. Executor. The Executor turns one suggested step into one concrete tool call under a strict single-step contract: produce a step rationale and exactly one code_image_tool call whose think, code, and description agree; never output a final answer; start from the pre-bound input image rather than files or URLs; and preserve the most useful resulting image in result. Rejected executions (syntax, runtime, tool-service, empty-output, or invalid-output failures) termi- nate the branch rather than being papered over. Committee Judge. Each of the eight committee members receives the instruction in Figure 10 together with the exe- cuted trajectory and its images. Judges answer the original question independently; a task-specific matcher outside the Round policy: - This round is ‘MUST_ANSWER‘. - Return ‘mode="answer"‘. - Do not return any ‘suggestions‘ field. - Finalize the best answer now from the visible evidence and executed trajectory above. - The executed trajectory appears sufficient; answer from the visible evidence without citing any hidden policy or evaluation signal. - Independent judge consensus from the executed trajectory proposes this final answer: ‘<consensus candidate>‘. Treat it as a high-confidence candidate from the visible/tool evidence; verify it against the visible image before finalizing. Budget constraints: - ‘remaining_exec_steps = <k>‘ is the total number of executor steps still available on this trajectory before the final answer. - Every suggested branch must fit within this remaining budget. - When the executable budget is exhausted, the caller will switch to a final-answer round. Figure 9: The final-round (MUST_ANSWER) policy block and the budget block of the Planner user prompt (verbatim; the last two policy lines are appended only when the trajec- tory already executed successfully and when a committee consensus exists, respectively). You are a multimodal judge model. Your job is to solve the original question from the executed trajectory and visible evidence. Rules: - Use the conversation history and attached images as evidence. - Do not explain your reasoning. - Return only the final answer text. Figure 10: The complete committee-judge system prompt. The reference answer is not part of the judge input. generation loop then compares each returned answer with the reference to produce the normalized step score that drives branch pruning. F.5 What the Interfaces Never Contain No generation-side prompt—policy, Planner, Executor, or Judge—contains the reference answer at any stage. Judges solve the question independently from the trajectory evi- dence, and the reference enters only the external matcher that scores their returned answers. The consensus candidate optionally shown to the Planner in the final round (Figure 9) is an aggregate of those independent judge answers, not an annotation, and the Planner is explicitly instructed to verify it against the visible image. The same boundary holds for the MUT measurement of Algorithm 2, whose two arms reuse the policy interface unchanged with tool access disabled or enabled. This implements the claim in the main text that both supervision signals are constructed automatically from pub- lic task data without additional human annotation of tool use or necessity, and, beyond that, without exposing reference answers to any trajectory generator. G Qualitative Case Studies All cases below are recorded trajectories, not curated demon- strations: the model text is reproduced verbatim (code and tool observations are excerpted where marked), and place- holders in angle brackets substitute run-specific values in quoted prompts. Case 1 is an example from the released SFT set, shown with its recorded intermediate images; Cases 2 and 3 are RL rollouts collected during training, whose in- termediate images are replays of the recorded code on the deployed visual services and can therefore differ from the original returns at the pixel level. G.1 Case 1: Making a Distant Clock Readable (SFT) Case 1 (Figure 11) shows what a capability-aligned SFT tar- get looks like. The chain is the shortest route from unreadable to readable evidence: a text-conditioned detector isolates a clock face that occupies roughly 50× 51 of the 1024× 576 input, resizing magnifies it, and sharpening plus contrast sep- arate the hands from the dial. No step answers the question by itself, and no step is decorative; each strictly increases the evidence available for the final readout (hour hand at 10, minute hand at 4), stated in the reasoning before the answer is produced. Chains of this shape are what survive the ex- ecution checks and the committee’s stepwise evidence-gain pruning of Algorithm 1. G.2 Case 2: Depth Verification of a Spatial Claim (RL) Case 2 (Figure 12) turns a qualitative spatial question into an explicit numerical comparison. Monocular layout is mislead- ing here—A and B sit on opposite sides of a partition—so the model reaches for the one capability that measures rather than guesses. The first grounding query fails; instead of guessing, the model fixes a reference by measuring B, then retries A under a more concrete description (“ladder with black base”) that the detector can resolve. Two median depths later the an- swer is a one-line comparison, 1.57 m < 2.71 m, and each number is traceable to a grounded box in the returned visual- izations. The replayed visualization in panel (c) reproduces the recorded measurement to within a centimeter (1.58 m versus 1.57 m). (a) input, 1024×576 (b) crop, 50×51 (c) resized, 300×300 (d) sharpened + contrast Question. what time is the clock at? Turn 1 — think. The user wants to know the time displayed on the clock tower visible on the right side of the image. The clock face is present but too small to read the hands accurately in the current full image. To solve this, I need to isolate and enlarge the clock face. I will use the dino_crop tool with the text prompt ‘clock face’ to automatically locate and crop the clock tower’s clock. This will give me a close-up view to read the time. Turn 1 — tool call. crop = _call_dino_crop(text_prompt=’clock face’, max_crops=1, padding=10) Tool response. Image size = 50x51 pixels. GroundedSAM2(dino_crop) returned 1 crop images. Turn 2 — think. The current evidence is a tiny 50x51 pixel crop of the clock face, which is insufficient to read the time. The hands and numerals are indistinct at this resolution. To resolve the uncertainty about the time shown, I need to magnify this crop. I will resize the current image to 300x300 pixels, which will make the clock face large enough for visual inspection and allow me to determine the position of the hands. Turn 2 — tool call (on image 1). result = image.resize((300, 300), Image.LANCZOS) Tool response. Image size = 300x300 pixels. Code executed successfully Turn 3 — think. The current image is a 300x300 crop of the clock face, but the details are blurry and the contrast is low, making the hands hard to distinguish. To read the time, I need to improve the clarity of the clock face. Applying sharpening will help define the edges of the hands and markers. Increasing the contrast will separate the dark hands from the lighter background. I will apply both enhancements to the current image to make the time legible. Turn 3 — tool call (on image 2). sharp_image = ImageEnhance.Sharpness(image).enhance(1.8); result = ImageEnhance.Contrast(sharp_image).enhance(1.8) Tool response. Image size = 308x308 pixels. Code executed successfully Turn 4 — think. The executed trajectory successfully located and enhanced the clock face. The original image (index 0) showed a distant clock on a church tower. A crop was taken (index 1), resized (index 2), and then sharpened/contrasted (index 3). The final enhanced image (index 3) clearly shows the clock hands. The hour hand (shorter) points towards the 10 position (upper-left quadrant). The minute hand (longer) points towards the 4 position (lower-right quadrant, representing 20 minutes). Therefore, the time is approximately 10:20. Answer. 10:20 Figure 11: Case 1 (SFT training example). The recorded intermediate images (a)–(d) are the model’s visible image timeline. The clock face is illegible at full-image scale and still illegible in the raw 50× 51 detector crop; the trajectory keeps transforming the evidence—resize, then sharpen and contrast—until the hands can be read. Model text is verbatim; code and tool responses are excerpted. G.3 Case 3: Misplaced Manual Crops and Detector Recovery (RL) Case 3 (Figure 13) is the failure mode that no error mes- sage ever flags. Every manual crop in this rollout is legal and executes cleanly—the failure is purely semantic, three coordinate guesses that all land on the keyboard instead of the screen, a direct expression of the pixel-level localization gap discussed in the main text. The model diagnoses the mis- match from the returned images rather than from any error signal, then hands localization to the detector, whose text- conditioned query (“text on the screen”) resolves in one step what three coordinate guesses could not. At the corpus level this preference is the shift visible in Figure 4, where ToolVi- sion’s tool distribution concentrates on detector-guided crop- ping; cropping stays in the repertoire, but the operation trusted for localization is the one whose success does not depend on the model’s own pixel-coordinate estimates. H Reproducibility Details H.1 Code, Data, and Licenses The code and data package prepared for this work con- tains the complete text records for the 4,057 SFT examples and 24,921 RL questions, their source manifests, representa- tive 20-example image subsets for both stages, and the core trajectory-synthesis, MUT-reward, training, evaluation, and tool-service launchers. Original benchmark images, model checkpoints, cluster logs, and private service files are not redistributed. The manifests identify the public-source ex- amples needed to materialize the remaining images under (a) input, 504×504(b) B grounded: 2.71 m(c) A grounded (replayed) Question (SAT-2). Is black color shelving unit (marked A) behind Window (marked B)? Turn 1 — think. The image shows two labeled objects: a red-circle-marked window ‘B’ on the right wall and a red-circle-marked object ‘A’ near a ladder in the center. The question asks whether the shelving unit (A) is behind the window (B). To determine depth, I need to estimate the distance of object A from the camera. I will use the ground_depth helper to ground the object described as ‘black shelving unit’ and measure its depth. This will provide the depth value for A, which can then be compared with B’s depth in a subsequent step to answer the question. Turn 1 — tool call. depth = _call_ground_depth("black shelving unit", detection_index=0, stat="median", label="A") Tool response. No objects found for ’black shelving unit.’. Turn 2 — think. The previous attempt to ground the ‘black shelving unit’ failed, likely due to the specific visual appearance of the object (wooden ladder-like structure with a black base) not matching the generic descriptor. To resolve the spatial relationship between A and B, I need to establish a baseline depth for the window B. This will allow me to compare the depth of A against B in a subsequent step. I will now use the ground_depth helper with the more concrete description ‘window marked B’ to measure its depth. Turn 2 — tool call. depth = _call_ground_depth("window marked B", detection_index=0, stat="median", label="B") Tool response. Detected 3 objects for ’window marked b.’; using detection 0. B median depth is 2.71m. Turn 3 — think. The depth of window B has been established at 2.71m. To determine if the shelving unit A is behind it, I need the depth of A. The previous attempt to ground ‘black shelving unit’ failed. I will now try a more specific grounding prompt ‘ladder with black base’ to locate A and measure its depth. This should help establish whether A is closer to the camera than B or further away, which directly answers the spatial relationship question. Turn 3 — tool call. depth = _call_ground_depth("ladder with black base", detection_index=0, stat="median", label="A") Tool response. Detected 1 objects for ’ladder with black base.’; using detection 0. A median depth is 1.57m. Turn 4 — think. The depth measurements are sufficient to answer the question. The window B has a depth of 2.71m, while the shelving unit A (ladder with black base) has a depth of 1.57m. Since 1.57m < 2.71m, object A is closer to the camera than object B. Therefore, A is not behind B. Answer. no(reference: no; correct) Figure 12: Case 2 (RL rollout, SAT-2). The replayed depth visualizations show the grounded boxes and median depth estimates that the model compared. Model text is verbatim; code and tool responses are excerpted. their original dataset licenses; the bundled subsets support inspection and smoke tests, while a full training run requires those public images to be materialized locally. All derived data will be released publicly upon publication under licenses that permit free research use. H.2 Randomness and Number of Runs Because full training is computationally expensive, each re- ported SFT and RL configuration is trained once, and each result is obtained from one checkpoint for that configuration. SFT optimization and source-aware sampling for the MUT mixture use seed 42. The RL data loader uses seed 1, while vLLM rollout generation and evaluation rollout generation use seed 0; diagnostic evaluation subsampling uses seed 42. These values will be preserved in the released configurations. Distributed GPU execution and remote API-based trajectory synthesis can nevertheless remain nondeterministic. H.3 Computing Environment Training runs used the same Alibaba Cloud PAI workspace and custom A100 resource pool. Each host contains two 32- core Intel Xeon Platinum 8369B (Ice Lake) CPUs, 32× 64 GB DDR4-3200 memory, two 480 GB SATA SSDs, four 3.84 TB NVMe SSDs, one dual-port 25 Gbps Ethernet NIC, (a) input (b) manual crop 1 (c) dino_crop result Question (TextVQA). what kind of mark is shown on the black part of the screen? Turn 1 — think. The user is asking about the mark on the black part of the laptop screen. From the image, there appears to be a dark rectangular area on the right side of the screen where some white text is visible, likely reading something like ‘bot?’. To clarify what the mark says, I will crop the specific region on the right side of the screen where the text is located. Based on visual estimation, this text is situated roughly in the center-right area of the screen, so I will crop a region around that area to isolate the text for better readability. Turn 1 — tool call (excerpt). xmin, ymin, xmax, ymax = 370, 460, 530, 640 (clamped to image bounds) result = image.crop((xmin, ymin, xmax, ymax)) Tool response. Image size = 160x180 pixels. Code executed successfully Turns 2–3. The crop executed, but it landed on the keyboard (panel b): “The previous crop missed the screen area entirely, focusing on the keyboard instead.” Two further manual windows (390–560, then 220–620 horizontally) also execute successfully and still return keyboard and table regions (170× 180 and 400× 232). Turn 4 — think. The previous manual crops failed to isolate the text because they targeted the keyboard area instead of the screen. To solve this, I will use dino_crop with the prompt ‘text on the screen’ to automatically locate and crop the relevant region. This should extract the small white text visible on the right side of the laptop screen, allowing me to read the mark clearly. Turn 4 — tool call. crop = _call_dino_crop(text_prompt=’text on the screen’, max_crops=1, padding=10) Tool response. Image size = 318x218 pixels. GroundedSAM2(dino_crop) returned 1 crop images. Turn 5 — think. The current evidence is sufficient. The previous step successfully cropped the laptop screen region (image index 3), clearly showing the text on the black part of the screen. The text visible is ‘bot?’ and below it ‘w.kernel.org’. The question asks for the ‘mark’, which refers to the text. Since the visible text ends with a question mark, the mark is a question mark. Answer. question mark(reference: ?; scored correct by the benchmark’s answer matcher) Figure 13: Case 3 (RL rollout, TextVQA). All three manual crops execute without error yet land on the keyboard rather than the screen; the text-conditioned detector crop isolates the on-screen text in one step. Model text is verbatim; code and tool responses are excerpted. four dual-port 100 Gbps RoCE NICs, and eight NVIDIA A100-SXM4-80GB GPUs. SFT used one such eight-GPU host. The final RL job used two workers from the same pool; each worker was allocated 110 vCPUs, eight A100-SXM4- 80GB GPUs, 1,500 GiB of host memory, and 1,500 GiB of shared memory. Thus, RL used sixteen A100-80GB GPUs in total. The jobs ran in an Ubuntu 22.04 container with CUDA 12.9. The activated RL environment used Python 3.11.15, PyTorch 2.8.0, Transformers 4.57.1, vLLM 0.11.0, Ray 2.54.1, and FlashAttention 2.8.3. SFT used PyTorch 2.8.0, Transformers 4.57.1, Datasets 4.0.0, and Tokenizers 0.22.2. Final evaluation jobs used the same PAI workspace, Ubuntu container, CUDA stack, and activated CodeVision environment as the RL jobs. The specialist services use PaddleX 3.4.3 with P- OCRv5-server detection and recognition and P-LCNet text-line orientation; GroundingDINO with the Swin-T OGC checkpoint together with SAM 2.1 Hiera-Tiny; Depth Pro with the released depth_pro.pt checkpoint; and CountGD with the FSC-147 ViT-B configuration, the re- leased checkpoint_fsc147_best.pth, and a BERT- base-uncased text encoder. The GroundingDINO/SAM ser- vice uses Python 3.10.20, PyTorch 2.3.1, GroundingDINO 0.1.0, and SAM 2 1.0; the Depth Pro service uses Python 3.9.23 and PyTorch 2.8.0; the CountGD service uses Python 3.9.19, PyTorch 2.2.1, and Transformers 4.39.1. All special- ist services can be co-located on one additional GPU and use at most 16 GB of GPU memory. H.4 Final Training and Evaluation Configurations For SFT construction, Qwen3.6-plus serves as Planner and Executor, with Planner proposal budget B = 2, beam width K = 2, and maximum depth D = 6. The eight-model committee is fixed to Qwen3.6-plus, Qwen3.5-122B-A10B, Qwen3.5-35B-A3B, Qwen3-VL at 2B, 4B, and 8B, Gemini 2.5 Flash, and Gemini 2.5 Flash-Lite. Committee scores are equally averaged. SFT starts from Qwen3-VL-8B-Thinking and trains the language model for two epochs while freezing the vision tower and multimodal projector. It uses bfloat16, sequence length 32,768, AdamW with learning rate 10 −5 , cosine de- cay, 5% warmup, β 1 = 0.9, β 2 = 0.999, ε = 10 −8 , per- device batch size 4, gradient accumulation 4, and eight GPUs, giving global batch size 128. Optimization uses seed 42 and DeepSpeed ZeRO-3. MUT construction uses 16 no-tool rollouts and, for can- didates with at most eight correct no-tool answers, eight tool-enabled rollouts. The final 24,921-question mixture con- tains 8,460 strong, 6,481 weak, and 9,980 ordinary questions with weights 0.5, 0.2, and 0, respectively. GSPO runs for one epoch with 128 prompts per batch, eight rollouts per prompt, mini-batch size 32, micro-batch size 1 per GPU, and actor learning rate 10 −6 . Rollouts use temperature 0.7, top- p 0.95, maximum prompt and response lengths of 16,384, maximum tool return length 10,240, maximum per-turn re- sponse length 2,048, and at most 12 assistant turns. vLLM uses tensor parallel size 4, at most 32 concurrent sequences, GPU-memory utilization 0.7, and prefix caching. Training uses GSPO sequence-level aggregation, clipping coefficients 0.20/0.28 with c = 10, KL-loss coefficient 0.001, zero en- tropy coefficient, FSDP parameter and optimizer offloading, and gradient checkpointing. Checkpoints are saved every 10 steps, and we report the checkpoint with the highest training reward, which occurs at step 180. Two settings were selected by small comparative searches rather than fixed a priori. The RL prompt batch size was chosen from 64, 128: 128 prompts per step give each batch a more balanced mixture of question sources and diffi- culty, which stabilized early training. The vLLM concurrency limit was decreased from 1,024 to 32 concurrent sequences because Qwen3-VL-8B-Thinking produced malformed tool- call responses under high rollout concurrency. The remain- ing optimization settings follow common GSPO practice and were not tuned. Evaluation samples four trajectories per question at tem- perature 0.7 and reports avg@4. Benchmark-specific rules are applied first; the semantic equivalence fallback Judge uses zero-temperature decoding. H.5 MUT Measurement Cost The paired measurement covers 118,724 questions in the no-tool arm (16 rollouts each) and the 51,773 resulting can- didates in the tool-enabled arm (8 rollouts each). On eight- GPU A100-80GB workers, the two arms take 43.2 and 673.0 GPU-hours, respectively; the tool-enabled arm dominates be- cause its trajectories execute live tool services. This one-off 716 GPU-hour measurement amounts to roughly 40% of the compute of a single RL run (1,728 GPU-hours to step 180) and is amortized: the frozen labels are reused unchanged by every necessity-conditioned RL run.