How to transfer algorithmic reasoning knowledge to learn new algorithms?
Louis-Pascal A. C. Xhonneux, Andreea Deac, Petar Velickovic, Jian Tang
Abstract
Learning to execute algorithms is a fundamental problem that has been widely studied. Prior work has shown that to enable systematic generalisation on graph algorithms it is critical to have access to the intermediate steps of the program/algorithm. In many reasoning tasks, where algorithmic-style reasoning is important, we only have access to the input and output examples. Thus, inspired by the success of pre-training on similar tasks or data in Natural Language Processing (NLP) and Computer Vision, we set out to study how we can transfer algorithmic reasoning knowledge. Specifically, we investigate how we can use algorithms for which we have access to the execution trace to learn to solve similar tasks for which we do not. We investigate two major classes of graph algorithms, parallel algorithms such as breadth-first search and Bellman-Ford and sequential greedy algorithms such as Prim and Dijkstra. Due to the fundamental differences between algorithmic reasoning knowledge and feature extractors such as used in Computer Vision or NLP, we hypothesise that standard transfer techniques will not be sufficient to achieve systematic generalisation. To investigate this empirically we create a dataset including 9 algorithms and 3 different graph types. We validate this empirically and show how instead multi-task learning can be used to achieve the transfer of algorithmic reasoning knowledge.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
13 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- The CLRS Algorithmic Reasoning Benchmark cites Graph Neural Networks are Dynamic Programmers
- Graph Neural Networks are Dynamic Programmers cites The CLRS Algorithmic Reasoning Benchmark
- The CLRS Algorithmic Reasoning Benchmark cites Neural Execution of Graph Algorithms
- Graph Neural Networks are Dynamic Programmers cites Neural Execution of Graph Algorithms
- Neural Algorithmic Reasoning Without Intermediate Supervision cites The CLRS Algorithmic Reasoning Benchmark
- Neural Algorithmic Reasoning Without Intermediate Supervision cites Graph Neural Networks are Dynamic Programmers
- Neural Algorithmic Reasoning Without Intermediate Supervision cites What Can Neural Networks Reason About?
- Neural Algorithmic Reasoning Without Intermediate Supervision cites Neural Execution of Graph Algorithms
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites Language Models are Few-Shot Learners
- Neural Approximation of Graph Topological Features cites What Can Neural Networks Reason About?
- Neural Approximation of Graph Topological Features cites Neural Execution of Graph Algorithms
- Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphs cites What Can Neural Networks Reason About?
- Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphs cites Neural Execution of Graph Algorithms
Cited by top-tier papers13
- Learning Causally Invariant Representations for Out-of-Distribution Generalization on GraphsYongqiang Chen, Yonggang Zhang, Yatao Bian, Han Yang et al.NeurIPS 2022 · 246 citations
- The CLRS Algorithmic Reasoning BenchmarkPetar Velickovic, Adrià Puigdomènech Badia, David Budden, Razvan Pascanu et al.ICML 2022 · 118 citations
- Graph Neural Networks are Dynamic ProgrammersAndrew Joseph Dudzik, Petar VelickovicNeurIPS 2022 · 82 citations
- Neural Approximation of Graph Topological FeaturesZuoyu Yan, Tengfei Ma, Liangcai Gao, Zhi Tang et al.NeurIPS 2022 · 26 citations
- Neural Algorithmic Reasoning Without Intermediate SupervisionGleb Rodionov, Liudmila ProkhorenkovaNeurIPS 2023 · 20 citations
Builds on6
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- Deep symbolic regression: Recovering mathematical expressions from data via risk-seeking policy gradientsBrenden K. Petersen, Mikel Landajuela, T. Nathan Mundhenk, Cláudio Prata Santiago et al.ICLR 2021 · 444 citations
- What Can Neural Networks Reason About?Keyulu Xu, Jingling Li, Mozhi Zhang, Simon S. Du et al.ICLR 2020 · 281 citations
- Neural Execution of Graph AlgorithmsPetar Velickovic, Rex Ying, Matilde Padovano, Raia Hadsell et al.ICLR 2020 · 192 citations
Related papers
- Discrete Neural Algorithmic ReasoningGleb Rodionov, Liudmila ProkhorenkovaICML 2025
- Which Algorithms Can Graph Neural Networks Learn?Solveig Wittig, Antonis Vasileiou, Robert R. Nerem, Timo Stoll et al.ICML 2026
- Primal-Dual Neural Algorithmic ReasoningYu He, Ellen VitercikICML 2025
- Dual Algorithmic ReasoningDanilo Numeroso, Davide Bacciu, Petar VelickovicICLR 2023 · 1 citation
- Deep Equilibrium Algorithmic ReasoningDobrik Georgiev, Joseph Wilson, Davide Buffelli, Pietro LióNeurIPS 2024 · 7 citations
