TL;DR
Instead of starting from scratch with random noise, "Procedural Core" initializes transformers using a compact set of weights learned from simple, algorithmic data. By training a tiny recurrent model once and expanding its weights to fit any architecture, researchers can boost performance across vision and language tasks—improving ImageNet accuracy by 2.2% and significantly enhancing spatial tasks like object localization.
What Problem Does This Paper Address?
Transformers are the workhorses of modern AI, but they are notoriously "data-hungry" and typically start their life as a blank slate of random weights. Recent research into "procedural warm-up" showed that pretraining on abstract, synthetic data (like balanced parentheses) helps models learn basic structural rules before they ever see a real image or sentence.
However, there’s a major catch: this pretraining stage is tied to a specific architecture. If you want to train a larger or deeper model, you have to repeat the entire procedural pretraining process. The authors of this paper ask: Can we condense the benefits of procedural training into a compact, reusable "core" that works as a drop-in replacement for random initialization?
Methods
The authors propose a three-step strategy to create and deploy the Procedural Core:
- Building the Core: They train a tiny auxiliary model (e.g., a 1M-parameter ViT-Tiny) on procedural data—specifically $k$-Dyck sequences, which are strings of nested brackets like
( [ ] ) { }. Crucially, they use depth-wise recurrence: the middle layers of this tiny model share the same weights. This forces the model to learn general-purpose, reusable computations rather than layer-specific ones. - Expansion: To initialize a larger "target" model, they take the weights from the tiny core and expand them.
- Depth: The recurrent middle block is simply replicated as many times as needed.
- Width: The weight matrices are "tiled" (repeated) to match the target width and then rescaled to maintain their mathematical properties.
- Standard Training: The target model, now initialized with these structured weights, is trained normally on natural data (like ImageNet or text).
Datasets
- Procedural: $k$-Dyck sequences (formal grammars with nested structures).
- Vision: ImageNet-1K (classification), ADE20K (semantic segmentation), ImageNet-S (zero-shot segmentation), VOC07 (object localization), and NYUv2 (depth estimation).
- Language & Code: FineWeb-Edu (natural language) and CodeParrot (programming code).
- Self-Supervised: DINO training on ImageNet-1K.
Key Insights and Ideas
- Recurrence is a Feature, Not a Bug: The use of weight-tying (recurrence) in the auxiliary model acts as a powerful regularizer. It prevents the model from specializing too early, ensuring the learned weights represent "generic" operations that transfer well across different depths.
- Spectral Breadth: By analyzing the "singular value spectrum" of the weights, the authors found that Procedural Core weights distribute information across more mathematical "directions" than standard pretraining. This diversity is key to their transferability.
- Killing the "Outliers": Vision Transformers often develop "high-norm tokens"—specific patches that hog attention but carry little useful information. The Procedural Core naturally suppresses these outliers, which significantly improves performance on tasks requiring fine-grained spatial detail, like segmentation and depth estimation.
Key Results
The Procedural Core consistently outperforms both random initialization and standard procedural pretraining:
- ImageNet-1K: Initializing an 85M-parameter ViT-Base with a 1M-parameter core improved top-1 accuracy by 2.2 percentage points over random initialization.
- Persistent Advantage: Unlike some initialization tricks that only help at the start, the gains from Procedural Core persist throughout the entire training process.
- Dense Vision Tasks: The method showed massive jumps in zero-shot segmentation (ImageNet-S mAP 32.3 → 42.9) and object localization (VOC07 CorLoc 9.9 → 18.4).
- Cross-Domain Success: The benefits aren't limited to vision; the authors observed a ~4% reduction in validation perplexity for language and code models trained on 2 billion tokens.
Limitations and Future Work
- Training Recipes: When using the extremely optimized "DeiT-III" training recipe, the classification gains on ImageNet disappeared, though the improvements for segmentation and localization remained. This suggests that the initialization's benefits interact complexly with modern data augmentation and regularization techniques.
- Architectural Scope: The study focused on standard ViTs and GPT-2 styles. Future work is needed to see how these principles apply to more exotic architectures like XCiT or Mamba.
- Data Optimization: The authors used Dyck languages because they worked in prior studies, but they acknowledge that other types of procedural data might be even more effective for specific downstream tasks.
Summary updated