12 minute read

Three memory storage devices on a laboratory bench connected by fiber optic threads, representing different agent memory types

TL;DR: A 47-author survey maps the landscape of agent memory architecture. Mapping current tools against the taxonomy reveals a clear production gap: procedural memory. Agents remember what happened and what’s true, but not how to do things. This is the memory type with the highest benchmark impact and the least production tooling.


Forty-seven researchers walk into a taxonomy

Agent memory has a naming problem. Working memory, episodic memory, semantic memory, long-term memory, short-term memory, parametric memory, external memory. The same terms mean different things across papers, frameworks, and product docs. A team implementing “long-term memory” in LangMem gets something architecturally different from what Mem0 calls long-term memory, which differs again from what MemGPT ships under the same label.

In December 2025, 47 researchers published “Memory in the Age of AI Agents” (arXiv:2512.13564). It is the field’s first serious attempt at consensus. The paper does not propose a new memory system. It proposes a shared language for describing all of them.

The taxonomy organizes agent memory along three axes.

Forms describe what memory looks like at the implementation level. Token-level memory is raw text in the context window, which is what most “memory” implementations actually are. Parametric memory is knowledge baked into model weights through fine-tuning or RLHF; changes require retraining. Latent memory sits between the two: compressed representations like embeddings, hidden states, and KV cache entries.

Functions describe what memory is for. Factual memory stores stable knowledge (“the user’s timezone is IST,” “the codebase uses PostgreSQL”). Experiential memory records what happened: past interactions, task outcomes, conversation history. Working memory holds active task state, the current plan, intermediate reasoning steps, tool call results. The scratchpad.

Dynamics describe how memory changes. Formation is how new memories get created from experience. Evolution is how stored memories update, consolidate, or decay over time. Retrieval is how relevant memories surface when needed.

This matters beyond academic bookkeeping. The three-axis system exposes gaps that a simpler “short-term vs. long-term” framing hides.

Mapping production tooling to the taxonomy

The survey gives us the map. Here’s what’s built in each territory.

Memory function What it stores Production tools Benchmark state Gap severity
Factual (semantic) User preferences, domain facts, stable knowledge Mem0 (68.4% LLM-judge score on LoCoMo), Memori (claimed 20x token compression), pgvector Mature: LoCoMo, LongMemEval Low
Experiential (episodic) Interaction history, task outcomes, conversation records MemPalace (96.6% LongMemEval retrieval recall, disputed), MemMachine, Zep, LangMem Improving, but MemPalace scores questioned Medium
Working Current plan, intermediate state, active reasoning PRIME (gradient-free evolution), MemGPT paging Emerging: no standard benchmark Medium-High
Procedural How to perform tasks, reusable strategies, tool sequences Little beyond prompt rewriting and hand-written skill files Early: ALFWorld, TravelPlanner Critical

Read the table left to right and the coverage drops off a cliff. Factual memory has multiple production systems with real benchmarks. Episodic memory has a growing tool ecosystem, boosted by MemPalace going viral in April 2026. Working memory has promising research. Procedural memory has papers.

MemPalace: episodic memory’s moment

MemPalace launched in early April 2026, co-created by Ben Sigman and the actress Milla Jovovich, and collected tens of thousands of GitHub stars within weeks. That velocity says something about demand. Teams want episodic memory infrastructure and don’t have it.

The architecture borrows from the ancient memory palace mnemonic. Memories organize into five spatial levels:

Wings (people/projects)
  └── Halls (memory types: facts, events, reasoning, updates, synthesis)
       └── Rooms (conversation threads)
            └── Tunnels (cross-wing connections)
                 └── Drawers (individual entries in ChromaDB)

The two-pass retrieval system classifies queries into hall categories for precision, then searches the full corpus with category-aware bonuses. Everything runs locally. ChromaDB for vectors, SQLite for metadata, optional Llama reranking. Zero cloud calls, zero API costs.

The honest benchmark numbers need care. The launch-day 100% claims on LongMemEval and LoCoMo did not hold up: on LoCoMo, critics showed that setting top_k=50 on pools of 19-32 sessions retrieves everything, which is not a meaningful retrieval test, and the team relabeled several features as experimental. The most defensible figure, 96.6% on LongMemEval in raw mode, measures retrieval recall rather than the end-to-end answer accuracy the LongMemEval leaderboard reports. Independent reproductions found that enabling the palace features lowered it (89.4% with room-based retrieval, 84.2% with AAAK compression).

The hype is real and the benchmarks need scrutiny. The underlying architecture, spatial hierarchy over flat vector search, does address a genuine retrieval quality problem for episodic memory at scale.

MemMachine: when memories stop being true

Storing memories accurately is half the problem. MemMachine (arXiv 2604.04853) goes after a quieter failure: lossy extraction.

You tell an agent you work at Company A. Later you mention you changed jobs. A memory system that has an LLM extract “facts” from each conversation and stores only those can easily keep the old fact, drop the new one, or garble both, and then retrieve the wrong one with confidence.

MemMachine’s answer is ground-truth preservation: it stores entire conversational episodes, alongside short-term and profile memory, instead of relying only on lossy LLM-extracted facts. Retrieval expands each match with the surrounding turns, which helps when the evidence spans several messages. The paper reports 0.9169 on LoCoMo with gpt-4.1-mini and 93.0% on LongMemEval-S after tuning, with most of the gains coming from retrieval-stage choices rather than ingestion.

On the taxonomy’s dynamics axis, MemMachine works mainly at formation (what gets stored) and retrieval. Evolution, the ongoing maintenance of memory accuracy as facts change, stays the least-served layer; what to forget covers the deletion side of that problem.

PRIME: working memory that learns without training

PRIME (arXiv:2604.07645, April 2026) works a different cell in the taxonomy: working memory evolution. During multi-turn interactions, agents need to refine their understanding of what the user actually wants. Not recall facts or replay past events, but actively update their model of the current task.

The standard approach is reinforcement learning: expensive, and bad at credit assignment across long interaction horizons. PRIME sidesteps this entirely with a gradient-free framework. It distills interaction trajectories into structured experiences across three zones: successful strategies, failure patterns, and user preferences. These experiences evolve through meta-level operations and guide future behavior through retrieval-augmented generation.

In practice, this means an agent that gets better at serving you across conversations without anyone retraining the model. The experiences are human-readable. You can inspect what the agent learned, edit incorrect lessons, and understand why it made specific decisions. That kind of interpretability is rare when most memory systems compress everything into opaque embeddings.

The real gap: procedural memory

The taxonomy makes this obvious once you look at it.

The agent memory ecosystem is pouring resources into episodic memory (what happened) and semantic memory (what’s true). MemPalace, Mem0, Memori, Zep, LangMem. Every major memory framework focuses on storing and retrieving facts and events.

Very little production tooling targets procedural memory directly: teaching agents how to do things. The closest options are prompt-rewriting features such as LangMem’s procedural memory, hand-written skill files, and agents that write their own playbooks, like Hermes Agent.

The Mem^p paper (arXiv:2508.06433) builds procedural memory by distilling past agent trajectories into step-by-step instructions and higher-level, script-like abstractions. Not just “User prefers Python” (factual) or “Last Tuesday, the deployment failed” (episodic), but “When a deployment fails with exit code 137, check memory limits first, then container resource quotas, then the OOM killer logs, in that order, because the first two are faster to verify and cover 80% of cases.”

The benchmark numbers make the case. On ALFWorld with GPT-4o:

  • Without procedural memory: 42.14% task completion, 23.76 average steps
  • With procedural memory: 77.86% task completion, 15.01 average steps

That is a 36 percentage point improvement in task completion and 37% fewer steps. The agent succeeds more often and finishes faster because it has learned reusable strategies instead of reasoning from scratch every time.

The paper also shows cross-model transfer: procedural memory built by GPT-4o raised Qwen2.5-14B’s task completion on TravelPlanner by 5% and cut its average steps by 1.6. The learned strategies carry over to other models because they encode workflow knowledge, not model-specific reasoning patterns.

Yet production tooling for procedural memory is thin. Most agents encode procedural knowledge through handwritten prompts, hardcoded tool chains, or function definitions. When the procedure needs to change, a developer rewrites the prompt. The agent never learns from its own experience.

graph TB
    subgraph "Memory Types: Current Tooling Coverage"
        F["Factual (Semantic)<br/>Mem0, Memori, pgvector<br/>Coverage: HIGH"] --> R["Retrieval Layer"]
        E["Experiential (Episodic)<br/>MemPalace, MemMachine, Zep, LangMem<br/>Coverage: MEDIUM-HIGH"] --> R
        W["Working Memory<br/>PRIME, MemGPT paging<br/>Coverage: MEDIUM"] --> R
        P["Procedural Memory<br/>Mem^p (research only)<br/>Coverage: CRITICAL GAP"] -.-> R
    end
    
    R --> A["Agent Execution"]
    
    subgraph "Dynamics (Evolution)"
        D["Ground-truth episodes<br/>MemMachine"] --> F
        D --> E
        EV["Experience Distillation<br/>PRIME"] --> W
        PL["Skill Learning<br/>???"] -.-> P
    end
    
    style P fill:#ff6b6b,stroke:#c92a2a,stroke-width:2px
    style PL fill:#ff6b6b,stroke:#c92a2a,stroke-width:2px

What practitioners should build first

The taxonomy gives us a prioritized roadmap. Not every memory type matters equally for every use case, but the sequencing holds across most production agent deployments.

Start with factual memory in weeks 1-2. Use Mem0 or Memori. Store user preferences, domain facts, configuration state. This is the fastest path to personalization that persists across sessions. On LoCoMo, vector-only Mem0 scores 66.9% at about 1,800 tokens per conversation with 91% lower p95 latency than full context, a 6-point accuracy trade-off; the graph-enhanced variant reaches 68.4%. Memori claims 20x token compression via semantic triples if token budget is the binding constraint.

Add episodic memory in weeks 3-4. Bring in interaction history with MemPalace, Zep, or a pgvector-backed store. This gives you multi-session coherence: the agent knows what you discussed last Tuesday, what tasks succeeded or failed, what decisions were made and why. The three-tier memory stack provides the architecture. MemPalace’s spatial hierarchy or Zep’s temporal indexing provides the implementation.

Layer in ground-truth checks around weeks 5-6. Keep raw episodes, MemMachine-style, so extracted facts can be checked against what was actually said, and decide what to expire. Without this, memory accuracy degrades over time as user contexts change. The verification layer is not a separate system. It is a constraint applied to your existing memory stores.

Implement working memory evolution in weeks 7-8. PRIME-style experience distillation matters most for agents that repeatedly perform similar tasks for the same user. The agent should get better at the 50th interaction than it was at the 5th.

Procedural memory is the frontier, and the field needs builders here. The gap between “agent has episodic memory” and “agent learns reusable task strategies” is where the next order-of-magnitude improvement lives. The Mem^p benchmarks show the impact. The production tooling does not exist yet.

The numbers that matter

The Mem0 team’s State of AI Agent Memory 2026 report gives baselines on the LoCoMo benchmark (vendor-reported):

Approach Accuracy (LLM score) p95 latency Tokens per conversation
Full context 72.9% 17.12s ~26,000
Mem0 (graph-enhanced) 68.4% 2.59s ~1,800
Mem0 (vector-only) 66.9% 1.44s ~1,800
RAG 61.0% 0.70s varies
OpenAI Memory 52.9% varies varies

The latency-accuracy trade off is the architectural decision that defines production memory systems. Full context is the most accurate but about 12x slower at p95 than vector-only Mem0. Selective memory (Mem0, Memori) accepts a small accuracy hit for dramatic latency and token reduction. The right choice depends on whether your agent is interactive (latency matters) or batch (accuracy matters).

Recall benchmarks like LoCoMo also flatter memory systems. Using memory to make the right decision mid-task is harder than answering a recall question, and that gap between passive recall and active, decision-relevant memory use is the real benchmark problem. Retrieval accuracy and task-relevant memory use are different capabilities, and most tools optimize for the former.

Memory is architecture, not a feature

The 47-author taxonomy settles an important question: agent memory is not a feature you bolt onto an agent framework. It is an architectural domain with its own type system, its own failure modes, and its own evolution dynamics.

The field has spent 2024-2025 building factual and episodic memory infrastructure. That work is maturing. MemMachine keeps the raw record so memories can stay true, and PRIME pushes into evolution dynamics with working memory that learns. MemPalace is making episodic retrieval spatially intelligent.

But the taxonomy’s biggest gap, procedural memory, remains wide open. Agents that learn how to do things, not just what happened or what’s true. The memory architectures we described as foundational are exactly that: foundations. The building that goes on top needs procedural memory as a load-bearing wall.

Build factual and episodic memory now. Add truth verification. Layer in working memory evolution. Then turn your attention to the procedural gap. That is where the largest measured improvements are.