Abstract
Recent benchmarks for Large Language Model (LLM) agents primarily focus on evaluating reasoning, planning, and execution capabilities, while another critical component—memory, encompassing how agents memorize, update, and retrieve long-term information—is under-evaluated due to the lack of benchmarks. We term agents with memory mechanisms as memory agents. In this paper, based on classic theories from memory science and cognitive science, we identify four core competencies essential for memory agents: accurate retrieval, test-time learning, long-range understanding, and selective forgetting. Existing benchmarks either rely on limited context lengths or are tailored for static, long-context settings like book-based QA, which do not reflect the interactive, multi-turn nature of memory agents that incrementally accumulate information. Moreover, no existing benchmarks cover all four competencies. We introduce MemoryAgentBench, a new benchmark specifically designed for memory agents. Our benchmark transforms existing long-context datasets and incorporates newly constructed datasets into a multi-turn format, effectively simulating the incremental information processing characteristic of memory agents. By carefully selecting and curating datasets, our benchmark provides comprehensive coverage of the four core memory competencies outlined above, thereby offering a systematic and challenging testbed for assessing memory quality. We evaluate a diverse set of memory agents, ranging from simple context-based and retrieval-augmented generation (RAG) systems to advanced agents with external memory modules and tool integration. Empirical results reveal that current methods fall short of mastering all four competencies, underscoring the need for further research into comprehensive memory mechanisms for LLM agents.
Introduction
While Large Language Model (LLM) agents have demonstrated remarkable proficiency in reasoning and tool utilization, their ability to manage long-term memory remains a significant bottleneck. Most current LLM benchmarks focus on "static" capabilities: solving a math problem, writing code, or finding a "needle in a haystack" within a massive block of text. However, real-world agents do not ingest information all at once; they accumulate it incrementally through thousands of dialogue turns.
True memory involves more than just a long context window; it requires the ability to distill, update, and sometimes discard information. To address the lack of comprehensive evaluation tools for these dynamic capabilities, we introduce MemoryAgentBench, a benchmark designed to evaluate "memory agents" across four core competencies using a realistic, incremental multi-turn interaction format.
The Four Pillars of Memory
Based on theories from cognitive science, we identify four essential pillars that define a robust memory agent:
- Accurate Retrieval (AR): The ability to locate specific snippets of information within a vast history of interactions.
- Test-Time Learning (TTL): The capacity to acquire new skills, rules, or patterns from the conversation history without explicit retraining.
- Long-Range Understanding (LRU): Synthesizing a global view of the entire history to perform tasks like summarization or high-level reasoning.
- Selective Forgetting (SF): The ability to overwrite old, "stale" information when presented with new, contradictory evidence.
Methodology and Benchmarking
MemoryAgentBench standardizes the evaluation of memory architectures by feeding information in discrete chunks, simulating a multi-turn conversation. We evaluate three primary categories of memory systems:
- Long-Context Agents: Models with massive context windows (e.g., GPT-4o, Claude 3.7) that maintain the entire history in active memory.
- RAG Agents: Systems using Retrieval-Augmented Generation (Simple, Embedding-based, or GraphRAG) to pull relevant data from external stores.
- Agentic Memory Agents: Advanced systems like MemGPT or MIRIX that utilize iterative loops to manage and reflect on their own memory stores.
The benchmark utilizes a mix of repurposed long-context datasets and entirely new tasks. Notably, we introduce EventQA, a temporal narrative tracking task, and FactConsolidation, which specifically probes Selective Forgetting by presenting agents with updated, contradictory facts.
Key Results and Insights
Our evaluation reveals that current memory agents struggle to master all four competencies simultaneously.
The RAG Trade-off
RAG-based agents, particularly those using HippoRAG-v2, excel at Accurate Retrieval. However, they perform poorly on Long-Range Understanding. Because RAG systems typically retrieve only small, isolated snippets, the model loses the "big picture" context necessary for global synthesis.
Context vs. Compression
Pure Long-Context models remain the leaders in Test-Time Learning and Long-Range Understanding. Their ability to "see" the entire sequence at once avoids the lossy compression inherent in current retrieval methods. However, this approach is resource-inefficient and does not scale to truly lifelong interactions.
The Failure of Selective Forgetting
The most significant finding is the near-universal failure of all tested agents on Selective Forgetting. In the FactConsolidation-MH (Multi-Hop) task, the best-performing models achieved only 7% accuracy. When information is updated (e.g., a person moving locations), agents frequently hallucinate or revert to outdated information, indicating a fundamental inability to resolve interference between old and new memories.
Conclusion
MemoryAgentBench highlights that memory in LLM agents is not yet a solved problem. While retrieval is maturing, dynamic memory maintenance—specifically the ability to update and prune information—remains a critical weakness. Future research must focus on more sophisticated "memory maintenance" loops that allow agents to actively manage their internal knowledge stores as the environment and user state evolve.
Summary updated