M^star: Every Task Deserves Its Own Memory Harness
On the map: LLM agents and tool use → Agent memory systems
Abstract (arXiv)
Large language model agents rely on specialized memory systems to accumulate and reuse knowledge during extended interactions. Recent architectures typically adopt a fixed memory design tailored to specific domains, such as semantic retrieval for conversations or skills reused for coding. However, a memory system optimized for one purpose frequently fails to transfer to others. To address this limitation, we introduce M^star, a method that automatically discovers task-optimized memory harnesses through executable program evolution. Specifically, M^star models an agent memory system as a memory program written in Python. This program encapsulates the data Schema, the storage Logic, and the agent workflow Instructions. We optimize these components jointly using a reflective code evolution method; this approach employs a population-based search strategy and analyzes evaluation failures to iteratively refine the candidate programs. We evaluate M^star on four distinct benchmarks spanning conversation, embodied planning, and expert reasoning. Our results demonstrate that M^star improves performance over existing fixed-memory baselines robustly across all evaluated tasks. Furthermore, the evolved memory programs exhibit structurally distinct processing mechanisms for each domain. This finding indicates that specializing the memory mechanism for a given task explores a broad design space and provides a superior solution compared to general-purpose memory paradigms.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 29 of its 42 references that are in the map. First posted on arXiv 10 Apr 2026.
Builds on
29 of 42 references.
Closest ancestors · 9
Same direction, newest first
- 2026Evaluating Memory Structure in LLM Agents11 Feb
- 2026Learning to Continually Learn via Meta-learning Agentic Memory Designs8 Feb
- 2026MemSkill: Learning and Evolving Memory Skills for Self-Evolving Agents2 Feb
- 2025MemEvolve: Meta-Evolution of Agent Memory Systems21 Dec
- 2025Evo-Memory: Benchmarking LLM Agent Test-time Learning with Self-Evolving Memory25 Nov
- 2025ReasoningBank: Scaling Agent Self-Evolving with Reasoning Memory29 Sep
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory28 Apr
- 2024A Survey on the Memory Mechanism of Large Language Model based Agents21 Apr
- 2024Evaluating Very Long-Term Conversational Memory of LLM Agents27 Feb
Other references · 20
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,568
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,191
- 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,205
- 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,073
- 2023ExpeL: LLM Agents Are Experiential Learnerscited by 876
- 2025AlphaEvolve: A coding agent for scientific and algorithmic discoverycited by 867
- 2023MemoryBank: Enhancing Large Language Models with Long-Term Memorycited by 556
- 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 542
- 2025HealthBench: Evaluating Large Language Models Towards Improved Human Healthcited by 429
8 more
- 2024Automated Design of Agentic Systemscited by 407
- 2024Agent Workflow Memorycited by 383
- 2018TextWorld: A Learning Environment for Text-based Gamescited by 310
- 2023Augmenting Language Models with Long-Term Memorycited by 189
- 2025A Survey of Self-Evolving Agents: What, When, How, and Where to Evolve on the Path to Artificial Super Intelligencecited by 170
- 2023EvoPrompting: Language Models for Code-Level Neural Architecture Searchcited by 131
- 2025FLEX: Continuous Agent Evolution via Forward Learning from Experiencecited by 52
- 2025PRBench: Large-Scale Expert Rubrics for Evaluating High-Stakes Professional Reasoningcited by 32
Built on by
Citing papers per year: 2026: 11.
11 papers.
- 2026Evolving Agents in the Dark: Retrospective Harness Optimization via Self-Preferencecited by 19
- 2026GUI Agents for Continual Game Generationcited by 18
- 2026Mem-W: Latent Memory-Native GUI Agentscited by 3
- 2026Statistical Priors for Implicit Preferences: Decoupling Skill Selection as a Local Harness in Personal Agentscited by 2
- 2026Rethinking Experience Utilization in Self-Evolving Language Model Agentscited by 1
- 2026Learning to Learn from Multimodal Experiencecited by 1
- 2026FinAcumen: Financial Multimodal Reasoning via Self-Evolving Experience Memory Harnesscited by 1
- 2026Harness Evolution as Learning: Approximation, Generalization, and Optimization Limits of Self-Improving Personal Agentscited by 1
- 2026Towards Robust Tool Use in Agents via Experience-Driven Adaptive Guidancecited by 0
- 2026First Demonstration of Multi-Agent LLM System for Million-Scale Optical Link Management in Global Production AIDCscited by 0
- 2026Capability-Driven Self-Evolution of Agent Memorycited by 0
- 2026Capability-Driven Self-Evolution of Agent Memory5 Oct 2026
- 2026Harness Evolution as Learning: Approximation, Generalization, and Optimization Limits of Self-Improving Personal Agents29 Sep 2026
- 2026First Demonstration of Multi-Agent LLM System for Million-Scale Optical Link Management in Global Production AIDCs24 Aug 2026
- 2026Towards Robust Tool Use in Agents via Experience-Driven Adaptive Guidance4 Aug 2026
- 2026FinAcumen: Financial Multimodal Reasoning via Self-Evolving Experience Memory Harness16 Jun 2026
- 2026Evolving Agents in the Dark: Retrospective Harness Optimization via Self-Preference4 Jun 2026
- 2026Statistical Priors for Implicit Preferences: Decoupling Skill Selection as a Local Harness in Personal Agents4 Jun 2026
- 2026GUI Agents for Continual Game Generation27 May 2026
- 2026Learning to Learn from Multimodal Experience16 May 2026
- 2026Mem-W: Latent Memory-Native GUI Agents10 May 2026
- 2026Rethinking Experience Utilization in Self-Evolving Language Model Agents8 May 2026
Similar, not cited
Close in wording, no citation either way
- 2026MemGym: a Long-Horizon Memory Environment for LLM Agents
- 2026Memory in the LLM Era: Modular Architectures and Strategies in a Unified Framework
- 2026EvoMemBench: Benchmarking Agent Memory from a Self-Evolving Perspective
- 2026AdMem: Advanced Memory for Task-solving Agents
- 2026Memory for Autonomous LLM Agents:Mechanisms, Evaluation, and Emerging Frontiers
- 2026Memory as a Controlled Process: Learned Adaptive Memory Management for LLM Agents
- 2026MemToolAgent: Leveraging Memory for Tool Using Agents Based on Environment and User Feedback
- 2026Compiled Memory: Not More Information, but More Precise Instructions for Language Agents