Review waiting, please be patient.
This may take 3 months or more, since drafts are reviewed in no specific order. There are 4,816 pending submissions waiting for review.
Where to get help
How to improve a draft
You can also browse Wikipedia:Featured articles and Wikipedia:Good articles to find examples of Wikipedia's best writing on topics similar to your proposed article. Improving your odds of a speedy review To improve your odds of a faster review, tag your draft with relevant WikiProject tags using the button below. This will let reviewers know a new draft has been submitted in their area of interest. For instance, if you wrote about a female astronomer, you would want to add the Biography, Astronomy, and Women scientists tags. Editor resources
Reviewer tools
|
In artificial intelligence, agent memory refers to the mechanisms used by autonomous agents to store, retrieve, and manage information across interactions, tasks, or sessions. Large language models (LLMs) are generally stateless, meaning that information from previous interactions is not retained unless it is supplied through an external memory system. In AI agents, memory is used to store, retrieve, and manage information beyond the limits of a model's context window, enabling continuity across tasks and sessions.[1]
Agent memory systems are commonly divided into working, episodic, semantic, and procedural forms, although classifications vary among architectures and research frameworks. These systems may be implemented using retrieval mechanisms such as vector databases, knowledge graphs, and other external storage architectures. Agent memory is used in applications including personal assistants, software engineering agents, and research agents, and remains an active area of research due to challenges involving scalability, retrieval accuracy, privacy, and memory management.[2]
Definition and scope
edit"Memory plays a pivotal role in enabling large language model (LLM)-based agents to engage in complex and long-term interactions," according to Zeng et al.[3] Agent memory encompasses the storage, retrieval, and management mechanisms that allow artificial intelligence agents to maintain information beyond a single interaction or context window. In LLM-based agents, memory is typically implemented through external storage systems rather than within the language model itself.[4][5] These mechanisms support the preservation of state, context, and task-relevant information beyond individual steps.[2]
The scope of agent memory in this article is limited to memory systems used in autonomous or semi-autonomous AI agents, particularly those based on large language models. It focuses on external or architectural memory mechanisms used during inference and does not cover model training processes or internal parameter-based learning.
Background
editThe development of agent memory emerged in response to limitations of large language models in long-term and complex interactions. Since the emergence of transformer-based large language models in 2017, these systems have operated within fixed context windows, which limits access to prior interactions unless reintroduced in the prompt.[6]
While language models can process information provided within a context window, they do not inherently retain information across interactions. This limitation became more prominent with the widespread deployment of large language models in 2022, when conversational and task-oriented applications began requiring continuity across multiple sessions.[7] As autonomous agents increasingly undertook long-horizon tasks requiring the accumulation and retrieval of information over time, researchers developed external memory systems to support persistence, adaptation, and continuity of behavior.[8][5] Reinforcement learning agents typically do not use persistent, queryable memory across episodes, instead relying on state representations or experience replay mechanisms developed in the 2010s.[9][10]
Cognitive architectures in AI agents have also drawn on earlier concepts from cognitive science such as Soar (developed in the 1980s) and ACT-R (first proposed in 1993, with major revisions into the early 2000s) and modeled human cognition using structured representations of memory and reasoning, including distinctions among working, episodic, semantic, and procedural memory.[11][12]
The Cognitive Architectures for Language Agents (CoALA) framework, introduced in 2023, provided an early formalization of memory as a modular component within language-agent architectures, contributing to the framing of memory as a distinct subsystem in LLM-based agents.[4]
Subsequent research in the mid-2020s has increasingly treated agent memory as a design layer in autonomous systems rather than a property of the underlying language model.[2]
Types of agentic memory
editAgent memory systems are commonly categorized into several functional types based on their role in storing, organizing, and retrieving information within artificial intelligence agents. These categories are not strictly standardized and may vary across implementations and research frameworks.[4]
Working memory
editWorking memory refers to information actively maintained during an agent’s current reasoning or task execution. In large language model-based agents, this is typically represented by the model’s context window and any short-term intermediate reasoning state used during inference.
Episodic memory
editEpisodic memory stores records of specific past interactions, events, or experiences encountered by an agent. This may include prior conversations, task trajectories, or sequences of actions and outcomes, often indexed with temporal or contextual metadata to support retrieval.
Semantic memory
editSemantic memory refers to generalized knowledge extracted from past interactions or external sources, representing facts, concepts, or stable information that is not tied to a specific event. In agent systems, this information is often consolidated from episodic memory or external knowledge bases.
Procedural memory
editProcedural memory represents learned behaviors, strategies, or action sequences that guide how an agent performs tasks. In AI agents, this may include tool-use policies, reasoning patterns, or reusable workflows that can be invoked across tasks.
These categories are conceptually influenced by distinctions in cognitive science, but in artificial intelligence research they are primarily used as functional design abstractions rather than strict psychological analogues.
Architectural implementations
editAgent memory in artificial intelligence systems is implemented using a variety of architectural approaches that typically combine external storage systems with retrieval and integration mechanisms within large language model-based agents.[13]
Retrieval-based memory systems
editA common architectural approach is retrieval-based memory, in which information from prior interactions or external sources is stored in an external database and retrieved based on relevance to the current input. Retrieval is often performed using similarity search over vector representations of stored information, enabling approximate matching between queries and past records. These systems are typically implemented using external storage backends, such as dedicated vector databases, or multi-model document-oriented databases like MongoDB that natively support both vector search and structured application data.[3]
Retrieval-augmented generation (RAG)
editRetrieval-augmented generation (RAG) is frequently used as a foundation for agent memory systems. In these architectures, external information is retrieved and incorporated into the model’s context window prior to generation, allowing the model to condition its output on stored or retrieved knowledge. In agent settings, RAG may be extended to include conversational history, task-specific state, or structured records of prior actions.[14][15]
Structured memory systems
editSome agent memory systems use structured representations such as knowledge graphs or relational databases to encode entities, events, and relationships between stored items. These approaches enable explicit relational querying and support more structured reasoning over stored information compared to unstructured retrieval methods.[3][16]
Hybrid memory systems
editHybrid memory architecture (HMA) combines multiple memory representations, typically integrating unstructured vector-based retrieval with structured storage mechanisms. As Zhao et al. observe, "existing approaches face a fundamental trade-off between efficiency and effectiveness: memory compression risks losing critical details required for complex reasoning, while retaining raw text introduces unnecessary computational overhead for simple queries." This design is used to balance flexible semantic retrieval with explicit relational structure, particularly in systems requiring multi-step reasoning or long-horizon task execution.[3][13][17]
Memory consolidation and management
editMany agent memory systems include mechanisms for consolidating or compressing stored information over time, such as summarization, filtering, or pruning. These processes reduce storage overhead and improve retrieval relevance by retaining salient information while discarding redundant or low-utility entries over time.[13]
Integration into agent reasoning loops
editChallenges
editAgent memory systems introduce a range of technical and conceptual challenges related to retrieval accuracy, information management, system scalability, and privacy in autonomous artificial intelligence agents.
Retrieval and memory quality
editThe effectiveness of agent memory depends on the accurate retrieval of relevant information. Memory systems may return semantically related but contextually inappropriate information, while the accumulation of large volumes of stored data can reduce retrieval precision. In addition, agents may retain outdated or contradictory information, creating inconsistencies between retrieved memories and current circumstances.[3][13]
Memory management and scalability
editLong-term memory systems must balance the retention of useful information against storage and computational constraints. Techniques such as summarization, consolidation, and pruning can improve efficiency, but may also result in the loss of detail or the introduction of inaccuracies. As memory stores grow, retrieval latency and infrastructure requirements may also increase.[3][13]
Privacy and governance
editPersistent memory systems raise concerns regarding the collection, storage, and retention of user-specific information. Questions surrounding consent, data ownership, deletion, and access control have become increasingly important as memory capabilities are incorporated into deployed conversational agents.[13]
Standardization and evaluation
editAgent memory remains an emerging area of research. As Du observes, "the field still lacks a community-standard evaluation harness," with each benchmark using its own datasets, metrics, and protocols, making cross-paper comparison unreliable. Differences in memory representations, retrieval methods, and benchmarking practices make direct comparison between systems difficult.[2][18][19]
See also
editReferences
edit- ↑ "Agent memory | AI Wiki". AI Wiki. Archived from the original on 2026-04-11. Retrieved 2026-06-18.
- 1 2 3 4 Du, Pengfei (March 8, 2026). "Memory for Autonomous LLM Agents:Mechanisms, Evaluation, and Emerging Frontiers". arXiv:2603.07670 [cs.AI].
- 1 2 3 4 5 6 "On the Structural Memory of LLM Agents". arxiv.org. Retrieved 2026-06-18.
- 1 2 3 4 Sumers, Theodore R.; Yao, Shunyu; Narasimhan, Karthik; Griffiths, Thomas L. (2024-03-15), Cognitive Architectures for Language Agents, arXiv:2309.02427
- 1 2 Zhang, Zeyu; Dai, Quanyu; Bo, Xiaohe; Ma, Chen; Li, Rui; Chen, Xu; Zhu, Jieming; Dong, Zhenhua; Wen, Ji-Rong (2025-09-10). "A Survey on the Memory Mechanism of Large Language Model-based Agents". ACM Trans. Inf. Syst. 43 (6): 155:1–155:47. doi:10.1145/3748302. ISSN 1046-8188.
- ↑ "Attention Is All You Need". arxiv.org. Retrieved 2026-06-18.
- ↑ Xu, Jing; Szlam, Arthur; Weston, Jason (2022). "Beyond Goldfish Memory: Long-Term Open-Domain Conversation". 60th Annual Meeting of the Association for Computational Linguistics. 1: 5180–5197.
{{cite journal}}: Missing|author3=(help) - ↑ Wang, Lei; Ma, Chen; Feng, Xueyang; Zhang, Zeyu; Yang, Hao; Zhang, Jingsen; Chen, Zhiyuan; Tang, Jiakai; Chen, Xu; Lin, Yankai; Zhao, Wayne Xin; Wei, Zhewei; Wen, Jirong (2024-03-22). "A survey on large language model based autonomous agents". Frontiers of Computer Science. 18 (6): 186345. doi:10.1007/s11704-024-40231-1. ISSN 2095-2236.
- ↑ Mnih, Volodymyr; Kavukcuoglu, Koray; Silver, David; Rusu, Andrei A.; Veness, Joel; Bellemare, Marc G.; Graves, Alex; Riedmiller, Martin; Fidjeland, Andreas K.; Ostrovski, Georg; Petersen, Stig; Beattie, Charles; Sadik, Amir; Antonoglou, Ioannis; King, Helen (February 2015). "Human-level control through deep reinforcement learning". Nature. 518 (7540): 529–533. Bibcode:2015Natur.518..529M. doi:10.1038/nature14236. ISSN 1476-4687. PMID 25719670.
- ↑ Lin, Long-Ji (1992-05-01). "Self-improving reactive agents based on reinforcement learning, planning and teaching". Machine Learning. 8 (3): 293–321. Bibcode:1992MLear...8..293L. doi:10.1007/BF00992699. ISSN 1573-0565.
- ↑ Laird, John E.; Newell, Allen; Rosenbloom, Paul S. (September 1987). "SOAR: An architecture for general intelligence". Artificial Intelligence. 33 (1): 1–64. doi:10.1016/0004-3702(87)90050-6. ISSN 0004-3702. Archived from the original on 2024-04-10.
- ↑ Anderson, John R.; Bothell, Daniel; Byrne, Michael D.; Douglass, Scott; Lebiere, Christian; Qin, Yulin (2004). "An Integrated Theory of the Mind". Psychological Review. 111 (4): 1036–1060. doi:10.1037/0033-295X.111.4.1036. ISSN 1939-1471. PMID 15482072.
- 1 2 3 4 5 6 7 "From Storage to Experience: A Survey on the Evolution of LLM Agent Memory Mechanisms". arxiv.org. Retrieved 2026-06-18.
- ↑ "Retrieval-Augmented Generation (RAG): Unlocking AI's Memory – Center for Applied AI Hub". Retrieved 2026-06-18.
- ↑ "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks". arxiv.org. Retrieved 2026-06-18.
- ↑ Anokhin, Petr; Semenov, Nikita; Sorokin, Artyom; Evseev, Dmitry; Kravchenko, Andrey; Burtsev, Mikhail; Burnaev, Evgeny (2025-05-15), AriGraph: Learning Knowledge Graph World Models with Episodic Memory for LLM Agents, arXiv:2407.04363, retrieved 2026-06-30
- ↑ "HyMem: Hybrid Memory Architecture with Dynamic Retrieval Scheduling". arxiv.org. Retrieved 2026-06-18.
- ↑ Hu, Yuanzhe; Wang, Yu; McAuley, Julian (2026-06-28), Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactions, arXiv:2507.05257, retrieved 2026-06-30
- ↑ Zhu, Pengyu; Sun, Li; Yu, Philip S.; Su, Sen (2026-05-26), The Necessity of a Unified Framework for LLM-Based Agent Evaluation, arXiv:2602.03238, retrieved 2026-06-30
