Discrete Neural Algorithmic Reasoning
Not on the map. Why?
Abstract (arXiv)
Neural algorithmic reasoning aims to capture computations with neural networks by training models to imitate the execution of classical algorithms. While common architectures are expressive enough to contain the correct model in the weight space, current neural reasoners struggle to generalize well on out-of-distribution data. On the other hand, classical computations are not affected by distributional shifts as they can be described as transitions between discrete computational states. In this work, we propose to force neural reasoners to maintain the execution trajectory as a combination of finite predefined states. To achieve this, we separate discrete and continuous data flows and describe the interaction between them. Trained with supervision on the algorithm's state transitions, such models are able to perfectly align with the original algorithm. To show this, we evaluate our approach on multiple algorithmic problems and achieve perfect test scores both in single-task and multitask setups. Moreover, the proposed architectural choice allows us to prove the correctness of the learned algorithms for any test data.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 34 of its 44 references that are in the map. First posted on arXiv 18 Feb 2024.
Builds on
34 of 44 references.
References · 34
- 2017Attention Is All You Needcited by 59,932
- 2018How Powerful are Graph Neural Networks?cited by 4,355
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,708
- 2015Pointer Networkscited by 882
- 2014Neural Turing Machinescited by 630
- 2020Masked Label Prediction: Unified Message Passing Model for Semi-Supervised Classificationcited by 500
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 198
- 2021Thinking Like Transformerscited by 182
- 2019What Can Neural Networks Reason About?cited by 155
- 2015Neural GPUs Learn Algorithmscited by 118
- 2019Neural Execution of Graph Algorithmscited by 118
- 2014Learning to Executecited by 105
22 more
- 2022The CLRS Algorithmic Reasoning Benchmarkcited by 103
- 2023Tracr: Compiled Transformers as a Laboratory for Interpretabilitycited by 99
- 2015Neural Programmer-Interpreterscited by 96
- 2021Neural Algorithmic Reasoningcited by 92
- 2022A Generalist Neural Algorithmic Learnercited by 58
- 2022Graph Neural Networks are Dynamic Programmerscited by 55
- 2020Pointer Graph Networkscited by 52
- 2018Relational inductive bias for physical construction in humans and machinescited by 41
- 2023Learning Transformer Programscited by 40
- 2020Neural Execution Engines: Learning to Execute Subroutinescited by 36
- 2023Neural Algorithmic Reasoning with Causal Regularisationcited by 30
- 2022Towards Better Out-of-Distribution Generalization of Neural Algorithmic Reasoning Taskscited by 29
- 2024Simulation of Graph Algorithms with Looped Transformerscited by 29
- 2021How to transfer algorithmic reasoning knowledge to learn new algorithms?cited by 22
- 2023Dual Algorithmic Reasoningcited by 21
- 2023Neural Algorithmic Reasoning Without Intermediate Supervisioncited by 16
- 2021Algorithmic Concept-based Explainable Reasoningcited by 12
- 2023SALSA-CLRS: A Sparse and Scalable Benchmark for Algorithmic Reasoningcited by 11
- 2023Recursive Algorithmic Reasoningcited by 9
- 2016Dynamic Neural Turing Machine with Soft and Hard Addressing Schemescited by 8
- 2023Neural Priority Queues for Graph Neural Networkscited by 7
- 2022Learning to Configure Computer Networks with Neural Algorithmic Reasoningcited by 5
Built on by
Citing papers per year: 2024: 4; 2025: 2; 2026: 2.
8 papers.
- 2024Transformers Can Do Arithmetic with the Right Embeddingscited by 77
- 2024Recurrent Aggregators in Neural Algorithmic Reasoningcited by 6
- 2024NAR-*ICP: Neural Execution of Classical ICP-based Pointcloud Registration Algorithmscited by 2
- 2024Algorithm-Informed Graph Neural Networks for Leakage Detection and Localization in Water Distribution Networkscited by 0
- 2025KNARsack: Teaching Neural Algorithmic Reasoners to Solve Pseudo-Polynomial Problemscited by 0
- 2025Tackling GNARLy Problems: Graph Neural Algorithmic Reasoning Reimagined through Reinforcement Learningcited by 0
- 2026THEIA: Learning Complete Kleene Three-Valued Logic in a Pure-Neural Modular Architecturecited by 0
- 2026From Shortcut Learning to Discrete Neural Insertion Sortcited by 0
- 2026From Shortcut Learning to Discrete Neural Insertion Sort25 Sep 2026
- 2026THEIA: Learning Complete Kleene Three-Valued Logic in a Pure-Neural Modular Architecture13 Apr 2026
- 2025Tackling GNARLy Problems: Graph Neural Algorithmic Reasoning Reimagined through Reinforcement Learning23 Sep 2025
- 2025KNARsack: Teaching Neural Algorithmic Reasoners to Solve Pseudo-Polynomial Problems17 Sep 2025
- 2024NAR-*ICP: Neural Execution of Classical ICP-based Pointcloud Registration Algorithms14 Oct 2024
- 2024Recurrent Aggregators in Neural Algorithmic Reasoning11 Sep 2024
- 2024Algorithm-Informed Graph Neural Networks for Leakage Detection and Localization in Water Distribution Networks5 Aug 2024
- 2024Transformers Can Do Arithmetic with the Right Embeddings27 May 2024