- Rating
- 4
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper proposes SMITH, a reinforcement learning framework that jointly trains an LLM to create and use tools. Unlike prior tool-creation methods that usually rely on prompting a frozen model at inference time, SMITH trains a single policy to both write tools and later invoke them through their schemas. In the build task, the model generates a Python function and a JSON schema from a few examples, and the tool is evaluated on held-out questions. In the use task, the model sees only the schema and must call the tool to answer a new question.
To train the SMITH, the author combine several reward signals, including format consistency, execution accuracy, LLM-judge tool quality, and final-answer correctness. Experiments on widely-used datasets show that SMITH improves over inference-time tool-creation baselines, distillation baselines, and larger untrained tool writers.
Strengths and weaknesses
Strengths
- The problem is timely and important. The paper studies how LLM agents can not only use existing tools, but also create reusable tools by themselves. This is a relevant problem for current agent systems, since fixed human-designed APIs may not always be available or well matched to new tasks.
- SMITH achieves good performance on Reasoning-Gym, including held-out task categories, and also reports transfer results on TabMWP-Hard, GQA, BFCL, and a smaller 350M tool-using model. These results suggest that jointly training tool creation and tool use can be effective.
- Introducing RL into tool creation is an interesting direction. Prior work often treats tool creation as an inference-time prompting or scaffolding problem. This paper instead optimizes tool creation with reward signals from execution, schema quality, and downstream tool use. This is a meaningful step toward learning reusable tools rather than only generating them on demand.
Weaknesses
-
The scope of tool creation is still limited. The paper mainly studies procedural and mathematical reasoning tasks where creating reusable tools is very natural. For example, it is reasonable to create advanced calculators or algorithmic helper functions for arithmetic, algebra, or symbolic reasoning. However, it is less clear what “tool creation” means beyond these settings. For more complex real-world tasks, an LLM may not be able to create useful tools from scratch, especially when the task requires external systems, private APIs, web interaction, or domain-specific infrastructure. The paper would be stronger if it discussed more clearly what kinds of non-math tasks are suitable for this framework.
-
Some implementation details are not fully clear. The paper describes both tool creation and tool use, but I found the exact interaction process somewhat unclear. For example, is tool creation a single-turn generation of code and schema, or can the model interact with an environment to debug and revise the tool? During tool use, how exactly does the multi-turn interaction with the tool environment proceed? More details about the rollout format, environment feedback, and failure handling would make the method easier to understand and reproduce.
-
The reward design needs deeper analysis. The method uses several reward signals, including format reward, execution/evaluation reward, judge reward, and tool-use correctness reward. While this decomposition is reasonable, the paper does not fully analyze which reward contributes the most or how sensitive the method is to each component. In particular, the judge reward relies on an LLM to assess code quality, schema quality, and overall tool quality. It would be useful to know how accurate and stable this judge is, and whether the improvements depend strongly on the choice of judge model.
-
The unique contribution over prior tool-creation systems could be clearer. Compared with Trove, KTCE, and related tool-creation frameworks, the main difference seems to be the introduction of RL and joint training of tool creation and tool use. This is valuable, but the paper should better clarify what is fundamentally new beyond adding RL to tool generation. For example, is the main contribution the schema-grounded feedback loop, the multi-task build/use formulation, the reward decomposition, or the learned tool pool? A clearer positioning would help readers understand the paper’s originality.
Questions
-
Could the authors clarify what kinds of tasks they believe are suitable for from-scratch tool creation, and whether SMITH can be extended to tool refinement or tool composition
-
Is tool creation performed as a single-turn generation of code and schema, or can the model interact with the environment to debug, revise, or validate the tool?
-
Could the authors provide more analysis of which reward component contributes the most? If one wanted to simplify the method, which reward signals are essential, and which ones could potentially be removed with limited performance loss?
-
Compared with prior systems such as Trove and KTCE, the most visible difference seems to be the use of RL and joint training. Could the authors better clarify what the main unique contribution is?
Limitations
The authors do discuss important limitations, including the focus on procedural reasoning, stateless Python tools, short tool-use horizons, judge dependence, and safety concerns.
Paper formatting concerns
No formatting concerns
We agree the paper should state this criterion more explicitly rather than leaving computation as the implied boundary of the idea.
From-scratch creation is suitable when these three conditions hold:
Data transformation, file processing, API orchestration (e.g., replying to an enquiry email, or driving a video-creation pipeline), and retrieval over an accessible endpoint all satisfy this. None of these scenarios are mathematical.
Crucially, "creation" here means synthesizing a reusable wrapper or composition over capabilities already present in the execution environment. It does not mean inventing unavailable external services, private credentials, or perception models. Tool creation means the LLM should be able to wrap a multi-step action (e.g., open browser, log in to the user's email, fetch the email relevant to an enquiry, and reply if needed) into a single tool, which saves tokens (shown in Table 1's "I/O" column) and gives reusability.
We believe tool refinement to be a natural extension rather than an existing capability: rjudge already decomposes failure into diagnostic sub-scores (scode, sschema, and the schema-code alignment check), which is exactly the signal a revision step needs. A "repair" task could condition the policy on a stored (C,S) pair plus its judge critique and reward the revised pair with the same axes in Eq. (build axes), reusing existing reward machinery rather than introducing new supervision.
On composition, we can potentially construct procedurally generated questions (just like Reasoning Gym) where it is more complex than the in-context QA pairs. These questions are answerable only by combining more than one of the simpler QA pairs tools. For example, if separate build-task episodes taught a unit-conversion tool and an arithmetic tool, a compound question requiring two measurements to be converted to the same unit before their sum is computed cannot be answered by either tool alone.
The one open design question is the correctness reward: for a compound question, correctness must only be credited when the trajectory correctly invokes at least two distinct tools, rather than crediting a lucky single-tool answer as if it had solved the compound question.
Tool creation is single-turn: The model generates one Python block and one JSON-schema block. We then check that both blocks are valid and that the function name and parameters match. If any check fails, the rollout ends with zero environment reward. The model cannot debug or regenerate the tool within the same episode. In 10,456 logged creation episodes, none contain a second creation attempt after failure.
Tool validation: If the output passes these checks, the generated tool is fixed and evaluated on up to 16 hidden questions. The evaluation score is used for the policy update, but the results are not shown to the creator during that episode. Therefore, the current method learns from failures across training updates, not through an interactive code-revision loop.
Tool use is multi-turn: The actual training configuration allows up to four turns; the paper's T=5 statement is a documentation error that we will correct. At each turn, the model can return a final answer or call the fixed tool. A successful call returns the tool's output as a tool-role message. A failed call returns a truncated Python error or timeout message, so the model can revise its arguments on the next turn. The tool code itself cannot be changed. If the model produces neither a final answer nor a valid tool call, or uses all four turns, the rollout ends.
Extension to refinement and composition: These are not included in the current method. Refinement could be added by giving the model the existing code, schema, and failure message as a new creation prompt. Composition could be added by providing several schemas and allowing multiple tool calls before the final answer. GQA tests a limited form of composition over supplied visual tools, but we do not evaluate composition among multiple model-created tools. We will add the exact message flow and failure-handling rules to the appendix.
We excluded format reward from the ablation since it enforces parseable Python and a valid tool schema — a correctness precondition, not a quality signal we expect gradient on to help downstream accuracy. Concretely, without it a nontrivial fraction of rollouts produce unparseable code or a malformed schema and get zero environment reward regardless of quality; removing it does not trade off against another reward axis, it just increases the rate of wasted rollouts. We agree this is an assumption rather than a measured ranking. We will run the ablation (format reward on vs. off, all else held fixed) and report the result in the camera-ready.
Tool-use correctness reward alone doesn't move the needle: adding rcorrect to Tool Create while keeping a fixed external executor (Decoupled Create/Use, 30B-A3B) leaves results flat-to-slightly-worse on every benchmark (with rcorrect vs. without: 76.44 vs 77.43 RG(S); 58.93 vs 59.39 RG(U); 13.90 vs 15.60 TabMWP; 35.04 vs 37.01 GQA). The gain from tool-use correctness only materializes once the policy evaluates its own generated tool at inference (self) — i.e., correctness has to be coupled to the policy's own invocation behavior, not judged against a separate executor.
The held-out execution reward, averaged over multiple samples (K>1), is the single most important component: SMITH:Full beats SMITH:K=1 by +7.97 RG(S), +4.40 RG(U), +10.32 GQA. K=1 only wins on TabMWP (46.77 vs 40.40), so multi-sample execution averaging is what carries the aggregate win, at a real cost on one benchmark. Note this ablation sweep (Full/K=1/No-Judge below) uses a single-seed run rather than the four-replicate configuration audited above; the resulting GQA figures (42.62 Full, 42.63 No-Judge) are close to but not identical with the four-replicate 41.7 reported elsewhere, and the ~0.9-point gap reflects that seed-count difference, not a discrepancy in the trained policy itself.
LLM judge is optional, but still important for generalizability: removing the LLM judge (No-Judge: 42.63 GQA) is statistically tied with Full (42.62 GQA) and second-best on RG(S) (No-Judge 82.57 vs Full's higher score), but collapses on RG(Unseen) (No-Judge 67.81 vs Full 78.33, −10.5) and TabMWP (No-Judge 18.30 vs Full 40.40, −22.1).
Judge accuracy and sensitivity to judge choice. We want to be explicit that our ablation does not answer this half of the question. However we did include a self-judge and judge by 30B MoE models, and found that self-judge is indeed worse
Our contribution is not "RL applied to tool generation," but a joint build-and-use training objective: tool creation and tool use are optimized as one multi-task RL problem, where the reward for creating a tool comes from how much that tool improves downstream task performance across many use episodes, rather than from a single-shot heuristic judgment. To our knowledge, no prior work jointly trains tool creation and tool use this way, and we deliberately kept the setup easy to reproduce.
KTCE, TroVE, and CRAFT treat tool creation as a prompting/self-refinement problem: the model decides, on its own, which components are worth abstracting into a tool, iterating via self-critique or in-context examples. There is no training signal tying tool quality back to actual reuse value. A "good tool" is whatever the model's prompted judgment says it is.
Our method, SMITH, makes tool creation and tool use co-dependent parts of a single objective. The model is rewarded for producing tools that make future tool-use succeed, so it learns from data what makes a tool reusable, rather than from priors defined by prompts. Our reward decomposition (task-success plus tool-reuse signal) is the mechanism that lets the RL signal from "using a tool well" propagate back into "how to write that tool." This is a loop KTCE, TroVE, and CRAFT never close, since they do not train the underlying model.
The schema-grounded feedback and the learned tool pool are supporting infrastructure that make this loop trainable at scale (schema grounding keeps generated tools well-formed enough to be reusable; the tool pool is the artifact the joint training produces).