SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.07745 · 2024

StepTool: Enhancing Multi-Step Tool Usage in LLMs via Step-Grained Reinforcement Learning

arXiv · PDF · Open in the Atlas

Code that ran

4 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2410.07745.json · badge: /api/ran/2410.07745.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
yuyq18/steptool canonical (classifier label)
classifier basis: census
4 ran · 3 no recorded run
FunctionStatusWhere it lives
add_mc_return Ran
ran; our contract draft was wrong, not the code
yuyq18/steptool/src/baseline-archer/archer_environment.py
pointer only (licence: NONE); the stored copy get_code serves, from THUDM/WebRL, is pointer only (licence: NONE) · get_code("6bc27263e082aea0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yuyq18/steptool when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

add_trajectory_reward Ran
ran; our contract draft was wrong, not the code
yuyq18/steptool/src/baseline-archer/archer_environment.py
pointer only (licence: NONE); the stored copy get_code serves, from THUDM/WebRL, is pointer only (licence: NONE) · get_code("31a5caa2d17b76d5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yuyq18/steptool when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

batch_interact_environment Ran
ran; our contract draft was wrong, not the code
yuyq18/steptool/src/baseline-archer/archer_environment.py
pointer only (licence: NONE) · get_code("33a3ba20815329dd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yuyq18/steptool when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

dict_mean Ran
ran; our contract draft was wrong, not the code
yuyq18/steptool/src/baseline-archer/archer_trainer.py
pointer only (licence: NONE) · get_code("e154ffa50c4434d1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yuyq18/steptool when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_conv_template Not yet run
unverified (harvested, no recorded run)
yuyq18/steptool/src/baseline-rft/rft.py
pointer only (licence: NONE) · get_code("a822c97372b609f0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yuyq18/steptool when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_conversation_template Not yet run
unverified (harvested, no recorded run)
yuyq18/steptool/src/baseline-rft/rft.py
pointer only (licence: NONE) · get_code("097b794353bef9ba")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yuyq18/steptool when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_model_adapter Not yet run
unverified (harvested, no recorded run)
yuyq18/steptool/src/baseline-rft/rft.py
pointer only (licence: NONE) · get_code("c01f568fceb061b6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yuyq18/steptool when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 4 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 4 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_conv_template 69 other papers
41 dated earlier, 1 the same month, 22 later, 4 same year, order not determinable, 1 undated
1911.03705 (2019-11)
CommonGen: A Constrained Text Generation Challenge for Generative Commonsense Reasoning
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2204.07705 (2022-04)
SUPER-NATURALINSTRUCTIONS: Generalization via Declarative Instructions on 1600+ NLP Tasks
and 66 more not named here
dict_mean 2 other papers
1 dated earlier, 1 later
2402.19446 (2024-02)
ArCHer: Training Language Model Agents via Hierarchical Multi-Turn RL
2604.13592 (2026-04)
Foresight Optimization for Strategic Reasoning in Large Language Models
add_mc_return 1 other paper
1 later
2411.02337 (2024-11)
WebRL: Training LLM Web Agents via Self-Evolving Online Curriculum Reinforcement Learning
add_trajectory_reward 1 other paper
1 later
2411.02337 (2024-11)
WebRL: Training LLM Web Agents via Self-Evolving Online Curriculum Reinforcement Learning

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Despite their powerful text generation capabilities, large language models (LLMs) still struggle to effectively utilize external tools to solve complex tasks, a challenge known as tool learning. Existing methods primarily rely on supervised fine-tuning, treating tool learning as a text generation problem while overlooking the decision-making complexities inherent in multi-step contexts. In this work, we propose modeling tool learning as a dynamic decision-making process and introduce StepTool, a novel step-grained reinforcement learning framework that enhances LLMs' capabilities in multi-step tool use. StepTool comprises two key components: Step-grained Reward Shaping, which assigns rewards to each tool interaction based on its invocation success and contribution to task completion; and Step-grained Optimization, which applies policy gradient methods to optimize the model across multiple decision steps. Extensive experiments across diverse benchmarks show that StepTool consistently outperforms both SFT-based and RL-based baselines in terms of task Pass Rate and Recall of relevant tools. Furthermore, our analysis suggests that StepTool helps models discover new tool-use strategies rather than merely re-weighting prior knowledge. These results highlight the importance of fine-grained decision modeling in tool learning and establish StepTool as a general and robust solution for enhancing multi-step tool use in LLMs. Code and data are available at https://github.com/yuyq18/StepTool.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2410.07745")
get_code_for_paper("2410.07745")
have("2410.07745")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2410.07745.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2410.07745.svg)](https://syntology.ai/paper/2410.07745)

Connect an agent — have() is free.