Memory for Autonomous LLM Agents:Mechanisms, Evaluation, and Emerging Frontiers
Organizations: Hong Kong Research Institute of Technology, HongKong, China
Abstract
Large language model (LLM) agents increasingly operate in settings where a single context window is far too small to capture what has happened, what was learned, and what should not be repeated. Memory -- the ability to persist, organize, and selectively recall information across interactions -- is what turns a stateless text generator into a genuinely adaptive agent. This survey offers a structured account of how memory is designed, implemented, and evaluated in modern LLM-based agents, covering work from 2022 through early 2026. We formalize agent memory as a write--manage--read loop tightly coupled with perception and action, then introduce a three-dimensional taxonomy spanning temporal scope, representational substrate, and control policy. Five mechanism families are examined in depth: context-resident compression, retrieval-augmented stores, reflective self-improvement, hierarchical virtual context, and policy-learned management. On the evaluation side, we trace the shift from static recall benchmarks to multi-session agentic tests that interleave memory with decision-making, analyzing four recent benchmarks that expose stubborn gaps in current systems. We also survey applications where memory is the differentiating factor -- personal assistants, coding agents, open-world games, scientific reasoning, and multi-agent teamwork -- and address the engineering realities of write-path filtering, contradiction handling, latency budgets, and privacy governance. The paper closes with open challenges: continual consolidation, causally grounded retrieval, trustworthy reflection, learned forgetting, and multimodal embodied memory.
Figures & tables
| System | Year | Memory Category | Distinguishing Feature |
|---|---|---|---|
| RAG [ Lewis et al., 2020 ] | 2020 | Non-parametric retrieval | First to couple a seq2seq generator with a dense document retriever at NeurIPS 2020. |
| RETRO [ Borgeaud et al., 2022 ] | 2022 | Retrieval at scale | Chunks retrieved from a 2-trillion-token corpus; 7.5B-parameter model rivals 175B Jurassic-1 on 10/16 benchmarks. |
| ReAct [ Yao et al., 2022 ] | 2022 | Trajectory traces | Reasoning-and-acting traces double as short-horizon working memory; 34% absolute gain on ALFWorld. |
| Reflexion [ Shinn et al., 2023 ] | 2023 | Reflective episodic | Verbal self-critiques stored as episodic memory; 91% pass@1 on HumanEval (vs. 80% GPT-4 baseline). |
| Generative Agents [ Park et al., 2023 ] | 2023 | Episodic + reflective | 25 simulated characters autonomously organize a Valentine’s party via observation–reflection–planning cycles. |
| Voyager [ Wang et al., 2023a ] | 2023 | Procedural skill library | 3.3 more unique items and 15.3 faster tech-tree progression than prior Minecraft agents. |
| Benchmark | Year | Multi-session | Multi-turn | Agentic tasks | Forgetting | Multimodal |
|---|---|---|---|---|---|---|
| LoCoMo | 2024 | ✓ | ✓ | – | – | ✓ |
| MemBench | 2025 | – | ✓ | – | – | – |
| MemoryAgentBench | 2025 | – | ✓ | – | ✓ | – |
| MemoryArena | 2026 | ✓ | ✓ | ✓ | – | – |