Efficient and Accurate Prompt Optimization: the Benefit of Memory in Exemplar-Guided Reflection
Not on the map. Why?
Abstract (arXiv)
Automatic prompt engineering aims to enhance the generation quality of large language models (LLMs). Recent works utilize feedbacks generated from erroneous cases to guide the prompt optimization. During inference, they may further retrieve several semantically-related exemplars and concatenate them to the optimized prompts to improve the performance. However, those works only utilize the feedback at the current step, ignoring historical and unseleccted feedbacks which are potentially beneficial. Moreover, the selection of exemplars only considers the general semantic relationship and may not be optimal in terms of task performance and matching with the optimized prompt. In this work, we propose an Exemplar-Guided Reflection with Memory mechanism (ERM) to realize more efficient and accurate prompt optimization. Specifically, we design an exemplar-guided reflection mechanism where the feedback generation is additionally guided by the generated exemplars. We further build two kinds of memory to fully utilize the historical feedback information and support more effective exemplar retrieval. Empirical evaluations show our method surpasses previous state-of-the-arts with less optimization steps, i.e., improving F1 score by 10.1 on LIAR dataset, and reducing half of the optimization steps on ProTeGi.
Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). Builds on 20 of its 37 references that are in the map. First posted on arXiv 12 Nov 2024.
Builds on
20 of 37 references.
References · 20
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,050
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
- 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 521
- 2017"Liar, Liar Pants on Fire": A New Benchmark Dataset for Fake News Detectioncited by 361
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
- 2024Improving Text-to-Image Consistency via Automatic Prompt Optimizationcited by 88
- 2020ETHOS: an Online Hate Speech Detection Datasetcited by 66
- 2024Are Large Language Models Good Prompt Optimizers?cited by 37
8 more
- 2024Unleashing the Potential of Large Language Models as Prompt Optimizers: Analogical Analysis with Gradient-based Model Optimizerscited by 33
- 2023Agent Instructs Large Language Models to be General Zero-Shot Reasonerscited by 32
- 2024PRompt Optimization in Multi-Step Tasks (PROMST): Integrating Human Feedback and Heuristic-based Samplingcited by 32
- 2024Task Facet Learning: A Structured Approach to Prompt Optimizationcited by 17
- 2024VisLingInstruct: Elevating Zero-Shot Learning in Multi-Modal Language Models with Autonomous Instruction Optimizationcited by 16
- 2023SPELL: Semantic Prompt Evolution based on a LLMcited by 14
- 2023Evoke: Evoking Critical Thinking Abilities in LLMs via Reviewer-Author Prompt Editingcited by 11
- 2024GRAD-SUM: Leveraging Gradient Summarization for Optimal Prompt Engineeringcited by 7
Built on by
Citing papers per year: 2025: 10; 2026: 8.
18 papers.
Sort:
By area:
- 2025A Survey of Self-Evolving Agents: What, When, How, and Where to Evolve on the Path to Artificial Super Intelligencecited by 155
- 2025Self-Supervised Prompt Optimizationcited by 37
- 2025MEMTRACK: Evaluating Long-Term Memory and State Tracking in Multi-Platform Dynamic Agent Environmentscited by 13
- 2025Brief analysis of DeepSeek R1 and its implications for Generative AIcited by 10
- 2025A Survey of Automatic Prompt Optimization with Instruction-focused Heuristic-based Search Algorithmcited by 6
- 2025Tournament of Prompts: Evolving LLM Instructions Through Structured Debates and Elo Ratingscited by 5
- 2026Your Code Agent Can Grow Alongside You with Structured Memorycited by 4
- 2025PMPO: Probabilistic Metric Prompt Optimization for Small and Large Language Modelscited by 3
- 2026SkillAdam: Stable and Efficient Skill Evolution for Agentscited by 2
- 2025UniAPO: Unified Multimodal Automated Prompt Optimizationcited by 1
- 2026UPA: Unsupervised Prompt Agent via Tree-Based Search and Selectioncited by 1
- 2025Search-Based Software Engineering and AI Foundation Models: Current Landscape and Future Roadmapcited by 0
6 more
- 2025ELPO: Ensemble Learning Based Prompt Optimization for Large Language Modelscited by 0
- 2026Concise Geometric Description as a Bridge: Unleashing the Potential of LLM for Plane Geometry Problem Solvingcited by 0
- 2026C-MOP: Integrating Momentum and Boundary-Aware Clustering for Enhanced Prompt Evolutioncited by 0
- 2026Reflective Context Learning: Studying the Optimization Primitives of Context Spacecited by 0
- 2026OmniPhys: Knowledge-Graph-Driven Benchmarking and Collective Optimization for Physical Commonsense in Text-to-Image Generationcited by 0
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptationscited by 0
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptations1 Oct 2026
- 2026SkillAdam: Stable and Efficient Skill Evolution for Agents8 Sep 2026
- 2026OmniPhys: Knowledge-Graph-Driven Benchmarking and Collective Optimization for Physical Commonsense in Text-to-Image Generation28 Jul 2026
- 2026Reflective Context Learning: Studying the Optimization Primitives of Context Space3 Apr 2026
- 2026Your Code Agent Can Grow Alongside You with Structured Memory25 Feb 2026
- 2026C-MOP: Integrating Momentum and Boundary-Aware Clustering for Enhanced Prompt Evolution11 Feb 2026
- 2026UPA: Unsupervised Prompt Agent via Tree-Based Search and Selection30 Jan 2026
- 2026Concise Geometric Description as a Bridge: Unleashing the Potential of LLM for Plane Geometry Problem Solving29 Jan 2026
- 2025ELPO: Ensemble Learning Based Prompt Optimization for Large Language Models20 Nov 2025
- 2025MEMTRACK: Evaluating Long-Term Memory and State Tracking in Multi-Platform Dynamic Agent Environments1 Oct 2025
- 2025UniAPO: Unified Multimodal Automated Prompt Optimization25 Aug 2025
- 2025A Survey of Self-Evolving Agents: What, When, How, and Where to Evolve on the Path to Artificial Super Intelligence28 Jul 2025
6 more
- 2025Tournament of Prompts: Evolving LLM Instructions Through Structured Debates and Elo Ratings30 May 2025
- 2025Search-Based Software Engineering and AI Foundation Models: Current Landscape and Future Roadmap26 May 2025
- 2025PMPO: Probabilistic Metric Prompt Optimization for Small and Large Language Models22 May 2025
- 2025A Survey of Automatic Prompt Optimization with Instruction-focused Heuristic-based Search Algorithm26 Feb 2025
- 2025Self-Supervised Prompt Optimization7 Feb 2025
- 2025Brief analysis of DeepSeek R1 and its implications for Generative AI4 Feb 2025
- 2025A Survey of Self-Evolving Agents: What, When, How, and Where to Evolve on the Path to Artificial Super Intelligencecited by 155
- 2025MEMTRACK: Evaluating Long-Term Memory and State Tracking in Multi-Platform Dynamic Agent Environmentscited by 13
- 2026Your Code Agent Can Grow Alongside You with Structured Memorycited by 4
- 2026SkillAdam: Stable and Efficient Skill Evolution for Agentscited by 2
- 2026UPA: Unsupervised Prompt Agent via Tree-Based Search and Selectioncited by 1
- 2026SkillAdam: Stable and Efficient Skill Evolution for Agents8 Sep 2026
- 2026Your Code Agent Can Grow Alongside You with Structured Memory25 Feb 2026
- 2026UPA: Unsupervised Prompt Agent via Tree-Based Search and Selection30 Jan 2026
- 2025MEMTRACK: Evaluating Long-Term Memory and State Tracking in Multi-Platform Dynamic Agent Environments1 Oct 2025
- 2025A Survey of Self-Evolving Agents: What, When, How, and Where to Evolve on the Path to Artificial Super Intelligence28 Jul 2025
- 2025A Survey of Automatic Prompt Optimization with Instruction-focused Heuristic-based Search Algorithmcited by 6
- 2025Tournament of Prompts: Evolving LLM Instructions Through Structured Debates and Elo Ratingscited by 5
- 2025PMPO: Probabilistic Metric Prompt Optimization for Small and Large Language Modelscited by 3
- 2025UniAPO: Unified Multimodal Automated Prompt Optimizationcited by 1
- 2025Search-Based Software Engineering and AI Foundation Models: Current Landscape and Future Roadmapcited by 0
- 2025ELPO: Ensemble Learning Based Prompt Optimization for Large Language Modelscited by 0
- 2026C-MOP: Integrating Momentum and Boundary-Aware Clustering for Enhanced Prompt Evolutioncited by 0
- 2026Reflective Context Learning: Studying the Optimization Primitives of Context Spacecited by 0
- 2026OmniPhys: Knowledge-Graph-Driven Benchmarking and Collective Optimization for Physical Commonsense in Text-to-Image Generationcited by 0
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptationscited by 0
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptations1 Oct 2026
- 2026OmniPhys: Knowledge-Graph-Driven Benchmarking and Collective Optimization for Physical Commonsense in Text-to-Image Generation28 Jul 2026
- 2026Reflective Context Learning: Studying the Optimization Primitives of Context Space3 Apr 2026
- 2026C-MOP: Integrating Momentum and Boundary-Aware Clustering for Enhanced Prompt Evolution11 Feb 2026
- 2025ELPO: Ensemble Learning Based Prompt Optimization for Large Language Models20 Nov 2025
- 2025UniAPO: Unified Multimodal Automated Prompt Optimization25 Aug 2025
- 2025Tournament of Prompts: Evolving LLM Instructions Through Structured Debates and Elo Ratings30 May 2025
- 2025Search-Based Software Engineering and AI Foundation Models: Current Landscape and Future Roadmap26 May 2025
- 2025PMPO: Probabilistic Metric Prompt Optimization for Small and Large Language Models22 May 2025
- 2025A Survey of Automatic Prompt Optimization with Instruction-focused Heuristic-based Search Algorithm26 Feb 2025