RePrompt: Planning by Automatic Prompt Engineering for Large Language Models Agents
On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks
Abstract (arXiv)
In the past year, large language models (LLMs) have had remarkable success in domains outside the traditional natural language processing, and their capacity is further expanded into the so-called LLM agents when connected with external tools. In all domains, the prompt to the LLMs has been shown to make a big difference in what the LLM would generate and thus affect the performance of the LLM agents. Therefore, automatic prompt engineering (APE) has become an important question for many researchers and users of LLMs. However, previous works in APE rely on a final checker to evaluate the performance of the given prompt -- a requirement that is hard to meet in the case of LLM agents, where intermediate feedback is easier to obtain, and the final evaluation could be expensive, inaccurate, or even missing. In this paper, we propose a novel method, textscRePrompt, which does a ``gradient descent"-like approach to optimize the step-by-step instructions in the prompts given to LLM agents, based on the chat history obtained from interactions and reflections with LLM agents. By leveraging intermediate feedback, textscRePrompt can optimize the prompt without the need for a final solution checker. We evaluate our approach on PDDL generation, TravelPlanner, and Meeting Planning to show that our method could generally improve performance for different reasoning tasks.
Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 32 of its 38 references that are in the map. First posted on arXiv 17 Jun 2024.
Builds on
32 of 38 references.
Closest ancestors · 3
Same direction, newest first
- 2024TravelPlanner: A Benchmark for Real-World Planning with Language Agents2 Feb
- 2024Why Solving Multi-agent Path Finding with Large Language Model has not Succeeded Yet8 Jan
- 2023CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Society31 Mar
Other references · 29
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2024Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preferencecited by 1,184
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
17 more
- 2023Teaching Large Language Models to Self-Debugcited by 988
- 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 886
- 2023MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Modelscited by 735
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 653
- 2022PlanBench: An Extensible Benchmark for Evaluating Large Language Models on Planning and Reasoning about Changecited by 382
- 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 377
- 2023Language Models can Solve Computer Taskscited by 372
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 366
- 2023PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimizationcited by 233
- 2022Optimizing Prompts for Text-to-Image Generationcited by 207
- 2023Leveraging Pre-trained Large Language Models to Construct and Utilize World Models for Model-based Task Planningcited by 207
- 2023A Language Agent for Autonomous Drivingcited by 164
- 2024NATURAL PLAN: Benchmarking LLMs on Natural Language Planningcited by 128
- 2023A Survey of Reasoning with Foundation Modelscited by 70
- 2023Prompt a Robot to Walk with Large Language Modelscited by 45
- 2024Unleashing the Potential of Large Language Models as Prompt Optimizers: Analogical Analysis with Gradient-based Model Optimizerscited by 35
- 2024PRompt Optimization in Multi-Step Tasks (PROMST): Integrating Human Feedback and Heuristic-based Samplingcited by 32
Built on by
Citing papers per year: 2024: 6; 2025: 7; 2026: 3.
16 papers.
Sort:
By area:
- 2024Autonomous Industrial Control using an Agentic Framework with Large Language Modelscited by 19
- 2025PlanGEN: A Multi-Agent Framework for Generating Planning and Reasoning Trajectories for Complex Problem Solvingcited by 15
- 2024Federated In-Context LLM Agent Learningcited by 10
- 2025Iterative Deepening Sampling as Efficient Test-Time Scalingcited by 8
- 2024Script-Based Dialog Policy Planning for LLM-Powered Conversational Agents: A Basic Architecture for an "AI Therapist"cited by 7
- 2025Tuning LLM-based Code Optimization via Meta-Prompting: An Industrial Perspectivecited by 7
- 2024Flaming-hot Initiation with Regular Execution Sampling for Large Language Modelscited by 6
- 2025EvoMem: Improving Multi-Agent Planning with Dual-Evolving Memorycited by 6
- 2025A Symbolic Adversarial Learning Framework for Evolving Fake News Generation and Detectioncited by 3
- 2026Environment-Grounded Automated Prompt Optimization for LLM Game Agentscited by 3
- 2024Prompt Selection Matters: Enhancing Text Annotations for Social Sciences with Large Language Modelscited by 2
- 2025Rethinking the Unsolvable: When In-Context Search Meets Test-Time Scalingcited by 2
4 more
- 2024Scaffolded Language Models with Language Supervision for Mixed-Autonomy: A Surveycited by 1
- 20263D Space as a Scratchpad for Editable Text-to-Image Generationcited by 1
- 2025IMAGINE: Integrating Multi-Agent System into One Model for Complex Reasoning and Planningcited by 0
- 2026Joint Workflow and Prompt Optimization for User Behavior Simulationcited by 0
- 2026Joint Workflow and Prompt Optimization for User Behavior Simulation6 Oct 2026
- 2026Environment-Grounded Automated Prompt Optimization for LLM Game Agents16 Jun 2026
- 20263D Space as a Scratchpad for Editable Text-to-Image Generation21 Jan 2026
- 2025EvoMem: Improving Multi-Agent Planning with Dual-Evolving Memory1 Nov 2025
- 2025IMAGINE: Integrating Multi-Agent System into One Model for Complex Reasoning and Planning16 Oct 2025
- 2025A Symbolic Adversarial Learning Framework for Evolving Fake News Generation and Detection27 Aug 2025
- 2025Tuning LLM-based Code Optimization via Meta-Prompting: An Industrial Perspective2 Aug 2025
- 2025Rethinking the Unsolvable: When In-Context Search Meets Test-Time Scaling28 May 2025
- 2025PlanGEN: A Multi-Agent Framework for Generating Planning and Reasoning Trajectories for Complex Problem Solving22 Feb 2025
- 2025Iterative Deepening Sampling as Efficient Test-Time Scaling8 Feb 2025
- 2024Script-Based Dialog Policy Planning for LLM-Powered Conversational Agents: A Basic Architecture for an "AI Therapist"13 Dec 2024
- 2024Federated In-Context LLM Agent Learning11 Dec 2024
4 more
- 2024Autonomous Industrial Control using an Agentic Framework with Large Language Models8 Nov 2024
- 2024Flaming-hot Initiation with Regular Execution Sampling for Large Language Models28 Oct 2024
- 2024Scaffolded Language Models with Language Supervision for Mixed-Autonomy: A Survey21 Oct 2024
- 2024Prompt Selection Matters: Enhancing Text Annotations for Social Sciences with Large Language Models15 Jul 2024
- 2025PlanGEN: A Multi-Agent Framework for Generating Planning and Reasoning Trajectories for Complex Problem Solvingcited by 15
- 2024Federated In-Context LLM Agent Learningcited by 10
- 2025Iterative Deepening Sampling as Efficient Test-Time Scalingcited by 8
- 2025Rethinking the Unsolvable: When In-Context Search Meets Test-Time Scalingcited by 2
- 20263D Space as a Scratchpad for Editable Text-to-Image Generationcited by 1
- 2025IMAGINE: Integrating Multi-Agent System into One Model for Complex Reasoning and Planningcited by 0
- 20263D Space as a Scratchpad for Editable Text-to-Image Generation21 Jan 2026
- 2025IMAGINE: Integrating Multi-Agent System into One Model for Complex Reasoning and Planning16 Oct 2025
- 2025Rethinking the Unsolvable: When In-Context Search Meets Test-Time Scaling28 May 2025
- 2025PlanGEN: A Multi-Agent Framework for Generating Planning and Reasoning Trajectories for Complex Problem Solving22 Feb 2025
- 2025Iterative Deepening Sampling as Efficient Test-Time Scaling8 Feb 2025
- 2024Federated In-Context LLM Agent Learning11 Dec 2024
- 2024Autonomous Industrial Control using an Agentic Framework with Large Language Modelscited by 19
- 2024Script-Based Dialog Policy Planning for LLM-Powered Conversational Agents: A Basic Architecture for an "AI Therapist"cited by 7
- 2025EvoMem: Improving Multi-Agent Planning with Dual-Evolving Memorycited by 6
- 2026Environment-Grounded Automated Prompt Optimization for LLM Game Agentscited by 3
- 2026Environment-Grounded Automated Prompt Optimization for LLM Game Agents16 Jun 2026
- 2025EvoMem: Improving Multi-Agent Planning with Dual-Evolving Memory1 Nov 2025
- 2024Script-Based Dialog Policy Planning for LLM-Powered Conversational Agents: A Basic Architecture for an "AI Therapist"13 Dec 2024
- 2024Autonomous Industrial Control using an Agentic Framework with Large Language Models8 Nov 2024
- 2025Tuning LLM-based Code Optimization via Meta-Prompting: An Industrial Perspectivecited by 7
- 2024Flaming-hot Initiation with Regular Execution Sampling for Large Language Modelscited by 6
- 2025A Symbolic Adversarial Learning Framework for Evolving Fake News Generation and Detectioncited by 3
- 2024Prompt Selection Matters: Enhancing Text Annotations for Social Sciences with Large Language Modelscited by 2
- 2024Scaffolded Language Models with Language Supervision for Mixed-Autonomy: A Surveycited by 1
- 2026Joint Workflow and Prompt Optimization for User Behavior Simulationcited by 0
- 2026Joint Workflow and Prompt Optimization for User Behavior Simulation6 Oct 2026
- 2025A Symbolic Adversarial Learning Framework for Evolving Fake News Generation and Detection27 Aug 2025
- 2025Tuning LLM-based Code Optimization via Meta-Prompting: An Industrial Perspective2 Aug 2025
- 2024Flaming-hot Initiation with Regular Execution Sampling for Large Language Models28 Oct 2024
- 2024Scaffolded Language Models with Language Supervision for Mixed-Autonomy: A Survey21 Oct 2024
- 2024Prompt Selection Matters: Enhancing Text Annotations for Social Sciences with Large Language Models15 Jul 2024
Similar, not cited
Close in wording, no citation either way
- 2025AutoPDL: Automatic Prompt Optimization for LLM Agents
- 2025LLM-AutoDiff: Auto-Differentiate Any LLM Workflow
- 2023Retroformer: Retrospective Large Language Agents with Policy Gradient Optimization
- 2025Prompt reinforcing for long-term planning of large language models
- 2025LMR-BENCH: Evaluating LLM Agent's Ability on Reproducing Language Modeling Research
- 2024Towards Hierarchical Multi-Agent Workflows for Zero-Shot Prompt Optimization
- 2024Rewriting Conversational Utterances with Instructed Large Language Models
- 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applications