mlsanityData to 7 Oct 2026

Linking In-context Learning in Transformers to Human Episodic Memory

arXiv 2405.14992 ↗First posted 23 May 2024cs.CL cs.LGcited by 15

Not on the map. Why?

Abstract (arXiv)

Understanding connections between artificial and biological intelligent systems can reveal fundamental principles of general intelligence. While many artificial intelligence models have a neuroscience counterpart, such connections are largely missing in Transformer models and the self-attention mechanism. Here, we examine the relationship between interacting attention heads and human episodic memory. We focus on induction heads, which contribute to in-context learning in Transformer-based large language models (LLMs). We demonstrate that induction heads are behaviorally, functionally, and mechanistically similar to the contextual maintenance and retrieval (CMR) model of human episodic memory. Our analyses of LLMs pre-trained on extensive text data show that CMR-like heads often emerge in the intermediate and late layers, qualitatively mirroring human memory biases. The ablation of CMR-like heads suggests their causal role in in-context learning. Our findings uncover a parallel between the computational mechanisms of LLMs and human memory, offering valuable insights into both research fields.

Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 19 of its 64 references that are in the map. First posted on arXiv 23 May 2024.

Builds on

19 of 64 references.

References · 19

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  5. 2023Qwen Technical Reportcited by 3,273
  6. 2023Mistral 7Bcited by 3,065
  7. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
  8. 2022In-context Learning and Induction Headscited by 930
  9. 2020Hopfield Networks is All You Needcited by 461
  10. 2015Highway Networkscited by 257
  11. 2023Future Lens: Anticipating Subsequent Tokens from a Single Hidden Statecited by 116
  12. 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 115
7 more
  1. 2024What needs to go right for an induction head? A mechanistic study of in-context learning circuits and their formationcited by 86
  2. 2023Copy Suppression: Comprehensively Understanding an Attention Headcited by 73
  3. 2023Scaling laws for language encoding models in fMRIcited by 68
  4. 2022Rethinking the Role of Scale for In-Context Learning: An Interpretability-based Case Study at 66 Billion Scalecited by 64
  5. 2021Relating transformers to models and neural representations of the hippocampal formationcited by 62
  6. 2018Emergence of grid-like representations by training recurrent neural networks to perform spatial localizationcited by 52
  7. 2023Is attention required for ICL? Exploring the Relationship Between Model Architecture and In-Context Learning Abilitycited by 16

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 4; 2025: 7; 2026: 4.

15 papers.

Sort:

By area: