Papers › TroVE: Inducing Verifiable and Efficient Toolboxes for Solving Programmatic Tasks

TroVE: Inducing Verifiable and Efficient Toolboxes for Solving Programmatic Tasks

23 Jan 2024arXiv:2401.12869archive 2025-07-28

Zhiruo Wang, Daniel Fried, Graham Neubig

Language models (LMs) can solve tasks such as answering questions about tables or images by writing programs. However, using primitive functions often leads to verbose and error-prone programs, and higher-level functions require expert design. To enable better solutions without human labor, we ask code LMs to curate reusable high-level functions, and use them to write solutions. We present TROVE, a training-free method of inducing a verifiable and efficient toolbox of functions, by generating via using, growing, and periodically trimming the toolbox. On 11 datasets from math, table question answering, and image reasoning tasks, TROVE consistently yields simpler solutions with higher accuracy than baselines using CODELLAMA and previous methods using GPT, while using 79-98% smaller toolboxes. TROVE further enables 31% faster and 13% more accurate human verification than baselines. With the same pipeline, it creates diverse functions for varied tasks and datasets, providing insights into their individual characteristics.

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="2401.12869")

Code

Syntology Ran 16 of 19 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 16 ran with no contract checked.

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

zorazrw/trove officialmentioned in paperCC-BY-SA-4.0 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

19 samples harvested; 16 ran; 0 honoured the contract we drafted; 3 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.

16ran
3unverified

Licence: 19 of the 19 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 zorazrw/trove. “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.

auto_decide_path zorazrw/trove/utils/log.py official repository ran CC-BY-SA-4.0 (copyleft) · pointer only · 9a504519dfd83076 · report
clean_solution zorazrw/trove/utils/parse.py official repository ran CC-BY-SA-4.0 (copyleft) · pointer only · 2ea5441e13a513df · report
crop_region zorazrw/trove/toolbox/gqa.py official repository ran CC-BY-SA-4.0 (copyleft) · pointer only · 913c8bc590a51bbd · report
execute_code_wrapped zorazrw/trove/utils/exec.py official repository ran CC-BY-SA-4.0 (copyleft) · pointer only · 6d8bc13b34a6a612 · report
extract_code_pieces zorazrw/trove/utils/code.py official repository ran CC-BY-SA-4.0 (copyleft) · pointer only · 87eb65a5d8c78563 · report
extract_llama_response zorazrw/trove/utils/parse.py official repository ran fingerprinted CC-BY-SA-4.0 (copyleft) · pointer only · 2ef1497b990ea912 · report
format_tabmwp_table_markdown zorazrw/trove/utils/prompt.py official repository ran fingerprinted CC-BY-SA-4.0 (copyleft) · pointer only · 5067924e54f1bd49 · report
get_math_prompt_args zorazrw/trove/utils/prompt.py official repository ran CC-BY-SA-4.0 (copyleft) · pointer only · 448fd3fb21ff71de · report
get_tabmwp_prompt_args zorazrw/trove/utils/prompt.py official repository ran CC-BY-SA-4.0 (copyleft) · pointer only · 4e04ce5ef7043221 · report
load_dataset zorazrw/trove/utils/io.py official repository ran CC-BY-SA-4.0 (copyleft) · pointer only · 10355c2694a0be77 · report
load_gqa_dataset zorazrw/trove/utils/io.py official repository ran CC-BY-SA-4.0 (copyleft) · pointer only · 73e7db04e65a4655 · report
load_hf_model zorazrw/trove/server/gqa.py official repository ran CC-BY-SA-4.0 (copyleft) · pointer only · d3092b842d798b40 · report
load_image zorazrw/trove/server/gqa.py official repository ran CC-BY-SA-4.0 (copyleft) · pointer only · 89498f1816854476 · report
nms zorazrw/trove/server/gqa.py official repository ran CC-BY-SA-4.0 (copyleft) · pointer only · edfde96f4e9f3b16 · report
unwrap_code zorazrw/trove/utils/code.py official repository ran fingerprinted CC-BY-SA-4.0 (copyleft) · pointer only · 1d3bfb6057c12f45 · report
wrap_code zorazrw/trove/utils/code.py official repository ran fingerprinted CC-BY-SA-4.0 (copyleft) · pointer only · d395da5577eb1d7b · report
load_json_file zorazrw/trove/utils/io.py official repository unverified CC-BY-SA-4.0 (copyleft) · pointer only · aafd75b585a3ce56 · report
locate_objects zorazrw/trove/toolbox/gqa.py official repository unverified CC-BY-SA-4.0 (copyleft) · pointer only · 9f881fbf73b7ac0c · report
visual_qa zorazrw/trove/toolbox/gqa.py official repository unverified CC-BY-SA-4.0 (copyleft) · pointer only · 24aa9c874a8e65f6 · report

Tasks

MathQuestion Answering

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBPECosine AnnealingDense ConnectionsDiscriminative Fine-TuningDropoutGPTLayer NormalizationLinear LayerLinear Warmup With Cosine AnnealingMulti-Head AttentionResidual ConnectionSoftmaxWeight Decay

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