Simulating Human Memory with Language Models

Qihan Wang, Nicholas Tomlin, Michael Y. Hu, Brian Dillon, Tal Linzen

TL;DR

We increasingly use Large Language Models (LLMs) to simulate human users—like mock students to test AI tutors—but LLMs have superhuman recall that ruins the illusion. Simply asking an LLM to "pretend you have bad memory" doesn't work, so the authors build a cognitively inspired bottleneck that forces models to compress information into just four mental "chunks." By making AI forget more like we do, we can actually build better tools for teaching real humans.

What Problem Does This Paper Address?

Imagine training an AI tutor by letting it practice on a simulated student powered by an LLM. If the tutor dumps ten pages of dense calculus on the "student," an out-of-the-box LLM will effortlessly attend to every token and ace the quiz. A real human student, meanwhile, would have glazed over by page two.

As LLMs become popular stand-ins for human participants in behavioral research, policy simulation, and RL training, their photographic in-context memory becomes a bug, not a feature. Human working memory is famously leaky and capacity-limited. The authors ask: how big is the memory gap between humans and modern LLMs, can we prompt our way out of it, and what happens when we bake cognitive constraints directly into the system?

Figure 1: Three sample tasks from our benchmark. In reverse digit span, participants must read and recall lists of numbers in reverse order; in narrative free recall, participants must read short stories and repeat them as precisely as possible; in the map task, participants must memorize a map and answer questions about routes between locations. Humans are limited in their ability to remember the stimuli and complete each of these tasks, whereas frontier LLMs perform at ceiling.

Methods

The authors evaluate ten open- and closed-weight models (including GPT-5.4, Claude Opus 4.6, Gemini 3.1 Pro, and variants of Llama 3 and Qwen3) across four setups:

  1. Task Prompt (TaskPr): Standard instructions testing out-of-the-box capability.
  2. Human Prompt (HumPr): Telling the model to roleplay a human in a psychology study (including real-world time limits).
  3. Memory Prompt (MemPr): Roleplaying a human, plus an explicit reminder that human memory is flawed and prone to mistakes.
  4. Compactor (Novel Agent Architecture): Rooted in cognitive psychologist Nelson Cowan’s famous principle that human working memory holds roughly four chunks of information, the authors build a two-phase agent. During the encode phase, the LLM reads the stimulus and uses tool calls (write_memory, delete_key) to store free-form summaries in a strict key-value store capped at $K=4$ slots. During the recall phase, the original text vanishes—the model must answer questions relying only on its four saved chunks.

To measure success, they don't look at raw accuracy. Instead, they measure Humanlikeness using $1 - W_1$, where $W_1$ is the normalized 1D Wasserstein ("earth mover's") distance between the human score distribution and the LLM score distribution. A score of 1.0 means the AI population's performance perfectly mirrors the human population's.

Datasets

Because no standard suite existed for text-only human-vs-LLM memory alignment, the authors introduce two new datasets (with human baselines collected from $N=100$ Prolific participants each):

  • The Human Memory Simulation Benchmark: Ten classic psychology paradigms adapted into text-only formats. These span short-term working memory (Digit Span, Reverse Digit Span, N-Back, Word Recognition, Variable Mapping) to longer-term relational and narrative memory (Factual QA, Narrative QA, Narrative Free Recall, Map Task, and a Minecraft-style Craft Task).
  • Educational Document Reranking Dataset: A proof-of-concept evaluation set featuring 10 fictional biographies, each written in 4 variants (middle-school level, advanced reading level, redundant key facts, and cluttered with distractors) paired with comprehension questions.

Key Insights and Ideas

  • Smarter models aren't better human actors: Frontier reasoning models are no better at faking human memory limits than smaller models. Out of the box, every LLM hits near-100% ceiling performance across tasks where humans struggle.
  • Prompting fails to induce realistic forgetting: Telling an LLM "you have limited memory" barely moves the needle on most tasks—and sometimes makes alignment worse.
  • Few-shot examples don't generalize: Giving GPT-5.4 five transcripts of real humans failing at Digit Span helps it mimic humans on Digit Span, but transfers zero benefit to Word Recognition—even though both test working memory. The model copies surface-level task patterns rather than learning an underlying cognitive constraint.
Figure 4: Few-shot prompting experiments. Human–model similarity across prompting conditions for GPT-5.4 on two working memory tasks. In-domain few-shot examples substantially improve alignment with human behavior, while out-of-domain examples yield little to no improvement over the baseline. Error bars denote 95% bootstrapped confidence intervals.
  • Architectural bottlenecks beat roleplay—mostly: Forcing information through the 4-slot Compactor dramatically improves distributional alignment with human scores. However, when you zoom in on how they fail, humans and LLMs still make different micro-errors: in Digit Span, prompted LLMs tend to guess the right sequence length with a swapped middle digit, Compactor abruptly truncates the list, and real humans do a messy mix of both.

Key Results

  • The Baseline Gap: On Digit Span, humans recall an average of 6.89 digits, whereas all baseline LLMs recall 20 out of 20 digits flawlessly.
Figure 2: Human–model performance comparisons across tasks and for two representative models, Qwen3-8B and GPT-5.4 (results from other models are equally close to ceiling performance). The plot shows the models’ performance on the tasks using the baseline prompt TASKPR. Scores are normalized such that 1.0 represents perfect accuracy on each task. Error bars indicate bootstrapped 95% confidence intervals.
  • Compactor Gains: While HumPr yields 0.00 improvement on Digit Span across all models, Compactor boosts Humanlikeness by up to +0.61 (Qwen3-8B Standard) and up to +0.26 on Word Recognition.
Figure 3: Human–model similarity across models and prompt conditions. Error bars indicate bootstrapped 95% confidence intervals.
  • Micro-error divergence: In Digit Span, the conditional probability of getting a digit wrong given the previous digit was wrong is 72.5% for humans, compared to 56.1% for MemPr (isolated middle-digit swaps) and 94.1% for Compactor (hard truncation).
  • Downstream Teaching Application: When predicting which version of a biography real humans will remember best, baseline models predict humans will ace everything. Equipping Llama 3 8B Instruct with Compactor boosts Humanlikeness by +0.21 and raises pairwise document reranking accuracy to ~64.7% (a +18.0% jump over the baseline prompt, and +14.7% over random guessing).

Limitations and Future Work

While Compactor gets overall score distributions much closer to humans, its exact forgetting patterns remain unnatural, and no single chunk capacity $K$ proved optimal across every model and task. Furthermore, even the best simulator in the educational reranking task topped out below 70% accuracy, and gains weren't uniform across all model families (for instance, Gemini 3.1 Pro occasionally degraded under Compactor).

Looking ahead, the authors suggest training the memory compactor directly on human behavioral data as a learned latent bottleneck, modeling finer cognitive distinctions (like recognition vs. free recall), and expanding user simulator constraints beyond memory to include human-like reasoning limits.

Summary updated

Abstract

Language models are increasingly being deployed as user simulators, but their memory is far more reliable than that of real users. To measure this gap, we run a series of classic memory experiments from psychology on both humans and language models. Across tasks, we find that out-of-the-box language models exhibit better memory than humans, even when prompted to imitate human behavior. We then show that better prompting strategies and the use of a compactor can cause language models to forget content in a more human-like way. Using these methods, we show preliminary evidence that language models with human-like memory constraints can function as more effective user simulators in a downstream education task. Finally, we release human reference data and benchmarks to support future work on simulating human memory with language models.
BibTeX
@inproceedings{wang2026simulating,
  author = {Qihan Wang and Nicholas Tomlin and Michael Y. Hu and Brian Dillon and Tal Linzen},
  title = {{Simulating Human Memory with Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=w1TBHVhUbg},
}
Figure