Transformers meet Neural Algorithmic Reasoners
On the map: LLM reasoning → Reasoning benchmarks and evaluation
Abstract (arXiv)
Transformers have revolutionized machine learning with their simple yet effective architecture. Pre-training Transformers on massive text datasets from the Internet has led to unmatched generalization for natural language understanding (NLU) tasks. However, such language models remain fragile when tasked with algorithmic forms of reasoning, where computations must be precise and robust. To address this limitation, we propose a novel approach that combines the Transformer's language understanding with the robustness of graph neural network (GNN)-based neural algorithmic reasoners (NARs). Such NARs proved effective as generic solvers for algorithmic tasks, when specified in graph form. To make their embeddings accessible to a Transformer, we propose a hybrid architecture with a two-phase training procedure, allowing the tokens in the language model to cross-attend to the node embeddings from the NAR. We evaluate our resulting TransNAR model on CLRS-Text, the text-based version of the CLRS-30 benchmark, and demonstrate significant gains over Transformer-only models for algorithmic reasoning, both in and out of distribution.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 16 of its 40 references that are in the map. First posted on arXiv 13 Jun 2024.
Builds on
16 of 40 references.
References · 16
- 2023GPT-4 Technical Reportcited by 18,132
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2023Gemini: A Family of Highly Capable Multimodal Modelscited by 810
- 2021Perceiver IO: A General Architecture for Structured Inputs & Outputscited by 616
- 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 496
- 2020How Neural Networks Extrapolate: From Feedforward to Graph Neural Networkscited by 218
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 198
- 2023Teaching Arithmetic to Small Transformerscited by 121
- 2019Neural Execution of Graph Algorithmscited by 118
- 2022Teaching Algorithmic Reasoning via In-context Learningcited by 111
- 2023Generalization on the Unseen, Logic Reasoning and Degree Curriculumcited by 73
4 more
- 2023Positional Description Matters for Transformers Arithmeticcited by 56
- 2023Exploring the Power of Graph Neural Networks in Solving Linear Optimization Problemscited by 24
- 2023Dual Algorithmic Reasoningcited by 21
- 2023Neural Algorithmic Reasoning for Combinatorial Optimisationcited by 19
Built on by
Citing papers per year: 2024: 6; 2025: 5; 2026: 1.
12 papers.
- 2025Hierarchical Reasoning Modelcited by 167
- 2024GraphArena: Evaluating and Exploring Large Language Models on Graph Computationcited by 48
- 2024Artificial Kuramoto Oscillatory Neuronscited by 37
- 2025Primal-Dual Neural Algorithmic Reasoningcited by 8
- 2024Recurrent Aggregators in Neural Algorithmic Reasoningcited by 6
- 2025Can LLMs Reason Structurally? Benchmarking via the Lens of Data Structurescited by 5
- 2024Algorithmic Language Models with Neurally Compiled Librariescited by 2
- 2024NAR-*ICP: Neural Execution of Classical ICP-based Pointcloud Registration Algorithmscited by 2
- 2024Open-Book Neural Algorithmic Reasoningcited by 2
- 2025Neural Algorithmic Reasoners informed Large Language Model for Multi-Agent Path Findingcited by 1
- 2025Efficiently Learning Branching Networks for Multitask Algorithmic Reasoningcited by 0
- 2026Inductive Generalization for Robotic Manipulationcited by 0
- 2026Inductive Generalization for Robotic Manipulation19 Jun 2026
- 2025Efficiently Learning Branching Networks for Multitask Algorithmic Reasoning30 Nov 2025
- 2025Neural Algorithmic Reasoners informed Large Language Model for Multi-Agent Path Finding25 Aug 2025
- 2025Hierarchical Reasoning Model26 Jun 2025
- 2025Can LLMs Reason Structurally? Benchmarking via the Lens of Data Structures29 May 2025
- 2025Primal-Dual Neural Algorithmic Reasoning29 May 2025
- 2024Open-Book Neural Algorithmic Reasoning30 Dec 2024
- 2024Artificial Kuramoto Oscillatory Neurons17 Oct 2024
- 2024NAR-*ICP: Neural Execution of Classical ICP-based Pointcloud Registration Algorithms14 Oct 2024
- 2024Recurrent Aggregators in Neural Algorithmic Reasoning11 Sep 2024
- 2024Algorithmic Language Models with Neurally Compiled Libraries6 Jul 2024
- 2024GraphArena: Evaluating and Exploring Large Language Models on Graph Computation29 Jun 2024
Similar, not cited
Close in wording, no citation either way
- 2024Understanding Transformer Reasoning Capabilities via Graph Algorithms
- 2022Can Transformers Reason in Fragments of Natural Language?
- 2024Reasoning in Transformers -- Mitigating Spurious Correlations and Reasoning Shortcuts
- 2024Reasoning Algorithmically in Graph Neural Networks
- 2024The CLRS-Text Algorithmic Reasoning Language Benchmark
- 2024Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalization
- 2026Grounding latent algorithm routing in transformer reasoning
- 2023Transformers in the Service of Description Logic-based Contexts