atlas

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

CRAFT: Customizing LLMs by Creating and Retrieving from Specialized Toolsets

ICLR 2024 · Large language models › Agents, code and math · approach: Mathematical and structural reasoning benchmarks · 8 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.

CRAFT creates task-specific toolsets of reusable, verified code snippets from GPT-4 solutions and retrieves them at inference via multi-view matching, improving frozen GPT-3.5-Turbo on VQA, TabMWP, and MATH algebra without finetuning.

Problem

General-purpose tool collections lack task-specific APIs, and existing LLM tool creation methods produce unverified, non-reusable tools and use weak retrieval, limiting how LLMs can be customized to specialized tasks.

Approach

Create a large toolset offline by generating GPT-4 code solutions for sampled training problems, abstracting them into generic reusable functions, validating them on the original problems, and deduplicating; at inference, retrieve tools via multi-view matching over the problem, function name, and docstring, then add them to the prompt.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use CRAFT instead of the strongest listed baselineGPT-3.5-Turbo on GQA · GQASAcc: 37.9 -> 45.4Helped
Use CRAFT instead of the strongest listed baselineGPT-3.5-Turbo on GQA · GQAF1: 39.0 -> 48.8Helped
Use CRAFT instead of the strongest listed baselineGPT-3.5-Turbo on OK-VQA · OK-VQASAcc: 18.4 -> 33.4Helped
Use CRAFT instead of the strongest listed baselineGPT-3.5-Turbo on OK-VQA · OK-VQAF1: 28.9 -> 43.0Helped
Use CRAFT instead of the strongest listed baselineGPT-3.5-Turbo on A-OKVQA · A-OKVQASAcc: 17.8 -> 30.8Helped
Use CRAFT instead of the strongest listed baselineGPT-3.5-Turbo on A-OKVQA · A-OKVQAF1: 26.1 -> 40.6Helped
Use CRAFT instead of the strongest listed baselineGPT-3.5-Turbo on TabMWP · TabMWPaccuracy: 89.2 -> 88.4Hurt
Use CRAFT instead of the strongest listed baselineGPT-3.5-Turbo on MATH algebra · MATH algebraaccuracy: 65.0 -> 68.1Helped
Add abstraction to the tool-creation pipeline (ablation)CRAFT on GQA · GQASAcc: 37.1 -> 45.4Helped
Add abstraction to the tool-creation pipeline (ablation)CRAFT on OK-VQA · OK-VQASAcc: 31.0 -> 33.4Helped
Add abstraction to the tool-creation pipeline (ablation)CRAFT on A-OKVQA · A-OKVQASAcc: 28.0 -> 30.8Helped
Include problem matching in multi-view retrieval (ablation)CRAFT on GQA · GQASAcc: 42.4 -> 45.4Helped

Surprising findings

Limitations

Experimental setup

Datasets: LLaVA instruction data COCO-2017 TabMWP training split MATH algebra training split GQA OK-VQA A-OKVQA

Benchmarks: GQA OK-VQA A-OKVQA TabMWP MATH

Metrics: SAcc F1 accuracy cyclomatic complexity

Baselines: CoT ViperGPT Program-of-Thoughts External library LATM CREATOR SimCSE retrieval BM25 retrieval

Builds on: ViperGPT Program-of-Thoughts LATM CREATOR chain-of-thought

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