Decoding the Enigma: Benchmarking Humans and AIs on the Many Facets of Working Memory

Ankur Sikarwar, Mengmi Zhang · DOI

Abstract

Working Memory (WM) serves as the essential "mental workspace" for human cognition, enabling the temporary storage, manipulation, and retrieval of information. Despite its importance, AI research has historically lacked a unified framework to evaluate WM across its diverse functional domains. This paper introduces WorM, a comprehensive benchmark comprising 10 psychophysics tasks and 1 million trials, designed to compare state-of-the-art AI architectures with human performance. Our findings reveal that while recurrent neural networks (RNNs) can emerge with biological-like phenomena such as primacy effects, significant gaps remain in flexibility and capacity constraints between artificial and biological systems.

Introduction

In cognitive science, Working Memory is defined by its ability to not just store information, but to integrate and manipulate it for complex tasks like reasoning and language comprehension. While neuroscience has spent decades mapping these processes, AI evaluation has often been fragmented, focusing on isolated tasks like the N-back test. The WorM benchmark addresses this gap by providing a systematic framework that spans visual, spatial, and temporal domains, testing functionalities from simple storage to active supervision and task switching.

The WorM Benchmark

The WorM suite consists of 10 distinct tasks designed to probe different facets of working memory:

  1. Spatial Free Recall (SFR): Recalling the locations of presented stimuli.
  2. Change Detection (CD): Identifying alterations in a visual array.
  3. Visual Item Recognition (VIR): Recognizing previously seen matrix patterns.
  4. Visual Serial Recall (VSR): Recalling patterns in a specific chronological order.
  5. Visual Serial Recognition (VSRec): Identifying if a sequence matches a previously seen order.
  6. Complex Span (CS): Maintaining memory while performing secondary distracting tasks.
  7. Spatial Coordination (SC): Integrating spatial patterns to assess symmetry.
  8. Spatial Integration (SI): Mentally combining partial visual fragments.
  9. Spatial Memory Updating (SMU): Mentally tracking and moving markers on a grid.
  10. Spatial Task Switching (STS): Dynamically switching between different rule sets.

Methodology

To evaluate AI performance, the researchers jointly trained several architectures on all 10 tasks simultaneously. The models included Recurrent Neural Networks (RNNs)—specifically vanilla RNNs, Gated Recurrent Units (GRUs), and Long Short-Term Memory (LSTM) networks—as well as vanilla Transformer (TRF) encoders.

Beyond accuracy metrics, the study employed neural population analysis. Using t-SNE visualization and Task Variance (TV) metrics, the researchers identified specialized clusters of neurons within the models. To establish causality, lesion studies were conducted by selectively disabling specific neural clusters to observe the resulting performance degradation across different task categories.

Key Results and Insights

Architectural Performance

Among the tested models, LSTM-1024 emerged as the most robust, achieving the highest joint validation accuracy. Interestingly, RNN architectures (LSTMs and GRUs) generally outperformed Transformers in the context of working memory. Transformers struggled to replicate human-like memory decay and list-length effects, whereas recurrent models more closely aligned with human behavioral trends.

Emergent Biological Effects

A significant finding was the emergence of primacy and recency effects in AI models. Despite not being explicitly trained on human behavioral data, the models naturally prioritized the first and last items in a sequence. This suggests that such effects may be an inherent property of processing sequential data under memory constraints. The primacy effect was notably stronger in AI models, becoming more pronounced as list lengths increased.

Neural Specialization

The models did not develop as monolithic processors. Instead, they organized into specialized neural clusters. For instance, specific clusters were found to specialize in spatial tasks, while others handled temporal ordering. This modularity was confirmed through lesion studies, where disabling a "spatial" cluster would impair performance on tasks like Spatial Integration but leave temporal tasks relatively unaffected.

Task Interference and Set Size

Both humans and AI models exhibited a "set size" effect, where accuracy decreased monotonically as the number of items to remember increased. Furthermore, in the Complex Span task, models showed human-like interference; performance dropped significantly when a distractor task was introduced, particularly when the distractor shared the same domain (e.g., spatial distractors interfering with spatial memory).

Discussion and Limitations

While the WorM benchmark reveals striking similarities between AI and human memory, several fundamental differences persist:

  • Temporal Processing: AI models operate in discrete time steps, whereas biological systems perceive time continuously.
  • Learning Paradigms: AI relies on backpropagation, while biological brains utilize synaptic plasticity and Hebbian learning.
  • Data Exposure: Humans learn from a continuous, multi-modal stream of real-world data, whereas these models were trained on synthetic, static images.
  • Capacity: Human working memory is famously limited (the "magic number seven"), while AI capacity is largely a function of hyperparameter choices like hidden unit count.

Conclusion

The WorM benchmark provides a vital tool for bridging the gap between cognitive psychology and artificial intelligence. By demonstrating that recurrent architectures can spontaneously develop human-like memory biases, the study paves the way for more bio-inspired models capable of the fluid, multi-tasking efficiency seen in human cognition.

Summary updated

BibTeX
@inproceedings{sikarwar2023decoding,
  author = {Ankur Sikarwar and Mengmi Zhang},
  title = {{Decoding the Enigma: Benchmarking Humans and AIs on the Many Facets of Working Memory}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=bNFhafcHLB},
}
Figure