Flood and Echo Net: Algorithmically Aligned GNNs that Generalize
Joël Mathys, Florian Grötschla, Kalyan Varma Nadimpalli, Roger Wattenhofer
TL;DR
Flood and Echo Net introduces an algorithmically aligned GNN framework that executes graph computation via a flooding phase followed by an echo phase, initiated from a single origin node. By propagating information in a wave-like manner and activating only nodes at each distance, it achieves $O(m)$ messages per phase and can generalize across graph sizes, offering expressive power beyond the 1-WL limit and potential efficiency gains. Theoretical results establish expressiveness, compare message complexity to traditional MPNNs, and demonstrate that a single phase can solve certain tasks with $O(m)$ messages. Empirically, the method improves generalization on simple algorithmic tasks and on the SALSA-CLRS benchmark, with the mode and number of phases providing flexibility for different algorithmic trajectories. This work suggests that aligning GNN execution with distributed algorithm patterns can yield practical benefits for algorithm learning and size generalization in graphs.
Abstract
Most Graph Neural Networks follow the standard message-passing framework where, in each step, all nodes simultaneously communicate with each other. We want to challenge this paradigm by aligning the computation more closely to the execution of distributed algorithms and propose the Flood and Echo Net. A single round of a Flood and Echo Net consists of an origin node and a flooding phase followed by an echo phase. First, during the flooding, messages are sent from the origin and propagated outwards throughout the entire graph. Then, during the echo, the message flow reverses and messages are sent back towards the origin. As nodes are only sparsely activated upon receiving a message, this leads to a wave-like activation pattern that traverses the graph. Through these sparse but parallel activations, the Net becomes more expressive than traditional MPNNs which are limited by the 1-WL test and also is provably more efficient in terms of message complexity. Moreover, the mechanism's inherent ability to generalize across graphs of varying sizes positions it as a practical architecture for the task of algorithmic learning. We test the Flood and Echo Net on a variety of synthetic tasks and the SALSA-CLRS benchmark and find that the algorithmic alignment of the execution improves generalization to larger graph sizes.
