Papers › From Exploration to Mastery: Enabling LLMs to Master Tools via Self-Driven Interactions

From Exploration to Mastery: Enabling LLMs to Master Tools via Self-Driven Interactions

10 Oct 2024arXiv:2410.08197archive 2025-07-28

Changle Qu, Sunhao Dai, Xiaochi Wei, Hengyi Cai, Shuaiqiang Wang, Dawei Yin, Jun Xu, Ji-Rong Wen

Tool learning enables Large Language Models (LLMs) to interact with external environments by invoking tools, serving as an effective strategy to mitigate the limitations inherent in their pre-training data. In this process, tool documentation plays a crucial role by providing usage instructions for LLMs, thereby facilitating effective tool utilization. This paper concentrates on the critical challenge of bridging the comprehension gap between LLMs and external tools due to the inadequacies and inaccuracies inherent in existing human-centric tool documentation. We propose a novel framework, DRAFT, aimed at Dynamically Refining tool documentation through the Analysis of Feedback and Trails emanating from LLMs' interactions with external tools. This methodology pivots on an innovative trial-and-error approach, consisting of three distinct learning phases: experience gathering, learning from experience, and documentation rewriting, to iteratively enhance the tool documentation. This process is further optimized by implementing a diversity-promoting exploration strategy to ensure explorative diversity and a tool-adaptive termination mechanism to prevent overfitting while enhancing efficiency. Extensive experiments on multiple datasets demonstrate that DRAFT's iterative, feedback-based refinement significantly ameliorates documentation quality, fostering a deeper comprehension and more effective utilization of tools by LLMs. Notably, our analysis reveals that the tool documentation refined via our approach demonstrates robust cross-model generalization capabilities.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2410.08197")

Code

Syntology Ran 17 of 27 code samples harvested from 1 repository linked to this paper; 10 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · violated contract; 6 ran · our draft was wrong; 9 ran with no contract checked.

By repository: official repository: 27 samples from 1 repository, 17 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

quchangle1/DRAFT officialmentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

27 samples harvested; 17 ran; 1 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · violated contract
6ran · our draft was wrong
9ran
10unverified

Licence: 0 of the 27 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from quchangle1/DRAFT. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Info quchangle1/DRAFT/Inference_DFSDT.py official repository ran MIT (permissive) · 90652e52f646264e · report
answer_check quchangle1/DRAFT/Inference_DFSDT.py official repository ran MIT (permissive) · 8fa191b03e06ca45 · report
change_name quchangle1/draft/Cal_path_rate.py official repository ran · honoured contract fingerprinted MIT (permissive) · 80196c9b6d0a1371 · report
change_name quchangle1/DRAFT/Inference_DFSDT.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · b273ba46971479bb · report
choose_parameter quchangle1/DRAFT/Inference_DFSDT.py official repository ran fingerprinted MIT (permissive) · 20b0113771cb17f2 · report
choose_parameter_depend quchangle1/DRAFT/Inference_DFSDT.py official repository ran MIT (permissive) · 6925fcd2a5d56794 · report
choose_tool quchangle1/DRAFT/Inference_DFSDT.py official repository ran MIT (permissive) · e0e1e1a4f708f8c7 · report
cosine_similarity quchangle1/draft/DRAFT.py official repository ran · violated contract fingerprinted MIT (permissive) · fe3dcc49d4415434 · report
dict_shorten quchangle1/DRAFT/Inference_DFSDT.py official repository ran MIT (permissive) · 1baad03523efe558 · report
get_response quchangle1/DRAFT/Inference_DFSDT.py official repository ran MIT (permissive) · e247a2919937c8b6 · report
observation_shorten quchangle1/DRAFT/Inference_DFSDT.py official repository ran MIT (permissive) · a3869e242f4b29e5 · report
prepare_tool_name_and_url quchangle1/draft/Inference_DFSDT.py official repository ran · our draft was wrong MIT (permissive) · 99eef45bc570d9d0 · report
process_error quchangle1/draft/Inference_DFSDT.py official repository ran · our draft was wrong MIT (permissive) · 2e8458283ddaa9b4 · report
process_name quchangle1/draft/Cal_path_rate.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 9103b4347a03d6f5 · report
run quchangle1/draft/Inference_DFSDT.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 8a54f4acce793e65 · report
standardize quchangle1/draft/Cal_path_rate.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · c25f57d20852531f · report
task_decompose quchangle1/DRAFT/Inference_DFSDT.py official repository ran MIT (permissive) · 1f9fe0a7c687f7f6 · report
answer_generation quchangle1/DRAFT/Inference_DFSDT.py official repository unverified MIT (permissive) · 4a851234c230b4f3 · report
answer_generation_depend quchangle1/DRAFT/Inference_DFSDT.py official repository unverified MIT (permissive) · 166d885b223fec87 · report
answer_summarize quchangle1/DRAFT/Inference_DFSDT.py official repository unverified MIT (permissive) · f092dbfafd36bcc8 · report
choose_API quchangle1/DRAFT/Inference_DFSDT.py official repository unverified MIT (permissive) · e1ed82e16201c68a · report
get_rapidapi_response quchangle1/DRAFT/Inference_DFSDT.py official repository unverified MIT (permissive) · 54fedb6237f6f7d5 · report
openai_response quchangle1/DRAFT/Inference_DFSDT.py official repository unverified MIT (permissive) · 721a78b42e639559 · report
retrieval quchangle1/DRAFT/Inference_DFSDT.py official repository unverified MIT (permissive) · cdac1abe959ba09c · report
task_execution quchangle1/DRAFT/Inference_DFSDT.py official repository unverified MIT (permissive) · 8be639625e74f9fc · report
task_topology quchangle1/DRAFT/Inference_DFSDT.py official repository unverified MIT (permissive) · 19a64bf2fd72679c · report
update_progress quchangle1/DRAFT/Inference_DFSDT.py official repository unverified MIT (permissive) · 479a78407b99eb56 · report

Tasks

Diversity

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections