Position: Episodic Memory is the Missing Piece for Long-Term LLM Agents

Mathis Pink, Qinyuan Wu, Vy Ai Vo, Javier Turek, Jianing Mu, Alexander Huth, Mariya TonevaarXiv 2025 · DOI

Abstract

Current Large Language Model (LLM) agents excel at instruction following but struggle with maintaining long-term historical context. This position paper argues that Episodic Memory—a system for single-shot learning and consolidation—is the critical missing component for truly autonomous, long-term agents that can learn from experience.

Introduction

As LLMs evolve into autonomous agents, they encounter a "scaling wall" regarding memory. Effective long-term agents must remember not just facts, but the specific context of past interactions—the when, how, and why. Existing solutions are fragmented:

  1. In-Context Memory is limited by context window size and prohibitive computational costs.
  2. External Memory (RAG) often lacks the rich contextual nuance of the original experience.
  3. Parametric Memory (fine-tuning) is too slow for real-time updates and prone to catastrophic forgetting.

The Episodic Memory Framework

The authors propose operationalizing Episodic Memory (EM) for AI through five essential properties: long-term storage, explicit reasoning, single-shot learning, instance-specific details, and contextual relations (binding "who, what, where, and when").

Figure 1: Proposed unifying architecture for an LLM agent with integrated Episodic Memory acting as a bridge between context and parameters.

The proposed architecture (Figure 1) positions external episodic memory as a bridge. It allows for fast encoding from the context window and subsequent retrieval. Crucially, it suggests a consolidation process where these episodes are eventually integrated into the model’s core parameters, mimicking biological Complementary Learning Systems (CLS).

Analysis of Current Memory Approaches

A systematic gap analysis reveals that no single current approach satisfies all five requirements for episodic memory.

Figure 3: Comparison of current memory approaches against the five essential properties of episodic memory.

As shown in Figure 3, In-Context methods (e.g., KV-compression) fail at long-term storage. External methods like standard RAG struggle with contextual relations and single-shot updates to agent behavior. Parametric methods (e.g., Knowledge Editing) are generally not instance-specific and cannot handle single-shot learning effectively.

Discussion and Future Directions

The paper identifies several critical research gaps that must be addressed to realize this vision:

  • The Consolidation Gap: Moving information from external databases into model weights without breaking existing knowledge remains an unsolved challenge.
  • Rich Traces vs. Flat Data: Unlike standard RAG, episodic memory requires "rich traces"—metadata about agent motivations and temporal sequences.
  • Evaluation Benchmarks: Current "needle-in-a-haystack" tests are insufficient. New benchmarks must evaluate reasoning over the sequence and context of past interactions over long durations.

Conclusion

By framing episodic memory as the "missing piece," this work shifts the research focus from merely expanding context windows to developing sophisticated memory systems that allow agents to learn and evolve through experience.

Summary updated

BibTeX
@misc{pink2025position,
  author = {Mathis Pink and Qinyuan Wu and Vy Ai Vo and Javier Turek and Jianing Mu and Alexander Huth and Mariya Toneva},
  title = {{Position: Episodic Memory is the Missing Piece for Long-Term LLM Agents}},
  year = {2025},
  eprint = {2502.06975},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.06975},
}
Figure