Mstar: Every Task Deserves Its Own Memory Harness
Wenbo Pan, Shujie LIU, Xiangyang Zhou, Xianlong Wang, Shiwei Zhang, Bingjing Xu, Wanlu Shi, Xiaohua Jia
NeurIPS page · OpenReview · Open on the map
Category: LLM Reasoning, Memory & RAG › Self-Evolving Agent Memory · Type: new method · Keywords: memory harness, task optimization, reflective code evolution, LLM agents, Python memory program
Areas: LLM Reasoning › Reasoning Strategies › Memory for Reasoning Agents; Memory › Agent Memory Systems › LLM Agent Memory; AI Agents › Agent Capabilities › Autonomous Agent Memory; Evaluation & Benchmarks › Agent Capabilities and Memory › Memory in Agents
Summary
Mstar automatically discovers task-optimized memory programs through reflective code evolution, enabling each task to have its own memory harness.
Explained to a 5-year-old
When a computer brain talks to people, it needs to remember what it said before. When it helps a robot move, it needs to remember different things. When it solves hard puzzles, it also needs different memory. Right now, the same memory is used for all these jobs, which can be slow or wrong. This paper creates a way to find the perfect memory for each job.
Explained to a 5-year-old, longer
When a computer brain talks to people, it needs to remember what it said before. When it helps a robot move, it needs to remember different things. When it solves hard puzzles, it also needs different memory. Right now, the same memory is used for all these jobs, which can be slow or wrong. This paper creates a way to find the perfect memory for each job. It works like a game where many memory ideas are tried out. The best ideas are kept and used for each type of job. This makes the computer brain work better for talking, moving, and solving puzzles. It also shows that each task really does need its own memory. The method is called Mstar, but we can just think of it as a smart memory finder.
For a technical reader
Mstar treats a memory harness as a Python program that defines schema, logic, and instruction components. It uses reflective code evolution to search for optimal configurations of these components for a given task. The approach jointly optimizes the three components, allowing the memory system to adapt its storage and retrieval behavior. Evaluation on four diverse tasks shows consistent performance gains over existing generic harnesses. This method provides a concrete way to tailor memory to specific application domains.
Problem
Large language model agents rely on a memory harness that is often suboptimal for diverse tasks, as a single harness cannot satisfy the varying storage and retrieval needs of conversation, embodied planning, and expert reasoning.
Method
The approach formulates a memory harness as an executable Python program defining Schema, Logic, and Instruction, and jointly optimizes these components via reflective code evolution.
Results
The approach achieves higher performance than existing baselines on all four evaluated tasks.
Contributions
It introduces a method for automatically discovering task-optimized memory programs and shows that different tasks benefit from distinct memory harnesses.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction