Can You Learn an Algorithm? Generalizing from Easy to Hard Problems with Recurrent Networks
Not on the map. Why?
Abstract (arXiv)
Deep neural networks are powerful machines for visual pattern recognition, but reasoning tasks that are easy for humans may still be difficult for neural models. Humans possess the ability to extrapolate reasoning strategies learned on simple problems to solve harder examples, often by thinking for longer. For example, a person who has learned to solve small mazes can easily extend the very same search techniques to solve much larger mazes by spending more time. In computers, this behavior is often achieved through the use of algorithms, which scale to arbitrarily hard problem instances at the cost of more computation. In contrast, the sequential computing budget of feed-forward neural networks is limited by their depth, and networks trained on simple problems have no way of extending their reasoning to accommodate harder problems. In this work, we show that recurrent networks trained to solve simple problems with few recurrent steps can indeed solve much more complex problems simply by performing additional recurrences during inference. We demonstrate this algorithmic behavior of recurrent networks on prefix sum computation, mazes, and chess. In all three domains, networks trained on simple problem instances are able to extend their reasoning abilities at test time simply by "thinking for longer."
Key facts. Cited by 108 papers in the map (data through 7 Oct 2026). Builds on 17 of its 43 references that are in the map. First posted on arXiv 8 Jun 2021.
Builds on
17 of 43 references.
References · 17
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2019Invariant Risk Minimizationcited by 1,832
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
- 2016Deep Networks with Stochastic Depthcited by 973
- 2017Mastering Chess and Shogi by Self-Play with a General Reinforcement Learning Algorithmcited by 723
- 2014Neural Turing Machinescited by 630
- 2019Deep Equilibrium Modelscited by 603
- 2016Adaptive Computation Time for Recurrent Neural Networkscited by 479
- 2018Learning a SAT Solver from Single-Bit Supervisioncited by 198
- 2018Recurrent Residual Convolutional Neural Network based on U-Net (R2U-Net) for Medical Image Segmentationcited by 180
- 2016Value Iteration Networkscited by 158
5 more
- 2015Neural GPUs Learn Algorithmscited by 118
- 2020Aligning Superhuman AI with Human Behavior: Chess as a Model Systemcited by 78
- 2018Trellis Networks for Sequence Modelingcited by 50
- 2016Bridging the Gaps Between Residual Learning, Recurrent Neural Networks and Visual Cortexcited by 42
- 2020Differentiable Adaptive Computation Time for Visual Reasoningcited by 12
Built on by
Citing papers per year: 2022: 17; 2023: 17; 2024: 22; 2025: 15; 2026: 37.
108 papers.
Sort:
By area:
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
- 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 496
- 2023Large Language Models Are Zero-Shot Time Series Forecasterscited by 491
- 2023Weak-to-Strong Generalization: Eliciting Strong Capabilities With Weak Supervisioncited by 445
- 2022Transformers Learn Shortcuts to Automatacited by 260
- 2025Reasoning with Latent Thoughts: On the Power of Looped Transformerscited by 223
- 2022Exploring Length Generalization in Large Language Modelscited by 204
- 2023Let's Sample Step by Step: Adaptive-Consistency for Efficient Reasoning and Coding with LLMscited by 111
- 2024Easy-to-Hard Generalization: Scalable Alignment Beyond Human Supervisioncited by 95
- 2022Tutorial on amortized optimizationcited by 83
38 more
- 2024Transformers Can Achieve Length Generalization But Not Robustlycited by 82
- 2024Transformers Can Do Arithmetic with the Right Embeddingscited by 77
- 2024Relaxed Recursive Transformers: Effective Parameter Sharing with Layer-wise LoRAcited by 72
- 2022Simplicity Bias in Transformers and their Ability to Learn Sparse Boolean Functionscited by 68
- 2023The No Free Lunch Theorem, Kolmogorov Complexity, and the Role of Inductive Biases in Machine Learningcited by 63
- 2026Parcae: Scaling Laws For Stable Looped Language Modelscited by 45
- 2024The Unreasonable Effectiveness of Easy Training Data for Hard Taskscited by 40
- 2024Adaptive Length Image Tokenization via Recurrent Allocationcited by 40
- 2024Learning Iterative Reasoning through Energy Diffusioncited by 36
- 2022End-to-end Algorithm Synthesis with Recurrent Networks: Logical Extrapolation Without Overthinkingcited by 33
- 2022Path Independent Equilibrium Models Can Better Exploit Test-Time Computationcited by 33
- 2023Skills-in-Context Prompting: Unlocking Compositionality in Large Language Modelscited by 33
- 2022Learning Iterative Reasoning through Energy Minimizationcited by 32
- 2023A Configurable Library for Generating and Manipulating Maze Datasetscited by 31
- 2025Self-Improving Transformers Overcome Easy-to-Hard and Length Generalization Challengescited by 30
- 2024Universal Length Generalization with Turing Programscited by 25
- 2024Easy2Hard-Bench: Standardized Difficulty Labels for Profiling LLM Performance and Generalizationcited by 24
- 2025Encode, Think, Decode: Scaling test-time reasoning with recursive latent thoughtscited by 23
- 2023Adaptive Computation with Elastic Input Sequencecited by 22
- 2025Continuous Thought Machinescited by 21
- 2023Banana: Banach Fixed-Point Network for Pointcloud Segmentation with Inter-Part Equivariancecited by 19
- 2024Planning in a recurrent neural network that plays Sokobancited by 17
- 2024Provable Weak-to-Strong Generalization via Benign Overfittingcited by 16
- 2026Probabilistic Tiny Recursive Modelcited by 16
- 2023Iterative Forward Tuning Boosts In-Context Learning in Language Modelscited by 15
- 2026LoopViT: Scaling Visual ARC with Looped Transformerscited by 14
- 2024MathGAP: Out-of-Distribution Evaluation on Problems with Arbitrarily Complex Proofscited by 12
- 2026Equilibrium Reasoners: Learning Attractors Enables Scalable Reasoningcited by 12
- 2026Training-Free Looped Transformerscited by 12
- 2023SALSA-CLRS: A Sparse and Scalable Benchmark for Algorithmic Reasoningcited by 11
- 2022A Recursively Recurrent Neural Network (R2N2) Architecture for Learning Iterative Algorithmscited by 8
- 2023Grounded Image Text Matching with Mismatched Relation Reasoningcited by 8
- 2024Benchmarking ChatGPT on Algorithmic Reasoningcited by 8
- 2024Rethinking Deep Thinking: Stable Learning of Algorithms using Lipschitz Constraintscited by 8
- 2024On Logical Extrapolation for Mazes with Recurrent and Implicit Networkscited by 7
- 2025Random Scaling of Emergent Capabilitiescited by 7
- 2025Efficient Parallel Samplers for Recurrent-Depth Models and Their Connection to Diffusion Language Modelscited by 7
- 2023Adaptive recurrent vision performs zero-shot computation scaling to unseen difficulty levelscited by 6
50 most cited of 108 All 108 (JSON)
- 2026Random Recursive Models30 Sep 2026
- 2026A Tilted Bowl Is Not a Slippery Slope: Compressing Looped Models30 Sep 2026
- 2026LoopVL: Recurrent Visual Intelligence29 Sep 2026
- 2026Transformers Stop Thinking Too Early, and a Tiny LoRA Fixes It29 Sep 2026
- 2026Reasoning with Neural Cellular Automata28 Sep 2026
- 2026LoopICL: Looping a single transformer block to solve tabular tasks28 Sep 2026
- 2026Beyond the Training Horizon: Mechanisms and Limits of Length Generalization in Looped Transformers27 Sep 2026
- 2026When Recursive Models Finish Computing22 Sep 2026
- 2026Storing Is Not Remembering: LSTM-UT and Bounded Gated Memory for Looped Transformers17 Sep 2026
- 2026Right Direction, Wrong Step: Geometric Analysis of Finite-Step Failure in Looped Transformers15 Sep 2026
- 2026Thinking with Looped Flows10 Sep 2026
- 2026DART: Distributional Adversarial Recurrent Training for Algorithm Learning5 Sep 2026
38 more
- 2026Think Shallow, Solve Deep: Controlling Recurrent Dynamics for Reliable Test-Time Depth18 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
- 2026When Does Recurrence Become an Algorithm? Convergence Selection in Weight-Tied Looped Transformers22 Jul 2026
- 2026Anatomy of a Sound Neural Reasoner: One-Shot Amortization, First-Pass Poisoning, and Search Inertness in Clue-Rich Completion22 Jul 2026
- 2026DeepLoop: Depth Scaling for Looped Transformers15 Jul 2026
- 2026The Equilibrium Is the Initialization: Lazy Identity Collapse in Physics-Structured Deep Equilibrium Reasoning13 Jul 2026
- 2026AdaStop: Cost-Aware Early Stopping for DNN Test Selection6 Jul 2026
- 2026Stabilizing Extrapolation in Looped Transformers via Learned Stochastic Stopping29 Jun 2026
- 2026Slots, Transitions, Loops: Learning Composable World Models for ARC10 Jun 2026
- 2026D'ej`a View: Looping Transformers for Multi-View 3D Reconstruction28 May 2026
- 2026Open Problem: Separating Geometric and Algorithmic Compression via Cayley-Table Completion28 May 2026
- 2026Do Language Models Need Sleep? Offline Recurrence for Improved Online Inference25 May 2026
- 2026Training-Free Looped Transformers22 May 2026
- 2026Convex Compositional Reasoning Models22 May 2026
- 2026Equilibrium Reasoners: Learning Attractors Enables Scalable Reasoning20 May 2026
- 2026Probabilistic Tiny Recursive Model19 May 2026
- 2026TIDE: Asymmetric Neural Circuits for Stabilized Temporal Inhibitory-Excitatory Dynamics19 May 2026
- 2026One Model, Two Roles: Emergent Specialization in a Shared Recurrent Transformer18 May 2026
- 2026Investigating Single-Block Recurrence in Vision Transformers for Image Recognition11 May 2026
- 2026When LLMs Stop Following Steps: A Diagnostic Study of Procedural Execution in Language Models1 May 2026
- 2026Parcae: Scaling Laws For Stable Looped Language Models14 Apr 2026
- 2026LA-Sign: Looped Transformers with Geometry-aware Alignment for Skeleton-based Sign Language Recognition30 Mar 2026
- 2026On the Role of Computation in Reinforcement Learning5 Feb 2026
- 2026Can Large Language Models Generalize Procedures Across Representations?3 Feb 2026
- 2026LoopViT: Scaling Visual ARC with Looped Transformers2 Feb 2026
- 2025Generalizable Reasoning through Compositional Energy Minimization23 Oct 2025
- 2025Efficient Parallel Samplers for Recurrent-Depth Models and Their Connection to Diffusion Language Models16 Oct 2025
- 2025Unlocking Out-of-Distribution Generalization in Transformers via Recursive Latent Space Reasoning15 Oct 2025
- 2025Encode, Think, Decode: Scaling test-time reasoning with recursive latent thoughts8 Oct 2025
- 2025Channel-Wise MLPs Improve the Generalization of Recurrent Convolutional Networks6 Aug 2025
- 2025Continuous Thought Machines8 May 2025
- 2025Fixed-Point RNNs: Interpolating from Diagonal to Dense13 Mar 2025
- 2025Reasoning with Latent Thoughts: On the Power of Looped Transformers24 Feb 2025
- 2025Random Scaling of Emergent Capabilities24 Feb 2025
- 2025Playing Hex and Counter Wargames using Reinforcement Learning and Recurrent Neural Networks19 Feb 2025
- 2025Hyper-SET: Designing Transformers via Hyperspherical Energy Minimization17 Feb 2025
- 2025Learning to Stop Overthinking at Test Time16 Feb 2025
- 2025Beyond Interpolation: Extrapolative Reasoning with Reinforcement Learning and Graph Neural Networks6 Feb 2025
50 newest of 108 All 108 (JSON)
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
- 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
- 2025Reasoning with Latent Thoughts: On the Power of Looped Transformerscited by 223
- 2023Let's Sample Step by Step: Adaptive-Consistency for Efficient Reasoning and Coding with LLMscited by 111
- 2024The Unreasonable Effectiveness of Easy Training Data for Hard Taskscited by 40
- 2022End-to-end Algorithm Synthesis with Recurrent Networks: Logical Extrapolation Without Overthinkingcited by 33
- 2025Encode, Think, Decode: Scaling test-time reasoning with recursive latent thoughtscited by 23
- 2026LoopViT: Scaling Visual ARC with Looped Transformerscited by 14
- 2026Equilibrium Reasoners: Learning Attractors Enables Scalable Reasoningcited by 12
- 2025Unlocking Out-of-Distribution Generalization in Transformers via Recursive Latent Space Reasoningcited by 5
- 2025Learning to Stop Overthinking at Test Timecited by 4
- 2022Logical Tasks for Measuring Extrapolation and Rule Comprehensioncited by 3
12 most cited of 18 All 18 (JSON)
- 2026Reasoning with Neural Cellular Automata28 Sep 2026
- 2026Beyond the Training Horizon: Mechanisms and Limits of Length Generalization in Looped Transformers27 Sep 2026
- 2026Right Direction, Wrong Step: Geometric Analysis of Finite-Step Failure in Looped Transformers15 Sep 2026
- 2026DART: Distributional Adversarial Recurrent Training for Algorithm Learning5 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
- 2026Convex Compositional Reasoning Models22 May 2026
- 2026Equilibrium Reasoners: Learning Attractors Enables Scalable Reasoning20 May 2026
- 2026LoopViT: Scaling Visual ARC with Looped Transformers2 Feb 2026
- 2025Unlocking Out-of-Distribution Generalization in Transformers via Recursive Latent Space Reasoning15 Oct 2025
- 2025Encode, Think, Decode: Scaling test-time reasoning with recursive latent thoughts8 Oct 2025
- 2025Reasoning with Latent Thoughts: On the Power of Looped Transformers24 Feb 2025
- 2025Learning to Stop Overthinking at Test Time16 Feb 2025
12 newest of 18 All 18 (JSON)
- 2026Training-Free Looped Transformerscited by 12
- 2026Training-Free Looped Transformers22 May 2026
- 2025Fixed-Point RNNs: Interpolating from Diagonal to Densecited by 5
- 2025Fixed-Point RNNs: Interpolating from Diagonal to Dense13 Mar 2025
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 496
- 2023Large Language Models Are Zero-Shot Time Series Forecasterscited by 491
- 2022Transformers Learn Shortcuts to Automatacited by 260
- 2022Exploring Length Generalization in Large Language Modelscited by 204
- 2022Tutorial on amortized optimizationcited by 83
- 2024Transformers Can Achieve Length Generalization But Not Robustlycited by 82
- 2024Transformers Can Do Arithmetic with the Right Embeddingscited by 77
- 2024Relaxed Recursive Transformers: Effective Parameter Sharing with Layer-wise LoRAcited by 72
- 2022Simplicity Bias in Transformers and their Ability to Learn Sparse Boolean Functionscited by 68
- 2023The No Free Lunch Theorem, Kolmogorov Complexity, and the Role of Inductive Biases in Machine Learningcited by 63
- 2026Parcae: Scaling Laws For Stable Looped Language Modelscited by 45
12 most cited of 81 All 81 (JSON)
- 2026Random Recursive Models30 Sep 2026
- 2026A Tilted Bowl Is Not a Slippery Slope: Compressing Looped Models30 Sep 2026
- 2026LoopVL: Recurrent Visual Intelligence29 Sep 2026
- 2026Transformers Stop Thinking Too Early, and a Tiny LoRA Fixes It29 Sep 2026
- 2026LoopICL: Looping a single transformer block to solve tabular tasks28 Sep 2026
- 2026When Recursive Models Finish Computing22 Sep 2026
- 2026Storing Is Not Remembering: LSTM-UT and Bounded Gated Memory for Looped Transformers17 Sep 2026
- 2026Thinking with Looped Flows10 Sep 2026
- 2026Think Shallow, Solve Deep: Controlling Recurrent Dynamics for Reliable Test-Time Depth18 Aug 2026
- 2026When Does Recurrence Become an Algorithm? Convergence Selection in Weight-Tied Looped Transformers22 Jul 2026
- 2026Anatomy of a Sound Neural Reasoner: One-Shot Amortization, First-Pass Poisoning, and Search Inertness in Clue-Rich Completion22 Jul 2026
- 2026DeepLoop: Depth Scaling for Looped Transformers15 Jul 2026
12 newest of 81 All 81 (JSON)