PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimization
Xinyuan Wang, Chenxi Li, Zhen Wang, Fan Bai, Haotian Luo, Jiayou, Zhang, Nebojsa Jojic, Eric P. Xing, Zhiting Hu

TL;DR
PromptAgent automates expert-level prompt creation for large language models by framing prompt optimization as a strategic planning problem and using Monte Carlo tree search, leading to high-quality, domain-insightful prompts.
Contribution
This paper introduces PromptAgent, a novel framework that applies strategic planning and Monte Carlo tree search to automate expert-level prompt optimization for LLMs.
Findings
PromptAgent outperforms existing prompt optimization methods on 12 diverse tasks.
It efficiently generates detailed, domain-specific prompts comparable to human-crafted ones.
The approach demonstrates strong generalizability across different NLP domains.
Abstract
Highly effective, task-specific prompts are often heavily engineered by experts to integrate detailed instructions and domain insights based on a deep understanding of both instincts of large language models (LLMs) and the intricacies of the target task. However, automating the generation of such expert-level prompts remains elusive. Existing prompt optimization methods tend to overlook the depth of domain knowledge and struggle to efficiently explore the vast space of expert-level prompts. Addressing this, we present PromptAgent, an optimization method that autonomously crafts prompts equivalent in quality to those handcrafted by experts. At its core, PromptAgent views prompt optimization as a strategic planning problem and employs a principled planning algorithm, rooted in Monte Carlo tree search, to strategically navigate the expert-level prompt space. Inspired by human-like…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Software Engineering Research
