Agent Memory and Knowledge Graphs
Agent memory and knowledge graphs are two interlocking foundations of persistent AI agents. Agent memory is the capability that lets an agent retain, organise, and reuse information across interactions, and it is what turns a stateless text generator into a genuinely adaptive agent[^c1]. Knowledge graphs supply the structure that turns accumulated records into knowledge an agent can traverse and reason over, representing entities and their relations as a network rather than a flat collection of text. Together they address the central limitation of large language models: a fixed context window and no durable experience of their own. By the mid-2020s, the working consensus was that memory is less a container than a set of operations — curate, reconcile, consolidate, and brief — captured in the observation that memory is a job, not a dump[^c2].
Memory is studied through an established taxonomy. Working and short-term memory hold the agent's current circumstances and are bounded by the context window; long-term memory persists across sessions and divides into episodic memory of specific experiences, semantic memory of stable facts, and procedural memory of skills and routines. The distinction is architectural — semantic memory is what an agent knows, procedural memory is how it behaves[^c11] — and the two require different storage and update regimes. Architectures such as MemGPT treat the context window as a scarce resource paged against external storage, while other systems store raw natural-language memory streams, hierarchical summaries, or evolving note networks. Retrieval-augmented generation supplies the read path, and later designs go further: some decouple slow, expensive consolidation from fast read-time judgment[^c5], while knowledge-centric systems treat abstract knowledge rather than entities or chunks as the unit of memory access, on the grounds that decision-relevant information is concentrated as abstract knowledge rather than raw experience[^c6].
Knowledge graphs are built by extracting entities and relations from text, linking them to canonical identifiers, and organising them under an ontology that supplies the vocabulary of concepts and relationships. Stored in graph databases and queried with languages such as SPARQL and Cypher, they support reasoning that derives facts never stated explicitly. In agent systems the graph has become the "beyond-RAG" layer of choice[^c3]: graph-based retrieval can nearly double multi-hop answer rates and halve hallucination rates relative to vector-only search[^c9], while GraphRAG, HippoRAG, and temporal knowledge graphs add community summarisation, associative retrieval, and time-stamped facts that are invalidated rather than overwritten. A rigorous bi-temporal model keeps two timelines per fact, separating system time from valid time[^c15]. Temporal designs increasingly ground supersession in explicit revision semantics, with one graph-native system built on formal belief-revision theory[^c4]. Enterprise construction builds governance into the process: agents may write to project-scoped graphs only through staged, conflict-checked, and human-reviewed promotion, and organisational ontologies are modelled with roles rather than individuals as the load-bearing nodes.
The field is also defined by its methods, its benchmarks, and its unresolved problems. Consolidation compresses short-term traces into durable facts, forgetting prunes low-value records, and embedding models let both text and graph structure be searched by similarity. Evaluation is shifting from passive recall toward whether agents actively apply memory to tasks; scale-conditioned protocols hold evidence fixed while adding irrelevant history to see when reliability collapses, and newer benchmarks reach hundreds of millions of tokens of agent history, where a coding-agent approach to raw trajectories outperformed the strongest retrieval baseline by a wide margin[^c7]. The frontier now includes qualities that fact recall alone does not capture: [[LoCoMo-Plus]] probes cognitive memory under cue–trigger semantic disconnect, where models must retain and apply latent constraints across long conversations[^c19], and [[DyadMem]] measures user-conditioned relational memory, finding that models answer well from gold memories but collapse in the full capture–update–recall pipeline[^c20]. Headline accuracy figures remain largely vendor-reported and contested[^c12], and a structural critique argues that none of the standard memory benchmarks adjudicates continuity as a system property, leaving persistence, update handling, and reconstruction under-measured[^c13]. Retrieval design has also matured: graph retrieval improves candidate discovery without guaranteeing that a retrieved item supports a claim, and governed evidence admission makes abstention a property of evidence state rather than model confidence alone[^c14]. A controlled 2026 study found that an LLM-free write path reached accuracy parity with an LLM-extraction pipeline, concluding that the LLM in the write path buys no measured accuracy[^c17] — evidence that careful selection, not expensive ingestion, is where the value lies. Persistent memory also introduces real risks — poisoned records can manipulate an agent's future behaviour, stale facts can contradict current ones, and stored experience accumulates sensitive data — and the field's own surveys flag open problems in evaluation, governance, and interoperability, since frameworks still operate in silos with incompatible memory abstractions[^c10]. A governance gap compounds the risk: durable agent state is accumulated and retrieved far more than it is governed, rolled back, or relinquished[^c21]. Long-term benchmarks such as LongMemEval, LoCoMo, and Memora, together with the observation that nothing yet evaluates memory shared across a fleet of agents[^c8], set the agenda for continuing work. Commercially, memory has moved from research prototype to platform component, with vendors shipping execution, memory, and governance as a single governed layer[^c18].