Formal Algorithms for Transformers
Not on the map. Why?
Abstract (arXiv)
This document aims to be a self-contained, mathematically precise overview of transformer architectures and algorithms (*not* results). It covers what transformers are, how they are trained, what they are used for, their key architectural components, and a preview of the most prominent models. The reader is assumed to be familiar with basic ML terminology and simpler neural network architectures such as MLPs.
Key facts. Cited by 70 papers in the map (data through 7 Oct 2026). Builds on 18 of its 34 references that are in the map. First posted on arXiv 19 Jul 2022.
Builds on
18 of 34 references.
References · 18
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2013Playing Atari with Deep Reinforcement Learningcited by 3,211
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,597
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
- 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,199
- 2016An overview of gradient descent optimization algorithmscited by 1,021
- 2015Automatic differentiation in machine learning: a surveycited by 846
- 2022A Generalist Agentcited by 802
6 more
- 2017Spectrally-normalized margin bounds for neural networkscited by 681
- 2021A Survey of Data Augmentation Approaches for NLPcited by 408
- 2021A Survey of Transformerscited by 399
- 2014On the Number of Linear Regions of Deep Neural Networkscited by 378
- 2021Inductive Biases and Variable Creation in Self-Attention Mechanismscited by 144
- 2021Provable RL with Exogenous Distractors via Multistep Inverse Dynamicscited by 28
Built on by
Citing papers per year: 2022: 2; 2023: 22; 2024: 23; 2025: 14; 2026: 9.
70 papers.
Sort:
By area:
- 2023Large Language Modelscited by 774
- 2024LayerSkip: Enabling Early Exit Inference and Self-Speculative Decodingcited by 302
- 2023The Hydra Effect: Emergent Self-repair in Language Model Computationscited by 145
- 2023What Formal Languages Can Transformers Express? A Surveycited by 120
- 2023White-Box Transformers via Sparse Rate Reductioncited by 77
- 2023Exposing Attention Glitches with Flip-Flop Language Modelingcited by 74
- 2024Evolving Code with A Large Language Modelcited by 42
- 2024Unveiling the Statistical Foundations of Chain-of-Thought Prompting Methodscited by 27
- 2024Materials science in the era of large language models: a perspectivecited by 23
- 2025Completed Hyperparameter Transfer across Modules, Width, Depth, Batch and Durationcited by 22
- 2023Can a Transformer Represent a Kalman Filter?cited by 20
- 2025Scaling Embedding Layers in Language Modelscited by 19
38 more
- 2023Can Transformers Learn to Solve Problems Recursively?cited by 17
- 2023Merging Decision Transformers: Weight Averaging for Forming Multi-Task Policiescited by 15
- 2024Attention layers provably solve single-location regressioncited by 15
- 2023Improving accuracy of GPT-3/4 results on biomedical data using a retrieval-augmented language modelcited by 14
- 2023RankFormer: Listwise Learning-to-Rank Using Listwide Labelscited by 9
- 2023Large Language Models Vote: Prompting for Rare Disease Identificationcited by 9
- 2024Wavelets Are All You Need for Autoregressive Image Generationcited by 9
- 2024Fundamental Limitations on Subquadratic Alternatives to Transformerscited by 9
- 2023Hierarchical Neural Simulation-Based Inference Over Event Ensemblescited by 8
- 2024Neural Circuit Diagrams: Robust Diagrams for the Communication, Implementation, and Analysis of Deep Learning Architecturescited by 8
- 2023Explainability Techniques for Chemical Language Modelscited by 6
- 2024Variational Search Distributionscited by 6
- 2024HashEvict: A Pre-Attention KV Cache Eviction Strategy using Locality-Sensitive Hashingcited by 6
- 2023Evaluating self-attention interpretability through human-grounded experimental protocolcited by 5
- 2024Mechanistic interpretability of large language models with applications to the financial services industrycited by 5
- 2023Pipeline MoE: A Flexible MoE Implementation with Pipeline Parallelismcited by 4
- 2024Kraken: Inherently Parallel Transformers For Efficient Multi-Device Inferencecited by 4
- 2025T-SHRED: Symbolic Regression for Regularization and Model Discovery with Transformer Shallow Recurrent Decoderscited by 4
- 2026Training Dynamics of Softmax Self-Attention: Fast Global Convergence via Preconditioningcited by 4
- 2025Attention-based clusteringcited by 3
- 2026An Optimal Control Approach To Transformer Trainingcited by 3
- 2023Enhancing Object Detection in Ancient Documents with Synthetic Data Generation and Transformer-Based Modelscited by 2
- 2023Natural Language Processing for Financial Regulationcited by 2
- 2024Learning Randomized Algorithms with Transformerscited by 2
- 2024Towards a Categorical Foundation of Deep Learning: A Surveycited by 2
- 2025Modes of Sequence Models and Learning Coefficientscited by 2
- 2025Generative Bayesian Optimization: Generative Models as Acquisition Functionscited by 2
- 2022Perceived personality state estimation in dyadic and small group interaction with deep learning methodscited by 1
- 2024Increasing transformer token length with a Maximum Entropy Principle Methodcited by 1
- 2024Broadcast Product: Redefining Shape-aligned Element-wise Multiplication and Beyondcited by 1
- 2024Notes on the Mathematical Structure of GPT LLM Architecturescited by 1
- 2025Emergence of Computational Structure in a Neural Network Physics Simulatorcited by 1
- 2025Amortized Active Generation of Pareto Setscited by 1
- 2026What DINO saw: ALiBi positional encoding reduces positional bias in Vision Transformerscited by 1
- 2026Attention-based graph neural networks: a surveycited by 1
- 2022GAMMT: Generative Ambiguity Modeling Using Multiple Transformerscited by 0
- 2023Coinductive guide to inductive transformer headscited by 0
- 2023Transformadores: Fundamentos teoricos y Aplicacionescited by 0
50 most cited of 70 All 70 (JSON)
- 2026Leaner Transformers Can Easily Learn to Cluster7 Oct 2026
- 2026Transformer-like Inference from Optimal Control15 May 2026
- 2026Attention-based graph neural networks: a survey9 May 2026
- 2026Weaves, Wires, and Morphisms: Formalizing and Implementing the Algebra of Deep Learning8 Apr 2026
- 2026What DINO saw: ALiBi positional encoding reduces positional bias in Vision Transformers17 Mar 2026
- 2026An Optimal Control Approach To Transformer Training10 Mar 2026
- 2026Training Dynamics of Softmax Self-Attention: Fast Global Convergence via Preconditioning2 Mar 2026
- 2026Gaussian Match-and-Copy: A Minimalist Benchmark for Studying Transformer Induction7 Feb 2026
- 2026Scaled Dot-Product Attention implements projection of inputs onto a common surface25 Jan 2026
- 2025Completed Hyperparameter Transfer across Modules, Width, Depth, Batch and Duration26 Dec 2025
- 2025Batch Transformer Architecture: Case of Synthetic Image Generation for Emotion Expression Facial Recognition13 Nov 2025
- 2025Generative Bayesian Optimization: Generative Models as Acquisition Functions29 Oct 2025
38 more
- 2025Amortized Active Generation of Pareto Sets23 Oct 2025
- 2025MultiFluxAI Enhancing Platform Engineering with Advanced Agent-Orchestrated Retrieval Systems29 Aug 2025
- 2025What can we learn from signals and systems in a transformer? Insights for probabilistic modeling and inference architecture27 Aug 2025
- 2025InTraVisTo: Inside Transformer Visualisation Tool18 Jul 2025
- 2025T-SHRED: Symbolic Regression for Regularization and Model Discovery with Transformer Shallow Recurrent Decoders18 Jun 2025
- 2025Attention-based clustering19 May 2025
- 2025Dual Filter: A Transformer-like Inference Architecture for Hidden Markov Models1 May 2025
- 2025Modes of Sequence Models and Learning Coefficients25 Apr 2025
- 2025Emergence of Computational Structure in a Neural Network Physics Simulator16 Apr 2025
- 2025Scaling Embedding Layers in Language Models3 Feb 2025
- 2025Topological constraints on self-organisation in locally interacting systems22 Jan 2025
- 2024HashEvict: A Pre-Attention KV Cache Eviction Strategy using Locality-Sensitive Hashing13 Dec 2024
- 2024Notes on the Mathematical Structure of GPT LLM Architectures25 Oct 2024
- 2024Computational design of target-specific linear peptide binders with TransformerBeta7 Oct 2024
- 2024Towards a Categorical Foundation of Deep Learning: A Survey7 Oct 2024
- 2024Fundamental Limitations on Subquadratic Alternatives to Transformers5 Oct 2024
- 2024Attention layers provably solve single-location regression2 Oct 2024
- 2024Broadcast Product: Redefining Shape-aligned Element-wise Multiplication and Beyond26 Sep 2024
- 2024Variational Search Distributions10 Sep 2024
- 2024Unveiling the Statistical Foundations of Chain-of-Thought Prompting Methods25 Aug 2024
- 2024Learning Randomized Algorithms with Transformers20 Aug 2024
- 2024Increasing transformer token length with a Maximum Entropy Principle Method17 Aug 2024
- 2024Kraken: Inherently Parallel Transformers For Efficient Multi-Device Inference14 Aug 2024
- 2024DeMansia: Mamba Never Forgets Any Tokens4 Aug 2024
- 2024Mechanistic interpretability of large language models with applications to the financial services industry15 Jul 2024
- 2024Wavelets Are All You Need for Autoregressive Image Generation28 Jun 2024
- 2024Opportunities in deep learning methods development for computational biology12 Jun 2024
- 2024Improving Transformers using Faithful Positional Encoding15 May 2024
- 2024LayerSkip: Enabling Early Exit Inference and Self-Speculative Decoding25 Apr 2024
- 2024M&M: Multimodal-Multitask Model Integrating Audiovisual Cues in Cognitive Load Assessment14 Mar 2024
- 2024Materials science in the era of large language models: a perspective11 Mar 2024
- 2024Sequence graphs realizations and ambiguity in language models13 Feb 2024
- 2024Neural Circuit Diagrams: Robust Diagrams for the Communication, Implementation, and Analysis of Deep Learning Architectures8 Feb 2024
- 2024Evolving Code with A Large Language Model13 Jan 2024
- 2023Can a Transformer Represent a Kalman Filter?12 Dec 2023
- 2023Natural Language Processing for Financial Regulation14 Nov 2023
- 2023What Formal Languages Can Transformers Express? A Survey1 Nov 2023
- 2023Hierarchical Attention and Graph Neural Networks: Toward Drift-Free Pose Estimation18 Sep 2023
50 newest of 70 All 70 (JSON)
- 2024Fundamental Limitations on Subquadratic Alternatives to Transformerscited by 9
- 2024DeMansia: Mamba Never Forgets Any Tokenscited by 0
- 2024Fundamental Limitations on Subquadratic Alternatives to Transformers5 Oct 2024
- 2024DeMansia: Mamba Never Forgets Any Tokens4 Aug 2024
- 2023Large Language Modelscited by 774
- 2023The Hydra Effect: Emergent Self-repair in Language Model Computationscited by 145
- 2023What Formal Languages Can Transformers Express? A Surveycited by 120
- 2023White-Box Transformers via Sparse Rate Reductioncited by 77
- 2023Exposing Attention Glitches with Flip-Flop Language Modelingcited by 74
- 2024Evolving Code with A Large Language Modelcited by 42
- 2024Materials science in the era of large language models: a perspectivecited by 23
- 2025Completed Hyperparameter Transfer across Modules, Width, Depth, Batch and Durationcited by 22
- 2023Can a Transformer Represent a Kalman Filter?cited by 20
- 2025Scaling Embedding Layers in Language Modelscited by 19
- 2023Can Transformers Learn to Solve Problems Recursively?cited by 17
- 2024Attention layers provably solve single-location regressioncited by 15
12 most cited of 61 All 61 (JSON)
- 2026Leaner Transformers Can Easily Learn to Cluster7 Oct 2026
- 2026Transformer-like Inference from Optimal Control15 May 2026
- 2026Attention-based graph neural networks: a survey9 May 2026
- 2026Weaves, Wires, and Morphisms: Formalizing and Implementing the Algebra of Deep Learning8 Apr 2026
- 2026What DINO saw: ALiBi positional encoding reduces positional bias in Vision Transformers17 Mar 2026
- 2026An Optimal Control Approach To Transformer Training10 Mar 2026
- 2026Training Dynamics of Softmax Self-Attention: Fast Global Convergence via Preconditioning2 Mar 2026
- 2026Gaussian Match-and-Copy: A Minimalist Benchmark for Studying Transformer Induction7 Feb 2026
- 2026Scaled Dot-Product Attention implements projection of inputs onto a common surface25 Jan 2026
- 2025Completed Hyperparameter Transfer across Modules, Width, Depth, Batch and Duration26 Dec 2025
- 2025Batch Transformer Architecture: Case of Synthetic Image Generation for Emotion Expression Facial Recognition13 Nov 2025
- 2025Generative Bayesian Optimization: Generative Models as Acquisition Functions29 Oct 2025
12 newest of 61 All 61 (JSON)