atlas

Research map / Multi-agent systems and games / LLM agents

Offline Training of Language Model Agents with Functions as Learnable Weights

ICML 2024 · Multi-agent systems and games › LLM agents · approach: LLM multi-agent decision making · 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 AgentOptimizer, which trains LLM agents by iteratively adding, revising, and removing Python functions (treated as learnable parameters) using an LLM optimizer, with roll-back and early-stop, without modifying LLM weights.

Problem

Improving LLM agents usually requires manually curating tools or fine-tuning the LLM, which is costly and impossible for proprietary black-box models.

Approach

Treat the agent's function set as learnable parameters and use an LLM (AgentOptimizer) to progressively edit those functions based on execution history over a training set, with roll-back and early-stop to avoid performance degradation; the LLM weights are never updated.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train GPT-4+ Agent by updating its functionsGPT-4+ Agent · GAIA testaccuracy: 16.0% -> 23.0%Helped
Train ReAct Agent by updating its functionsReAct Agent · GAIA testaccuracy: 12.0% -> 18.0%Helped
Train GPT-4+ Agent by updating its functionsGPT-4+ Agent · TabMWP testaccuracy: 51.0% -> 56.0%Helped
Train ReAct Agent by updating its functionsReAct Agent · TabMWP testaccuracy: 59.0% -> 70.0%Helped
Train GPT-4+ and ReAct agents with generated functionsGPT-4+ Agent and ReAct Agent · MATHaccuracy: GPT-4+ Agent: 60.0% -> 66.25%; ReAct Agent: 60.0% -> 77.5%Mixed
Add roll-back and early-stop to agent training (ablation)GPT-4+ Agent · MATH Number Theory, Intermediate Algebra, and Counting and probabilityaccuracy: 63.8% -> 67.5%; 36.3% -> 38.8%; 72.5% -> 76.3%Helped
Use progressive function updates instead of one-step function generation (ablation)GPT-4+ Agent · MATH Number Theory, Intermediate Algebra, and Counting and probabilityaccuracy: 60.0% -> 67.5%; 28.8% -> 38.8%; 70.0% -> 76.3%Helped
Train agents backed by Code-Llama-34BCode-Llama-34B agent · MATHaccuracy: 7.5% -> 11.3%Helped
Train agents backed by Mixtral-8x7BMixtral-8x7B agent · MATHaccuracy: 23.8% -> 28.8%Helped
Train agents backed by GPT-3.5-turbo-1106GPT-3.5-turbo-1106 agent · MATHaccuracy: 25.0% -> 28.8%Helped
Use batch training with larger training setsGPT-4+ Agent · MATH Intermediate Algebraaccuracy: 7.8%Mixed

Surprising findings

Limitations

Experimental setup

Datasets: MATH TabMWP GAIA

Benchmarks: MATH TabMWP GAIA

Metrics: accuracy correct rate

Baselines: GPT-4+ agent without training ReAct agent without training CREATOR CRAFT Tool-maker

Builds on: ReAct AutoGen 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