The Evolution of Statistical Induction Heads: In-Context Learning Markov Chains
Not on the map. Why?
Abstract (arXiv)
Large language models have the ability to generate text that mimics patterns in their inputs. We introduce a simple Markov Chain sequence modeling task in order to study how this in-context learning (ICL) capability emerges. In our setting, each example is sampled from a Markov chain drawn from a prior distribution over Markov chains. Transformers trained on this task form statistical induction heads which compute accurate next-token probabilities given the bigram statistics of the context. During the course of training, models pass through multiple phases: after an initial stage in which predictions are uniform, they learn to sub-optimally predict using in-context single-token statistics (unigrams); then, there is a rapid phase transition to the correct in-context bigram solution. We conduct an empirical and theoretical investigation of this multi-phase process, showing how successful learning results from the interaction between the transformer's layers, and uncovering evidence that the presence of the simpler unigram solution may delay formation of the final bigram solution. We examine how learning is affected by varying the prior distribution over Markov chains, and consider the generalization of our in-context learning of Markov chains (ICL-MC) task to n-grams for n > 2.
Key facts. Cited by 115 papers in the map (data through 7 Oct 2026). Builds on 33 of its 47 references that are in the map. First posted on arXiv 16 Feb 2024.
Builds on
33 of 47 references.
References · 33
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,597
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2017A Closer Look at Memorization in Deep Networkscited by 936
- 2022In-context Learning and Induction Headscited by 930
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 2022Transformers learn in-context by gradient descentcited by 714
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
- 2023Are Emergent Abilities of Large Language Models a Mirage?cited by 515
21 more
- 2020The Pitfalls of Simplicity Bias in Neural Networkscited by 349
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
- 2023In-Context Learning Creates Task Vectorscited by 302
- 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
- 2019SGD on Neural Networks Learns Functions of Increasing Complexitycited by 203
- 2022Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limitcited by 184
- 2018Deep learning generalizes because the parameter-function map is biased towards simple functionscited by 180
- 2023Birth of a Transformer: A Memory Viewpointcited by 154
- 2022High-dimensional Asymptotics of Feature Learning: How One Gradient Step Improves the Representationcited by 146
- 2023SGD learning on neural networks: leap complexity and saddle-to-saddle dynamicscited by 142
- 2023Sudden Drops in the Loss: Syntax Acquisition, Phase Transitions, and Simplicity Bias in MLMscited by 121
- 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 115
- 2022General-Purpose In-Context Learning by Meta-Learning Transformerscited by 102
- 2023Grokking as the Transition from Lazy to Rich Training Dynamicscited by 102
- 2023How Many Pretraining Tasks Are Needed for In-Context Learning of Linear Regression?cited by 93
- 2024In-Context Language Learning: Architectures and Algorithmscited by 86
- 2023A Tale of Two Circuits: Grokking as Competition of Sparse and Dense Subnetworkscited by 78
- 2023Dichotomy of Early and Late Phase Implicit Biases Can Provably Induce Grokkingcited by 76
- 2023How Do Transformers Learn In-Context Beyond Simple Functions? A Case Study on Learning with Representationscited by 72
- 2024Attention with Markov: A Framework for Principled Analysis of Transformers via Markov Chainscited by 39
- 2023A Mechanism for Sample-Efficient In-Context Learning for Sparse Retrieval Taskscited by 17
Built on by
Citing papers per year: 2024: 30; 2025: 58; 2026: 27.
115 papers.
Sort:
By area:
- 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Modelscited by 113
- 2024Attention Heads of Large Language Models: A Surveycited by 65
- 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 44
- 2024Differentiation and Specialization of Attention Heads via the Refined Local Learning Coefficientcited by 39
- 2024In-Context Learning with Representations: Contextual Generalization of Trained Transformerscited by 36
- 2024Large Language Models as Markov Chainscited by 33
- 2025Transformers Learn to Implement Multi-step Gradient Descent with Chain of Thoughtcited by 32
- 2024Iteration Head: A Mechanistic Study of Chain-of-Thoughtcited by 31
- 2025Next-Latent Prediction Transformers Learn Compact World Modelscited by 29
- 2024Transformers on Markov Data: Constant Depth Sufficescited by 26
- 2024A Percolation Model of Emergence: Analyzing Transformers Trained on a Formal Languagecited by 26
- 2025The emergence of sparse attention: impact of data distribution and benefits of repetitioncited by 25
38 more
- 2024Implicit Geometry of Next-token Prediction: From Language Sparsity Patterns to Model Representationscited by 24
- 2024Understanding Transformers via N-gram Statisticscited by 23
- 2024Can In-context Learning Really Generalize to Out-of-distribution Tasks?cited by 23
- 2024Toward Understanding In-context vs. In-weight Learningcited by 19
- 2024Differential learning kinetics govern the transition from memorization to generalization during in-context learningcited by 19
- 2024Understanding the Language Model to Solve the Symbolic Multi-Step Reasoning Problem from the Perspective of Buffer Mechanismcited by 15
- 2025Learning In-context n-grams with Transformers: Sub-n-grams Are Near-stationary Pointscited by 15
- 2024Implicit Optimization Bias of Next-Token Prediction in Linear Modelscited by 14
- 2024Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformerscited by 14
- 2024Trained Transformer Classifiers Generalize and Exhibit Benign Overfitting In-Contextcited by 14
- 2025HyperTree Planning: Enhancing LLM Reasoning via Hierarchical Thinkingcited by 14
- 2025Context parroting: A simple but tough-to-beat baseline for foundation models in scientific machine learningcited by 14
- 2025Saddle-to-Saddle Dynamics Explains A Simplicity Bias Across Neural Network Architecturescited by 14
- 2025When can in-context learning generalize out of task distribution?cited by 13
- 2025Language Model Behavioral Phases are Consistent Across Architecture, Training Data, and Scalecited by 13
- 2024Distributional Associations vs In-Context Reasoning: A Study of Feed-forward and Attention Layerscited by 12
- 2025Dynamics of Transient Structure in In-Context Linear Regression Transformerscited by 12
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformercited by 12
- 2026On the origin of neural scaling laws: from random graphs to natural languagecited by 12
- 2024Can Transformers Learn n-gram Language Models?cited by 11
- 2025Beyond Induction Heads: In-Context Meta Learning Induces Multi-Phase Circuit Emergencecited by 10
- 2025From Markov to Laplace: How Mamba In-Context Learns Markov Chainscited by 9
- 2025From Condensation to Rank Collapse: A Two-Stage Analysis of Transformer Training Dynamicscited by 9
- 2024Transformers Handle Endogeneity in In-Context Linear Regressioncited by 8
- 2025Rethinking Circuit Completeness in Language Models: AND, OR, and ADDER Gatescited by 8
- 2025Mechanistic evaluation of Transformers and state space modelscited by 8
- 2024How Transformers Get Rich: Approximation and Dynamics Analysiscited by 7
- 2025Distilled Pretraining: A modern lens of Data, In-Context Learning and Test-Time Scalingcited by 7
- 2025Just-in-time and distributed task representations in language modelscited by 7
- 2025Selective Induction Heads: How Transformers Select Causal Structures In Contextcited by 7
- 2026To Use or not to Use Muon: How Simplicity Bias in Optimizers Matterscited by 7
- 2024N-Gram Induction Heads for In-Context RL: Improving Stability and Reducing Data Needscited by 6
- 2025From Shortcut to Induction Head: How Data Diversity Shapes Algorithm Selection in Transformerscited by 6
- 2024In-Context Learning of Linear Systems: Generalization Theory and Applications to Operator Learningcited by 5
- 2025What Happens During the Loss Plateau? Understanding Abrupt Learning in Transformerscited by 5
- 2025Position: We Need An Algorithmic Understanding of Generative AIcited by 5
- 2025Predicting the Emergence of Induction Heads in Language Model Pretrainingcited by 5
- 2026Large Vision-Language Models Get Lost in Attentioncited by 5
50 most cited of 115 All 115 (JSON)
- 2026Why Do Conventional World Models Fail to Learn Cellular Automata?30 Sep 2026
- 2026What does a Bayes-filtered transformer believe? A predictive Monte Carlo approach19 Jul 2026
- 2026A Minimal Interpretable Architecture for Zero-Shot Reconstruction of Dynamical Systems16 Jul 2026
- 2026Invariant Learning Dynamics of Transformers in Inductive Reasoning Tasks13 Jul 2026
- 2026Sequential Correlations Change In-Context Learning: Effective Context Length and Architectural Mismatch4 Jul 2026
- 2026Induction Heads Interpolate N-Grams2 Jul 2026
- 2026Dendritic In-Context Learning in a Single-Layer Spiking Neural Network2 Jul 2026
- 2026Structure and Scale in Simplicial Sequence Modelling31 May 2026
- 2026Fine-Tuning Dynamics of In-Context Factual Recall in Transformers26 May 2026
- 2026Effective Context in Transformers: An Analysis of Fragmentation and Tokenization13 May 2026
- 2026Position: Let's Develop Data Probes to Fundamentally Understand How Data Affects LLM Performance11 May 2026
- 2026Learning Less Is More: Premature Upper-Layer Attention Specialization Hurts Language Model Pretraining11 May 2026
38 more
- 2026Large Vision-Language Models Get Lost in Attention7 May 2026
- 2026Distinct mechanisms underlying in-context learning in transformers14 Apr 2026
- 2026Transformers Learn Latent Mixture Models In-Context via Mirror Descent12 Apr 2026
- 2026Contrast Matters: Understanding Robustness of In-Context Fine-Tuning to Target-Context Relatedness2 Apr 2026
- 2026From Density Matrices to Phase Transitions in Deep Learning: Spectral Early Warnings and Interpretability31 Mar 2026
- 2026Understanding Contextual Recall in Transformers: How Finetuning Enables In-Context Reasoning over Pretraining Knowledge21 Mar 2026
- 2026Mechanistic Foundations of Goal-Directed Control16 Mar 2026
- 2026To Use or not to Use Muon: How Simplicity Bias in Optimizers Matters28 Feb 2026
- 2026Incremental Learning of Sparse Attention Patterns in Transformers22 Feb 2026
- 2026Transformers for dynamical systems learn transfer operators in-context21 Feb 2026
- 2026Quantum Maximum Likelihood Prediction via Hilbert Space Embeddings20 Feb 2026
- 2026Gaussian Match-and-Copy: A Minimalist Benchmark for Studying Transformer Induction7 Feb 2026
- 2026Learning Nonlinear Systems In-Context: From Synthetic Data to Real-World Motor Control6 Feb 2026
- 2026How Do Transformers Learn to Associate Tokens: Gradient Leading Terms Bring Mechanistic Interpretability27 Jan 2026
- 2026On the origin of neural scaling laws: from random graphs to natural language15 Jan 2026
- 2025Saddle-to-Saddle Dynamics Explains A Simplicity Bias Across Neural Network Architectures23 Dec 2025
- 2025From Shortcut to Induction Head: How Data Diversity Shapes Algorithm Selection in Transformers21 Dec 2025
- 2025Softmax as Linear Attention in the Large-Prompt Regime: a Measure-based Perspective12 Dec 2025
- 2025Testing Transformer Learnability on the Arithmetic Sequence of Rooted Trees1 Dec 2025
- 2025Towards Understanding Transformers in Learning Random Walks28 Nov 2025
- 2025Understanding the Staged Dynamics of Transformers in Learning Latent Structure24 Nov 2025
- 2025Predicting the Emergence of Induction Heads in Language Model Pretraining21 Nov 2025
- 2025Next-Latent Prediction Transformers Learn Compact World Models8 Nov 2025
- 2025In-Context Learning Without Copying7 Nov 2025
- 2025On the Emergence of Induction Heads for In-Context Learning2 Nov 2025
- 2025Transformers Provably Learn Directed Acyclic Graphs via Kernel-Guided Mutual Information29 Oct 2025
- 2025Language Model Behavioral Phases are Consistent Across Architecture, Training Data, and Scale28 Oct 2025
- 2025Optimality and NP-Hardness of Transformers in Learning Markovian Dynamical Functions21 Oct 2025
- 2025Facts in Stats: Impacts of Pretraining Diversity on Language Model Generalization17 Oct 2025
- 2025Medical Interpretability and Knowledge Maps of Large Language Models13 Oct 2025
- 2025Softmax ≥ Linear: Transformers may learn to classify in-context by kernel gradient descent12 Oct 2025
- 2025From Condensation to Rank Collapse: A Two-Stage Analysis of Transformer Training Dynamics8 Oct 2025
- 2025Limit Analysis for Symbolic Multi-step Reasoning Tasks with Information Propagation Rules Based on Transformers27 Sep 2025
- 2025Induction Signatures Are Not Enough: A Matched-Compute Study of Load-Bearing Structure in In-Context Learning26 Sep 2025
- 2025Is In-Context Learning Learning?12 Sep 2025
- 2025Selective Induction Heads: How Transformers Select Causal Structures In Context9 Sep 2025
- 2025Distilled Pretraining: A modern lens of Data, In-Context Learning and Test-Time Scaling1 Sep 2025
- 2025Just-in-time and distributed task representations in language models28 Aug 2025
50 newest of 115 All 115 (JSON)
- 2025Transformers Learn to Implement Multi-step Gradient Descent with Chain of Thoughtcited by 32
- 2024Iteration Head: A Mechanistic Study of Chain-of-Thoughtcited by 31
- 2024Understanding the Language Model to Solve the Symbolic Multi-Step Reasoning Problem from the Perspective of Buffer Mechanismcited by 15
- 2025HyperTree Planning: Enhancing LLM Reasoning via Hierarchical Thinkingcited by 14
- 2024Distributional Associations vs In-Context Reasoning: A Study of Feed-forward and Attention Layerscited by 12
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformercited by 12
- 2025Rethinking Circuit Completeness in Language Models: AND, OR, and ADDER Gatescited by 8
- 2025Distilled Pretraining: A modern lens of Data, In-Context Learning and Test-Time Scalingcited by 7
- 2025CoT-ICL Lab: A Synthetic Framework for Studying Chain-of-Thought Learning from In-Context Demonstrationscited by 2
- 2026Understanding Contextual Recall in Transformers: How Finetuning Enables In-Context Reasoning over Pretraining Knowledgecited by 2
- 2025Cognitive Activation and Chaotic Dynamics in Large Language Models: A Quasi-Lyapunov Analysis of Reasoning Mechanismscited by 1
- 2026Invariant Learning Dynamics of Transformers in Inductive Reasoning Taskscited by 1
12 most cited of 13 All 13 (JSON)
- 2026Invariant Learning Dynamics of Transformers in Inductive Reasoning Tasks13 Jul 2026
- 2026Understanding Contextual Recall in Transformers: How Finetuning Enables In-Context Reasoning over Pretraining Knowledge21 Mar 2026
- 2025Distilled Pretraining: A modern lens of Data, In-Context Learning and Test-Time Scaling1 Sep 2025
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformer1 Jun 2025
- 2025Rethinking Circuit Completeness in Language Models: AND, OR, and ADDER Gates15 May 2025
- 2025HyperTree Planning: Enhancing LLM Reasoning via Hierarchical Thinking5 May 2025
- 2025Cognitive Activation and Chaotic Dynamics in Large Language Models: A Quasi-Lyapunov Analysis of Reasoning Mechanisms15 Mar 2025
- 2025Transformers Learn to Implement Multi-step Gradient Descent with Chain of Thought28 Feb 2025
- 2025CoT-ICL Lab: A Synthetic Framework for Studying Chain-of-Thought Learning from In-Context Demonstrations21 Feb 2025
- 2024Rethinking Associative Memory Mechanism in Induction Head16 Dec 2024
- 2024Distributional Associations vs In-Context Reasoning: A Study of Feed-forward and Attention Layers5 Jun 2024
- 2024Iteration Head: A Mechanistic Study of Chain-of-Thought4 Jun 2024
12 newest of 13 All 13 (JSON)
- 2026Large Vision-Language Models Get Lost in Attentioncited by 5
- 2026Large Vision-Language Models Get Lost in Attention7 May 2026
- 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Modelscited by 113
- 2024Attention Heads of Large Language Models: A Surveycited by 65
- 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 44
- 2024Differentiation and Specialization of Attention Heads via the Refined Local Learning Coefficientcited by 39
- 2024In-Context Learning with Representations: Contextual Generalization of Trained Transformerscited by 36
- 2024Large Language Models as Markov Chainscited by 33
- 2024Transformers on Markov Data: Constant Depth Sufficescited by 26
- 2024A Percolation Model of Emergence: Analyzing Transformers Trained on a Formal Languagecited by 26
- 2025The emergence of sparse attention: impact of data distribution and benefits of repetitioncited by 25
- 2024Implicit Geometry of Next-token Prediction: From Language Sparsity Patterns to Model Representationscited by 24
- 2024Understanding Transformers via N-gram Statisticscited by 23
- 2024Can In-context Learning Really Generalize to Out-of-distribution Tasks?cited by 23
12 most cited of 96 All 96 (JSON)
- 2026What does a Bayes-filtered transformer believe? A predictive Monte Carlo approach19 Jul 2026
- 2026A Minimal Interpretable Architecture for Zero-Shot Reconstruction of Dynamical Systems16 Jul 2026
- 2026Sequential Correlations Change In-Context Learning: Effective Context Length and Architectural Mismatch4 Jul 2026
- 2026Induction Heads Interpolate N-Grams2 Jul 2026
- 2026Dendritic In-Context Learning in a Single-Layer Spiking Neural Network2 Jul 2026
- 2026Structure and Scale in Simplicial Sequence Modelling31 May 2026
- 2026Fine-Tuning Dynamics of In-Context Factual Recall in Transformers26 May 2026
- 2026Effective Context in Transformers: An Analysis of Fragmentation and Tokenization13 May 2026
- 2026Position: Let's Develop Data Probes to Fundamentally Understand How Data Affects LLM Performance11 May 2026
- 2026Learning Less Is More: Premature Upper-Layer Attention Specialization Hurts Language Model Pretraining11 May 2026
- 2026Distinct mechanisms underlying in-context learning in transformers14 Apr 2026
- 2026Transformers Learn Latent Mixture Models In-Context via Mirror Descent12 Apr 2026
12 newest of 96 All 96 (JSON)