atlas

Research map / Architectures and efficiency / Attention and transformers

The Evolution of Statistical Induction Heads: In-Context Learning Markov Chains

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Language model pretraining and induction · 6 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 an in-context Markov chain (ICL-MC) task to study how transformers form statistical induction heads, showing multi-phase learning (uniform, unigram plateau, bigram) and analyzing a minimal linear model.

Problem

How in-context learning emerges in transformers when the next token must be predicted from in-context bigram statistics of a randomly drawn Markov chain, and why training shows plateaus and phase transitions.

Approach

Each training sequence comes from a fresh Markov chain with a Dirichlet-sampled transition matrix, so the model must learn statistical induction heads that compute Bayes-optimal bigram posteriors; training shows hierarchical stages (uniform, unigram, bigram), and a minimal linear model explains the two-layer alignment and simplicity-bias slowdown.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train on a distribution with uninformative unigram statisticsTwo-layer transformer on ICL-MC · ICL-MC, evaluated on the original distributionconvergence speedHelped
Use one transformer layer instead of two (ablation)Transformer on ICL-MC · ICL-MCconvergence to the Bayes-optimal solutionHurt
Use a three-headed transformer for 3-gram predictionTransformer on ICL-MC · 3-gram tasklossHelped
Use a single attention head instead of multiple heads (ablation)Transformer on ICL-MC · 3-gram taskperformanceHurt
Use the minimal model instead of the two-layer transformerICL-MC model · ICL-MCtraining time to learn the bigram solutionHelped
Add a second transformer layer (ablation)Transformer on ICL-MC · ICL-MCconvergence to the correct bigram solutionHelped
Replace bigram prediction with unigram prediction (ablation)Transformer on ICL-MC · ICL-MCprediction performanceHurt
Train on 3-gram statistics instead of bigram statisticsThree-headed transformer · 3-gram tasklossHelped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic Markov chain sequences (Dirichlet prior)

Benchmarks: ICL-MC synthetic task (KL divergence to Bayes-optimal bigram and unigram strategies)

Metrics: cross-entropy loss KL divergence to strategies attention patterns

Baselines: unigram strategy bigram Bayes-optimal strategy 1-layer transformer

Builds on: induction heads relative position embeddings margin loss

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