atlas

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

Large Language Models as Tool Makers

ICLR 2024 · Large language models › Agents, code and math · approach: Agent instruction-following benchmarks · 20 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 LATM, a closed-loop framework where a strong LLM (GPT-4) creates reusable Python tools for task families and a cheaper LLM (GPT-3.5 Turbo) uses them, reducing serving cost while matching GPT-4 accuracy.

Problem

LLM tool use depends on availability of suitable tools, and running powerful models for every instance is expensive; there is no mechanism for LLMs to create reusable tools and amortize their cost across instances.

Approach

Split problem solving into a one-time tool-making stage by a powerful LLM (writes, verifies, and wraps a generic Python function from demonstrations) and a per-instance tool-using stage by a lightweight LLM that only generates function calls; add a dispatcher LLM that caches tools as a functional cache.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use a GPT-4-generated tool with GPT-3.5 Turbo instead of CoTGPT-3.5 Turbo · Logical Deduction (5)accuracy: 66.4 -> 79.7Helped
Use a GPT-4-generated tool with GPT-3.5 Turbo instead of CoTGPT-3.5 Turbo · Tracking Shuffled Objects (5)accuracy: 61.6 -> 99.6Helped
Use a GPT-4-generated tool with GPT-3.5 Turbo instead of CoTGPT-3.5 Turbo · Dyck Languageaccuracy: 20.4 -> 92.2Helped
Use a GPT-4-generated tool with GPT-3.5 Turbo instead of CoTGPT-3.5 Turbo · Word Sortingaccuracy: 59.2 -> 98.3Helped
Use a GPT-4-generated tool with GPT-3.5 Turbo instead of CoTGPT-3.5 Turbo · Chinese Remainder Theoremaccuracy: 0.0 -> 100.0Helped
Use a GPT-4-generated tool with GPT-3.5 Turbo instead of CoTGPT-3.5 Turbo · Schedule Meetingaccuracy: 18.9 -> 100.0Helped
Use a GPT-4-generated tool with GPT-4 instead of CoTGPT-4 · Logical Deduction (5)accuracy: 88.8 -> 86.6Hurt
Use a GPT-4-generated tool with GPT-4 instead of CoTGPT-4 · Dyck Languageaccuracy: 63.6 -> 87.5Helped
Use GPT-3.5 Turbo instead of GPT-4 as tool maker (ablation)LATM · Logical Deduction (5)tool generation success: 3/5 -> 0/5Hurt
Use GPT-3.5 Turbo instead of GPT-4 as tool maker (ablation)LATM · Tracking Shuffled Objects (5)tool generation success: 4/5 -> 0/5Hurt
Use GPT-3.5 Turbo instead of GPT-4 as tool maker (ablation)LATM · Word Sortingtool generation success: 5/5 -> 5/5No clear effect
Use GPT-4-generated CoT instead of a reusable tool (ablation)GPT-3.5 Turbo · Logical Deduction (5)accuracy: 79.7 -> 36.8Hurt

Surprising findings

Limitations

Experimental setup

Datasets: BIG-Bench Logical Deduction (5) BIG-Bench Tracking Shuffled Objects (5) BIG-Bench Dyck Language BIG-Bench Word Sorting Chinese Remainder Theorem Schedule Meeting (constructed)

Benchmarks: BIG-Bench Logical Deduction (5) BIG-Bench Tracking Shuffled Objects (5) BIG-Bench Dyck Language BIG-Bench Word Sorting Chinese Remainder Theorem Schedule Meeting

Metrics: accuracy cost per n samples

Baselines: Chain-of-thought prompting GPT-4 CoT GPT-3.5 Turbo CoT GPTCache Chameleon

Builds on: Chain-of-thought prompting ReAct Self-debugging Programming by example

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