mlsanityData to 7 Oct 2026

Algorithmic Capabilities of Random Transformers

arXiv 2410.04368 ↗First posted 6 Oct 2024cs.LG cs.AI cs.CLcited by 17

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  4. 2016Gaussian Error Linear Units (GELUs)cited by 3,431
  5. 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,250
  6. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
  7. 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
  8. 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,359
  9. 2018Exploration by Random Network Distillationcited by 966
  10. 2022In-context Learning and Induction Headscited by 930
  11. 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
  12. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
29 more
  1. 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 776
  2. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  3. 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
  4. 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 425
  5. 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 331
  6. 2020The Lottery Ticket Hypothesis for Pre-trained BERT Networkscited by 275
  7. 2019What's Hidden in a Randomly Weighted Neural Network?cited by 236
  8. 2022Towards Understanding Grokking: An Effective Theory of Representation Learningcited by 229
  9. 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
  10. 2022Neural Networks and the Chomsky Hierarchycited by 214
  11. 2019Deconstructing Lottery Tickets: Zeros, Signs, and the Supermaskcited by 206
  12. 2023The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networkscited by 153
  13. 2024Orca-Math: Unlocking the potential of SLMs in Grade School Mathcited by 151
  14. 2022CLIP-Dissect: Automatic Description of Neuron Representations in Deep Vision Networkscited by 144
  15. 2024Physics of Language Models: Part 3.3, Knowledge Capacity Scaling Lawscited by 137
  16. 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 136
  17. 2022Natural Language Descriptions of Deep Visual Featurescited by 136
  18. 2023How well do Large Language Models perform in Arithmetic tasks?cited by 130
  19. 2023Sudden Drops in the Loss: Syntax Acquisition, Phase Transitions, and Simplicity Bias in MLMscited by 121
  20. 2018Adversarial Reprogramming of Neural Networkscited by 115
  21. 2021Self-Attention Networks Can Process Bounded Hierarchical Languagescited by 105
  22. 2021Voice2Series: Reprogramming Acoustic Models for Time Series Classificationcited by 91
  23. 2024In-Context Language Learning: Architectures and Algorithmscited by 86
  24. 2023Grokking modular arithmeticcited by 77
  25. 2017Gated-Attention Architectures for Task-Oriented Language Groundingcited by 72
  26. 2023Positional Description Matters for Transformers Arithmeticcited by 56
  27. 2023Understanding Addition in Transformerscited by 34
  28. 2023Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammarscited by 30
  29. 2022Learning from Randomly Initialized Neural Network Featurescited by 11

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 11; 2026: 6.

17 papers.

Sort:

By area: