mlsanityData to 14 Oct 2026

Selective Induction Heads: How Transformers Select Causal Structures In Context

arXiv 2509.08184 ↗First posted 9 Sep 2025cs.LG stat.MEcited by 8

Not on the map. Why?

Abstract (arXiv)

Transformers have exhibited exceptional capabilities in sequence modeling tasks, leveraging self-attention and in-context learning. Critical to this success are induction heads, attention circuits that enable copying tokens based on their previous occurrences. In this work, we introduce a novel framework that showcases transformers' ability to dynamically handle causal structures. Existing works rely on Markov Chains to study the formation of induction heads, revealing how transformers capture causal dependencies and learn transition probabilities in-context. However, they rely on a fixed causal structure that fails to capture the complexity of natural languages, where the relationship between tokens dynamically changes with context. To this end, our framework varies the causal structure through interleaved Markov chains with different lags while keeping the transition probabilities fixed. This setting unveils the formation of Selective Induction Heads, a new circuit that endows transformers with the ability to select the correct causal structure in-context. We empirically demonstrate that transformers learn this mechanism to predict the next token by identifying the correct lag and copying the corresponding token from the past. We provide a detailed construction of a 3-layer transformer to implement the selective induction head, and a theoretical analysis proving that this mechanism asymptotically converges to the maximum likelihood solution. Our findings advance the understanding of how transformers select causal structures, providing new insights into their functioning and interpretability.

Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 24 of its 31 references that are in the map. First posted on arXiv 9 Sep 2025.

Builds on

24 of 31 references.

References · 24

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2022In-context Learning and Induction Headscited by 964
  4. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
  5. 2022Transformers learn in-context by gradient descentcited by 732
  6. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
  7. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
  8. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
  9. 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 298
  10. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 279
  11. 2023Birth of a Transformer: A Memory Viewpointcited by 161
  12. 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 146
12 more
  1. 2024The Evolution of Statistical Induction Heads: In-Context Learning Markov Chainscited by 118
  2. 2024How Transformers Learn Causal Structure with Gradient Descentcited by 118
  3. 2023Uncovering mesa-optimization algorithms in Transformerscited by 100
  4. 2023Pretraining Data Mixtures Enable Narrow Model Selection Capabilities in Transformer Modelscited by 45
  5. 2023Learning Transformer Programscited by 41
  6. 2024Attention with Markov: A Framework for Principled Analysis of Transformers via Markov Chainscited by 40
  7. 2024From Self-Attention to Markov Models: Unveiling the Dynamics of Generative Transformerscited by 34
  8. 2024Transformers Can Represent n-gram Language Modelscited by 32
  9. 2024Transformers on Markov Data: Constant Depth Sufficescited by 27
  10. 2024Understanding Transformers via N-gram Statisticscited by 26
  11. 2024How do Transformers perform In-Context Autoregressive Learning?cited by 17
  12. 2024On Limitation of Transformer for Learning HMMscited by 10

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 6.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024What needs to go right for an induction head? A mechanistic study of in-context learning circuits and their formation
  2. 2026The Topological Trouble With Transformers
  3. 2026Invariant Learning Dynamics of Transformers in Inductive Reasoning Tasks
  4. 2025Causal Head Gating: A Framework for Interpreting Roles of Attention Heads in Transformers
  5. 2026Sessa: Selective State Space Attention
  6. 2026Expressivity-Efficiency Tradeoffs for Hybrid Sequence Models
  7. 2024Rethinking Associative Memory Mechanism in Induction Head
  8. 2026CausalGate: Causal Importance Distillation for Transformer Module Pruning