TL;DR
While current LLMs excel at recalling semantic facts, they largely lack episodic memory—the human-like ability to ground memories in specific temporal contexts after a single exposure. This paper introduces the Sequence Order Recall Task (SORT) and the Book-SORT dataset to test whether models can recall the sequential order of events in texts. The central finding: while LLMs can order events when presented in short prompts (in-context), fine-tuning models on text completely fails to instill parametric episodic memory, leaving them at chance performance.
What Problem Does This Paper Address?
Human long-term memory is divided into semantic memory (general facts and concepts, like "Paris is the capital of France") and episodic memory (recollections of specific events anchored in time and place, like "what happened earlier during yesterday's meeting"). Current LLM benchmarks (e.g., MMLU, LAMA) predominantly evaluate semantic memory.
However, capabilities like source attribution, lifelong continual learning, and maintaining coherence over long conversations fundamentally rely on episodic memory. To bridge this gap, the authors formally define episodic memory for LLMs (requiring sequence specificity, single-shot acquisition, relational context-binding, persistence over arbitrary intervals, and functional queryability) and introduce a benchmark to evaluate it.
Methods
The authors introduce SORT (Sequence Order Recall Task), adapted from recency judgment paradigms in cognitive psychology:
- The Task: Given two non-overlapping text segments ($A$ and $B$) sampled from a sequence, the model must predict which segment appeared first in the original text.
- Evaluation Across Memory Mechanisms: They evaluate how LLMs access memory across three paradigms:
- In-Context Memory: The text excerpt is provided directly in the prompt.
- Retrieval-Augmented Generation (RAG): Relevant chunks are retrieved using a dense retriever (BGE-v1.5) and prepended to the prompt.
- Parametric Memory: The model is fine-tuned directly on 5,000-word text chunks using standard next-token prediction (mixed with instruction data to prevent catastrophic forgetting) and queried without the text in-context.
- Human Study: 155 verified readers from Goodreads who recently finished Agatha Christie's The Murder of Roger Ackroyd were tested on 1,570 segment pairs to provide a biological benchmark for long-term recall.
SORT Formulation:
[Context/Memory Source]
Segment A: "..."
Segment B: "..."
Question: Which segment appeared first?
Datasets
- Book-SORT: A new dataset featuring over 36,000 text segment pairs derived from 9 books recently entering the U.S. public domain (to mitigate pretraining contamination). Content spans mystery fiction, juvenile literature, physics philosophy, and essays.
- Variations: Segments are evaluated across lengths (20 vs. 50 words), segment distances (from adjacent up to 16,000+ words apart), and context excerpt lengths (250 to 20,000 words).
- Human Reference Data: 1,570 judgment trials from 155 participants tested on average 7.5 days after reading.
Key Insights and Ideas
- Parametric Memory $\neq$ Episodic Memory: Standard next-token language modeling fails completely at encoding retrievable temporal order. Even though fine-tuning drove down text perplexity (from 9.9 to 2.4), models performed at chance (~50%) when asked about sequence order.
- In-Context Memory Acts as Working Memory, Not Long-Term Episodic Memory: While models perform well when excerpts are short, their accuracy plummets as context length grows—well before reaching their advertised context limits—and suffers from severe "lost-in-the-middle" effects.
- Humans Rely on Distance; Models Struggle with Proximity: Humans exhibit higher ordering accuracy for events spaced further apart in the narrative (peaking at 76%). In contrast, models in standard RAG struggle because standard vector embeddings strip away global document positions.
Key Results
- Human Baseline: Human readers achieved an average accuracy of 64% on 50-word segments and 56% on 20-word segments, reaching 76% accuracy when segments were separated by over 25,000 words.
- Zero-Shot Baseline (No Memory): Models scored between 49% and 57%, confirming that common-sense narrative reasoning alone cannot solve the task.
- In-Context Access: Models achieved high accuracy on short 250-word excerpts (e.g., 95% for Mixtral-8x22b, 93% for Llama3-8b), but degraded sharply as excerpt length expanded to 10k–20k words (falling to 56%–79%). Base (non-instruction tuned) models performed at chance (~51%).
- Fine-Tuning: Fine-tuning Llama3-8b and Mistral-7b yielded virtually no improvement over baseline (~51% accuracy, $p > 0.05$), even when trained for over 100 repetitions or with a dedicated linear classification probe.
- RAG: Vanilla RAG failed to cross 70% accuracy across any segment distance due to loss of relative document order.
Limitations and Future Work
- Instruction-Tuning Dependency: SORT prompts require instruction-following capability; base models fail to format answers correctly regardless of memory.
- Pretraining Contamination: While the authors selected newly public-domain texts, closed-source models' exact training corpora remain unknown.
- Future Directions:
- Evaluating novel architectures incorporating dedicated episodic memory modules (e.g., external neural episodic controllers, recurrent memory banks).
- Exploring order-preserving RAG algorithms.
- Extending SORT to multimodal domains (recalling sequences of scenes in video or audio).
Summary updated