Algorithmic Capabilities of Random Transformers
Not on the map. Why?
Abstract (arXiv)
Trained transformer models have been found to implement interpretable procedures for tasks like arithmetic and associative recall, but little is understood about how the circuits that implement these procedures originate during training. To what extent do they depend on the supervisory signal provided to models, and to what extent are they attributable to behavior already present in models at the beginning of training? To investigate these questions, we investigate what functions can be learned by randomly initialized transformers in which only the embedding layers are optimized, so that the only input--output mappings learnable from data are those already implemented (up to a choice of encoding scheme) by the randomly initialized model. We find that these random transformers can perform a wide range of meaningful algorithmic tasks, including modular arithmetic, in-weights and in-context associative recall, decimal addition, parenthesis balancing, and even some aspects of natural language text generation. Our results indicate that some algorithmic capabilities are present in transformers (and accessible via appropriately structured inputs) even before these models are trained. Code is available at https://github.com/fjzzq2002/random_transformers.
Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). Builds on 41 of its 53 references that are in the map. First posted on arXiv 6 Oct 2024.
Builds on
41 of 53 references.
References · 41
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,250
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,359
- 2018Exploration by Random Network Distillationcited by 966
- 2022In-context Learning and Induction Headscited by 930
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
29 more
- 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 776
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
- 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 425
- 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 331
- 2020The Lottery Ticket Hypothesis for Pre-trained BERT Networkscited by 275
- 2019What's Hidden in a Randomly Weighted Neural Network?cited by 236
- 2022Towards Understanding Grokking: An Effective Theory of Representation Learningcited by 229
- 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
- 2022Neural Networks and the Chomsky Hierarchycited by 214
- 2019Deconstructing Lottery Tickets: Zeros, Signs, and the Supermaskcited by 206
- 2023The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networkscited by 153
- 2024Orca-Math: Unlocking the potential of SLMs in Grade School Mathcited by 151
- 2022CLIP-Dissect: Automatic Description of Neuron Representations in Deep Vision Networkscited by 144
- 2024Physics of Language Models: Part 3.3, Knowledge Capacity Scaling Lawscited by 137
- 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 136
- 2022Natural Language Descriptions of Deep Visual Featurescited by 136
- 2023How well do Large Language Models perform in Arithmetic tasks?cited by 130
- 2023Sudden Drops in the Loss: Syntax Acquisition, Phase Transitions, and Simplicity Bias in MLMscited by 121
- 2018Adversarial Reprogramming of Neural Networkscited by 115
- 2021Self-Attention Networks Can Process Bounded Hierarchical Languagescited by 105
- 2021Voice2Series: Reprogramming Acoustic Models for Time Series Classificationcited by 91
- 2024In-Context Language Learning: Architectures and Algorithmscited by 86
- 2023Grokking modular arithmeticcited by 77
- 2017Gated-Attention Architectures for Task-Oriented Language Groundingcited by 72
- 2023Positional Description Matters for Transformers Arithmeticcited by 56
- 2023Understanding Addition in Transformerscited by 34
- 2023Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammarscited by 30
- 2022Learning from Randomly Initialized Neural Network Featurescited by 11
Built on by
Citing papers per year: 2025: 11; 2026: 6.
17 papers.
Sort:
By area:
- 2025Shared Global and Local Geometry of Language Model Embeddingscited by 34
- 2025Do We Always Need the Simplicity Bias? Looking for Optimal Inductive Biases in the Wildcited by 13
- 2025General Intelligence Requires Reward-based Pretrainingcited by 12
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformercited by 12
- 2025Transformers Pretrained on Procedural Data Contain Modular Structures for Algorithmic Reasoningcited by 9
- 2025Understanding Prompt Tuning and In-Context Learning via Meta-Learningcited by 6
- 2025In-Context Algebracited by 4
- 2025TRACE for Tracking the Emergence of Semantic Representations in Transformerscited by 3
- 2025Frozen Layers: Memory-efficient Many-fidelity Hyperparameter Optimizationcited by 2
- 2026Can Transformers Really Do It All? On the Compatibility of Inductive Biases Across Taskscited by 2
- 2026Mask-Based Priors Are More Persistent than Query-Key Initializationscited by 1
- 2026Training-Free Universal Approximation by Prompting Random Transformerscited by 1
5 more
- 2025From Observation to Action: Latent Action-based Primitive Segmentation for VLA Pre-training in Industrial Settingscited by 0
- 2025Network of Theseus (like the ship)cited by 0
- 2026A Small-Scale System for Autoregressive Program Synthesis Enabling Controlled Experimentationcited by 0
- 2026Deep Learning for BioImaging: What Are We Really Learning?cited by 0
- 2026Fixed Universal Transformerscited by 0
- 2026Training-Free Universal Approximation by Prompting Random Transformers10 Aug 2026
- 2026Mask-Based Priors Are More Persistent than Query-Key Initializations1 Aug 2026
- 2026Can Transformers Really Do It All? On the Compatibility of Inductive Biases Across Tasks20 Jul 2026
- 2026Fixed Universal Transformers29 May 2026
- 2026Deep Learning for BioImaging: What Are We Really Learning?10 Mar 2026
- 2026A Small-Scale System for Autoregressive Program Synthesis Enabling Controlled Experimentation9 Feb 2026
- 2025In-Context Algebra18 Dec 2025
- 2025Network of Theseus (like the ship)3 Dec 2025
- 2025From Observation to Action: Latent Action-based Primitive Segmentation for VLA Pre-training in Industrial Settings26 Nov 2025
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformer1 Jun 2025
- 2025Transformers Pretrained on Procedural Data Contain Modular Structures for Algorithmic Reasoning28 May 2025
- 2025TRACE for Tracking the Emergence of Semantic Representations in Transformers23 May 2025
5 more
- 2025Understanding Prompt Tuning and In-Context Learning via Meta-Learning22 May 2025
- 2025Frozen Layers: Memory-efficient Many-fidelity Hyperparameter Optimization14 Apr 2025
- 2025Shared Global and Local Geometry of Language Model Embeddings27 Mar 2025
- 2025Do We Always Need the Simplicity Bias? Looking for Optimal Inductive Biases in the Wild13 Mar 2025
- 2025General Intelligence Requires Reward-based Pretraining26 Feb 2025
- 2025Shared Global and Local Geometry of Language Model Embeddingscited by 34
- 2025Do We Always Need the Simplicity Bias? Looking for Optimal Inductive Biases in the Wildcited by 13
- 2025General Intelligence Requires Reward-based Pretrainingcited by 12
- 2025Understanding Prompt Tuning and In-Context Learning via Meta-Learningcited by 6
- 2025In-Context Algebracited by 4
- 2025TRACE for Tracking the Emergence of Semantic Representations in Transformerscited by 3
- 2025Frozen Layers: Memory-efficient Many-fidelity Hyperparameter Optimizationcited by 2
- 2026Can Transformers Really Do It All? On the Compatibility of Inductive Biases Across Taskscited by 2
- 2026Mask-Based Priors Are More Persistent than Query-Key Initializationscited by 1
- 2026Training-Free Universal Approximation by Prompting Random Transformerscited by 1
- 2025Network of Theseus (like the ship)cited by 0
- 2026A Small-Scale System for Autoregressive Program Synthesis Enabling Controlled Experimentationcited by 0
12 most cited of 14 All 14 (JSON)
- 2026Training-Free Universal Approximation by Prompting Random Transformers10 Aug 2026
- 2026Mask-Based Priors Are More Persistent than Query-Key Initializations1 Aug 2026
- 2026Can Transformers Really Do It All? On the Compatibility of Inductive Biases Across Tasks20 Jul 2026
- 2026Fixed Universal Transformers29 May 2026
- 2026Deep Learning for BioImaging: What Are We Really Learning?10 Mar 2026
- 2026A Small-Scale System for Autoregressive Program Synthesis Enabling Controlled Experimentation9 Feb 2026
- 2025In-Context Algebra18 Dec 2025
- 2025Network of Theseus (like the ship)3 Dec 2025
- 2025TRACE for Tracking the Emergence of Semantic Representations in Transformers23 May 2025
- 2025Understanding Prompt Tuning and In-Context Learning via Meta-Learning22 May 2025
- 2025Frozen Layers: Memory-efficient Many-fidelity Hyperparameter Optimization14 Apr 2025
- 2025Shared Global and Local Geometry of Language Model Embeddings27 Mar 2025
12 newest of 14 All 14 (JSON)