TroVE: Inducing Verifiable and Efficient Toolboxes for Solving Programmatic Tasks

Zhiruo Wang, Daniel Fried, Graham Neubig
2/12/2026

No official code found. Best implementation: zorazrw/trove (33 stars, CC-BY-SA-4.0, last commit 2024-09-20).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

zorazrw/troveCommunity100%
CC-BY-SA-4.0

[ICML'24] TroVE: Inducing Verifiable and Efficient Toolboxes for Solving Programmatic Tasks

333HTML, PythonJan 24, 20242 years agoCC-BY-SA-4.0
programmatic-taskstool-making

Similar Papers

Cite this paper

@article{wang2026trove,
  title  = {TroVE: Inducing Verifiable and Efficient Toolboxes for Solving Programmatic Tasks},
  author = {Zhiruo Wang and Daniel Fried and Graham Neubig},
  year   = {2026},
  eprint = {2401.12869},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2401.12869},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.12869.svg)](https://codeofpaper.com/paper/2401.12869)

Discussion