SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2309.17428 · ICLR · 2024

CRAFT: Customizing LLMs by Creating and Retrieving from Specialized Toolsets

Hao Peng, Heng Ji, Lifan Yuan, Yangyi Chen, Xingyao Wang, Yi Fung

arXiv · PDF · Open in the Atlas

Code that ran

None of the 5 samples (functions and classes) lifted from this paper's linked repositories has a recorded run on a synthesized input (5 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/2309.17428.json · badge: /api/ran/2309.17428.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
lifan-yuan/craft canonical (classifier label)
classifier basis: classifier_2025
0 ran · 5 no recorded run
FunctionStatusWhere it lives
abstract_tools Not yet run
unverified (harvested, no recorded run)
lifan-yuan/craft/tab_and_math/construct_toolset.py
pointer only (licence: NONE) · get_code("9c9bdd3cfe9fb7e9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lifan-yuan/craft 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.

construct_vector_library Not yet run
unverified (harvested, no recorded run)
lifan-yuan/craft/tab_and_math/construct_toolset.py
pointer only (licence: NONE) · get_code("23bdeb33a47bc5c4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lifan-yuan/craft 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.

generate_code Not yet run
unverified (harvested, no recorded run)
lifan-yuan/craft/vqa/construct_toolset.py
pointer only (licence: NONE) · get_code("7a213d993d2799df")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lifan-yuan/craft 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.

inference Not yet run
unverified (harvested, no recorded run)
lifan-yuan/craft/tab_and_math/generate_with_retrieval.py
pointer only (licence: NONE) · get_code("b5e64dd25ac1057c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lifan-yuan/craft 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.

specific_solution_generation Not yet run
unverified (harvested, no recorded run)
lifan-yuan/craft/tab_and_math/construct_toolset.py
pointer only (licence: NONE) · get_code("542e37d4adea5ce3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lifan-yuan/craft 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 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 5 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.

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

Large language models (LLMs) are often augmented with tools to solve complex tasks. By generating code snippets and executing them through task-specific Application Programming Interfaces (APIs), they can offload certain functions to dedicated external modules, such as image encoding and performing calculations. However, most existing approaches to augment LLMs with tools are constrained by general-purpose APIs and lack the flexibility for tailoring them to specific tasks. In this work, we present CRAFT, a general tool creation and retrieval framework for LLMs. It creates toolsets specifically curated for the tasks and equips LLMs with a component that retrieves tools from these sets to enhance their capability to solve complex tasks. For each task, we collect specific code solutions by prompting GPT-4 to solve the training examples. Following a validation step ensuring the correctness, these solutions are abstracted into code snippets to enhance reusability, and deduplicated for higher quality. At inference time, the language model retrieves snippets from the toolsets and then executes them or generates the output conditioning on the retrieved snippets. Our method is designed to be flexible and offers a plug-and-play approach to adapt off-the-shelf LLMs to unseen domains and modalities, without any finetuning. Experiments on vision-language, tabular processing, and mathematical reasoning tasks show that our approach achieves substantial improvements compared to strong baselines. In addition, our in-depth analysis reveals that: (1) consistent performance improvement can be achieved by scaling up the number of tools and the capability of the backbone models; (2) each component of our approach contributes to the performance gains; (3) the created tools are well-structured and reliable with low complexity and atomicity. 1

For agents

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

get_harvested_code_for_paper("2309.17428")
get_code_for_paper("2309.17428")
have("2309.17428")

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

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

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

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

Connect an agent — have() is free.