End-to-end Algorithm Synthesis with Recurrent Networks: Logical Extrapolation Without Overthinking
On the map: LLM reasoning → Test-time compute and efficient thinking
Abstract (arXiv)
Machine learning systems perform well on pattern matching tasks, but their ability to perform algorithmic or logical reasoning is not well understood. One important reasoning capability is algorithmic extrapolation, in which models trained only on small/simple reasoning problems can synthesize complex strategies for large/complex problems at test time. Algorithmic extrapolation can be achieved through recurrent systems, which can be iterated many times to solve difficult reasoning problems. We observe that this approach fails to scale to highly complex problems because behavior degenerates when many iterations are applied -- an issue we refer to as "overthinking." We propose a recall architecture that keeps an explicit copy of the problem instance in memory so that it cannot be forgotten. We also employ a progressive training routine that prevents the model from learning behaviors that are specific to iteration number and instead pushes it to learn behaviors that can be repeated indefinitely. These innovations prevent the overthinking problem, and enable recurrent systems to solve extremely hard extrapolation tasks.
Key facts. Cited by 33 papers in the map (data through 14 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 19 of its 25 references that are in the map. First posted on arXiv 11 Feb 2022.
Builds on
19 of 25 references.
References · 19
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2016Densely Connected Convolutional Networkscited by 6,720
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2018Universal Transformerscited by 647
- 2014Neural Turing Machinescited by 644
- 2016Adaptive Computation Time for Recurrent Neural Networkscited by 506
- 2015Highway Networkscited by 260
- 2018Learning a SAT Solver from Single-Bit Supervisioncited by 200
- 2021PonderNet: Learning to Pondercited by 168
- 2015Neural GPUs Learn Algorithmscited by 121
- 2021Can You Learn an Algorithm? Generalizing from Easy to Hard Problems with Recurrent Networkscited by 117
7 more
- 2017Recurrent Relational Networkscited by 72
- 2020Differentiable Adaptive Computation Time for Visual Reasoningcited by 12
- 2021Datasets for Studying Generalization from Easy to Hard Examplescited by 12
- 2021The Uncanny Similarity of Recurrence and Depthcited by 9
- 2018NAIS-Net: Stable Deep Networks from Non-Autonomous Differential Equationscited by 7
- 2017Improving the Neural GPU Architecture for Algorithm Learningcited by 4
- 2021Deep Algorithmic Question Answering: Towards a Compositionally Hybrid AI for Algorithmic Reasoningcited by 2
Built on by
Citing papers per year: 2022: 6; 2023: 8; 2024: 5; 2025: 4; 2026: 10.
33 papers.
Sort:
By area:
- 2022Transformers Learn Shortcuts to Automatacited by 268
- 2022Neural Networks and the Chomsky Hierarchycited by 217
- 2022Exploring Length Generalization in Large Language Modelscited by 206
- 2023Looped Transformers are Better at Learning Learning Algorithmscited by 149
- 2024Transformers Can Do Arithmetic with the Right Embeddingscited by 78
- 2024Relaxed Recursive Transformers: Effective Parameter Sharing with Layer-wise LoRAcited by 78
- 2023Length Generalization in Arithmetic Transformerscited by 66
- 2022A Generalist Neural Algorithmic Learnercited by 59
- 2024The Unreasonable Effectiveness of Easy Training Data for Hard Taskscited by 40
- 2022Path Independent Equilibrium Models Can Better Exploit Test-Time Computationcited by 38
- 2023Neural Algorithmic Reasoning with Causal Regularisationcited by 31
- 2023Adaptive Computation with Elastic Input Sequencecited by 22
21 more
- 2023Banana: Banach Fixed-Point Network for Pointcloud Segmentation with Inter-Part Equivariancecited by 19
- 2023SALSA-CLRS: A Sparse and Scalable Benchmark for Algorithmic Reasoningcited by 12
- 2026Stability and Generalization in Looped Transformerscited by 10
- 2025Position: An Empirically Grounded Identifiability Theory Will Accelerate Self-Supervised Learning Researchcited by 9
- 2023Grounded Image Text Matching with Mismatched Relation Reasoningcited by 8
- 2024Benchmarking ChatGPT on Algorithmic Reasoningcited by 8
- 2023Adaptive recurrent vision performs zero-shot computation scaling to unseen difficulty levelscited by 6
- 2025Unlocking Out-of-Distribution Generalization in Transformers via Recursive Latent Space Reasoningcited by 6
- 2025Learning to Stop Overthinking at Test Timecited by 4
- 2026Stabilizing Extrapolation in Looped Transformers via Learned Stochastic Stoppingcited by 4
- 2022Logical Tasks for Measuring Extrapolation and Rule Comprehensioncited by 3
- 2026What Survives When You Compress a Recursive Reasoner for the Edge?cited by 3
- 2024MazeNet: An Accurate, Fast, and Scalable Deep Learning Solution for Steiner Minimum Treescited by 0
- 2025Playing Hex and Counter Wargames using Reinforcement Learning and Recurrent Neural Networkscited by 0
- 2026Anatomy of a Sound Neural Reasoner: One-Shot Amortization, First-Pass Poisoning, and Search Inertness in Clue-Rich Completioncited by 0
- 2026DART: Distributional Adversarial Recurrent Training for Algorithm Learningcited by 0
- 2026Storing Is Not Remembering: LSTM-UT and Bounded Gated Memory for Looped Transformerscited by 0
- 2026Reasoning with Neural Cellular Automatacited by 0
- 2026Transformers Stop Thinking Too Early, and a Tiny LoRA Fixes Itcited by 0
- 2026Looped Actor: Depth-Recurrent Reasoning Models for Reinforcement Learningcited by 0
- 2026Random Recursive Modelscited by 0
- 2026Random Recursive Models30 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
- 2026Reasoning with Neural Cellular Automata28 Sep 2026
- 2026Storing Is Not Remembering: LSTM-UT and Bounded Gated Memory for Looped Transformers17 Sep 2026
- 2026DART: Distributional Adversarial Recurrent Training for Algorithm Learning5 Sep 2026
- 2026Anatomy of a Sound Neural Reasoner: One-Shot Amortization, First-Pass Poisoning, and Search Inertness in Clue-Rich Completion22 Jul 2026
- 2026Stabilizing Extrapolation in Looped Transformers via Learned Stochastic Stopping29 Jun 2026
- 2026What Survives When You Compress a Recursive Reasoner for the Edge?25 Jun 2026
- 2026Stability and Generalization in Looped Transformers16 Apr 2026
- 2025Unlocking Out-of-Distribution Generalization in Transformers via Recursive Latent Space Reasoning15 Oct 2025
- 2025Position: An Empirically Grounded Identifiability Theory Will Accelerate Self-Supervised Learning Research17 Apr 2025
21 more
- 2025Playing Hex and Counter Wargames using Reinforcement Learning and Recurrent Neural Networks19 Feb 2025
- 2025Learning to Stop Overthinking at Test Time16 Feb 2025
- 2024Relaxed Recursive Transformers: Effective Parameter Sharing with Layer-wise LoRA28 Oct 2024
- 2024MazeNet: An Accurate, Fast, and Scalable Deep Learning Solution for Steiner Minimum Trees24 Oct 2024
- 2024Transformers Can Do Arithmetic with the Right Embeddings27 May 2024
- 2024Benchmarking ChatGPT on Algorithmic Reasoning4 Apr 2024
- 2024The Unreasonable Effectiveness of Easy Training Data for Hard Tasks12 Jan 2024
- 2023Looped Transformers are Better at Learning Learning Algorithms21 Nov 2023
- 2023Adaptive recurrent vision performs zero-shot computation scaling to unseen difficulty levels12 Nov 2023
- 2023SALSA-CLRS: A Sparse and Scalable Benchmark for Algorithmic Reasoning21 Sep 2023
- 2023Grounded Image Text Matching with Mismatched Relation Reasoning2 Aug 2023
- 2023Length Generalization in Arithmetic Transformers27 Jun 2023
- 2023Banana: Banach Fixed-Point Network for Pointcloud Segmentation with Inter-Part Equivariance25 May 2023
- 2023Neural Algorithmic Reasoning with Causal Regularisation20 Feb 2023
- 2023Adaptive Computation with Elastic Input Sequence30 Jan 2023
- 2022Path Independent Equilibrium Models Can Better Exploit Test-Time Computation18 Nov 2022
- 2022Logical Tasks for Measuring Extrapolation and Rule Comprehension14 Nov 2022
- 2022Transformers Learn Shortcuts to Automata19 Oct 2022
- 2022A Generalist Neural Algorithmic Learner22 Sep 2022
- 2022Exploring Length Generalization in Large Language Models11 Jul 2022
- 2022Neural Networks and the Chomsky Hierarchy5 Jul 2022
- 2024The Unreasonable Effectiveness of Easy Training Data for Hard Taskscited by 40
- 2023Neural Algorithmic Reasoning with Causal Regularisationcited by 31
- 2026Stability and Generalization in Looped Transformerscited by 10
- 2025Unlocking Out-of-Distribution Generalization in Transformers via Recursive Latent Space Reasoningcited by 6
- 2025Learning to Stop Overthinking at Test Timecited by 4
- 2022Logical Tasks for Measuring Extrapolation and Rule Comprehensioncited by 3
- 2026What Survives When You Compress a Recursive Reasoner for the Edge?cited by 3
- 2026DART: Distributional Adversarial Recurrent Training for Algorithm Learningcited by 0
- 2026Reasoning with Neural Cellular Automatacited by 0
- 2026Looped Actor: Depth-Recurrent Reasoning Models for Reinforcement Learningcited by 0
- 2026Looped Actor: Depth-Recurrent Reasoning Models for Reinforcement Learning29 Sep 2026
- 2026Reasoning with Neural Cellular Automata28 Sep 2026
- 2026DART: Distributional Adversarial Recurrent Training for Algorithm Learning5 Sep 2026
- 2026What Survives When You Compress a Recursive Reasoner for the Edge?25 Jun 2026
- 2026Stability and Generalization in Looped Transformers16 Apr 2026
- 2025Unlocking Out-of-Distribution Generalization in Transformers via Recursive Latent Space Reasoning15 Oct 2025
- 2025Learning to Stop Overthinking at Test Time16 Feb 2025
- 2024The Unreasonable Effectiveness of Easy Training Data for Hard Tasks12 Jan 2024
- 2023Neural Algorithmic Reasoning with Causal Regularisation20 Feb 2023
- 2022Logical Tasks for Measuring Extrapolation and Rule Comprehension14 Nov 2022
- 2022Transformers Learn Shortcuts to Automatacited by 268
- 2022Neural Networks and the Chomsky Hierarchycited by 217
- 2022Exploring Length Generalization in Large Language Modelscited by 206
- 2023Looped Transformers are Better at Learning Learning Algorithmscited by 149
- 2024Transformers Can Do Arithmetic with the Right Embeddingscited by 78
- 2024Relaxed Recursive Transformers: Effective Parameter Sharing with Layer-wise LoRAcited by 78
- 2023Length Generalization in Arithmetic Transformerscited by 66
- 2022A Generalist Neural Algorithmic Learnercited by 59
- 2022Path Independent Equilibrium Models Can Better Exploit Test-Time Computationcited by 38
- 2023Adaptive Computation with Elastic Input Sequencecited by 22
- 2023Banana: Banach Fixed-Point Network for Pointcloud Segmentation with Inter-Part Equivariancecited by 19
- 2023SALSA-CLRS: A Sparse and Scalable Benchmark for Algorithmic Reasoningcited by 12
12 most cited of 22 All 22 (JSON)
- 2026Random Recursive Models30 Sep 2026
- 2026Transformers Stop Thinking Too Early, and a Tiny LoRA Fixes It29 Sep 2026
- 2026Storing Is Not Remembering: LSTM-UT and Bounded Gated Memory for Looped Transformers17 Sep 2026
- 2026Anatomy of a Sound Neural Reasoner: One-Shot Amortization, First-Pass Poisoning, and Search Inertness in Clue-Rich Completion22 Jul 2026
- 2026Stabilizing Extrapolation in Looped Transformers via Learned Stochastic Stopping29 Jun 2026
- 2025Position: An Empirically Grounded Identifiability Theory Will Accelerate Self-Supervised Learning Research17 Apr 2025
- 2024Relaxed Recursive Transformers: Effective Parameter Sharing with Layer-wise LoRA28 Oct 2024
- 2024MazeNet: An Accurate, Fast, and Scalable Deep Learning Solution for Steiner Minimum Trees24 Oct 2024
- 2024Transformers Can Do Arithmetic with the Right Embeddings27 May 2024
- 2024Benchmarking ChatGPT on Algorithmic Reasoning4 Apr 2024
- 2023Looped Transformers are Better at Learning Learning Algorithms21 Nov 2023
- 2023Adaptive recurrent vision performs zero-shot computation scaling to unseen difficulty levels12 Nov 2023
12 newest of 22 All 22 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Beyond Interpolation: Extrapolative Reasoning with Reinforcement Learning and Graph Neural Networks
- 2025Beyond Memorization: Extending Reasoning Depth with Recurrence, Memory and Test-Time Compute Scaling
- 2026Boosting Inference with Guided Reasoning: Stochastic Exploration for Recursive Models
- 2026Beyond Repeated Sampling: Learning Search Policies for LLM Reasoning
- 2026Input-Conditioned Search for Efficient Test-Time Scaling of Recursive Reasoners
- 2025Temporal Sampling for Forgotten Reasoning in LLMs
- 2025Attend or Perish: Benchmarking Attention in Algorithmic Reasoning
- 2025Stop Overthinking: A Survey on Efficient Reasoning for Large Language Models