Assessing Episodic Memory in LLMs with Sequence Order Recall Tasks

Mathis Pink, Vy A. Vo, Qinyuan Wu, Jianing Mu, Javier S. Turek, Uri Hasson, Kenneth A. Norman, Sebastian Michelmann, Alexander Huth, Mariya Toneva · DOI

Abstract

While Large Language Models (LLMs) are encyclopedic masters of semantic memory, they struggle to retain episodic information—the chronological "when" and "where" of data. This paper introduces the Sequence Order Recall Task (SORT), a benchmark that challenges models to determine the chronological order of events from books. Our evaluation reveals that while LLMs excel at this task when text is provided in their immediate context, they fail to internalize temporal order within their long-term parametric weights, even after fine-tuning.

Introduction

In cognitive psychology, human memory is divided into semantic memory (facts) and episodic memory (events linked to specific temporal and spatial contexts). Current LLM benchmarks focus almost exclusively on the former. However, episodic memory is vital for complex reasoning, long-term consistency, and source attribution. This study addresses the lack of tools to measure episodic capabilities in AI, proposing a framework to evaluate whether LLMs can truly "remember" a narrative arc.

The SORT Benchmark and Methodology

The authors adapted the Sequence Order Recall Task (SORT) from classical recency judgment experiments. In this task, a model is given two segments of text from a known source and must decide which one appeared first. To evaluate how models store this memory, three primary methods of information access were tested:

  1. In-Context Memory (ICM): Relevant excerpts are provided directly in the prompt.
  2. Retrieval-Augmented Generation (RAG): A vector database retrieves relevant chunks to feed to the model.
  3. Parametric Memory (Fine-tuning): The model is trained on the full text using a language modeling objective to see if sequence order is "baked into" the weights.
Overview of the SORT task prompt and the various methods for evaluating text-specific memory in LLMs.

Experimental Design

The researchers introduced Book-SORT, a dataset comprising 36,000 pairs of text segments from nine public-domain books. The dataset varies in granularity, testing different segment lengths and "distances" between segments (ranging from adjacent passages to 16,000 words apart). Additionally, a human experiment with 155 participants provided a biological baseline for long-term episodic recall.

Key Insights and Results

The "Hard Drive" vs. "RAM" Discrepancy

LLMs demonstrate excellent "working memory" (in-context) but poor "episodic long-term memory." Models like GPT-4 achieved up to 95% accuracy in the ICM setting. However, when relying on parametric memory—even after fine-tuning—performance dropped to near-chance levels (50-60%). This suggests that simply training a model to predict the next token does not help it learn global chronology.

Distance and Granularity

Both humans and LLMs (in-context) perform better when the two segments are further apart in the text. It is significantly easier to order the introduction and the climax than it is to order two sentences from the same chapter. This "distance effect" is a hallmark of episodic memory in biological systems.

RAG and Decontextualization

Standard RAG performance hovered between 55% and 67%, significantly lower than in-context performance. This highlights a "decontextualization" problem: RAG often treats text chunks as independent facts, losing the narrative thread unless the system specifically encodes temporal order.

Human Baseline

Humans achieved roughly 70% accuracy based on their long-term memory of the books. While LLMs can outperform humans when the text is in their context window, they lag significantly behind human-like episodic recall for information stored in long-term memory.

Conclusion and Future Work

The SORT benchmark reveals that current transformer architectures struggle to index temporal sequences in their weights. Future directions include developing separate memory systems (analogous to the human hippocampus), multimodal SORT benchmarks, and order-preserving retrieval methods to bridge the gap between semantic knowledge and episodic understanding.

Summary updated

BibTeX
@misc{pink2024assessing,
  author = {Mathis Pink and Vy A. Vo and Qinyuan Wu and Jianing Mu and Javier S. Turek and Uri Hasson and Kenneth A. Norman and Sebastian Michelmann and Alexander Huth and Mariya Toneva},
  title = {{Assessing Episodic Memory in LLMs with Sequence Order Recall Tasks}},
  year = {2024},
  eprint = {2410.08133},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.08133},
}
Figure