mlsanityData to 14 Oct 2026

Transformers Pretrained on Procedural Data Contain Modular Structures for Algorithmic Reasoning

arXiv 2505.22308 ↗First posted 28 May 2025cs.LGcited by 9

On the map: LLM reasoning → Reasoning benchmarks and evaluation

Abstract (arXiv)

Pretraining on large, semantically rich datasets is key for developing language models. Surprisingly, recent studies have shown that even synthetic data, generated procedurally through simple semantic-free algorithms, can yield some of the same benefits as natural language pretraining. It is unclear what specific capabilities such simple synthetic data instils in a model, where these capabilities reside in the architecture, and how they manifest within its weights. In this short paper, we identify several beneficial forms of procedural data, together with specific algorithmic reasoning skills that improve in small transformers. Our core finding is that different procedural rules instil distinct but complementary inductive structures in the model. With extensive ablations and partial-transfer experiments, we discover that these structures reside in different parts of the model. Attention layers often carry the most transferable information, but some pretraining rules impart useful structure to MLP blocks instead. Most interestingly, the structures induced by multiple rules can be composed to jointly reinforce multiple capabilities. These results suggest an exciting possibility of disentangling the acquisition of knowledge from reasoning in language models, with the goal of improving their robustness and data efficiency.

Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 35 of its 37 references that are in the map. First posted on arXiv 28 May 2025.

Builds on

35 of 37 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024Procedural Knowledge in Pretraining Drives Reasoning in Large Language Models19 Nov

Other references · 34

  1. 2020Scaling Laws for Neural Language Modelscited by 6,586
  2. 2023DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretrainingcited by 399
  3. 2021Transformers Can Do Bayesian Inferencecited by 360
  4. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
  5. 2024Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performancecited by 184
  6. 2023A Pretrainer's Guide to Training Data: Measuring the Effects of Data Age, Domain Coverage, Quality, & Toxicitycited by 182
  7. 2021Learning to See by Looking at Noisecited by 92
  8. 2023Mimetic Initialization of Self-Attention Layerscited by 54
  9. 2024To Code, or Not To Code? Exploring Impact of Code in Pre-trainingcited by 47
  10. 2024Neural Redshift: Random Networks are not Random Functionscited by 43
  11. 2023Modeling rapid language learning by distilling Bayesian priors into artificial neural networkscited by 42
  12. 2020Transferring Inductive Biases through Knowledge Distillationcited by 41
22 more
  1. 2023Initializing Models with Larger Onescited by 39
  2. 2025Between Circuits and Chomsky: Pre-pretraining on Formal Languages Imparts Linguistic Biasescited by 37
  3. 2023Injecting structural hints: Using language models to study inductive biases in language learningcited by 35
  4. 2024Learning Universal Predictorscited by 31
  5. 2022Pretraining with Artificial Language: Studying Transferable Knowledge in Language Modelscited by 28
  6. 2022Procedural Image Programs for Representation Learningcited by 28
  7. 2024How Does Code Pretraining Affect Language Model Task Performance?cited by 28
  8. 2022Insights into Pre-training via Simpler Synthetic Taskscited by 26
  9. 2021On the Transferability of Pre-trained Language Models: A Study from Artificial Datasetscited by 25
  10. 2022Downstream Datasets Make Surprisingly Good Pretraining Corporacited by 20
  11. 2024Algorithmic Capabilities of Random Transformerscited by 17
  12. 2024Scaling Backwards: Minimal Synthetic Pre-training?cited by 14
  13. 2024Intelligence at the Edge of Chaoscited by 13
  14. 2025Do We Always Need the Simplicity Bias? Looking for Optimal Inductive Biases in the Wildcited by 13
  15. 2025General Intelligence Requires Reward-based Pretrainingcited by 12
  16. 2024Emergent properties with repeated examplescited by 11
  17. 2023Pre-training with Synthetic Data Helps Offline Reinforcement Learningcited by 9
  18. 2022Visual Pre-training for Navigation: What Can We Learn from Noise?cited by 8
  19. 2022Synthetic Pre-Training Tasks for Neural Machine Translationcited by 8
  20. 2025Meta-Learning Neural Mechanisms rather than Bayesian Priorscited by 8
  21. 2023SIP: Injecting a Structural Inductive Bias into a Seq2Seq Model by Simulationcited by 7
  22. 2023Instilling Inductive Biases with Subnetworkscited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 7.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Procedural Pretraining: Warming Up Language Models with Abstract Data
  2. 2026Reasoning Core: A Scalable Procedural Data Generation Suite for Symbolic Pre-training and Post-Training
  3. 2025Code Simulation as a Proxy for High-order Tasks in Large Language Models
  4. 2024Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalization
  5. 2026Procedural Knowledge at Scale Improves Reasoning
  6. 2025Shape of Thought: When Distribution Matters More than Correctness in Reasoning Tasks
  7. 2025How do Transformers Learn Implicit Reasoning?
  8. 2025Style over Substance: Distilled Language Models Reason Via Stylistic Replication