Linking In-context Learning in Transformers to Human Episodic Memory
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
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023Qwen Technical Reportcited by 3,273
- 2023Mistral 7Bcited by 3,065
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2022In-context Learning and Induction Headscited by 930
- 2020Hopfield Networks is All You Needcited by 461
- 2015Highway Networkscited by 257
- 2023Future Lens: Anticipating Subsequent Tokens from a Single Hidden Statecited by 116
- 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 115
7 more
- 2024What needs to go right for an induction head? A mechanistic study of in-context learning circuits and their formationcited by 86
- 2023Copy Suppression: Comprehensively Understanding an Attention Headcited by 73
- 2023Scaling laws for language encoding models in fMRIcited by 68
- 2022Rethinking the Role of Scale for In-Context Learning: An Interpretability-based Case Study at 66 Billion Scalecited by 64
- 2021Relating transformers to models and neural representations of the hippocampal formationcited by 62
- 2018Emergence of grid-like representations by training recurrent neural networks to perform spatial localizationcited by 52
- 2023Is attention required for ICL? Exploring the Relationship Between Model Architecture and In-Context Learning Abilitycited by 16
Built on by
Citing papers per year: 2024: 4; 2025: 7; 2026: 4.
15 papers.
Sort:
By area:
- 2024Attention Heads of Large Language Models: A Surveycited by 65
- 2024Human-inspired Episodic Memory for Infinite Context LLMscited by 62
- 2024Assessing Episodic Memory in LLMs with Sequence Order Recall Taskscited by 9
- 2026Position: Modular Memory is the Key to Continual Learning Agentscited by 7
- 2025Emergence of Episodic Memory in Transformers: Characterizing Changes in Temporal Structure of Attention Scores During Trainingcited by 4
- 2025Schema for In-Context Learningcited by 4
- 2024Associative memory inspires improvements for in-context learning using a novel attention residual stream architecturecited by 3
- 2025Review of Hallucination Understanding in Large Language and Vision Modelscited by 2
- 2025Sequence-to-Sequence Models with Attention Mechanistically Map to the Architecture of Human Memory Searchcited by 1
- 2025Large Language Models as Model Organisms for Human Associative Learningcited by 1
- 2025Medical Interpretability and Knowledge Maps of Large Language Modelscited by 0
- 2025Beyond Semantics: How Temporal Biases Shape Retrieval in Transformer and State-Space Modelscited by 0
3 more
- 2026Temporal Dependencies in In-Context Learning: The Role of Induction Headscited by 0
- 2026Temporal Context Reinstatement Drives Episodic-Like Order Memory in Long-Context Language Modelscited by 0
- 2026Cognitive Convergence: Deep Similarities Between Large Language Models and Human Cognitioncited by 0
- 2026Cognitive Convergence: Deep Similarities Between Large Language Models and Human Cognition28 Jul 2026
- 2026Temporal Context Reinstatement Drives Episodic-Like Order Memory in Long-Context Language Models5 Jun 2026
- 2026Temporal Dependencies in In-Context Learning: The Role of Induction Heads1 Apr 2026
- 2026Position: Modular Memory is the Key to Continual Learning Agents2 Mar 2026
- 2025Beyond Semantics: How Temporal Biases Shape Retrieval in Transformer and State-Space Models26 Oct 2025
- 2025Large Language Models as Model Organisms for Human Associative Learning24 Oct 2025
- 2025Schema for In-Context Learning14 Oct 2025
- 2025Medical Interpretability and Knowledge Maps of Large Language Models13 Oct 2025
- 2025Review of Hallucination Understanding in Large Language and Vision Models26 Sep 2025
- 2025Sequence-to-Sequence Models with Attention Mechanistically Map to the Architecture of Human Memory Search20 Jun 2025
- 2025Emergence of Episodic Memory in Transformers: Characterizing Changes in Temporal Structure of Attention Scores During Training9 Feb 2025
- 2024Associative memory inspires improvements for in-context learning using a novel attention residual stream architecture19 Dec 2024
3 more
- 2024Assessing Episodic Memory in LLMs with Sequence Order Recall Tasks10 Oct 2024
- 2024Attention Heads of Large Language Models: A Survey5 Sep 2024
- 2024Human-inspired Episodic Memory for Infinite Context LLMs12 Jul 2024
- 2026Position: Modular Memory is the Key to Continual Learning Agentscited by 7
- 2025Schema for In-Context Learningcited by 4
- 2026Position: Modular Memory is the Key to Continual Learning Agents2 Mar 2026
- 2025Schema for In-Context Learning14 Oct 2025
- 2024Attention Heads of Large Language Models: A Surveycited by 65
- 2024Human-inspired Episodic Memory for Infinite Context LLMscited by 62
- 2024Assessing Episodic Memory in LLMs with Sequence Order Recall Taskscited by 9
- 2025Emergence of Episodic Memory in Transformers: Characterizing Changes in Temporal Structure of Attention Scores During Trainingcited by 4
- 2024Associative memory inspires improvements for in-context learning using a novel attention residual stream architecturecited by 3
- 2025Review of Hallucination Understanding in Large Language and Vision Modelscited by 2
- 2025Sequence-to-Sequence Models with Attention Mechanistically Map to the Architecture of Human Memory Searchcited by 1
- 2025Large Language Models as Model Organisms for Human Associative Learningcited by 1
- 2025Medical Interpretability and Knowledge Maps of Large Language Modelscited by 0
- 2025Beyond Semantics: How Temporal Biases Shape Retrieval in Transformer and State-Space Modelscited by 0
- 2026Temporal Dependencies in In-Context Learning: The Role of Induction Headscited by 0
- 2026Temporal Context Reinstatement Drives Episodic-Like Order Memory in Long-Context Language Modelscited by 0
12 most cited of 13 All 13 (JSON)
- 2026Cognitive Convergence: Deep Similarities Between Large Language Models and Human Cognition28 Jul 2026
- 2026Temporal Context Reinstatement Drives Episodic-Like Order Memory in Long-Context Language Models5 Jun 2026
- 2026Temporal Dependencies in In-Context Learning: The Role of Induction Heads1 Apr 2026
- 2025Beyond Semantics: How Temporal Biases Shape Retrieval in Transformer and State-Space Models26 Oct 2025
- 2025Large Language Models as Model Organisms for Human Associative Learning24 Oct 2025
- 2025Medical Interpretability and Knowledge Maps of Large Language Models13 Oct 2025
- 2025Review of Hallucination Understanding in Large Language and Vision Models26 Sep 2025
- 2025Sequence-to-Sequence Models with Attention Mechanistically Map to the Architecture of Human Memory Search20 Jun 2025
- 2025Emergence of Episodic Memory in Transformers: Characterizing Changes in Temporal Structure of Attention Scores During Training9 Feb 2025
- 2024Associative memory inspires improvements for in-context learning using a novel attention residual stream architecture19 Dec 2024
- 2024Assessing Episodic Memory in LLMs with Sequence Order Recall Tasks10 Oct 2024
- 2024Attention Heads of Large Language Models: A Survey5 Sep 2024
12 newest of 13 All 13 (JSON)