Mind The Gap: Quantifying Mechanistic Gaps in Algorithmic Reasoning via Neural Compilation
Lucas Saldyt, Subbarao Kambhampati

TL;DR
This paper introduces neural compilation for GNNs to precisely encode algorithms, enabling analysis of their faithfulness and effectiveness, and highlighting gaps in learning complex algorithmic reasoning.
Contribution
It presents a neural compilation method for GNNs that encodes algorithms analytically, bypassing training, and analyzes the expressability-trainability gap in algorithmic reasoning.
Findings
Neural compilation enables exact encoding of algorithms in GNNs.
Analysis reveals gaps between expressibility and trainability in learning algorithms.
Focus on BFS, DFS, and Bellman-Ford illustrates the spectrum of learned algorithm effectiveness.
Abstract
This paper aims to understand how neural networks learn algorithmic reasoning by addressing two questions: How faithful are learned algorithms when they are effective, and why do neural networks fail to learn effective algorithms otherwise? To answer these questions, we use neural compilation, a technique that directly encodes a source algorithm into neural network parameters, enabling the network to compute the algorithm exactly. This enables comparison between compiled and conventionally learned parameters, intermediate vectors, and behaviors. This investigation is crucial for developing neural networks that robustly learn complexalgorithms from data. Our analysis focuses on graph neural networks (GNNs), which are naturally aligned with algorithmic reasoning tasks, specifically our choices of BFS, DFS, and Bellman-Ford, which cover the spectrum of effective, faithful, and ineffective…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Graph Neural Networks · Topic Modeling · Explainable Artificial Intelligence (XAI)
