Transformers Pretrained on Procedural Data Contain Modular Structures for Algorithmic Reasoning

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Shinnick, Zachary, Jiang, Liangze, Saratchandran, Hemanth, Hengel, Anton van den, Teney, Damien
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909626070466560
author Shinnick, Zachary
Jiang, Liangze
Saratchandran, Hemanth
Hengel, Anton van den
Teney, Damien
author_facet Shinnick, Zachary
Jiang, Liangze
Saratchandran, Hemanth
Hengel, Anton van den
Teney, Damien
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2505_22308
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Transformers Pretrained on Procedural Data Contain Modular Structures for Algorithmic Reasoning
Shinnick, Zachary
Jiang, Liangze
Saratchandran, Hemanth
Hengel, Anton van den
Teney, Damien
Machine Learning
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.
title Transformers Pretrained on Procedural Data Contain Modular Structures for Algorithmic Reasoning
topic Machine Learning
url https://arxiv.org/abs/2505.22308