Procedural Pretraining: Warming Up Language Models with Abstract Data

Liangze Jiang, Zachary Shinnick, Anton Hengel, Hemanth Saratchandran, Damien Teney

International Conference on Machine Learning 2026 · Oral

Overview

Modern large language models (LLMs) are typically trained directly on massive corpora of natural language, source code, and mathematical texts. While this approach scales effectively, it forces models to simultaneously learn foundational world knowledge and the abstract algorithmic mechanisms required to manipulate it. In this talk, the presenters introduce procedural pretraining, a lightweight initialization technique that "warms up" models using abstract, algorithmically generated data before standard semantic pretraining begins.

Watch on SlidesLive

Visual summary for Procedural Pretraining: Warming Up Language Models with Abstract Data by Liangze Jiang, Zachary Shinnick, Anton Hengel, Hemanth Saratchandran, Damien Teney
Visual summary for Procedural Pretraining: Warming Up Language Models with Abstract Data by Liangze Jiang, Zachary Shinnick, Anton Hengel, Hemanth Saratchandran, Damien Teney

Key moments

  1. 0:00 Introduction and motivation for procedural pretraining
  2. 2:00 Defining procedural data and algorithmic generation
  3. 6:00 Results on language, code, and math pretraining
  4. 8:00 Downstream task performance and data efficiency gains
  5. 9:30 Localizing skills in transformer components using selective weight transfer
  6. 11:30 Extending procedural pretraining across modalities to vision transformers
  7. 13:00 Audience Q&A on Dyck language capabilities and long-range recall
  8. 15:20 Audience Q&A on the exact role of the warm-up phase

Procedural Pretraining: Warming Up Language Models with Abstract Data

Speakers: Liangze Jiang; Zachary Shinnick; Anton Hengel; Hemanth Saratchandran; Damien Teney

Conference: ICML

YouTube: https://slideslive.com/39083757

Overview

Modern large language models (LLMs) are typically trained directly on massive corpora of natural language, source code, and mathematical texts. While this approach scales effectively, it forces models to simultaneously learn foundational world knowledge and the abstract algorithmic mechanisms required to manipulate it. In this talk, the presenters introduce procedural pretraining, a lightweight initialization technique that "warms up" models using abstract, algorithmically generated data before standard semantic pretraining begins.

The core premise is loosely analogous to human development, where children master basic, non-semantic logic—such as stacking blocks—long before acquiring complex linguistic or historical knowledge. By injecting this algorithmic scaffolding early in the training pipeline, the authors demonstrate that language models can achieve higher final performance, faster training convergence, and significant reductions in required semantic training tokens. This work addresses the data efficiency bottlenecks plaguing contemporary machine learning systems, offering a principled way to instill structural reasoning priors from scratch.

Background

▶ Watch: Introduction and motivation for procedural pretraining (0:00)

The standard recipe for training modern foundation models involves multi-stage pipelines: massive self-supervised pretraining followed by mid-training and post-training (such as instruction tuning and reinforcement learning from human feedback). While effective, this pipeline exhibits notable inefficiencies. Models consume orders of magnitude more data than humans do to master equivalent tasks, and empirical evaluations show that standard pretraining fails to robustly instill compositional algorithmic reasoning.

In cognitive science and developmental psychology, learning is hierarchical: agents first acquire fundamental structural priors through simple manipulation tasks before scaling up to semantic datasets. In the machine learning and systems space, this problem manifests as suboptimal optimization landscapes and slow convergence when models are initialized entirely at random or trained exclusively on unstructured text. Prior work has explored synthetic data generation for post-training or reasoning tasks, but utilizing pure, abstract algorithms as an explicit pre-pretraining warm-up phase remains largely unexplored. This research bridges that gap by investigating whether purely synthetic, algorithmic data can serve as an effective structural catalyst for neural network optimization.

Key Findings

▶ Watch: Results on language, code, and math pretraining (6:00)

The authors evaluate procedural pretraining across domains and model scales up to 13 billion parameters, establishing several headline results:

  • Cross-Domain Performance Gains: When models undergo a tiny procedural warm-up phase (consuming just 0.01% to 0.3% of total training tokens) prior to standard training, they achieve consistent relative improvements across domains. Evaluations on natural language using the C4 dataset show a 7% relative improvement, alongside performance gains on code (CodeParrot) and mathematics (DeepMind Math).
  • Enhanced Downstream Execution: GPT-2-sized models warmed up on procedural data and pretrained on CodeParrot achieve non-zero zero-shot and few-shot accuracy on the MBPP (Mostly Basic Python Problems) code generation benchmark, whereas models without the warm-up remain stuck at zero performance across various pass@k thresholds.
  • Data Substitution Efficiency: Procedural pretraining can partially substitute for real training data. Procedurally warmed-up models require 45% fewer natural language tokens (on C4), 33% fewer code tokens, and 14% fewer math tokens to reach the same final validation loss as randomly initialized baselines.
  • Modality Transfer: The benefits of procedural warm-ups extend beyond text. Applying the same procedural pretraining to Vision Transformers (ViTs) prior to training on ImageNet yields improvements in training speed and final classification accuracy.

Technical Deep Dive

▶ Watch: Localizing skills in transformer components using selective weight transfer (9:30)

The technical framework relies on generating procedural data—datasets produced entirely by explicit algorithms designed to test precise manipulation, compositional reasoning, and long-range dependency tracking.

The authors categorize procedural data into distinct types:

  1. Simple Algorithmic Manipulations: Operations such as generating sorted or reversed versions of input sequences, or computing the union of two consecutive sequences.
  2. Formal Languages: Syntactic environments such as Dyck languages (where models must match nested bracket pairs), which force the model to track long-range dependencies across context windows.
  3. Cellular Automata: One-dimensional grids of cells that update iteratively based on localized neighbor states, teaching the model spatial and temporal evolution rules.

During procedural pretraining, the model is trained via standard next-token prediction, though for simple algorithmic tasks, the loss is computed exclusively on the target output sequence.

To understand where these structural priors are stored inside the Transformer architecture, the authors employ selective weight transfer. By transferring only specific layers (such as the multi-layer perceptron [MLP] blocks versus the attention mechanisms) while randomly initializing the rest, they uncover distinct localization patterns:

  • For natural language tasks, transferring only the MLP layers yields optimal downstream performance.
  • For code generation, the attention layers are critical.
  • For mathematical reasoning, transferring the full model weights provides the greatest benefit.

Furthermore, different procedural generators impart specialized skills. For instance, pretraining on Dyck formal languages maximizes context recall capabilities, whereas specific algebraic formal languages excel at optimizing addition tasks.

Experimental Setup & Results

▶ Watch: Extending procedural pretraining across modalities to vision transformers (11:30)

The experimental validation spans multiple model scales, architectures, and standard benchmarks:

  • Model Scale: Ranging from compact GPT-2-scale architectures up to 13-billion-parameter models.
  • Compute Budget for Warm-up: Extremely lightweight, utilizing only 0.01% to 0.3% of the total training token budget for the procedural phase.
  • Datasets:
  • Procedural Generators: Custom algorithmic sequence generators, Dyck languages, and cellular automata.
  • Semantic Pretraining: C4 (natural language), CodeParrot (source code), and DeepMind Math.
  • Downstream Evaluation: MBPP benchmark for code generation and ImageNet for vision experiments.
  • Metrics: Relative improvement in final validation loss, token savings (delta T2) required to match baseline validation performance, and pass@k accuracy on code generation tasks.

The results confirm that procedural pretraining shifts the optimization trajectory into a more favorable basin, yielding faster convergence and superior asymptotic performance across all tested modalities without introducing significant computational overhead during pretraining.

Practical Implications

▶ Watch: Audience Q&A on the exact role of the warm-up phase (15:20)

For infrastructure teams, model builders, and deployers, procedural pretraining offers a high-return, low-cost intervention. Because the warm-up phase consumes a negligible fraction of total training tokens (0.01% to 0.3%), the computational cost is virtually zero compared to the massive scale of standard pretraining runs.

The ability to substitute up to 45% of natural language tokens or 33% of code tokens translates directly to substantial financial and environmental savings when curating high-quality pretraining corpora. However, practitioners must carefully select their procedural generators: mismatched algorithmic tasks may fail to target the specific inductive biases required for downstream applications. Additionally, deployers should note that these procedural priors alter internal representations, localizing functional capabilities differently across MLP and attention layers depending on the target domain.

Key Takeaways

  • Procedural pretraining injects abstract algorithmic priors into language models using synthetic, rule-based data before standard pretraining.
  • The warm-up phase is computationally lightweight, consuming only 0.01% to 0.3% of total training tokens.
  • Procedural data improves data efficiency, reducing the required semantic training tokens by up to 45% on C4 and 33% on CodeParrot.
  • Algorithmic skills localize differently within Transformer architectures: MLP layers dominate natural language tasks, attention layers dominate code, and full-weight transfer benefits mathematics.
  • The performance gains generalize across domains (language, code, math) and transfer across modalities into Vision Transformers trained on ImageNet.

About the Speaker(s)

  • Liangze Jiang: Presenting work on procedural pretraining for warming up language models with abstract data.
  • Zachary Shinnick: Co-author on procedural pretraining research; will be presenting the results part of the work.
  • Anton Hengel: Co-author on procedural pretraining research on warming up language models with abstract data.
  • Hemanth Saratchandran: Co-author on procedural pretraining research on warming up language models with abstract data.
  • Damien Teney: Co-author on procedural pretraining research on warming up language models with abstract data.

Reviews

→ Top-rated talks at International Conference on Machine Learning 2026

All talks from International Conference on Machine Learning 2026