NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Pretraining Data Statistics Shape the Phases of Learning Entity Comparison in Language Models

Yik S Chan, Jing Huang, Yanai Elazar, Atticus Geiger

NeurIPS page · Open on the map

Category: Interpretability & Model Adaptation › Transformer In-Context Learning · Type: empirical study · Keywords: language model pretraining, learning dynamics, entity comparison, data statistics, synthetic data experiments

Areas: LLM Reasoning › Efficient Reasoning › In-Context Learning; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Persona Simulation Evaluation

Summary

The paper shows that statistical properties of pretraining data drive three distinct learning phases in language models on entity comparison tasks, and that synthetic data experiments can predict these dynamics at larger scales.

Explained to a 5-year-old

The researchers gave a small computer brain some stories and made-up questions like "Which country is bigger, France or Brazil?". They watched how the brain answered these questions as it learned, and they saw three different steps. First, the brain chose the word that appeared most often in the stories. Next, it started to pick the first or last word in the question instead of the most common one. Finally, it learned to give the correct answer, and they found that how often words appeared changed these steps.

Explained to a 5-year-old, longer

The researchers wanted to know how the words a computer brain sees during training affect the way it learns to answer questions about comparing things. They created small computer brains and fed them a mix of normal stories and special made-up questions like "Which is larger, France or Brazil?". As the brain learned, the researchers noticed three clear stages. In the first stage, the brain paid most attention to the words that appeared most often in the stories. In the second stage, it began to rely on whether a word was at the beginning or end of the question, ignoring how common it was. In the third stage, the brain finally learned to pick the correct answer to the question. They also tried changing how often different words appeared, finding that when words were all equally common, the first stage disappeared and the brain learned faster. The same three stages were even seen when they looked at larger, publicly available computer brains, showing that the findings are not limited to the small models they built.

For a technical reader

The work investigates how the statistical distribution of entities in pretraining corpora influences the learning trajectory of language models on comparison tasks. By training small models on mixed natural and synthetic data, the authors observe three phases: frequency-driven selection, positional bias, and correct answer identification. They demonstrate that altering the frequency distribution (e.g., moving from Zipfian to uniform) can eliminate the early frequency phase and accelerate learning, and they validate the phases in larger OLMo models. The results suggest that data composition is a causal factor in heuristic learning and that controlled synthetic experiments can predict dynamics at scale.

Problem

How does the composition of pretraining data affect the way language models learn to answer entity comparison questions? The paper seeks to characterize the phases of learning that emerge and the causal role of data statistics.

Method

The authors train small language models on mixtures of natural text and synthetic entity comparison data, and examine how varying data statistics-such as entity frequency distributions-affect the emergence of learning phases.

Results

The study finds three distinct learning phases-frequency-based, position-based, and correct answer selection-driven by data statistics; small amounts of synthetic data produce only the first two phases, while large amounts cause a direct jump to correct answers, and uniform entity frequencies remove the early frequency phase, speeding up learning, with the same phases observed in larger OLMo models.

Contributions

It identifies causal data properties that shape learning phases in LMs, demonstrates that synthetic data experiments can predict dynamics at scale, and shows that altering entity frequency distributions changes the emergence of these phases.

Practical relevance

Understanding data statistics can guide the design of pretraining corpora to steer model learning and reduce undesirable heuristic behavior.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction