atlas

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

PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimization

ICLR 2024 · Large language models › Agents, code and math · approach: LLMs for optimization and heuristics · 7 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 PromptAgent, which frames prompt optimization as MCTS-based strategic planning where an optimizer LLM turns base-model error feedback into prompt edits, producing expert-level prompts across 12 tasks.

Problem

Automatically generating expert-level prompts for API-based LLMs, since existing gradient-free prompt optimizers use local paraphrase-style edits and naive search, missing domain knowledge.

Approach

Treat prompts as MDP states and error-based feedback from the optimizer LLM as actions; search the prompt space with Monte Carlo tree search (UCT selection, expansion with error-driven candidates, simulation, backpropagation) so that domain-rich prompts are found efficiently.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
optimize prompts with PromptAgent instead of using CoT promptsGPT-3.5 · BBH (average)accuracy: 0.707 -> 0.802Helped
optimize prompts with PromptAgent instead of APEGPT-3.5 · Domain-specific tasks (average)score: 0.582 -> 0.655Helped
optimize prompts with PromptAgent instead of APEGPT-3.5 · General NLU tasks (average)score: 0.778 -> 0.868Helped
replace MCTS planning with single-step Monte Carlo search (ablation)PromptAgent · Search ablation tasks (average)accuracy: 0.754 -> 0.635Hurt
replace MCTS planning with beam search (ablation)PromptAgent · Search ablation tasks (average)accuracy: 0.754 -> 0.697Hurt
replace MCTS planning with greedy depth-first search (ablation)PromptAgent · Search ablation tasks (average)accuracy: 0.754 -> 0.698Hurt

Surprising findings

Limitations

Experimental setup

Datasets: BIG-Bench Hard (Penguins, Geometric Shapes, Epistemic, Object Counting, Temporal Sequences, Causal Judgement) NCBI disease NER Biosses MedQA Subj TREC CB

Benchmarks: BIG-Bench Hard subsets NCBI Biosses MedQA Subj TREC CB

Metrics: accuracy F1

Baselines: Human prompts (ZS) Human prompts (FS) CoT (ZS) CoT GPT Agent APE Monte Carlo search Beam search Greedy search

Builds on: Automatic Prompt Engineer Tree of Thoughts Monte Carlo tree search 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