Pretraining Data Statistics Shape the Phases of Learning Entity Comparison in Language Models
Yik Siu Chan, Jing Huang, Yanai Elazar, Atticus Geiger
Mech Interp @ ICML 2026
TL;DR. Language models learn entity comparison in three distinct phases (frequency heuristic, position heuristic, then the correct algorithm) and pretraining data statistics causally determine which phases emerge and when.
Abstract. How does data shape language model (LM) behavior throughout pretraining? We investigate this question through a case study on entity comparison, e.g., Between France and Brazil, which country is larger?, across nine comparison tasks spanning five entity types. We begin with controlled experiments in which we train small LMs (164M parameters) on mixtures of natural text from pretraining corpora and synthetic task data. Our analysis identifies three distinct phases of learning: (1) an early phase where the LM selects entities by frequency, (2) a middle phase where the LM selects entities by position in the prompt (first vs. last mentioned entity), and (3) a late phase where the LM selects the entity that is the correct answer. We show that the emergence of these three phases is causally determined by statistical properties of the training data. With small amounts of task-specific synthetic data, we observe only the first two phases and the model fails to learn the task; with large amounts, the model jumps directly from the frequency-based heuristic to solving the task correctly. Moreover, changing the entity frequency distribution from a naturally occurring Zipfian distribution (a small number of entities are very common and the vast majority are rare) to a uniform one weakens the frequency phase and speeds up learning of the task. Lastly, we show that the three phases of training dynamics from our controlled experiments appear in the open source model OLMo-2 32B. Together, our findings demonstrate that properties of pretraining data are causal drivers of heuristic learning and show that small-scale synthetic experiments can predict training dynamics at larger scales.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:46 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper studies how pretrain data shape the learning dynamics of LLMs, focusing on the entity-comparison task. Using controlled training on natural-text and synthetic-task mixtures, it identifies three learning phases for the model to make comparisons: a token-frequency-based heuristic at the beginning, followed by a position-based heuristic, and finally comparison with the "correct algorithm". The paper makes several interesting observations about how the amount of task-specific data and the entity-frequency distribution affect entity comparison, and when different phases emerge during training. The paper also analyzes OLMo checkpoints and observes a similar phase structure. Reviewers differ in their assessments, but generally agree that the paper presents an interesting and original case study with a clear experimental design, although they raise concerns about the narrow scope of the findings and the large-scale validation.
As the reviewers noted, the main strength of the paper is its clean controlled setup with direct intervention on training data, which provides useful evidence that data properties causally affect entity-comparison strategies. The paper is also generally clear and presents a coherent account of the three phases.
However, I currently share some concerns raised by the reviewers. One important concern is about the scope and generality of the findings. The controlled experiments focus primarily on a single task with task-specific synthetic supervision. It remains unclear whether the same phase structure and data effects extend to other entity types beyond countries, broader tasks, or more realistic pretraining conditions. The connection from this case study to practical pretraining usage is not yet clear. The paper should more carefully scope its claims and explain why this task is representative, or provide evidence on an additional task that strengthens the broader relevance. Another concern is about the analysis on OLMo. The data interventions are causal at the smaller 124M scale, but the OLMo results are observational and cannot establish the same causal relationship. The authors should distinguish the causal conclusion supported by the controlled experiments from the OLMo results. It would also help to clarify the effect of architecture and training recipe differences between GPT-2-scale models and OLMo. Relatedly, the paper's analysis is purely behavioral. It identifies the strategies in model outputs but does not investigate how these heuristics are represented internally. Further mechanistic analysis, such as activation-level probing, would deepen the scientific contribution and help distinguish this work from a narrow behavioral case study. Reviewers also noted several methodological and presentation questions. For example, representing positional bias through the intercept may entangle it with other systematic output biases, and the phase boundaries are visually identified rather than formally defined. The paper would benefit from clarifying these design choices and testing their robustness where feasible.
For the author response, the critical issues to address would be to explain the broader relevance and practical implications of the entity-comparison case study, clarify the causal vs. observational evidence across scales, and discuss the limitations of the purely behavioral analysis. I would also like to see stronger evidence or convincing reasoning that the observed phases extend beyond this narrow scope, potentially a discussion of how mechanistic analysis could support the conclusions. The study is solid and carefully executed, but in its current format I am not convinced that its scope and practical relevance meet the NeurIPS acceptance bar. If the authors can properly address these concerns, I would be open to revising my assessment.
Final justification
During the discussion, the authors broadened the analysis with results on 9 tasks across 5 entity types and a second causal experiment on a new entity. They also reran OLMo-2 from initialization with dense early checkpoints, resolving the reviewer's concerns about the left-censored frequency phase. Evaluating every pair in both orders and introducing order-flip categorization also addresses the concern that the positional-bias intercept reflected entity-level confounds. The rebuttal shows causal evidence, goes beyond the controlled small-scale experiments, and adds exploratory probes of frequency representations and attention-head mediation. All three reviewers are positive after the rebuttal.
The rebuttal also appropriately narrows the central claim. The phases should be understood as recurring regimes rather than a universal fixed sequence, since some task variants skip, reverse, or do not complete them. The phase labels are also less meaningful where the feature effects are near the noise floor. These limitations should be made clear in the revision, but they do not outweigh the value of the overall contribution.
I therefore recommend acceptance.
Read meta-review
Meta-review
This paper studies how pretrain data shape the learning dynamics of LLMs, focusing on the entity-comparison task. Using controlled training on natural-text and synthetic-task mixtures, it identifies three learning phases for the model to make comparisons: a token-frequency-based heuristic at the beginning, followed by a position-based heuristic, and finally comparison with the "correct algorithm". The paper makes several interesting observations about how the amount of task-specific data and the entity-frequency distribution affect entity comparison, and when different phases emerge during training. The paper also analyzes OLMo checkpoints and observes a similar phase structure. Reviewers differ in their assessments, but generally agree that the paper presents an interesting and original case study with a clear experimental design, although they raise concerns about the narrow scope of the findings and the large-scale validation.
As the reviewers noted, the main strength of the paper is its clean controlled setup with direct intervention on training data, which provides useful evidence that data properties causally affect entity-comparison strategies. The paper is also generally clear and presents a coherent account of the three phases.
However, I currently share some concerns raised by the reviewers. One important concern is about the scope and generality of the findings. The controlled experiments focus primarily on a single task with task-specific synthetic supervision. It remains unclear whether the same phase structure and data effects extend to other entity types beyond countries, broader tasks, or more realistic pretraining conditions. The connection from this case study to practical pretraining usage is not yet clear. The paper should more carefully scope its claims and explain why this task is representative, or provide evidence on an additional task that strengthens the broader relevance. Another concern is about the analysis on OLMo. The data interventions are causal at the smaller 124M scale, but the OLMo results are observational and cannot establish the same causal relationship. The authors should distinguish the causal conclusion supported by the controlled experiments from the OLMo results. It would also help to clarify the effect of architecture and training recipe differences between GPT-2-scale models and OLMo. Relatedly, the paper's analysis is purely behavioral. It identifies the strategies in model outputs but does not investigate how these heuristics are represented internally. Further mechanistic analysis, such as activation-level probing, would deepen the scientific contribution and help distinguish this work from a narrow behavioral case study. Reviewers also noted several methodological and presentation questions. For example, representing positional bias through the intercept may entangle it with other systematic output biases, and the phase boundaries are visually identified rather than formally defined. The paper would benefit from clarifying these design choices and testing their robustness where feasible.
For the author response, the critical issues to address would be to explain the broader relevance and practical implications of the entity-comparison case study, clarify the causal vs. observational evidence across scales, and discuss the limitations of the purely behavioral analysis. I would also like to see stronger evidence or convincing reasoning that the observed phases extend beyond this narrow scope, potentially a discussion of how mechanistic analysis could support the conclusions. The study is solid and carefully executed, but in its current format I am not convinced that its scope and practical relevance meet the NeurIPS acceptance bar. If the authors can properly address these concerns, I would be open to revising my assessment.
Final justification
During the discussion, the authors broadened the analysis with results on 9 tasks across 5 entity types and a second causal experiment on a new entity. They also reran OLMo-2 from initialization with dense early checkpoints, resolving the reviewer's concerns about the left-censored frequency phase. Evaluating every pair in both orders and introducing order-flip categorization also addresses the concern that the positional-bias intercept reflected entity-level confounds. The rebuttal shows causal evidence, goes beyond the controlled small-scale experiments, and adds exploratory probes of frequency representations and attention-head mediation. All three reviewers are positive after the rebuttal.
The rebuttal also appropriately narrows the central claim. The phases should be understood as recurring regimes rather than a universal fixed sequence, since some task variants skip, reverse, or do not complete them. The phase labels are also less meaningful where the feature effects are near the noise floor. These limitations should be made clear in the revision, but they do not outweigh the value of the overall contribution.
I therefore recommend acceptance.
1 comment
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors analyze how statistical properties of pretraining data shape the learning dynamics of language models, using entity comparison as a case study, e.g., "Between Country A and Country B, which country is larger?" They train 124M-parameter GPT-2-scale models from scratch on mixtures of the OLMo-2 stage-1 pretraining corpus and synthetic task-specific data, and validate their findings on the OLMo-2 model family.
They identify three sequential phases: a frequency phase, where the model predicts the more frequently mentioned entity; a position phase, where it defaults to the first- or last-mentioned entity; and a correct algorithm phase, where it answers correctly. These phases appear consistently across model scales and always in the same order.
They show that at least 0.1% synthetic task data is needed for the correct algorithm phase to emerge, and that changing the entity frequency distribution from Zipfian to uniform eliminates the frequency phase entirely. To track which strategy dominates at each checkpoint, they fit a logistic regression over three features and report drop-one accuracy over time.
In the OLMo-2 validation, only the 13B and 32B models successfully reach the correct algorithm phase, at around 800B to 1T tokens, while the 1B and 7B models remain stuck in the position phase.
Strengths and weaknesses
The paper is well-structured with a clear and compelling story: it introduces a cleanly defined task, establishes causal findings through controlled interventions at small scale, and then validates them across five model sizes. The interventional design at 124M scale is a genuine strength, as the authors directly manipulate training data composition rather than merely observing correlations, allowing causal claims that most probing studies cannot make. The multi-scale validation across the OLMo-2 family further strengthens confidence that the three-phase structure is not an artifact of the small controlled setting.
The OLMo-2 analysis remains purely observational, meaning the authors cannot establish that data distribution causally drives the phase structure at large scale without actually retraining those models. Relatedly, the first available OLMo-2 checkpoints are already several billion tokens into training, so the frequency phase is likely underobserved and its peak may be missed entirely. On the methodological side, encoding positional bias as the regression intercept entangles it with any other systematic output bias the model may have, and phase boundaries are identified visually rather than through a formal change-point detection method. Finally, the analysis is purely behavioral: the authors identify what the model predicts at each phase but provide no mechanistic account of how these heuristics are encoded internally, for instance through activation patching or circuit-level analysis.
Questions
The regression analysis identifies behavioral correlates of each phase but does not explain how the heuristics are encoded internally. Have you explored activation patching or probing of internal representations to localize where, for instance, the frequency heuristic is stored, and whether it persists as a latent feature even after the model transitions to the correct algorithm phase?
For factual tasks, models are highly task-dependent. Have you tested one model on a second task to see if it generalizes? (not an entire sweep)
Limitations
As noted in the previous boxes, the mechanistic aspects of the phases.
Final justification
The rerun of OLMo-2 1B from initialization with dense early checkpoints resolves my concern that the frequency phase was left-censored, and evaluating every pair in both orders, together with the order-flip categorization, rules out entity-level confounds in the positional-bias intercept. What remains unresolved is the generality of the central claim: across the 18 new task variants, phases skip, reverse, or never complete, and the authors themselves now describe them as recurring regimes rather than a fixed sequence. The weaker precedence claim holds in nearly all variants. Relatedly, argmax drop-one accuracy has no noise floor: where all three features sit near 1 to 2 points the label is not meaningful, and these are the same variants that break the ordering.
The controlled interventions are a nice contribution and the rebuttal was responsive, but the central claim narrowed during review, so I keep my score at 4.
Formatting concerns
There are no formatting concerns.
Here are some papers that are relevant work analyzing training dynamics:
- How Do Large Language Models Acquire Factual Knowledge During Pretraining?
- How do language models learn facts? Dynamics, curricula and hallucinations
- Time Course MechInterp: Analyzing the Evolution of Components and Knowledge in Large Language Models
- LLM Circuit Analyses Are Consistent Across Training and Scale
4 comments
Rebuttal
Thank you for your review. We provide a detailed response below.
Olmo results are purely observational.
- This is a good point. We agree that the OLMo-2 analysis is observational, and we do not claim that it establishes causal effects at scale. It is infeasible to conduct the same controlled pretraining interventions on OLMo-2, which is why we performed the small-scale experiments.
- A contribution of our work is to bridge these complementary settings. We establish causal insights from controlled, small-scale training, and show that consistent patterns are observed at scale. We will clarify this distinction more explicitly in the revised paper.
Positional bias has confounders.
- We want to clarify that every entity pair is evaluated in both orders (e.g., both (Brazil, France) and (France, Brazil) appear in the regression data). Therefore, any systematic bias toward specific entities or tokenizations (such as frequency, scalar value, token length) is counterbalanced across positions. So the regression intercept captures the model’s residual preference for entity position, which is precisely the position feature used in our analysis.
- To make this more explicit, we report the fraction of unordered entity pairs falling into four categories: in both orders of an entity pair, the model always chooses the first entity, always chooses the second entity, always chooses the correct entity, and always chooses the incorrect entity.
- In the table, we select representative tasks and checkpoints where the position feature is strong, along with a late checkpoint where the position feature is weak.
| Task | Ckpt | Position drop-one accuracy | First position | Second position | Always correct | Always incorrect |
|---|---|---|---|---|---|---|
| People birth year | 84B | 32.7 | 0.1 | 72.5 | 19.5 | 7.9 |
| Movie box office | 1T | 7.9 | 42.3 | 0.3 | 43.2 | 14.2 |
| University founding year | 1T | 8.2 | 0.9 | 34.1 | 34.6 | 30.4 |
| University student population | 5T | 8.8 | 37.2 | 0.3 | 53.2 | 9.3 |
| Country area | 5T | 0.1 | 8.2 | 4.6 | 78.1 | 9.1 |
- When the model exhibits a strong positional effect, many unordered pairs fall into the first-position or second-position categories, meaning that the selected entity changes when the prompt order is reversed. In contrast, entity-specific biases would manifest as high values in the always correct or always incorrect categories, since the model would consistently select the same entity regardless of its position.
Phase boundaries & Q2 generalization to another task.
- We define the phases quantitatively using the drop-one accuracy metric: at each checkpoint, the dominant feature is the one with the highest decrease in accuracy when dropped. We report this number for all additional results presented in the rebuttals.
- For the observational OLMo-2 analysis, we expand the evaluation to eight additional tasks across four additional entity types: people, movies, U.S. states, and universities. We evaluate four model sizes (1B, 7B, 13B, and 32B), as well as both larger and smaller variants of the comparison questions. The full results are reported in the tables in our response to Reviewer 1.
- For the controlled pretraining experiments, we additionally train GPT-2-small models on a people-birth-year comparison task. This task differs substantially from the original country-area comparison, allowing us to evaluate the generality of our claims. By manipulating the frequency distributions of people in both the natural and synthetic training data, we again observe that data statistics causally affect the early learning trajectory.
Thanks for the additional experiments. Across the 18 task variants in the new tables, the phases often skip, reverse, or never complete, so the claim that they always occur in the same order isn't supported by these results. A weaker precedence claim, that frequency-dominance precedes the other phases where it occurs and that phases can be skipped, seems to hold in nearly all 18 variants. Therefore, I would keep my score at 4. And my ask for a mechanistic analysis was out of scope and would make for an interesting future work.
Thank you for addressing our rebuttals. We agree that the expanded evaluation supports a more nuanced conclusion than the original wording. Rather than claiming that all three phases always occur in the same order, the broader set of tasks shows that frequency-, position-, and value-based behavior are recurring behavioral regimes whose appearance depends on task difficulty, entity type, and model scale. The strongest conclusion we can make is that the frequency behavior typically emerges early in training, whereas the correct algorithm behavior generally emerges later, if present.
The four-checkpoint table in our response above was intended as a compact summary under the rebuttal space constraints, but it does not capture the full learning trajectories because different tasks transition at different checkpoints. We will include the complete trajectory plots in the revised paper. To better summarize the full checkpoint grid within the rebuttal, the table below reports the first checkpoint at which each feature becomes dominant for each task variant. N/A indicates that a feature never becomes dominant.
Larger variants.
| Entity | Comparison domain | First frequency-dominant ckpt | First position-dominant ckpt | First value-dominant ckpt | Final dominant feature |
|---|---|---|---|---|---|
| Country | Area | 9B | 17B | 59B | Value |
| People | Birth year | 9B | 26B | 17B | Value |
| Movie | Box office | N/A | 17B | 9B | Value |
| Movie | Release year | 9B | 17B | 51B | Value |
| State | Area | 9B | 17B | 59B | Value |
| State | Population | 59B | 9B | 101B | Value |
| University | Endowment | 9B | 26B | N/A | Position |
| University | Founding year | 9B | 17B | 5000B | Value |
| University | Student population | 9B | 17B | 34B | Position |
Smaller variants.
| Entity | Comparison domain | First frequency-dominant ckpt | First position-dominant ckpt | First value-dominant ckpt | Final dominant feature |
|---|---|---|---|---|---|
| Country | Area | 9B | 17B | 999B | Value |
| People | Birth year | 9B | 26B | 17B | Position |
| Movie | Box office | 9B | 34B | N/A | Position |
| Movie | Release year | 9B | 17B | 42B | Value |
| State | Area | 9B | 17B | 101B | Value |
| State | Population | 42B | 9B | 26B | Value |
| University | Endowment | 9B | 26B | 1997B | Frequency |
| University | Founding year | 9B | 76B | N/A | Position |
| University | Student population | 9B | 17B | 101B | Value |
We observe that many tasks still exhibit the same frequency, position, value ordering, but this pattern is not universal and likely depends on factors like task difficulty. Some tasks never reach the value phase, while others do not exhibit an initial frequency phase.
We also ran two additional analyses after our first response.
1. Early OLMo-2 1B checkpoints.
We agree with the concern that even the earliest public OLMo-2 checkpoints are already several billion tokens into training (e.g., the first OLMo-2 1B checkpoint is at step 1000 and has already seen around 3B tokens), which may miss part of the initial learning phases. We reran the official OLMo-2 1B stage-1 recipe from initialization to step 1000, saving checkpoints every 100 steps. We then evaluated the early checkpoints on all comparison tasks, and show the results below. Each cell reports the dominant feature and its drop-one accuracy in parentheses.
| Task | Step 200 | Step 400 | Step 600 | Step 800 | Step 1000 |
|---|---|---|---|---|---|
| Country area | Frequency (5.2) | Frequency (8.3) | Frequency (7.1) | Frequency (6.4) | Frequency (6.0) |
| Person birth year | Frequency (5.6) | Frequency (9.2) | Frequency (9.2) | Frequency (9.2) | Frequency (5.4) |
| Movie box office | Value (1.6) | Value (3.4) | Value (2.2) | Value (5.4) | Value (4.2) |
| Movie release year | Frequency (0.6) | Frequency (2.0) | Frequency (1.4) | Frequency (1.7) | Frequency (0.8) |
| State area | Frequency (21.3) | Frequency (11.9) | Frequency (12.4) | Frequency (10.9) | Frequency (8.3) |
| State population | Value (1.9) | Value (0.2) | Value (1.8) | Value (2.4) | Value (1.3) |
| University endowment | Frequency (7.7) | Frequency (8.3) | Frequency (6.3) | Frequency (5.2) | Frequency (5.7) |
| University founding year | Frequency (7.9) | Frequency (3.6) | Frequency (2.8) | Frequency (9.2) | Frequency (10.1) |
| University student population | Frequency (5.6) | Frequency (6.4) | Frequency (5.6) | Frequency (6.2) | Frequency (6.8) |
These results support the interpretation that frequency-based behavior is primarily an early training phenomenon. Seven of the nine tasks exhibit frequency behavior within the first 1000 optimization steps.
2. Mechanistic analysis.
We appreciate the suggestions for mechanistic analysis, as it is something on our mind too and we agree that it would complement the behavioral findings. We used the additional time to run two exploratory experiments, one probing the representation of the frequency heuristic and one testing a mechanistic hypothesis for positional bias.
For frequency, we trained linear probes on activations from OLMo-2 32B. The probes predict (i) which country is more frequent and (ii) which country has the larger area. We find that both signals are consistently decodable throughout training, with area becoming substantially more decodable at later checkpoints. The table below reports probe accuracy on the held out entity set, and the layer with the highest accuracy in parentheses.
Interestingly, the frequency signal remains present even after the model transitions to the correct algorithm phase, even when it is no longer the dominant predictor of model behavior. However, we do not interpret this as evidence that there is an explicit representation of frequency, as good probe performance can reflect other entity properties. One possibility suggested by recent work is that repeated exposure during pretraining leads to richer representations, from which frequency can be linearly recovered (Merullo et al., 2025, https://arxiv.org/abs/2504.12459v1).
| Binary probe target | 9B | 151B | 1502B | 5T |
|---|---|---|---|---|
| More frequent entity | 66.5 (L42) | 71.6 (L36) | 74.4 (L40) | 75.1 (L46) |
| Larger-area entity | 66.6 (L44) | 78.2 (L44) | 85.3 (L42) | 88.2 (L44) |
For position, we test the hypothesis that positional bias is mediated by specific attention heads. At an OLMo-1B checkpoint exhibiting strong positional bias, we rank attention heads by attention from the final token to the position-favored entity and ablate the top-k heads. We measure how much ablation reduces the model's preference for the position-favored entity. Specifically, the table reports the delta in (i) logit difference between the position-favored and non-favored entities, and (ii) the rate at which the model chooses the position-favored entity. Ablating the selected heads reduces both measures substantially more than random heads.
| Ckpt | Setting | k | logit diff, top | logit diff, random | choice rate, top | choice rate, random |
|---|---|---|---|---|---|---|
| 19B | Strong position bias | 1 | 0.619 | 0.009 | 10.5 | 0.0 |
| 19B | Strong position bias | 4 | 0.717 | -0.000 | 12.2 | 0.0 |
| 19B | Strong position bias | 16 | 1.206 | 0.012 | 22.5 | 0.3 |
| 49B | Weak position bias | 1 | 0.012 | 0.006 | 0.3 | 0.1 |
| 49B | Weak position bias | 4 | 0.127 | -0.023 | 3.0 | -0.5 |
| 49B | Weak position bias | 16 | 0.347 | -0.050 | 8.0 | -1.2 |
Together, these experiments provide preliminary evidence that the observed heuristics are reflected in model internals, while a more complete mechanistic analysis remains an interesting direction for future work.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper uses comparison-based testing to show that language models (concretely, GPT-2 and OLMo) present different learning phases throughout pretraining, but these are governed by the data distribution.
Strengths and weaknesses
This is a very good paper.
Strengths
- Interesting and original findings and framing.
- Good, robust experimentation with controlled settings to perform sufficient ablation tests.
- Ablating beyond zipfian-style distributions is a plus, along with the consequences it entails.
Note: Zipfian distributions are not exclusive to English, and this is a very well-known fact. I would not claim this as part of the findings.
Weaknesses
I can only find very minor issues with this work, and they are all related to writing, not experimentation.
- Results and discussion are not fully separated, and this harms objectivity (i.e., paper starts with 'we expect to find X, we design experiments to find X, we observed Y which entails X, ... and we interpret it as X, therefore X').
- Abstract: it is very awkward: opens with a question and transitions immediately to a declarative sentence (We answer this...). This can be reframed--and can illustrate how your experiment is not necessarily limited to countries (re: questions below).
- Suggestion: the introduction's findings are really good, but they likely can be made crisper and more organised so that you have more space for the conclusion. Right now it is hard to determine contributions at a first glance, and the work has discussion and conclusions melded.
Overall I think the authors did an excellent job in this work; though I do advise addressing the paper's structure to retain objectivity.
Questions
- This resut does likely depend on the architecture itself. OLMo and GPT-2 are no longer standard (if there is even one now). I'm curious to see if you have considered this as part of your conclusions. A comparison could be useful nonetheless.
- L76 (and intro, abstract) use examples from countries. But L66 indicates 'entities (e.g., countries)'. Which other entities? I recommend adding varied examples. If there are only countries, this needs to be added as a disclaimer earlier in the work.
Limitations
Yes
Formatting concerns
None
1 comment
Rebuttal
Thank you for your positive review and helpful suggestions on the paper’s presentation. We provide a detailed response below.
Generality beyond countries.
- We use the term entity in our task formulation (L66) to make the framework applicable to general entity-comparison tasks, and we had experimented with other entity types during the early stages of this work. However, the submitted paper primarily analyzes country entities. We have expanded our analysis to additional entity types, and we detail the full suite of tasks in our response to Reviewer 1 (gN55).
- For the observational OLMo-2 analysis, we expanded the evaluation to eight additional tasks across four additional entity types: people, movies, U.S. states, and universities. We evaluate four model sizes (1B, 7B, 13B, and 32B) as well as both larger and smaller variants of the comparison questions. The full results are reported in our response to Reviewer 1.
- For the controlled pretraining experiments, we additionally trained GPT-2-small models on a people birth year comparison task. This task differs substantially from the original country area comparison, which allows us to evaluate the generality of our claims. By manipulating the frequency distributions of people in both the natural and synthetic training data, we again observe that data statistics causally affect the early learning trajectory.
Results depend on architecture.
- Thank you for this suggestion. GPT-2 and OLMo-2 differ in architecture details, model scale, optimization, and training recipe. The similar behavioral patterns across the two model families suggest that the results are not specific to one exact training setup. However, this comparison does not isolate architecture, because the models also differ along several other dimensions.
- Therefore, we were careful not to make claims about model architecture. We believe this is an important question for future work: studying the relationship between specific architectures and learning dynamics.
Writing and presentation issues.
- We agree that the empirical findings and their interpretation should be separated more clearly. We will revise the introduction and reorganize the paper so that the Results sections focus on the observed patterns, while we discuss the broader interpretations and implications in the Discussion section.
- Here, we present a revised abstract that (1) makes it clear that the experiments are not limited to country-area comparison and (2) rewords the opening to improve the flow.
Revised abstract:
The relationship between pretraining data and language model (LM) behavior over training remains poorly understood. We study this by examining how models learn entity comparison tasks, such as comparing countries by area or people by birth year. We begin with controlled experiments in which we train small LMs (124M parameters) on mixtures of natural text and synthetic comparison data. We identify three distinct phases of learning: (1) an early phase in which the LM selects entities by frequency, (2) a middle phase where the LM selects entities by position in the prompt (first vs. last), and (3) a late phase where the LM selects the entity that is the correct answer to the question. We show that the emergence of these three phases is controlled by statistical properties of the training data. With small amounts of task-specific synthetic data, we observe only the first two phases and the model fails to learn the task; with large amounts, the model jumps directly from the frequency-based heuristic to solving the task correctly. Moreover, if we modify the frequency of entities in data from a naturally occurring Zipfian distribution (a small number of entities are very common and the vast majority are rare) to a uniform distribution, the first phase disappears and the model learns the task more quickly. Finally, we find the same three phases of learning in the pretraining of open-sourced OLMo models from 1B to 32B parameters, on nine tasks across five entity types. Together, our findings demonstrate that properties of pretraining data are causal drivers of heuristic learning and show that small-scale synthetic experiments can predict training dynamics at larger scales.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 1/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper analyzes how pretraining data statistics shape when a language model adopts different strategies for an entity comparison task. It identifies three distinct strategies at different stages of pretraining: (1) an early phase where the more frequently-mentioned entity is picked; (2) a middle phase where the entity is picked based on its position (first vs. last); (3) a "late" phase where the correct entity is picked by comparing the corresponding scalar property. These findings are observed in controlled settings with synthetic task sentences by fitting an L1-regularized logistic regression for predicting the language model's binary choice from hand-picked features and reporting per-feature "drop-one accuracy". Similar findings are observed on OLMo-2 public checkpoints, implying a consistency of the ordering of these three phases.
Strengths and weaknesses
The findings of this analysis are original and quantified via a technically sound methodology. The paper is overall well written and easy to follow.
While the empirical analysis is interesting, it applies a controlled pretraining and probing methodology on a single task (mainly synthetic) and it's unclear how the corresponding findings transfer to other practical tasks and scenarios. As the authors admit in the limitation section, the observed phase structure may not generalize to tasks with different structures. As a result, the paper's scope is narrow and the corresponding findings might be of limited interest for the wider NeurIPs audience. It would be recommended to widen the applicability of this paper and rewrite the paper to clarify the impact of these findings for practitioners.
Questions
What are the implications of the current findings for recent recipies where models are pre-trained beyond Chinchilla-optimal budgets?
Limitations
yes
Final justification
I would like to thank the authors for their thorough responses. After carefully reviewing all reviews and the corresponding author comments, I decided to change my score to 4. The rebuttal addresses my concern of narrow scope via results for 9 tasks across 5 entity types, a second causal experiment on a new entity, and concrete findings.
Formatting concerns
No concerns
1 comment
Rebuttal
Thank you for your review. We provide a detailed response below.
Scope: 8 additional tasks across 4 new entity types.
- We performed our analysis on 9 tasks spanning 5 entity types: countries, movies, people, U.S. states, universities. The new tasks cover comparing box office revenue, movie release year, birth year, state area, state population, university endowment, founding year, and student population. We chose the tasks that are distinct from comparing areas in order to test the generality of our claims.
- Following our experimental setup, we evaluate these tasks on Olmo-2 models of 4 sizes (1B, 7B, 13B, 32B parameters). Because of the response length limit, we report the results of the 32B model at representative early checkpoints (9B and 84B tokens seen), intermediate checkpoint (1T tokens seen), and late checkpoint (5T tokens seen). We will include complete results in the paper revision.
- To avoid relying on visual labels, we define the phase at a checkpoint as the active feature with the largest drop-one accuracy. Each cell below reports the dominant feature and its drop-one accuracy in parentheses. For example, Frequency (3.7) means that frequency is the dominant feature at that checkpoint, and removing frequency from the Position/Frequency/Value regression decreases accuracy by 3.7 percentage points.
Comparison tasks choosing the entity with larger magnitude, OLMo-2 32B:
| Entity | Comparison domain | 9B | 84B | 1T | 5T | Acc. at 5T |
|---|---|---|---|---|---|---|
| Country | Area | Frequency (3.7) | Value (3.5) | Value (15.2) | Value (19.4) | 86.9% |
| Person | Birth year | Frequency (8.4) | Position (32.7) | Value (1.3) | Value (29.6) | 84.4% |
| Movie | Box office | Position (2.6) | Position (4.1) | Position (7.9) | Value (9.1) | 72.4% |
| Movie | Release year | Frequency (1.3) | Position (7.3) | Value (12.7) | Value (24.0) | 85.3% |
| U.S. state | Area | Frequency (3.5) | Frequency (11.3) | Value (17.5) | Value (29.8) | 87.3% |
| U.S. state | Population | Position (1.1) | Position (3.1) | Position (6.5) | Value (4.5) | 85.2% |
| University | Endowment | Frequency (4.5) | Position (2.9) | Position (3.9) | Position (6.4) | 67.1% |
| University | Founding year | Frequency (4.9) | Position (13.3) | Position (8.2) | Value (5.1) | 60.1% |
| University | Student population | Frequency (5.6) | Position (11.1) | Value (5.2) | Position (8.8) | 80.4% |
- We additionally test the smaller variant of the comparison question. For many domains, the more frequently mentioned entity is also more likely to have the larger or higher-valued attribute. So this helps test that frequency importance is not merely a proxy for task accuracy.
Comparison tasks choosing the entity with smaller magnitude, OLMo-2 32B:
| Entity | Comparison domain | 9B | 84B | 1T | 5T | Acc. at 5T |
|---|---|---|---|---|---|---|
| Country | Area | Frequency (3.6) | Position (8.5) | Value (9.4) | Value (17.9) | 84.3% |
| Person | Birth year | Frequency (9.1) | Position (28.9) | Value (6.4) | Value (4.9) | 78.7% |
| Movie | Box office | Frequency (3.2) | Frequency (1.5) | Position (13.5) | Position (29.7) | 59.8% |
| Movie | Release year | Frequency (1.5) | Position (16.5) | Position (5.4) | Value (14.0) | 81.3% |
| U.S. state | Area | Frequency (2.9) | Frequency (9.7) | Value (6.3) | Value (23.4) | 84.0% |
| U.S. state | Population | Position (0.7) | Position (5.6) | Value (3.6) | Value (5.9) | 85.6% |
| University | Endowment | Frequency (7.9) | Frequency (3.0) | Frequency (1.9) | Frequency (3.5) | 64.9% |
| University | Founding year | Frequency (5.1) | Position (6.8) | Position (14.2) | Position (26.7) | 60.7% |
| University | Student population | Frequency (5.3) | Value (1.2) | Value (4.3) | Value (11.0) | 79.1% |
Scope: pretraining on a different entity and task
- We additionally trained GPT-2-small models from scratch on a second controlled task: comparing people by birth year. This changes both the entity type and the target property relative to country-area comparison. An example prompt is: “Between Socrates and Barack Obama, who was born more recently? Answer: ”
- As in the original controlled experiments, we vary the entity-frequency distributions of the natural-text corpus and the synthetic task data, producing four (Zipfian × Uniform) conditions. “Uniform natural text” means a corpus that is constructed to contain approximately uniform mention counts for person entities. The table reports the dominant feature and its drop-one accuracy, averaged over three training seeds.
| Training setup | Step 200 | Step 1000 | Step 2000 | Step 4000 | Step 6000 |
|---|---|---|---|---|---|
| Zipfian natural + Zipfian synthetic | Frequency (13.1) | Frequency (18.1) | Value (4.3) | Value (15.4) | Value (6.9) |
| Zipfian natural + Uniform synthetic | Frequency (6.0) | Position (9.7) | Value (6.6) | Value (21.8) | Value (23.4) |
| Uniform natural + Zipfian synthetic | Frequency (10.4) | Frequency (9.0) | Value (6.5) | Value (8.6) | Value (12.8) |
| Uniform natural + Uniform synthetic | Frequency (1.6) | Position (14.1) | Value (2.9) | Value (4.2) | Value (4.5) |
- These results support the broader causal conclusion on a different entity type and property: manipulating entity-frequency statistics changes which heuristics emerge and when. When the synthetic comparison data is Zipfian, frequency is the dominant early feature. When the synthetic comparison data is uniform, the early frequency effect is much smaller, especially with natural text with uniform people entities.
Broader impact and applicability.
- We believe that the additional results help clarify both the scope and the practical relevance of our work. First, our goal is to understand the origins of failure modes in language models and identify data statistics as a driver of model learning heuristics. The controlled experiments establish this relationship causally at small scale, while the OLMo results show similar patterns at scale. We do not claim that the same dynamics will hold for every task, architecture, or scale, but we believe our work provides a concrete framework for studying how pretraining data affects model behavior.
- Second, our results point toward more intentional design of pretraining data mixtures. Heavy-tailed entity distributions can make frequency-based heuristics useful early in training and can delay learning the underlying task, especially for long-tail entities. Increasing the amount of task-relevant data, rebalancing entity frequencies, or using a curriculum may therefore help models learn target capabilities more efficiently than adding more samples from the same distribution. These results do not imply that all pretraining data should be made uniform. Rather, they suggest that targeted balancing and upsampling may reduce the amount of training or model capacity needed for task-relevant behavior to emerge.
- Regarding Chinchilla-optimal budgets, our results suggest that the benefits of training beyond Chinchilla-optimal budgets depend not only on the number of additional tokens but also on their task-relevant content. Extended training can allow sufficiently capable models to transition from shortcuts to learning the intended behavior, but smaller models may rely on heuristics even after extensive token exposure. On the other hand, controlled changes to task-signal density and entity-frequency can alter these transitions at small scale. This suggests that careful data-mixture design may be a more efficient route to some capabilities than either extending training on an unchanged distribution or increasing model size alone.
Comments on the paper
1 comment
We thank the area chair and all reviewers for their thoughtful and constructive feedback.
Our paper studies how pretraining data statistics affect language model behavior through the case study of entity comparison. A central contribution is that we connect two complementary settings: controlled small-scale experiments, where we can directly intervene on the training data and establish causal effects, and larger OLMo-2 models, where we test whether related learning dynamics appear under realistic pretraining. The small-scale setting lets us manipulate data statistics and develop hypotheses about learning dynamics; the OLMo-2 analysis then asks whether those hypotheses are consistent with what we observe across larger models and scales.
We appreciate that the reviewers described the work as original, technically sound, and carefully executed, with a clean controlled setup and direct interventions on training data. We also agree with the main concerns raised during the discussion, which led to several substantial additions to the paper. We expanded the evaluation beyond country-area comparison to eight additional tasks across five entities, and added a second controlled pretraining experiment on people-birth-year comparison. We also analyzed earlier OLMo-2 1B checkpoints to better characterize the earliest learning dynamics, added exploratory mechanistic analyses on frequency and positional behavior, and addressed the methodological concerns regarding positional bias and phase definition.
Just as importantly, we will revise the paper’s framing. We will emphasize that the causal conclusions come from the controlled small-scale interventions, while OLMo-2 provides broader observational support. We will also separate empirical results from their interpretation more clearly, and revise the discussion to avoid implying that every task exhibits the same complete three-phase trajectory.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Dear AC,
Thank you for the metareview. Below we summarize the revisions and additions that directly address the issues you highlighted.
Scope and generality. We have expanded the OLMo-2 analysis to eight additional comparison tasks across people, movies, U.S. states, and universities, evaluating both larger and smaller variants (18 task variants total). We also added a second controlled pretraining experiment on people-birth-year comparison. These results broaden the study substantially beyond country area comparison. They show that frequency-, position-, and value-based behavior recur across many tasks, although the exact trajectory is task-dependent and some phases may be weak or absent.
Causal vs. observational evidence. We agree that the causal evidence comes from the controlled small-scale experiments, while the OLMo-2 analysis provides only observational evidence at larger scales. This distinction is intentional. Controlled retraining of frontier-scale models is currently infeasible for most academic groups, so we use tractable small-scale experiments to isolate causal effects and generate hypotheses about learning dynamics. We then evaluate whether those hypotheses are consistent with publicly available large-scale checkpoints. We view these two settings as complementary and a valuable scientific methodology: small-scale experiments establish causal relationships, while open large-scale models provide the best available opportunity to test whether the same behavioral patterns appear under realistic pretraining.
Architecture and training-recipe differences. We will clarify that GPT-2-small and OLMo-2 differ in architecture, scale, optimization, tokenizer, and training recipe. The comparison therefore does not isolate the effect of architecture; rather, it shows that related behavioral patterns arise across two substantially different training settings.
Methodological clarifications. For positional bias, we will clarify that each entity pair is evaluated in both orders, which counterbalances entity-specific biases such as frequency, value, and tokenization. For the concern that phase boundaries are only visually defined, we define the dominant phase at each checkpoint quantitatively as the feature with the largest drop-one accuracy in the Position/Frequency/Value regression, rather than relying on visual labels alone.
Mechanistic analysis. To complement the behavioral analysis, we added two exploratory experiments: one probing if entity frequency is linearly decodable throughout training, and another investigating whether positional behavior is mediated by a small subset of attention heads. We will add a discussion about additional mechanistic investigations and believe they will be a promising direction for future work.
We appreciate your guidance throughout the discussion and will ensure that these discussions are reflected clearly in the revised manuscript.