Towards Better Out-of-Distribution Generalization of Neural Algorithmic Reasoning Tasks
Not on the map. Why?
Abstract (arXiv)
In this paper, we study the OOD generalization of neural algorithmic reasoning tasks, where the goal is to learn an algorithm (e.g., sorting, breadth-first search, and depth-first search) from input-output pairs using deep neural networks. First, we argue that OOD generalization in this setting is significantly different than common OOD settings. For example, some phenomena in OOD generalization of image classifications such as accuracy on the line are not observed here, and techniques such as data augmentation methods do not help as assumptions underlying many augmentation techniques are often violated. Second, we analyze the main challenges (e.g., input distribution shift, non-representative data generation, and uninformative validation metrics) of the current leading benchmark, i.e., CLRS citepdeepmind2021clrs, which contains 30 algorithmic reasoning tasks. We propose several solutions, including a simple-yet-effective fix to the input distribution shift and improved data generation. Finally, we propose an attention-based 2WL-graph neural network (GNN) processor which complements message-passing GNNs so their combination outperforms the state-of-the-art model by a 3% margin averaged over all algorithms. Our code is available at: urlhttps://github.com/smahdavi4/clrs.
Key facts. Cited by 30 papers in the map (data through 14 Oct 2026). Builds on 59 of its 64 references that are in the map. First posted on arXiv 1 Nov 2022.
Builds on
59 of 64 references.
References · 59
- 2017Attention Is All You Needcited by 60,361
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2017Graph Attention Networkscited by 8,923
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
- 2017Neural Discrete Representation Learningcited by 4,712
- 2018How Powerful are Graph Neural Networks?cited by 4,393
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2017Neural Message Passing for Quantum Chemistrycited by 3,487
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,739
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,079
38 more
- 2019Invariant Risk Minimizationcited by 1,854
- 2017Deep Setscited by 1,421
- 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,396
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,392
- 2018Relational inductive biases, deep learning, and graph networkscited by 1,360
- 2019Can You Trust Your Model's Uncertainty? Evaluating Predictive Uncertainty Under Dataset Shiftcited by 1,287
- 2020In Search of Lost Domain Generalizationcited by 1,054
- 2018Weisfeiler and Leman Go Neural: Higher-order Graph Neural Networkscited by 881
- 2019DropEdge: Towards Deep Graph Convolutional Networks on Node Classificationcited by 680
- 2019Provably Powerful Graph Networkscited by 389
- 2020Improving Graph Neural Network Expressivity via Subgraph Isomorphism Countingcited by 313
- 2021The Role of Permutation Invariance in Linear Mode Connectivity of Neural Networkscited by 291
- 2021Accuracy on the Line: On the Strong Correlation Between Out-of-Distribution and In-Distribution Generalizationcited by 249
- 2020Can Graph Neural Networks Count Substructures?cited by 236
- 2021Weisfeiler and Lehman Go Topological: Message Passing Simplicial Networkscited by 221
- 2021Weisfeiler and Lehman Go Cellular: CW Networkscited by 218
- 2022Neural Networks and the Chomsky Hierarchycited by 217
- 2022Exploring Length Generalization in Large Language Modelscited by 206
- 2022Pure Transformers are Powerful Graph Learnerscited by 188
- 2021Equivariant Subgraph Aggregation Networkscited by 154
- 2022Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphscited by 144
- 2020From Local Structures to Size Generalization in Graph Neural Networkscited by 124
- 2021Weisfeiler and Leman go Machine Learning: The Story so farcited by 122
- 2015Neural GPUs Learn Algorithmscited by 121
- 2019Neural Execution of Graph Algorithmscited by 121
- 2020Erdos Goes Neural: an Unsupervised Learning Framework for Combinatorial Optimization on Graphscited by 115
- 2022The CLRS Algorithmic Reasoning Benchmarkcited by 106
- 2022Unveiling Transformers with LEGO: a synthetic reasoning taskcited by 106
- 2020Learning the Travelling Salesperson Problem Requires Rethinking Generalizationcited by 98
- 2021Neural Algorithmic Reasoningcited by 94
- 2021Size-Invariant Graph Representations for Graph Classification Extrapolationscited by 84
- 2021The Transformer Network for the Traveling Salesman Problemcited by 59
- 2022Generalization Analysis of Message Passing Neural Networks on Large Random Graphscited by 59
- 2022A Generalist Neural Algorithmic Learnercited by 59
- 2022Ordered Subgraph Aggregation Networkscited by 57
- 2020Pointer Graph Networkscited by 53
- 2022Assaying Out-Of-Distribution Generalization in Transfer Learningcited by 53
- 2019Coloring graph neural networks for node disambiguationcited by 52
50 most cited of 59 All 59 (JSON)
Built on by
Citing papers per year: 2023: 11; 2024: 13; 2025: 3; 2026: 3.
30 papers.
Sort:
By area:
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
- 2023Generalization on the Unseen, Logic Reasoning and Degree Curriculumcited by 73
- 2023Does Invariant Graph Learning via Environment Augmentation Learn Invariance?cited by 42
- 2024How Far Can Transformers Reason? The Globality Barrier and Inductive Scratchpadcited by 36
- 2023Neural Algorithmic Reasoning with Causal Regularisationcited by 31
- 2023SwinGNN: Rethinking Permutation Invariance in Diffusion Models for Graph Generationcited by 28
- 2023Over-Squashing in Graph Neural Networks: A Comprehensive surveycited by 23
- 2023Neural Algorithmic Reasoning for Combinatorial Optimisationcited by 19
- 2023Neural Algorithmic Reasoning Without Intermediate Supervisioncited by 17
- 2024How Interpretable Are Interpretable Graph Neural Networks?cited by 13
- 2023SALSA-CLRS: A Sparse and Scalable Benchmark for Algorithmic Reasoningcited by 12
- 2024On the Markov Property of Neural Algorithmic Reasoning: Analyses and Methodscited by 11
18 more
- 2024Explicitly Encoding Structural Symmetry is Key to Length Generalization in Arithmetic Taskscited by 11
- 2024Discrete Neural Algorithmic Reasoningcited by 9
- 2023Parallel Algorithms Align with Neural Executioncited by 6
- 2024Chameleon: A Data-Efficient Generalist for Dense Visual Prediction in the Wildcited by 6
- 2024Recurrent Aggregators in Neural Algorithmic Reasoningcited by 6
- 2024Measuring Diversity: Axioms and Challengescited by 6
- 2024Deep Equilibrium Algorithmic Reasoningcited by 6
- 2024Open-Book Neural Algorithmic Reasoningcited by 3
- 2024NAR-*ICP: Neural Execution of Classical ICP-based Pointcloud Registration Algorithmscited by 2
- 2023A Hybrid System for Systematic Generalization in Simple Arithmetic Problemscited by 1
- 2024On the Minimal Degree Bias in Generalization on the Unseen for non-Boolean Functionscited by 1
- 2025Beyond Interpolation: Extrapolative Reasoning with Reinforcement Learning and Graph Neural Networkscited by 1
- 2025KNARsack: Teaching Neural Algorithmic Reasoners to Solve Pseudo-Polynomial Problemscited by 1
- 2026FloydNet: A Learning Paradigm for Global Relational Reasoningcited by 1
- 2024Algorithm-Informed Graph Neural Networks for Leakage Detection and Localization in Water Distribution Networkscited by 0
- 2025Tackling GNARLy Problems: Graph Neural Algorithmic Reasoning Reimagined through Reinforcement Learningcited by 0
- 2026Is Code Better Than Language for Algorithmic Reasoningcited by 0
- 2026Fitting Every Hint Is Not Enough: Premature Floods in Recurrent Algorithmic Reasonerscited by 0
- 2026Fitting Every Hint Is Not Enough: Premature Floods in Recurrent Algorithmic Reasoners10 Oct 2026
- 2026Is Code Better Than Language for Algorithmic Reasoning14 Jun 2026
- 2026FloydNet: A Learning Paradigm for Global Relational Reasoning27 Jan 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
- 2025Beyond Interpolation: Extrapolative Reasoning with Reinforcement Learning and Graph Neural Networks6 Feb 2025
- 2024Open-Book Neural Algorithmic Reasoning30 Dec 2024
- 2024Deep Equilibrium Algorithmic Reasoning19 Oct 2024
- 2024Measuring Diversity: Axioms and Challenges18 Oct 2024
- 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
18 more
- 2024How Interpretable Are Interpretable Graph Neural Networks?12 Jun 2024
- 2024How Far Can Transformers Reason? The Globality Barrier and Inductive Scratchpad10 Jun 2024
- 2024On the Minimal Degree Bias in Generalization on the Unseen for non-Boolean Functions10 Jun 2024
- 2024Explicitly Encoding Structural Symmetry is Key to Length Generalization in Arithmetic Tasks4 Jun 2024
- 2024Chameleon: A Data-Efficient Generalist for Dense Visual Prediction in the Wild29 Apr 2024
- 2024On the Markov Property of Neural Algorithmic Reasoning: Analyses and Methods7 Mar 2024
- 2024Discrete Neural Algorithmic Reasoning18 Feb 2024
- 2023Does Invariant Graph Learning via Environment Augmentation Learn Invariance?29 Oct 2023
- 2023What Algorithms can Transformers Learn? A Study in Length Generalization24 Oct 2023
- 2023SALSA-CLRS: A Sparse and Scalable Benchmark for Algorithmic Reasoning21 Sep 2023
- 2023Over-Squashing in Graph Neural Networks: A Comprehensive survey29 Aug 2023
- 2023Parallel Algorithms Align with Neural Execution8 Jul 2023
- 2023SwinGNN: Rethinking Permutation Invariance in Diffusion Models for Graph Generation4 Jul 2023
- 2023A Hybrid System for Systematic Generalization in Simple Arithmetic Problems29 Jun 2023
- 2023Neural Algorithmic Reasoning Without Intermediate Supervision23 Jun 2023
- 2023Neural Algorithmic Reasoning for Combinatorial Optimisation18 May 2023
- 2023Neural Algorithmic Reasoning with Causal Regularisation20 Feb 2023
- 2023Generalization on the Unseen, Logic Reasoning and Degree Curriculum30 Jan 2023
- 2023Neural Algorithmic Reasoning with Causal Regularisationcited by 31
- 2024Explicitly Encoding Structural Symmetry is Key to Length Generalization in Arithmetic Taskscited by 11
- 2023A Hybrid System for Systematic Generalization in Simple Arithmetic Problemscited by 1
- 2026Is Code Better Than Language for Algorithmic Reasoningcited by 0
- 2026Is Code Better Than Language for Algorithmic Reasoning14 Jun 2026
- 2024Explicitly Encoding Structural Symmetry is Key to Length Generalization in Arithmetic Tasks4 Jun 2024
- 2023A Hybrid System for Systematic Generalization in Simple Arithmetic Problems29 Jun 2023
- 2023Neural Algorithmic Reasoning with Causal Regularisation20 Feb 2023
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
- 2023Generalization on the Unseen, Logic Reasoning and Degree Curriculumcited by 73
- 2023Does Invariant Graph Learning via Environment Augmentation Learn Invariance?cited by 42
- 2024How Far Can Transformers Reason? The Globality Barrier and Inductive Scratchpadcited by 36
- 2023Over-Squashing in Graph Neural Networks: A Comprehensive surveycited by 23
- 2023Neural Algorithmic Reasoning for Combinatorial Optimisationcited by 19
- 2023Neural Algorithmic Reasoning Without Intermediate Supervisioncited by 17
- 2024How Interpretable Are Interpretable Graph Neural Networks?cited by 13
- 2023SALSA-CLRS: A Sparse and Scalable Benchmark for Algorithmic Reasoningcited by 12
- 2024On the Markov Property of Neural Algorithmic Reasoning: Analyses and Methodscited by 11
- 2024Discrete Neural Algorithmic Reasoningcited by 9
- 2023Parallel Algorithms Align with Neural Executioncited by 6
12 most cited of 25 All 25 (JSON)
- 2026Fitting Every Hint Is Not Enough: Premature Floods in Recurrent Algorithmic Reasoners10 Oct 2026
- 2026FloydNet: A Learning Paradigm for Global Relational Reasoning27 Jan 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
- 2025Beyond Interpolation: Extrapolative Reasoning with Reinforcement Learning and Graph Neural Networks6 Feb 2025
- 2024Open-Book Neural Algorithmic Reasoning30 Dec 2024
- 2024Deep Equilibrium Algorithmic Reasoning19 Oct 2024
- 2024Measuring Diversity: Axioms and Challenges18 Oct 2024
- 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
- 2024How Interpretable Are Interpretable Graph Neural Networks?12 Jun 2024
12 newest of 25 All 25 (JSON)