mlsanityData to 7 Oct 2026

Transformers meet Neural Algorithmic Reasoners

arXiv 2406.09308 ↗First posted 13 Jun 2024cs.CL cs.LGcited by 12

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

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  3. 2022Emergent Abilities of Large Language Modelscited by 2,483
  4. 2023Gemini: A Family of Highly Capable Multimodal Modelscited by 810
  5. 2021Perceiver IO: A General Architecture for Structured Inputs & Outputscited by 616
  6. 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 496
  7. 2020How Neural Networks Extrapolate: From Feedforward to Graph Neural Networkscited by 218
  8. 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 198
  9. 2023Teaching Arithmetic to Small Transformerscited by 121
  10. 2019Neural Execution of Graph Algorithmscited by 118
  11. 2022Teaching Algorithmic Reasoning via In-context Learningcited by 111
  12. 2023Generalization on the Unseen, Logic Reasoning and Degree Curriculumcited by 73
4 more
  1. 2023Positional Description Matters for Transformers Arithmeticcited by 56
  2. 2023Exploring the Power of Graph Neural Networks in Solving Linear Optimization Problemscited by 24
  3. 2023Dual Algorithmic Reasoningcited by 21
  4. 2023Neural Algorithmic Reasoning for Combinatorial Optimisationcited by 19

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 6; 2025: 5; 2026: 1.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Understanding Transformer Reasoning Capabilities via Graph Algorithms
  2. 2022Can Transformers Reason in Fragments of Natural Language?
  3. 2024Reasoning in Transformers -- Mitigating Spurious Correlations and Reasoning Shortcuts
  4. 2024Reasoning Algorithmically in Graph Neural Networks
  5. 2024The CLRS-Text Algorithmic Reasoning Language Benchmark
  6. 2024Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalization
  7. 2026Grounding latent algorithm routing in transformer reasoning
  8. 2023Transformers in the Service of Description Logic-based Contexts