Generalizable Self-Evolving Memory for Automatic Prompt Optimization
On the map: Synthetic data and self-improvement for LLMs → Self-rewarding alignment and self-training
Abstract (arXiv)
Automatic prompt optimization is a promising approach for adapting large language models (LLMs) to downstream tasks, yet existing methods typically search for a specific prompt specialized to a fixed task. This paradigm limits generalization across heterogeneous queries and prevents models from accumulating reusable prompting knowledge over time. In this paper, we propose MemAPO, a memory-driven framework that reconceptualizes prompt optimization as generalizable and self-evolving experience accumulation. MemAPO maintains a dual-memory mechanism that distills successful reasoning trajectories into reusable strategy templates while organizing incorrect generations into structured error patterns that capture recurrent failure modes. Given a new prompt, the framework retrieves both relevant strategies and failure patterns to compose prompts that promote effective reasoning while discouraging known mistakes. Through iterative self-reflection and memory editing, MemAPO continuously updates its memory, enabling prompt optimization to improve over time rather than restarting from scratch for each task. Experiments on diverse benchmarks show that MemAPO consistently outperforms representative prompt optimization baselines while substantially reducing optimization cost.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Self-rewarding alignment and self-training, one of 13 directions in Synthetic data and self-improvement for LLMs. Builds on 17 of its 28 references that are in the map. First posted on arXiv 23 Mar 2026.
Builds on
17 of 28 references.
Closest ancestors · 1
Same direction, newest first
Other references · 16
- 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
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
- 2023ExpeL: LLM Agents Are Experiential Learnerscited by 814
- 2022A Survey on In-context Learningcited by 717
- 2023AGIEval: A Human-Centric Benchmark for Evaluating Foundation Modelscited by 701
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
- 2025GLM-4.5: Agentic, Reasoning, and Coding (ARC) Foundation Modelscited by 446
- 2025Memory in the Age of AI Agentscited by 285
- 2023Take a Step Back: Evoking Reasoning via Abstraction in Large Language Modelscited by 157
- 2025Evo-Memory: Benchmarking LLM Agent Test-time Learning with Self-Evolving Memorycited by 129
4 more
- 2023Rephrase and Respond: Let Large Language Models Ask Better Questions for Themselvescited by 123
- 2026Mem-Gallery: Benchmarking Multimodal Long-Term Conversational Memory for MLLM Agentscited by 49
- 2024Unleashing the Potential of Large Language Models as Prompt Optimizers: Analogical Analysis with Gradient-based Model Optimizerscited by 33
- 2023SELF: Self-Evolution with Language Feedbackcited by 24
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026ESPO: Error-Structured Prompt Optimization via Diagnose, Diversify, and Stabilize3 Sep 2026
- 2026SPEAR: Code-Augmented Agentic Prompt Optimization25 May 2026
- 2026Code as Agent Harness18 May 2026
- 2026When Correct Isn't Usable: Improving Structured Output Reliability in Small Language Models4 May 2026
Similar, not cited
Close in wording, no citation either way
- 2025Rethinking Prompt Optimizers: From Prompt Merits to Optimization
- 2025Self-Supervised Prompt Optimization
- 2026Prompting Policies for Multi-step Reasoning and Tool-Use in Black-box LLMs with Iterative Distillation of Experience
- 2025DelvePO: Direction-Guided Self-Evolving Framework for Flexible Prompt Optimization
- 2026Self-Evolving LLM Memory Extraction Across Heterogeneous Tasks
- 2024Auto-Evolve: Enhancing Large Language Model's Performance via Self-Reasoning Framework
- 2026Automatically Evolving Prompt Guidelines for Task-Specific Optimization
- 2024Towards Generalist Prompting for Large Language Models by Mental Models