mlsanityData to 14 Oct 2026

RePrompt: Planning by Automatic Prompt Engineering for Large Language Models Agents

arXiv 2406.11132 ↗First posted 17 Jun 2024cs.CL cs.AI cs.LGcited by 16

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

  1. 2024TravelPlanner: A Benchmark for Real-World Planning with Language Agents2 Feb
  2. 2024Why Solving Multi-agent Path Finding with Large Language Model has not Succeeded Yet8 Jan
  3. 2023CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Society31 Mar

Other references · 29

  1. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  4. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  5. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
  6. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
  7. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
  8. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
  9. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
  10. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  11. 2024Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preferencecited by 1,184
  12. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
17 more
  1. 2023Teaching Large Language Models to Self-Debugcited by 988
  2. 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 886
  3. 2023MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Modelscited by 735
  4. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 653
  5. 2022PlanBench: An Extensible Benchmark for Evaluating Large Language Models on Planning and Reasoning about Changecited by 382
  6. 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 377
  7. 2023Language Models can Solve Computer Taskscited by 372
  8. 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 366
  9. 2023PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimizationcited by 233
  10. 2022Optimizing Prompts for Text-to-Image Generationcited by 207
  11. 2023Leveraging Pre-trained Large Language Models to Construct and Utilize World Models for Model-based Task Planningcited by 207
  12. 2023A Language Agent for Autonomous Drivingcited by 164
  13. 2024NATURAL PLAN: Benchmarking LLMs on Natural Language Planningcited by 128
  14. 2023A Survey of Reasoning with Foundation Modelscited by 70
  15. 2023Prompt a Robot to Walk with Large Language Modelscited by 45
  16. 2024Unleashing the Potential of Large Language Models as Prompt Optimizers: Analogical Analysis with Gradient-based Model Optimizerscited by 35
  17. 2024PRompt Optimization in Multi-Step Tasks (PROMST): Integrating Human Feedback and Heuristic-based Samplingcited by 32

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 6; 2025: 7; 2026: 3.

16 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2025AutoPDL: Automatic Prompt Optimization for LLM Agents
  2. 2025LLM-AutoDiff: Auto-Differentiate Any LLM Workflow
  3. 2023Retroformer: Retrospective Large Language Agents with Policy Gradient Optimization
  4. 2025Prompt reinforcing for long-term planning of large language models
  5. 2025LMR-BENCH: Evaluating LLM Agent's Ability on Reproducing Language Modeling Research
  6. 2024Towards Hierarchical Multi-Agent Workflows for Zero-Shot Prompt Optimization
  7. 2024Rewriting Conversational Utterances with Instructed Large Language Models
  8. 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applications