Temporal Dependencies in In-Context Learning: The Role of Induction Heads

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Bajaj, Anooshka, Mistry, Deven Mahesh, Maini, Sahaj Singh, Aggarwal, Yash, Dickson, Billy, Tiganj, Zoran
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866912995901177856
author Bajaj, Anooshka
Mistry, Deven Mahesh
Maini, Sahaj Singh
Aggarwal, Yash
Dickson, Billy
Tiganj, Zoran
author_facet Bajaj, Anooshka
Mistry, Deven Mahesh
Maini, Sahaj Singh
Aggarwal, Yash
Dickson, Billy
Tiganj, Zoran
contents Large language models (LLMs) exhibit strong in-context learning capabilities, but how they track and retrieve information from context remains underexplored. Drawing on the free recall paradigm in cognitive science (where participants recall list items in any order), we show that several open-source LLMs consistently display a serial-recall-like pattern, assigning peak probability to tokens that immediately follow a repeated token in the input sequence. Through systematic ablation experiments, we show that induction heads, specialized attention heads that attend to the token following a previous occurrence of the current token, play an important role in this phenomenon. Removing heads with a high induction score substantially reduces the +1 lag bias, whereas ablating random heads does not reproduce the same reduction. We also show that removing heads with high induction scores impairs the performance of models prompted to do serial recall using few-shot learning to a larger extent than removing random heads. Our findings highlight a mechanistically specific connection between induction heads and temporal context processing in transformers, suggesting that these heads are especially important for ordered retrieval and serial-recall-like behavior during in-context learning.
format Preprint
id arxiv_https___arxiv_org_abs_2604_01094
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Temporal Dependencies in In-Context Learning: The Role of Induction Heads
Bajaj, Anooshka
Mistry, Deven Mahesh
Maini, Sahaj Singh
Aggarwal, Yash
Dickson, Billy
Tiganj, Zoran
Computation and Language
Artificial Intelligence
Large language models (LLMs) exhibit strong in-context learning capabilities, but how they track and retrieve information from context remains underexplored. Drawing on the free recall paradigm in cognitive science (where participants recall list items in any order), we show that several open-source LLMs consistently display a serial-recall-like pattern, assigning peak probability to tokens that immediately follow a repeated token in the input sequence. Through systematic ablation experiments, we show that induction heads, specialized attention heads that attend to the token following a previous occurrence of the current token, play an important role in this phenomenon. Removing heads with a high induction score substantially reduces the +1 lag bias, whereas ablating random heads does not reproduce the same reduction. We also show that removing heads with high induction scores impairs the performance of models prompted to do serial recall using few-shot learning to a larger extent than removing random heads. Our findings highlight a mechanistically specific connection between induction heads and temporal context processing in transformers, suggesting that these heads are especially important for ordered retrieval and serial-recall-like behavior during in-context learning.
title Temporal Dependencies in In-Context Learning: The Role of Induction Heads
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2604.01094