# Understanding the Role of Reasoning Data in Pretraining

Atomic facts versus reasoning traces in pretraining

Jianhao Huang, Allan Zhang, Ali Payani, Baharan Mirzasoleiman · arXiv · 2026-11-14

- **Problem** Reasoning traces cover only some facts, and no principled rule says how to split pretraining data between atomic facts and reasoning traces. Held-out facts may never appear inside a chain.
- **Method** The authors train every fact atomically but show only a subset inside reasoning traces. They derive the best weight for atomic signals in a linear transformer surrogate.
- **Results** In the linear surrogate, the optimal atomic weight rises with reasoning-chain length and falls with the held-out fraction. The trend is checked empirically but not proven for the full transformer.

## Why the split between atomic and reasoning data is hard

Reasoning traces teach a model to compose facts across several steps, while atomic examples give broader coverage of those facts. Under a fixed training budget these two objectives compete, because more reasoning data leaves less budget for learning individual facts. Reasoning data are moving into pretraining, so the mix now shapes the base model rather than only the post-training stage.

Longer reasoning therefore makes compositional training more valuable and broad factual coverage more important at the same time. So the best allocation depends on both reasoning-chain length and reasoning-trace coverage, the fraction of facts that appear inside reasoning traces.

This task stands in for practical behaviors such as tracking entities through a narrative or executing programs. Each state transition counts as an atomic fact, and every transition appears as an atomic training example. Reasoning traces, however, are built from only a subset of the transitions. The remaining transitions are called held transitions, and the model sees them only individually during training.

A held transition is therefore a learned fact that never appears inside a chain, which separates factual coverage from reasoning composition.

The authors first test this tradeoff empirically with a one-layer transformer that uses softmax attention and an MLP. They find that longer reasoning chains favor more atomic data, not less, because each trace consumes more of the fixed budget. Broader reasoning-trace coverage also favors a larger atomic allocation. To explain these trends, the authors turn to a linear transformer, which they use as a standard simplification for analyzing learning dynamics.

In that analysis, atomic examples reinforce transitions that reasoning traces may never contain, while reasoning traces train composition across steps.

## How atomic and reasoning examples are built

Each entity–relation pair counts as a fact, and the paper calls the full table of these pairs A, with D = NM pairs. A fixed random held set H of m of the D pairs is excluded from reasoning traces, so the held fraction is q = m/D. The reasoning coverage is p = 1 − q, and the mask is sampled once and kept fixed throughout each run. The held transitions stay in the atomic data, so the model learns each one individually but never sees it inside a reasoning chain.

An atomic example draws the start entity e0 and all relations r1 to rL independently and uniformly, then supervises only the first next entity e1. A reasoning example is drawn uniformly from chains whose every transition lies in the covered set S, and it supervises the complete state trace e1 to eL. Because the shared prefix also supplies the same number of candidate relations, the atomic and reasoning examples differ only in what they supervise.

Training mixes the two sources through an atomic loss weight β in \[0,1\], and the reasoning loss is averaged over its L state predictions. The reasoning term receives weight 1 − β, so β sets the relative weight of the atomic and reasoning losses. The one-layer model is a causal self-attention head followed by a position-wise MLP, trained on this same mixed cross-entropy objective.

Each entity and relation gets its own one-hot block, and the positions get separate one-hot blocks, so the token and position signals stay distinct.

The theory needs a balanced world in which M = N relations and exactly one relation maps each entity to each other entity. The transition world stays fixed during both training and evaluation. The cyclic-shift family of permutations satisfies this balance condition.

## A linear surrogate that makes the optimum solvable

The full transformer is too tangled to solve for an optimum, so the authors turn to a scalar linear-attention surrogate. The surrogate drops attention normalization and replaces the nonlinear output map with a scalar linear readout. Its content score is gated by a learned positional term through a Hadamard product. Only the relation values, the relation–entity scores and the routing coefficients are trained, and all other entries stay at zero.

The authors train the surrogate by gradient flow on the mixed squared loss with a common initialization. They start from B(0) = 0, w\_r(0) = 1 and C(0) = E\_11 for every mixture β. Training loss alone doesn't show whether atomic facts can be used at later prediction roles. So the error is scored on held transitions at roles ℓ ≥ 2, and the optimal atomic weight minimizes this error at a training horizon τ.

The balanced world sets M = N, and each relation maps a fixed entity to a unique next entity under Assumption 1. Under that condition and for large N, the optimal β concentrates around β(L(1−q)), with error of order sqrt(log(2/δ)/N) and probability at least 1 − δ. The center rises with L and falls with q, and the authors read this as the length–coverage trend.

They don't prove the trend for the full transformer, and they check it empirically instead.

## Interior mixtures in the one-layer transformer

The one-layer softmax-MLP transformer is tested on a synthetic state-tracking world with 64 entities and 8 relations. Each relation is an independent random permutation of the entities, and each curve averages three training seeds. The atomic ratio is swept, and the metric is final-answer accuracy on out-of-distribution queries. Figure 1 reports both ID validation accuracy and OOD validation accuracy for each setting.

![Figure 1: Effect of atomic–reasoning mixing on state-tracking accuracy.Final- answer accuracy as a function of the atomic ratio in a synthetic world with 64 en…](https://refivu.com/papers/c130a474-a6eb-4156-877e-f96974963a74/figures/figure-59444fac4d7f8df9e1931a8ca97df4c0.png?thumb=512)

**Figure 1** :Effect of atomic–reasoning mixing on state-tracking accuracy.Final- answer accuracy as a function of the atomic ratio in a synthetic world with 64 entities and 8 relations, each sampled as an independent random permutation. Curves and shaded regions indicate the mean and±1 standard deviation across three training seeds. The empirically optimal atomic example ratio generally increases with reasoning lengthLand decreases with the held-out fact fractionq. The selected grid maximizers forL∈{3,4}atq= 30% deviate from the latter trend; however, these panels exhibit near-optimal plateaus, with several tested mixture ratios achieving very similar mean OOD accuracy.

[Original paper](https://arxiv.org/abs/2611.19042v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jianhao Huang, Allan Zhang, Ali Payani, Baharan Mirzasoleiman · Understanding the Role of Reasoning Data in Pretraining · Original paper figure · Extracted the figure area from page 6 of the original PDF.

Mixing atomic and reasoning examples raises OOD accuracy above either pure-source endpoint in the displayed settings. The empirically preferred atomic ratio generally rises with reasoning-chain length L and falls as the held-out fraction q grows. The grid maximizers for L in {3, 4} at q = 30% break this trend. These panels still show near-optimal plateaus, where several mixture ratios reach very similar mean OOD accuracy.

This check matches the linear surrogate's prediction, which is why the authors move to a simpler model to explain the trend. The surrogate keeps the positional gate multiplying the bilinear content score, so a zero gate entry removes a connection. Its trainable parts are the relation values, the relation–entity scores and the routing coefficients, with all other entries fixed at zero.

The grid results therefore test whether the one-layer transformer follows the same ordering that the surrogate's optimum predicts.

## Multi-hop checks with 32 people

The multi-hop task asks a model to follow H relations among 32 people and name the final person. The atomic-document fraction and the fraction q of person–relation pairs held out of reasoning examples are both varied. All facts stay in the atomic corpus, but OOD queries include at least one pair missing from reasoning supervision.

![Figure 2: Multi-hop final-answer accuracy as a function of the atomic ratio in a synthetic world with 32 people and 32 relations. Columns vary hop countHand ro…](https://refivu.com/papers/c130a474-a6eb-4156-877e-f96974963a74/figures/figure-9aece4e5aab302a6596f69ae102c6ef0.png?thumb=512)

**Figure 2** : Multi-hop final-answer accuracy as a function of the atomic ratio in a synthetic world with 32 people and 32 relations. Columns vary hop countHand rows vary reasoning holdout fractionq. Curves and shaded regions indicate the mean and±1 standard deviation across three training seeds. Large red circles mark OOD accuracies within five percentage points of each panel’s maximum.

[Original paper](https://arxiv.org/abs/2611.19042v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

Interior mixtures beat both pure endpoints on OOD accuracy in every displayed setting. Four-hop tasks favored larger atomic fractions than two- and three-hop tasks. Circles in the figure mark OOD values within 5 percentage points of each panel's maximum.

## FineMath and MathLake mixture sweep

The authors pretrain Olmo-3 150M on mixtures of FineMath and MathLake under a fixed budget of 10B tokens. FineMath is a general math web-text corpus, and MathLake contributes the OpenMathInstruct-2 subset as its reasoning data. The metric is zero-shot GSM8K test cross-entropy over the solution sequence, where lower is better. The paper also reports perplexity, which is the same measure exponentiated.

Pure FineMath gives a GSM8K CE of 1.785, and pure MathLake degrades to 7.513. Adding 10% MathLake lowers CE to 1.613, and 20% gives the lowest value in the sweep, 1.608. Beyond 20%, CE rises monotonically and returns to the pure FineMath level at 50%. Even though the pure MathLake training loss falls to 0.2, GSM8K CE rises throughout training.

The authors attribute this pure-MathLake failure to overfitting a heavily repeated corpus.

![Table 1: Mixture-ratio sweep be- tween FineMath and MathLake (Olmo-3 150M, 10B tokens). Zero- shot GSM8K test CE and PPL over the solution sequence. Best in bo…](https://refivu.com/papers/c130a474-a6eb-4156-877e-f96974963a74/figures/figure-68b30f5f8837b93f3ace42c30f9ab4aa.png?thumb=512)

**Table 1** : Mixture-ratio sweep be- tween FineMath and MathLake (Olmo-3 150M, 10B tokens). Zero- shot GSM8K test CE and PPL over the solution sequence. Best in bold.

[Original paper](https://arxiv.org/abs/2611.19042v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

The sweep covers both endpoints, which lets the authors test that claim directly in Table 1.

Figure 3 reports GSM8K CE at step 5000 across held-out ratio and difficulty at these three mixtures. Those experiments vary the quantity and difficulty of reasoning data at each mixture ratio.

## Held-out ratio and difficulty of reasoning data

The held-out ratio experiment varies how much of the MathLake pool the model can train on, with p set to 25%, 50%, 75%, or 100%. The authors report that the optimal mixing ratio increases with p, so it decreases as the held-out ratio grows.

The difficulty experiment uses MathLake's per-problem difficulty scores from 1 to 10 as a proxy for reasoning length and complexity. A random 50% pool of 138.7M tokens serves as the control. Figure 3b compares training on the easy half, levels 1 to 4, and the hard half, levels 5 to 10, against this random pool. The optimal mixing ratio increases with difficulty, and the authors state that these results are consistent with Theorem 1.

## When reasoning data enter training

The timing experiment asks whether introducing reasoning data later in training changes the outcome under a fixed reasoning budget. Each run trains Olmo-3 150M for 10k steps, with MathLake making up 20% of all tokens. The first K steps use pure FineMath, so the full reasoning budget must fit into the remaining 10k minus K steps. The MathLake share after the switch becomes 20%, 25%, 33%, 50%, and 100% for K = 0, 2k, 4k, 6k, and 8k.

The authors implement each arm by resuming from the step-K checkpoint of a single pure-FineMath run.

Delaying reasoning data brings no benefit in this setup. GSM8K CE rises monotonically with K, from 1.744 at K = 0 to 2.411 at K = 8k. The PPL column follows the same trend, rising from 5.72 at K = 0 to 11.14 at K = 8k. The K = 8k arm places all reasoning data after pure FineMath training, with a 100% MathLake share after the switch. Since starting early is never worse here, the authors recommend mixing reasoning data in from the beginning of training.

This experiment fixes the reasoning budget, so the comparison isolates timing rather than total reasoning tokens. It complements the mixture sweep, where a 20% MathLake share gave the lowest GSM8K CE of the sweep. The paper doesn't test timing beyond the K values in Table 2.

## Where the results stop

The controlled state-tracking setting leaves out heterogeneous data sources and the varying data quality found in large-scale pretraining. The theory depends on a specific transition world, so the balanced condition matters for the result. Assumption 1 requires M = N relations, and each entity pair has exactly one relation mapping it to a next entity.

The transition world stays fixed throughout training and evaluation, which the analysis relies on. Theorem 1 holds for large N, with probability at least 1−δ, and the cyclic-shift family satisfies the assumption.

The paper's theory therefore describes the leading-order center of the optimal atomic weight, not the exact optimum at finite N. The error bound R\_N shrinks at rate O of the square root of log(2/δ) over N. The math experiments use one model, Olmo-3 150M, trained on a fixed 10B-token budget. Their evaluation relies on zero-shot GSM8K test CE, so the results don't report other reasoning metrics.

The study focuses on pretraining and doesn't examine how these data mixtures affect subsequent SFT and RL. The authors leave that downstream effect for future work.

## Paper info

- **Authors**: Jianhao Huang, Allan Zhang, Ali Payani, Baharan Mirzasoleiman
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-14
- **Added**: 2026-11-17
- **Updated**: 2026-11-14
- **Version**: v1
- **arXiv**: 2611.19042
- **Category**: cs.LG · cs.AI
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.19042v1) · [PDF ↗](https://arxiv.org/pdf/2611.19042v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Reasoning data expose models to multi-step reasoning, but reasoning traces may cover only a subset of the available facts. How should pretraining balance atomic facts with reasoning traces? We study this question by constructing a setting in which every fact provides an atomic training signal, while only a subset appears in reasoning supervision, enabling us to measure generalization to transitions observed atomically but never used in training traces. For a linear transformer, we derive the weight assigned to atomic training signals that minimizes held-transition squared error and show that its leading-order optimum increases with reasoning-chain length and decreases with the fraction of facts held out from reasoning traces. These trends persist in a full transformer layer with an MLP, softmax attention, and cross-entropy loss. We further validate the role of reasoning complexity and data coverage in two natural-language settings: controlled multi-hop reasoning and mathematical pretraining. Together, our results provide a principled view of how reasoning-chain structure and data coverage should shape the allocation of training data during pretraining.

## Quote from the paper

Jianhao Huang, Allan Zhang, Ali Payani, Baharan Mirzasoleiman (2026). Understanding the Role of Reasoning Data in Pretraining. arXiv:2611.19042v1. https://arxiv.org/abs/2611.19042v1

**BibTeX**

```
@misc{huang2026understanding,
  title = {{Understanding the Role of Reasoning Data in Pretraining}},
  author = {Jianhao Huang and Allan Zhang and Ali Payani and Baharan Mirzasoleiman},
  year = {2026},
  eprint = {2611.19042},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.19042v1}
}
```

## Other paper commentary

- [Reasoning Models Confabulate to Defend Injected Beliefs About Their Own Requests](https://refivu.com/en/papers/ce562014-a4fd-4785-a292-99b457ab2649-reasoning-models-confabulate-to-defend-injected-beliefs.md)
- [OpenAI o1 System Card](https://refivu.com/en/papers/86efdb99-0408-42d7-9138-ff8f4765106f-openai-o1-system-card.md)
- [DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models](https://refivu.com/en/papers/1de65a84-2d26-40df-8104-656807b7a166-deepseekmath-pushing-the-limits-of-mathematical-reasoning-in.md)
- [Lost in Rounding: bf16 Recurrent State Makes Hybrid Reasoning Models Think Longer](https://refivu.com/en/papers/9cf15c97-0915-4299-84d8-12a051be8b60-lost-in-rounding-bf16-recurrent-state-makes-hybrid.md)
- [SRA: Spatial Reasoning Adapter via Evolving Social Interaction Graphs for Trajectory Prediction](https://refivu.com/en/papers/7221c636-85ce-4e7c-b428-10dd832a274f-sra-spatial-reasoning-adapter-via-evolving-social.md)
- [Chain-of-Thought Reasoning Without Prompting](https://refivu.com/en/papers/177d9294-679d-436b-897e-3ec239de41b5-chain-of-thought-reasoning-without-prompting.md)
- [Generalization Testing of Grid Foundation Models for Power Flow and Optimal Power Flow](https://refivu.com/en/papers/8253b14f-42d9-4b98-8337-ac9301c9801c-generalization-testing-of-grid-foundation-models-for-power.md)
- [Distilling Safety Filters for Filter-free Multi-agent RL](https://refivu.com/en/papers/21f25915-d36f-4f26-a265-4e45ef0cc511-distilling-safety-filters-for-filter-free-multi-agent.md)
- [Certify, Then Select: Viability-Aware Runtime Steering of Frozen Diffusion Policies](https://refivu.com/en/papers/34e592c6-b4a7-48dc-bb53-b14507844807-certify-then-select-viability-aware-runtime-steering-of.md)
- [The Critic Can Hurt: On the Safety of Critics in LLM-Guided AutoML Search](https://refivu.com/en/papers/643dfb8d-fce2-49ae-a5a7-9ad93eae021e-the-critic-can-hurt-on-the-safety-of.md)
- [CLEAR: Legible and Steerable Recommendation via Grounded Natural-Language Interests](https://refivu.com/en/papers/2fa163bb-6806-45fb-bf55-7e557d1f4855-clear-legible-and-steerable-recommendation-via-grounded.md)
- [Instructor-designed AI improves learning in a randomized trial across 19 universities](https://refivu.com/en/papers/ff326c36-4b69-42d2-b4ff-ab7febe76bb4-instructor-designed-ai-improves-learning-in-a-randomized.md)

## Terms in this paper

- [GSM8K](https://refivu.com/en/terms/e48f0e01064d-gsm8k)
- [Cross-Entropy loss](https://refivu.com/en/terms/14067bdf8b9f-cross-entropy-loss)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/c130a474-a6eb-4156-877e-f96974963a74-understanding-the-role-of-reasoning-data-in-pretraining)
