NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Predicting the Emergence of Induction Heads in Language Model Pretraining

Tatsuya Aoyama, Ethan Gotlieb Wilcox, Nathan Schneider

Introduction

Modern Large Language Models (LLMs) possess a remarkable ability known as In-Context Learning (ICL), allowing them to adapt to new tasks using only a few prompt examples. Mechanistically, this capability is largely driven by Induction Heads (IHs)—specialized attention circuits that implement a "copying" logic. For instance, if a model processes the sequence [A][B]...[A], an induction head prompts it to predict [B] as the next token.

While the importance of IHs is well-documented, their appearance during pretraining is notoriously abrupt. This "phase transition" resembles water suddenly freezing into ice. Until recently, researchers lacked a precise method to predict when this transition occurs or what specific properties of natural language trigger it. Understanding this phenomenon is critical for optimizing training efficiency and dataset curation.

Experimental Approach

To demystify the emergence of IHs, researchers combined empirical observations with rigorous statistical modeling across three experimental setups:

  1. Natural Data Scaling: Models ranging from 50M to 350M parameters were trained from scratch on the English subcorpus of CC100, while models up to 7B parameters (like the Pythia suite) were analyzed. By varying batch sizes and context lengths, the team used Piecewise Linear Functions (PWLF) to pinpoint the exact training step—the "knot"—where IH scores suddenly spike.
  2. Semi-Natural Controlled Studies: To isolate specific data properties, the researchers generated synthetic datasets mimicking natural language. This allowed them to precisely tune Frequency (how often a pattern appears) and Reliability (how consistently [A] is followed by [B]).
  3. Synthetic Markov Processes: Using optimized transition matrices, the team tested whether specific linguistic features—such as local dependency, categoriality (e.g., words belonging to groups like "colors"), and Zipfian (long-tail) distributions—were necessary or sufficient for IH formation.

Key Findings

1. The Size-Agnostic Predictive Law

Perhaps the most surprising discovery is that the emergence of IHs is agnostic to model size. Whether a model has 50 million or 7 billion parameters, induction heads form at the exact same point in training, provided the batch and context sizes are identical.

The authors derived a highly accurate predictive equation ($r = .986$) for the number of tokens ($N_{PT}$) required for this emergence: $$N_{PT} = T \cdot B^{0.63} \cdot C^{0.38}$$ Here, $B$ represents batch size, $C$ is context size, and $T$ is a model-agnostic constant. This establishes that IH emergence is a fundamental property of training dynamics rather than parameter count.

2. Reliability Trumps Frequency

For an induction head to form, mere repetition of a pattern is insufficient; the pattern must be reliable. If token [A] is followed by [B] 50% of the time, IHs form much more readily than if [A] is followed by a random assortment of tokens—even if the absolute frequency of [A]...[A] occurrences remains constant. The researchers identified a strict "decision boundary" in the Frequency-Reliability space: below a certain reliability threshold, IHs never form, regardless of training duration.

3. Linguistic Catalysts

While local dependency is a prerequisite for IH formation, natural language properties act as crucial modulators. Zipfian distributions (the natural frequency distribution of words) and categoriality help catalyze the emergence of IHs, particularly when the training data sits dangerously close to the failure boundary in the Frequency-Reliability space.

4. The "V-Shaped" Loss Curve

Interestingly, earlier emergence of IHs does not universally guarantee better final model performance. The relationship between IH emergence and final validation loss is non-monotonic. There exists a "critical batch size" beyond which artificially accelerating the formation of IHs actually degrades the model's final performance, resulting in a V-shaped loss curve.

Limitations and Future Directions

While this study provides a robust framework for understanding in-context learning mechanics, several avenues remain for future exploration:

  • Compute Constraints: The models trained from scratch were relatively small (up to 350M parameters). Although the predictive law held for 7B parameter models during inference analysis, validating these findings on 70B+ parameter models is a necessary next step.
  • Tokenization Noise: Subword tokenization methods (like BPE) can artificially inflate bigram repetitions. Future research should investigate how alternative tokenization strategies, such as character-level or orthographic tokenization, influence IH dynamics.
  • Retrieval Difficulty in Long Contexts: In exceptionally large context windows, "distractor" tokens may complicate the retrieval process, potentially delaying IH emergence. The current predictive law does not yet fully account for this scaling challenge.

Summary updated

BibTeX
@inproceedings{aoyama2026predicting,
  author = {Tatsuya Aoyama and Ethan Gotlieb Wilcox and Nathan Schneider},
  title = {{Predicting the Emergence of Induction Heads in Language Model Pretraining}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=50E1hqm6qk},
}
Figure