atlas

Research map / Architectures and efficiency / Attention and transformers

Selective Induction Heads: How Transformers Select Causal Structures in Context

ICLR 2025 · Architectures and efficiency › Attention and transformers · approach: Attention head mechanisms · 0 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.

Introduces interleaved Markov chains with varying lags but fixed transition matrix to study how 3-layer attention-only transformers select causal structure in-context via a "selective induction head".

Problem

How transformers dynamically select the correct causal structure (lag) in context when the same token pairs can have different causal relationships depending on context, which fixed-structure Markov chain studies do not capture.

Approach

A synthetic task of interleaved Markov chains with a shared transition matrix but different lags per sequence; a 3-layer disentangled/attention-only transformer construction aggregates normalized transition probabilities per lag and the final layer copies the token at the selected lag (selective induction head), asymptotically approximating maximum likelihood lag selection.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use the three-layer constructed transformer with the optimal number of second-layer headsInterleaved Markov Chain next-token prediction · Contiguous lagsKL divergenceNo clear effect
Train a three-layer disentangled transformer from scratchInterleaved Markov Chain next-token prediction · Contiguous and non-contiguous lagsKL divergenceNo clear effect
Train a three-layer standard transformer from scratchInterleaved Markov Chain next-token prediction · Contiguous and non-contiguous lagsKL divergenceNo clear effect
Use one second-layer head instead of the construction's optimal number (ablation)Constructed transformer · Interleaved Markov Chain next-token predictionKL divergenceHurt
Use one second-layer head instead of the optimal number (ablation)Trained transformers · Interleaved Markov Chain next-token predictionKL divergenceHelped
Use the alternative single-head construction for two lags (ablation)Constructed transformer · Two-lag Interleaved Markov ChainKL divergenceNo clear effect
Reduce the transformer from three layers to two layers (ablation)Standard transformer · Interleaved Markov Chain next-token predictionKL divergenceHurt
Add layers beyond three (ablation)Standard transformer · Interleaved Markov Chain next-token predictionKL divergenceNo clear effect
Increase second-layer head count up to the number of lags (ablation)Standard transformer · Five-lag Interleaved Markov ChainKL divergenceHelped
Add second-layer heads beyond the number of lags (ablation)Standard transformer · Five-lag Interleaved Markov ChainKL divergenceNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: synthetic interleaved Markov chain sequences

Benchmarks: synthetic interleaved Markov chain task

Metrics: KL divergence between true and predicted next-token distribu

Baselines: maximum likelihood estimator Bayesian model average 2-layer attention-only transformer n-gram estimation

Builds on: induction heads disentangled transformers in-context Markov chain bigram learning

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