Asynchronous Algorithmic Alignment with Cocycles
Andrew Dudzik, Tamara von Glehn, Razvan Pascanu, Petar Veličković
TL;DR
This paper addresses the inefficiencies and learning difficulties that arise when standard GNNs execute dynamic-programming style algorithms synchronously. It introduces a node-centric, monoid/cocycle framework—where $M$ denotes messages, $S$ node states, and $A$ the generated arguments—and shows that the $1$-cocycle condition on the argument map $D: M \to [S,A]$ ensures invariance to asynchronous updates. By linking idempotence, semiring aggregations, and monoid homomorphisms, the authors derive practical, asynchronous yet faithful GNN variants, notably a PathGNN-like model with max-max aggregation and multimorphisms that can emulate Bellman-Ford and related algorithms. Empirical results on CLRS-30 demonstrate that higher levels of asynchrony invariance improve generalization and robustness, especially for algorithms with sparse meaningful updates, while preserving scalability. The work offers a principled pathway for designing neural algorithmic reasoning systems with provable push-button behavior under various asynchronous execution regimes.
Abstract
State-of-the-art neural algorithmic reasoners make use of message passing in graph neural networks (GNNs). But typical GNNs blur the distinction between the definition and invocation of the message function, forcing a node to send messages to its neighbours at every layer, synchronously. When applying GNNs to learn to execute dynamic programming algorithms, however, on most steps only a handful of the nodes would have meaningful updates to send. One, hence, runs the risk of inefficiencies by sending too much irrelevant data across the graph. But more importantly, many intermediate GNN steps have to learn the identity functions, which is a non-trivial learning problem. In this work, we explicitly separate the concepts of node state update and message function invocation. With this separation, we obtain a mathematical formulation that allows us to reason about asynchronous computation in both algorithms and neural networks. Our analysis yields several practical implementations of synchronous scalable GNN layers that are provably invariant under various forms of asynchrony.
