Looped Transformers as Programmable Computers
Not on the map. Why?
Cited by 50 in LLM reasoning, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
We present a framework for using transformer networks as universal computers by programming them with specific weights and placing them in a loop. Our input sequence acts as a punchcard, consisting of instructions and memory for data read/writes. We demonstrate that a constant number of encoder layers can emulate basic computing blocks, including embedding edit operations, non-linear functions, function calls, program counters, and conditional branches. Using these building blocks, we emulate a small instruction-set computer. This allows us to map iterative algorithms to programs that can be executed by a looped, 13-layer transformer. We show how this transformer, instructed by its input, can emulate a basic calculator, a basic linear algebra library, and in-context learning algorithms that employ backpropagation. Our work highlights the versatility of the attention mechanism, and demonstrates that even shallow transformers can execute full-fledged, general-purpose programs.
Key facts. Cited by 224 papers in the map (data through 7 Oct 2026). Builds on 29 of its 45 references that are in the map. First posted on arXiv 30 Jan 2023.
Builds on
29 of 45 references.
References · 29
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2021Transformers in Vision: A Surveycited by 1,009
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
17 more
- 2022Transformers learn in-context by gradient descentcited by 714
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2018Universal Transformerscited by 613
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
- 2022Transformers Learn Shortcuts to Automatacited by 260
- 2021Thinking Like Transformerscited by 182
- 2022Language models show human-like content effects on reasoning taskscited by 171
- 2021Saturated Transformers are Constant-Depth Threshold Circuitscited by 137
- 2019On the Turing Completeness of Modern Neural Network Architecturescited by 129
- 2022Teaching Algorithmic Reasoning via In-context Learningcited by 111
- 2022Block-Recurrent Transformerscited by 107
- 2021Statistically Meaningful Approximation: a Case Study on Approximating Turing Machines with Transformerscited by 101
- 2023Tracr: Compiled Transformers as a Laboratory for Interpretabilitycited by 99
- 2021Linear algebra with transformerscited by 62
- 2021Sliced Recursive Transformercited by 26
- 2018The universal approximation power of finite-width deep ReLU networkscited by 11
Built on by
Citing papers per year: 2023: 27; 2024: 54; 2025: 42; 2026: 101.
224 papers.
Sort:
By area:
- 2024Training Large Language Models to Reason in a Continuous Latent Spacecited by 763
- 2023One Fits All:Power General Time Series Analysis by Pretrained LMcited by 615
- 2023Augmented Language Models: a Surveycited by 398
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
- 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 293
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
- 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 274
- 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problemscited by 256
- 2025Reasoning with Latent Thoughts: On the Power of Looped Transformerscited by 223
- 2023Foundation Models for Decision Making: Problems, Methods, and Opportunitiescited by 160
- 2023Looped Transformers are Better at Learning Learning Algorithmscited by 135
- 2023LLM4TS: Aligning Pre-Trained LLMs as Data-Efficient Time-Series Forecasterscited by 127
38 more
- 2023Teaching Arithmetic to Small Transformerscited by 121
- 2025Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computationcited by 120
- 2024How Transformers Learn Causal Structure with Gradient Descentcited by 114
- 2023In-Context Convergence of Transformerscited by 112
- 2024Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Taskscited by 104
- 2023The Expressive Power of Low-Rank Adaptationcited by 100
- 2024Unlocking State-Tracking in Linear RNNs Through Negative Eigenvaluescited by 97
- 2023Uncovering mesa-optimization algorithms in Transformerscited by 94
- 2023How Many Pretraining Tasks Are Needed for In-Context Learning of Linear Regression?cited by 93
- 2025Efficient Reasoning Models: A Surveycited by 93
- 2024Transformers Can Do Arithmetic with the Right Embeddingscited by 77
- 2024Relaxed Recursive Transformers: Effective Parameter Sharing with Layer-wise LoRAcited by 72
- 2023Transformers as Support Vector Machinescited by 67
- 2023Auto-Regressive Next-Token Predictors are Universal Learnerscited by 65
- 2023Transformers Implement Functional Gradient Descent to Learn Non-Linear Functions In Contextcited by 63
- 2024Can Looped Transformers Learn to Implement Multi-step Gradient Descent for In-context Learning?cited by 60
- 2023Max-Margin Token Selection in Attention Mechanismcited by 57
- 2024LoRA Training in the NTK Regime has No Spurious Local Minimacited by 48
- 2026LoopFormer: Elastic-Depth Looped Transformers for Latent Reasoning via Shortcut Modulationcited by 48
- 2023Transformers Learn to Achieve Second-Order Convergence Rates for In-Context Linear Regressioncited by 47
- 2023An Over-parameterized Exponential Regressioncited by 45
- 2025PonderLM: Pretraining Language Models to Ponder in Continuous Spacecited by 44
- 2024Dual Operating Modes of In-Context Learningcited by 42
- 2023Learning Transformer Programscited by 40
- 2023What can a Single Attention Layer Learn? A Study Through the Random Features Lenscited by 39
- 2023Deep Networks as Denoising Algorithms: Sample-Efficient Learning of Diffusion Models in High-Dimensional Graphical Modelscited by 39
- 2024An Information-Theoretic Analysis of In-Context Learningcited by 39
- 2024Attention with Markov: A Framework for Principled Analysis of Transformers via Markov Chainscited by 39
- 2024In-Context Learning with Representations: Contextual Generalization of Trained Transformerscited by 36
- 2024How Far Can Transformers Reason? The Globality Barrier and Inductive Scratchpadcited by 35
- 2025Transformers Learn to Implement Multi-step Gradient Descent with Chain of Thoughtcited by 32
- 2024What Factors Affect Multi-Modal In-Context Learning? An In-Depth Explorationcited by 31
- 2024Simulation of Graph Algorithms with Looped Transformerscited by 29
- 2023Approximation Rate of the Transformer Architecture for Sequence Modelingcited by 28
- 2024Linear Transformers are Versatile In-Context Learnerscited by 28
- 2024On Expressive Power of Looped Transformers: Theoretical Analysis and Enhancement via Timestep Encodingcited by 28
- 2025Coevolutionary Continuous Discrete Diffusion: Make Your Diffusion Language Model a Latent Reasonercited by 28
- 2024Transformers on Markov Data: Constant Depth Sufficescited by 26
50 most cited of 224 All 224 (JSON)
- 2026Decoding Looped Transformers Better for (Almost) Free1 Oct 2026
- 2026Architectural Sampling: Test-Time Scaling via Computational Diversity in Frozen Vision-Language Models1 Oct 2026
- 2026Looping Beyond Twice: A Scalable Recipe for Looped Mixture-of-Experts1 Oct 2026
- 2026Scaling Laws for Looped Mixture of Experts30 Sep 2026
- 2026Looped Diffusion Transformer30 Sep 2026
- 2026Shared Weights, Selected Computations: How Looped Transformers Route What Each Loop Does30 Sep 2026
- 2026Beyond Simulation: Retain-and-Repair Neural Operators for Real-World Adaptation30 Sep 2026
- 2026A Tilted Bowl Is Not a Slippery Slope: Compressing Looped Models30 Sep 2026
- 2026LoopVL: Recurrent Visual Intelligence29 Sep 2026
- 2026Procedural Core: A Compact Recurrent Initialization for Vision Transformers29 Sep 2026
- 2026Looped Actor: Depth-Recurrent Reasoning Models for Reinforcement Learning29 Sep 2026
- 2026Transformers Stop Thinking Too Early, and a Tiny LoRA Fixes It29 Sep 2026
38 more
- 2026Theory on Attention Dynamics for Out-of-Distribution In-Context Learning29 Sep 2026
- 2026How to Loop MoE: Flatten the Experts, Untie the Attention28 Sep 2026
- 2026Shallow Queries, Mature Values: Depth-Asynchronous Self-Speculation for Looped Transformers28 Sep 2026
- 2026Beyond the Training Horizon: Mechanisms and Limits of Length Generalization in Looped Transformers27 Sep 2026
- 2026When Less Compute Is More: Adaptive Early Exit Improves Pretrained Outlier Detection26 Sep 2026
- 2026Write Back the Delta: Revisiting the Same Tokens with Fresh Representations26 Sep 2026
- 2026Attention Routing Stabilizes Early: Working-Set Inference for Recurrent Language Models23 Sep 2026
- 2026When Recursive Models Finish Computing22 Sep 2026
- 2026Trading Depth for Time in Recurrent Transformers18 Sep 2026
- 2026Prediction Dynamics in Depth-Recurrent Language Models18 Sep 2026
- 2026REFINEPPO: Learning Continuous Control Policies by Iterative Action Refinement17 Sep 2026
- 2026Uni-LaDiR: Latent Diffusion Unifies Multimodal Reasoning17 Sep 2026
- 2026Right Direction, Wrong Step: Geometric Analysis of Finite-Step Failure in Looped Transformers15 Sep 2026
- 2026T-LoopFormer: Token-Level Elastic-Depth Looped Transformers for Latent Reasoning with Dynamic Routing14 Sep 2026
- 2026Bypass Observation: A Conceptual Design of a Non-Intrusive Layer-Wise Semantic Extraction Architecture12 Sep 2026
- 2026How Many Thoughts Can a Vector Hold? The Capacity of Reasoning by Superposition12 Sep 2026
- 2026Thinking with Looped Flows10 Sep 2026
- 2026LoopVAE: Recurrent Depth Across Scales for Visual Tokenization10 Sep 2026
- 2026Looped Transformers under the Jacobian Lens: Does the Global Workspace Survive Recurrence?1 Sep 2026
- 2026Linear Reusable Neural Bases Architecture for Network Compression1 Sep 2026
- 2026Diffusion as a Training Curriculum for Timestep-Free Iterative Reasoning1 Sep 2026
- 2026Latent Recurrent Thoughts: Recurrent Refinement of Proposed Latents for Reasoning with Frozen LLMs1 Sep 2026
- 2026Universal Transformers for Circuit Computations: Perfect Length Generalization in Tiny Transformers31 Aug 2026
- 2026Can Video World Models Track Unobserved World States?31 Aug 2026
- 2026Can a Dynamic Internal Field Govern a Transformer's Cognition? Certifiability, not Superiority, in Homeostatic Compute Control25 Aug 2026
- 2026Intern-S2-Mobius: Foundation Model with Decoupled Knowledge and Reasoning14 Aug 2026
- 2026Full-bandwidth transformer9 Aug 2026
- 2026Iterate or Widen? When Test-Time Refinement Helps LiDAR Scene Completion: A Controlled Study of Evidence Geometry, Training Coverage, and Compute6 Aug 2026
- 2026Maglev: Sliding Recurrent Memory3 Aug 2026
- 2026Planning with Transformers: Chain of Computation and Structured Context Windows20 Jul 2026
- 2026Loop the Loopies!17 Jul 2026
- 2026T^2MLR: Transformer with Temporal Middle-Layer Recurrence16 Jul 2026
- 2026DeepLoop: Depth Scaling for Looped Transformers15 Jul 2026
- 2026Energy-guided Recursive Model11 Jul 2026
- 2026Adaptive Depth in Looped Transformers: Diagnosing Learned Halting Gates and Trajectory Readouts8 Jul 2026
- 2026A Unified Framework for In-Context Learning with Causal and Masked Language Models5 Jul 2026
- 2026Stabilizing Extrapolation in Looped Transformers via Learned Stochastic Stopping29 Jun 2026
- 2026Looped World Models16 Jun 2026
50 newest of 224 All 224 (JSON)
- 2024Training Large Language Models to Reason in a Continuous Latent Spacecited by 763
- 2023Augmented Language Models: a Surveycited by 398
- 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 293
- 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problemscited by 256
- 2025Reasoning with Latent Thoughts: On the Power of Looped Transformerscited by 223
- 2025Efficient Reasoning Models: A Surveycited by 93
- 2023Auto-Regressive Next-Token Predictors are Universal Learnerscited by 65
- 2026LoopFormer: Elastic-Depth Looped Transformers for Latent Reasoning via Shortcut Modulationcited by 48
- 2025Transformers Learn to Implement Multi-step Gradient Descent with Chain of Thoughtcited by 32
- 2024What Factors Affect Multi-Modal In-Context Learning? An In-Depth Explorationcited by 31
- 2025Coevolutionary Continuous Discrete Diffusion: Make Your Diffusion Language Model a Latent Reasonercited by 28
- 2025Encode, Think, Decode: Scaling test-time reasoning with recursive latent thoughtscited by 23
12 most cited of 50 All 50 (JSON)
- 2026Architectural Sampling: Test-Time Scaling via Computational Diversity in Frozen Vision-Language Models1 Oct 2026
- 2026Looped Actor: Depth-Recurrent Reasoning Models for Reinforcement Learning29 Sep 2026
- 2026Beyond the Training Horizon: Mechanisms and Limits of Length Generalization in Looped Transformers27 Sep 2026
- 2026Attention Routing Stabilizes Early: Working-Set Inference for Recurrent Language Models23 Sep 2026
- 2026Uni-LaDiR: Latent Diffusion Unifies Multimodal Reasoning17 Sep 2026
- 2026Right Direction, Wrong Step: Geometric Analysis of Finite-Step Failure in Looped Transformers15 Sep 2026
- 2026How Many Thoughts Can a Vector Hold? The Capacity of Reasoning by Superposition12 Sep 2026
- 2026Latent Recurrent Thoughts: Recurrent Refinement of Proposed Latents for Reasoning with Frozen LLMs1 Sep 2026
- 2026Iterate or Widen? When Test-Time Refinement Helps LiDAR Scene Completion: A Controlled Study of Evidence Geometry, Training Coverage, and Compute6 Aug 2026
- 2026Energy-guided Recursive Model11 Jul 2026
- 2026Entropy-Gated Latent Recursion15 Jun 2026
- 2026Chain-of-Thought and Compressed Looped Transformers: A Memory-Budget Separation29 May 2026
12 newest of 50 All 50 (JSON)
- 2023The Expressive Power of Low-Rank Adaptationcited by 100
- 2023Deep Networks as Denoising Algorithms: Sample-Efficient Learning of Diffusion Models in High-Dimensional Graphical Modelscited by 39
- 2024U-Nets as Belief Propagation: Efficient Classification, Denoising, and Diffusion in Generative Hierarchical Modelscited by 17
- 2025Towards High-Order Mean Flow Generative Models: Feasibility, Expressivity, and Provably Efficient Criteriacited by 5
- 2026Diffusion as a Training Curriculum for Timestep-Free Iterative Reasoningcited by 1
- 2026Looped Diffusion Language Modelscited by 0
- 2026Recursive Scaling in Masked Diffusion Modelscited by 0
- 2026Looped Diffusion Transformercited by 0
- 2026Looped Diffusion Transformer30 Sep 2026
- 2026Diffusion as a Training Curriculum for Timestep-Free Iterative Reasoning1 Sep 2026
- 2026Recursive Scaling in Masked Diffusion Models16 Jun 2026
- 2026Looped Diffusion Language Models25 May 2026
- 2025Towards High-Order Mean Flow Generative Models: Feasibility, Expressivity, and Provably Efficient Criteria9 Aug 2025
- 2024U-Nets as Belief Propagation: Efficient Classification, Denoising, and Diffusion in Generative Hierarchical Models29 Apr 2024
- 2023The Expressive Power of Low-Rank Adaptation26 Oct 2023
- 2023Deep Networks as Denoising Algorithms: Sample-Efficient Learning of Diffusion Models in High-Dimensional Graphical Models20 Sep 2023
- 2026LoopCoder-v2: Only Loop Once for Efficient Test-Time Computation Scalingcited by 4
- 2026Fixed-Point Masked Generative Modelingcited by 2
- 2026Scratchpad Patching: Decoupling Compute from Patch Size in Byte-Level Language Modelscited by 1
- 2026T-LoopFormer: Token-Level Elastic-Depth Looped Transformers for Latent Reasoning with Dynamic Routingcited by 1
- 2026When Less Compute Is More: Adaptive Early Exit Improves Pretrained Outlier Detectioncited by 0
- 2026When Less Compute Is More: Adaptive Early Exit Improves Pretrained Outlier Detection26 Sep 2026
- 2026T-LoopFormer: Token-Level Elastic-Depth Looped Transformers for Latent Reasoning with Dynamic Routing14 Sep 2026
- 2026LoopCoder-v2: Only Loop Once for Efficient Test-Time Computation Scaling16 Jun 2026
- 2026Fixed-Point Masked Generative Modeling29 May 2026
- 2026Scratchpad Patching: Decoupling Compute from Patch Size in Byte-Level Language Models10 May 2026
- 2026Training-Free Looped Transformerscited by 12
- 2026Loop the Loopies!cited by 4
- 2026How to Loop MoE: Flatten the Experts, Untie the Attentioncited by 0
- 2026Scaling Laws for Looped Mixture of Expertscited by 0
- 2026Looping Beyond Twice: A Scalable Recipe for Looped Mixture-of-Expertscited by 0
- 2026Looping Beyond Twice: A Scalable Recipe for Looped Mixture-of-Experts1 Oct 2026
- 2026Scaling Laws for Looped Mixture of Experts30 Sep 2026
- 2026How to Loop MoE: Flatten the Experts, Untie the Attention28 Sep 2026
- 2026Loop the Loopies!17 Jul 2026
- 2026Training-Free Looped Transformers22 May 2026
- 2026Looped World Modelscited by 2
- 2026Can Video World Models Track Unobserved World States?cited by 1
- 2026Can Video World Models Track Unobserved World States?31 Aug 2026
- 2026Looped World Models16 Jun 2026
- 2023One Fits All:Power General Time Series Analysis by Pretrained LMcited by 615
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
- 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 274
- 2023Foundation Models for Decision Making: Problems, Methods, and Opportunitiescited by 160
- 2023Looped Transformers are Better at Learning Learning Algorithmscited by 135
- 2023LLM4TS: Aligning Pre-Trained LLMs as Data-Efficient Time-Series Forecasterscited by 127
- 2023Teaching Arithmetic to Small Transformerscited by 121
- 2025Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computationcited by 120
- 2024How Transformers Learn Causal Structure with Gradient Descentcited by 114
- 2023In-Context Convergence of Transformerscited by 112
- 2023Uncovering mesa-optimization algorithms in Transformerscited by 94
12 most cited of 149 All 149 (JSON)
- 2026Decoding Looped Transformers Better for (Almost) Free1 Oct 2026
- 2026Shared Weights, Selected Computations: How Looped Transformers Route What Each Loop Does30 Sep 2026
- 2026Beyond Simulation: Retain-and-Repair Neural Operators for Real-World Adaptation30 Sep 2026
- 2026A Tilted Bowl Is Not a Slippery Slope: Compressing Looped Models30 Sep 2026
- 2026LoopVL: Recurrent Visual Intelligence29 Sep 2026
- 2026Procedural Core: A Compact Recurrent Initialization for Vision Transformers29 Sep 2026
- 2026Transformers Stop Thinking Too Early, and a Tiny LoRA Fixes It29 Sep 2026
- 2026Theory on Attention Dynamics for Out-of-Distribution In-Context Learning29 Sep 2026
- 2026Shallow Queries, Mature Values: Depth-Asynchronous Self-Speculation for Looped Transformers28 Sep 2026
- 2026Write Back the Delta: Revisiting the Same Tokens with Fresh Representations26 Sep 2026
- 2026When Recursive Models Finish Computing22 Sep 2026
- 2026Trading Depth for Time in Recurrent Transformers18 Sep 2026
12 newest of 149 All 149 (JSON)