ToolSmith Grows a Search Agent's Toolbox From Failed Trajectories, +2.98pp OOD on Qwen3-VL-32B

ToolSmith: An Automatic Tool-Generation Framework for Multimodal Search Agents

Rui Sun, Junhua Huang, Luca Zancato, Md Mofijul Islam, Kai-Wei Chang

cs.CL, cs.AI, cs.CV

2026-11-24

ToolSmith turns failed agent trajectories into sandbox-verified tools written by GPT-5, adding 1-3pp over an 8-tool base library on 13 multimodal search benchmarks.

What problem this solves

A multimodal search agent is a VLM with a handful of tools, web search, page fetching, image grounding, OCR, depth estimation, code execution, answering questions its parametric knowledge cannot settle. Every production system ships a hand-written library. Hand-written means slow to extend and frozen at whatever coverage its authors anticipated; new query types or failure modes wait for an engineer.

Memory learning and RL-trained tool use sharpen how an agent works a fixed inventory without adding a single tool. Automatic tool generation exists in math QA (CRAFT), vision modules (GENOME), and Minecraft skills (Voyager), but nobody carried it to multimodal search, where trajectories run a dozen turns and state mixes images, links, and tool outputs. ToolSmith, from UCLA and AWS GenAI, fills that hole; by the authors' claim it is the first tool-generation framework for multimodal search agents.

Method

Four phases plus retrieval at inference. The agent itself is never trained, so swapping backbones costs nothing:

At inference the agent never sees the full generated catalog, which would inflate the per-turn schema and degrade selection. Eight base tools stay visible; generated tools rotate in as a per-query top-K retrieval.

Results

Context: the eight base tools alone lift Qwen3-VL-8B by roughly 25pp in-domain and 10pp out-of-domain over direct inference, so the task runs on tools. ToolSmith adds one to three more points:

BackboneIn-domain avg (base → +ToolSmith)OOD avg gain
Qwen3-VL-8B47.94 → 50.14 (+2.20)+1.33
Qwen3-VL-32B55.47 → 57.14 (+1.67)+2.98
GPT-551.80 → 52.84 (+1.04)+2.40

In-domain means held-out test splits of the three training datasets; out-of-domain means ten unseen benchmarks totaling 2,917 questions, where 32B and GPT-5 improve on every one and 8B on eight of ten. All numbers are three-run means judged by GPT-4o. One deployment note: Qwen3-VL-8B-Thinking edges out Instruct on direct inference but costs over 5x per-query latency inside the workflow, so Instruct carries the rest of the paper.

Two ablation findings travel well. Generator strength dominates with no exceptions: an 8B consumer jumps from 52.00 to 58.00 on FVQA when the generator moves from 8B to GPT-5, while a GPT-5 consumer gains only about two points and loses about two with an 8B generator. Spend on the generator. Miner and consumer should also match: an 8B agent does better with tools mined from its own failures (264 tools) than from GPT-5's (173 tools, 1.5 points lower on FVQA).

The tools get used: 27% of in-domain tool calls and 40.9% of samples touch a generated tool, dropping to 15% and 16.3% out-of-domain where gains shrink in step. Gains tracking adoption is more convincing than a prompt-effect explanation.

Why it matters

The pipeline turns tool-library maintenance from a human cost into an automated process delegated to a strong model: mine gaps, write code, sandbox it, dedupe, no training, no backbone lock-in. One to three points is incremental, but it is orthogonal to SFT and RL and stacks with them, and per-benchmark gains on ten unseen benchmarks argue the tools are not overfit patches. Code and data are released.

The qualitative analysis carries the most practical insight: generated tools mainly enforce a perceive-then-query order the base agent skips. The base agent searches text before identifying the visual entity and attributes Reed Hastings's $50M donation to Eric Schmidt; a generated tool chains reverse image search with a knowledge-base lookup in one call and fixes the order.

Limitations

Author-stated: no tools that generate images; no code-specialized LLM tried as the generator, which they expect would help further; live search APIs and proprietary models drift over time, so exact reproduction is hard even with pinned snapshots.

Open questions from this reading. The in-domain evaluation is partly circular: tools are mined from failures on the same three datasets whose test splits grade them, so +2.20 there measures targeted patches, and the OOD gains are the real generalization evidence. Results are three-run means with no variance or significance; the authors themselves frame the ablations as illustrative rather than statistical. GPT-5's rows are depressed by privacy refusals on identity queries, so its gains sit on a lowered base. Generated tools occasionally return wrong information, and the agent sometimes trusts one enough to overturn a correct base-tool result. Cost figures live in an appendix; the main text says only 'manageable.'

Terms

Source

Related papers

All paper explainers