Reasoning Algorithmically in Graph Neural Networks
Danilo Numeroso
TL;DR
This work investigates Neural Algorithmic Reasoning (NAR) as a principled approach to endow Graph Neural Networks with algorithmic reasoning capabilities.By linking neural models with tropical algebra, duality, and the Encode-Process-Decode framework, the author shows that GNs can approximate min-aggregated dynamic programming and learn to execute classical graph algorithms with arbitrary precision. The dissertation demonstrates practical benefits across planning (learned heuristics for A*), max-flow/min-cut tasks via Dual Algorithmic Reasoning, and combinatorial optimization (TSP/VKC) through transfer of algorithmic priors. Empirical results include planning improvements, edge-classification on Brain Vessel Graph benchmarks, and NP-hard CO problem approximations, highlighting both the potential and limitations of algorithmically informed neural models. Overall, the thesis provides theoretical connections, architectural guidelines, and empirical evidence that algorithmic priors can enhance OOD generalization and enable scalable neural execution of algorithms on large graphs.
Abstract
The development of artificial intelligence systems with advanced reasoning capabilities represents a persistent and long-standing research question. Traditionally, the primary strategy to address this challenge involved the adoption of symbolic approaches, where knowledge was explicitly represented by means of symbols and explicitly programmed rules. However, with the advent of machine learning, there has been a paradigm shift towards systems that can autonomously learn from data, requiring minimal human guidance. In light of this shift, in latest years, there has been increasing interest and efforts at endowing neural networks with the ability to reason, bridging the gap between data-driven learning and logical reasoning. Within this context, Neural Algorithmic Reasoning (NAR) stands out as a promising research field, aiming to integrate the structured and rule-based reasoning of algorithms with the adaptive learning capabilities of neural networks, typically by tasking neural models to mimic classical algorithms. In this dissertation, we provide theoretical and practical contributions to this area of research. We explore the connections between neural networks and tropical algebra, deriving powerful architectures that are aligned with algorithm execution. Furthermore, we discuss and show the ability of such neural reasoners to learn and manipulate complex algorithmic and combinatorial optimization concepts, such as the principle of strong duality. Finally, in our empirical efforts, we validate the real-world utility of NAR networks across different practical scenarios. This includes tasks as diverse as planning problems, large-scale edge classification tasks and the learning of polynomial-time approximate algorithms for NP-hard combinatorial problems. Through this exploration, we aim to showcase the potential integrating algorithmic reasoning in machine learning models.
