atlas

Research map / Large language models / Agents, code and math

TroVE: Inducing Verifiable and Efficient Toolboxes for Solving Programmatic Tasks

ICML 2024 · Large language models › Agents, code and math · approach: LLM-guided program synthesis · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes TroVE, a training-free method where a code LM streams over examples, creating, importing, or skipping reusable Python functions, selects answers by execution agreement, and periodically trims the toolbox.

Problem

Program-aided LMs rely on primitive functions, producing verbose, error-prone programs; existing tool-making methods need training data, expert design, iteration, or produce large redundant toolboxes.

Approach

Maintain a shared, growing function library processed online; for each example sample responses in three modes (IMPORT, CREATE, SKIP), select by execution agreement plus solution complexity, and periodically remove rarely used functions with a logarithmic usage threshold.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use TroVE's reusable toolbox instead of primitive functionsCodeLLaMa-7B-Instruct · MATH algebra, count & probability, geometry, intermediate algebra, number theory, prealgebra, precalculus; TabMWP, WTQ, HiTab; GQAaccuracy: 0.15 -> 0.25; 0.14 -> 0.26; 0.06 -> 0.08; 0.05 -> 0.11; 0.16 -> 0.25; 0.21 -> 0.29; 0.10 -> 0.17; 0.43 -> 0.47; 0.20 -> Helped
Use TroVE's shared, trimmed toolbox instead of per-example function inductionCodeLLaMa-7B-Instruct · MATH algebra, count & probability, geometry, intermediate algebra, number theory, prealgebra, precalculus; TabMWP, WTQ, HiTab; GQAaccuracy: 0.22 -> 0.25; 0.23 -> 0.26; 0.07 -> 0.08; 0.06 -> 0.11; 0.23 -> 0.25; 0.26 -> 0.29; 0.17 -> 0.17; 0.36 -> 0.47; 0.17 -> Mixed
Remove periodic toolbox trimming (compare with keeping trimming) (ablation)TroVE · MATH algebraaccuracy: 0.25 -> 0.25No clear effect
Remove periodic toolbox trimming (ablation)TroVE · HiTabaccuracy: 0.18 -> 0.15Hurt
Remove periodic toolbox trimming (ablation)TroVE · GQAaccuracy: 0.44 -> 0.39Hurt
Shuffle example order instead of using original dataset order (ablation)TroVE · MATH algebraaccuracy: 0.25; 0.23--0.24No clear effect
Shuffle example order instead of using original dataset order (ablation)TroVE · HiTabaccuracy: 0.18; 0.17--0.18No clear effect
Shuffle example order instead of using original dataset order (ablation)TroVE · GQAaccuracy: 0.43; 0.43--0.44No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: MATH TabMWP WTQ HiTab GQA

Benchmarks: MATH TabMWP WTQ HiTab GQA

Metrics: answer accuracy solution complexity (# ops) library size (# lib) human verification accuracy and time

Baselines: Primitive Instance LATM CRAFT CREATOR

Builds on: self-consistency VisProg LATM CREATOR CRAFT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy