arXiv(opens in a new tab)cs.LGSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.37631

Procedural Core: A Compact Recurrent Initialization for Vision Transformers

Zachary Shinnick, Christian Internò, Hemanth Saratchandran, Anton van den Hengel, Damien Teney

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Transformers are typically trained from random initialization, requiring all their capabilities to emerge from large-scale optimization. Recent work showed that a small amount of abstract procedurally generated data can help acquire generic inductive structure at low cost. However, this adds a pretraining stage that must be repeated for every target model. We propose Procedural Core, an initialization strategy that captures this generic structure into a compact set of weights that can be reused across models. We train a minimal recurrent transformer on procedural data, then expand its weights to initialize transformers of arbitrary width and depth. The resulting initialization improves performance on image classification, self-supervised visual learning (DINO), and modeling natural language (FINEWEB-EDU) and code (CODEPARROT). For image classification, expanding a 1M-parameter core to initialize an 85M-parameter ViT-Base improves IMAGENET top-1 accuracy by 2.2 pp over standard random initialization. Our analysis identifies recurrence as essential for learning compact weights that transfer across models. In ViTs, we localize a key benefit in the suppression of high-norm tokens that produces substantial improvements in zero-shot segmentation (IMAGENET-S mAP 32.3 → 42.9), object localization (VOC07 CorLoc 9.9 → 18.4), and depth estimation (NYUV2 RMSE 1.104 → 0.998). This demonstrates that transformers need not start from a blank slate, and can be initialized with generic capabilities at low cost with no domain- or task-specific data.

Project page: zlshinnick.github.io/procedural-core/

1 INTRODUCTION

Recent work on large pretrained transformers shows that they learn mechanisms (Han et al., 2025; Lu et al., 2022) and representations (Buzeta et al., 2026; Huh et al., 2024; Gupta et al., 2025; Riachi et al., 2025) that transfer across tasks and modalities. This suggests that they contain some internal structure that is generic and broadly reusable. Motivated by this perspective, a growing body of work explores pretraining on abstract data generated procedurally, as an efficient way to acquire generic structure in the model weights (Zhang et al., 2024; Hu et al., 2025; Jiang et al., 2026a; Shinnick et al., 2025; 2026). Such a “procedural warm-up” uses data that is free of semantic or visual content, and this strategy can be strikingly data-efficient. In ViTs, Shinnick et al. (2026) show that allocating 1% of the training budget initially to non-visual procedural data 1^{1} can yield performance gains comparable to increasing natural image data by 28%. In language models, Jiang et al. (2026a) show that allocating 0.1% of the training budget initially to procedural data enables models to achieve the same loss while consuming just 55% of the natural language data.

Unfortunately, existing strategies with procedural data are not a simple drop-in replacement for standard random initialization. They require a dedicated training stage that needs to be repeated for each target model. The effects of this stage are tightly coupled with a specific architecture and model size. Note however that procedural data is, by definition, generated by simple algorithms and

1^{1}Procedural data refers to data produced by simple algorithmic rules such as formal grammars.

  1. Building Procedural Core

Compact recurrent model (trained once)

  1. Initializing

Figure

Recurrent

middle block

First block

  1. Standard training

Target transformer

Core weights:

depth & width

expansion

Figure

Last block

Block L-1

⋯×(L−2)\cdots \times (L-2)

Tile

Unroll

Block 2

First block

( [ ] ) { } < >

Procedural

data

Natural

images

Figure

Figure 1: We propose a generic initialization for transformers as an alternative to random weights. (Left) We first train a small auxiliary model to capture generic computations. We generate abstract training data with simple algorithms such as formal languages with nested structures (pictured as balanced parentheses). The model is recurrent in depth such that it captures regularities of the data in a minimal set of weights: the Procedural Core. (Middle) We unroll and expand the Procedural Core to initialize a target model of arbitrary width and depth. (Right) This bootstraps the subsequent standard training, improving convergence and generalization compared to a random initialization.

thus has a small description length (i.e. low Kolmogorov complexity). We therefore posit that the structure induced in the weights should also admit a compact representation. In principle, it may thus be possible to obtain the same effects with a simple deterministic procedure applicable to any target model. The central question of this work is therefore as follows: can the useful structure acquired by training on procedural data be compressed into a compact, transferable core?

To address this question, we hypothesize that the mechanisms in models trained on procedural data could be implemented more compactly through recurrence. Existing models like Universal Transformers (Dehghani et al., 2019) already show that depth-wise recurrence can capture expressive computations with a small set of parameters, and recent work also shows that recurrence can benefit reasoning tasks (Saunshi et al., 2024). The Block-Recurrent Hypothesis (Jacobs et al., 2025) further suggests that deep transformers, including ViTs, approximate compact recurrent programs. This implies that multi-layer computations could often be represented more compactly with few reusable blocks. Together, these works indicate that recurrence is a natural mechanism for consolidating the structure in trained transformers into a compact representation.

Building on this perspective, we propose Procedural Core: a compact set of weights obtained by training a minimal recurrent auxiliary model on procedural data. More precisely, we train a small recurrent ViT with three unique blocks (input, recurrent middle block, output) and then use its weights to initialize larger architectures by unrolling the recurrent block in depth and tiling it in width (see Figure 1). This parameter sharing across layers forces the auxiliary model to encode its computations into a compact set of weights, acting as a regularizer and facilitating their reuse. Concretely, we now have a generic strategy to initialize useful structure in the weights of a transformer of any size, in a single deterministic step. Our choice of procedural data and training objective follows prior work (Shinnick et al., 2026; Jiang et al., 2026a). Our primary objective here is therefore to obtain comparable effects with a much more practical procedure.

We evaluate Procedural Core across model sizes and domains. We get consistent gains over random and structured initializations (Trockman & Kolter, 2023). For example, we expand our ∼\sim1M-parameter core to initialize an 85M-parameter ViT-Base, then train it on IMAGENET-1K (Deng et al., 2009). This yields a +2.2 percentage point improvement in top-1 accuracy compared to a random initialization. Importantly, these gains extend to other applications, including self-supervised vision models (DINO) and language models trained on natural language (FINEWEB-EDU dataset, Penedo et al. 2024) and code (CODEPARROT dataset, HuggingFace 2022). These results suggest that the method instantiates generic structure in the weights that is broadly useful across domains.

We analyze why the Procedural Core transfers. We find that depth-wise parameter sharing distributes computation across a wider set of directions, including lower-energy components important for downstream transfer. In ViTs, this structure concentrates in the attention value/output pathway, where it suppresses high-norm token outliers and improves representations across segmentation, localization, and depth estimation. Our contributions are summarized as follows.

(1) An initialization strategy (Procedural Core) that instantiates useful structure in the weights of a transformer of any size, as an alternative to standard random weights. It uses a compact set of weights obtained by training a small recurrent model on procedural data (Section 3).

(2) An empirical evaluation of the proposed strategy for computer vision and language. On IMAGENET-1K, Procedural Core improves ViT-Base top-1 accuracy by +2.2 percentage points over standard random initialization. The benefits extend beyond classification, with improvements across a wide array of tasks including semantic segmentation (ADE20K: 26.6 → 28.8 mIoU), zero-shot segmentation (IMAGENET-S: 32.3 → 42.9 mAP), object localization (VOC07: 9.9 → 18.4 CorLoc), and depth estimation (NYUV2: 1.104 → 0.998 RMSE). We also observe gains with self-supervised DINO models and language models trained on natural language and code (Section 4).

(3) A mechanistic analysis of the benefits. We find that the recurrence distributes useful computations across a larger set of dominant directions. We also identify the attention value/output pathway as carrying much of the transferable structure, which we connect to the suppression of high-norm tokens and improvements in segmentation, localization, and depth estimation (Section 5).

References (72)