atlas

Research map / Large language models / Language, safety and interpretability

Linking In-context Learning in Transformers to Human Episodic Memory

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: Reasoning mechanisms and failure modes · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Links induction heads in Transformer LLMs to the CMR model of human episodic memory, showing CMR-like asymmetric contiguity attention biases in intermediate-to-late layers and a causal ablation effect on ICL.

Problem

Whether and how the emergent behavior and mechanisms of interacting attention heads (induction heads) relate to human episodic memory, given that Transformers are rarely linked to biological cognition.

Approach

Shows that the CMR model of free recall can be rewritten as a two-layer Q-composition induction head, then quantifies per-head similarity to CMR via a CMR distance (fitted CRP-like attention lag profile) and finds CMR-like heads in intermediate-to-late layers that are causally relevant for in-context learning.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Fit attention scores with CMR rather than a Gaussian functionTop 20 induction heads across 12 models · Top 20 induction headsdistance: 1.0 -> 0.11Helped
Fit attention scores with CMR rather than a Gaussian functionTop 50 induction heads across 12 models · Top 50 induction headsdistance: 0.98 -> 0.05Helped
Fit attention scores with CMR rather than a Gaussian functionTop 100 induction heads across 12 models · Top 100 induction headsdistance: 0.98 -> 0.12Helped
Fit attention scores with CMR rather than a Gaussian functionTop 200 induction heads across 12 models · Top 200 induction headsdistance: 0.97 -> 0.12Helped
Ablate the top 10% of CMR-like heads instead of the same number of randomly selected heads (ablation)GPT2, Pythia models, and Qwen-7B · C4 sampled textsICL scoreHurt

Surprising findings

Limitations

Experimental setup

Datasets: Google C4 (processed version) PEERS dataset (human free recall, reproduced from prior work)

Benchmarks: C4 ICL score (loss at 500th token minus loss at 50th token)

Metrics: CMR distance (MSE vs CMR-fitted CRP) induction-head matching score copying score ICL score percentage of heads with CMR distance below threshold

Baselines: Gaussian distance baseline

Builds on: contextual maintenance and retrieval model induction heads Q-composition TransformerLens

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy