Flow-Attentional Graph Neural Networks
Pascal Plettenberg, Dominik Köhler, Bernhard Sick, Josephine M. Thomas
TL;DR
FlowA tten tion redefines attention in GNNs to normalize across outgoing edges, aligning message passing with Kirchhoff's first law $ \sum_{u \in \mathcal{N}_{in}(v)} \psi(u,v) = \sum_{u \in \mathcal{N}_{out}(v)} \psi(v,u)$. This simple change enhances expressivity by distinguishing node multisets that standard attention cannot and enables FlowDAGNN to distinguish DAGs from their computation trees. The authors validate the approach on flow-graph tasks (power grids and electronic circuits), showing consistent improvements in graph-level classification and regression over strong baselines, and demonstrate applicability to DAGs with a reversed-forward flow architecture. They also discuss limitations on non-flow graphs and highlight potential integrations with Graph Transformer models for broader impact on flow-structured domains like utilities and logistics.
Abstract
Graph Neural Networks (GNNs) have become essential for learning from graph-structured data. However, existing GNNs do not consider the conservation law inherent in graphs associated with a flow of physical resources, such as electrical current in power grids or traffic in transportation networks, which can lead to reduced model performance. To address this, we propose flow attention, which adapts existing graph attention mechanisms to satisfy Kirchhoff$\text{'}$s first law. Furthermore, we discuss how this modification influences the expressivity and identify sets of non-isomorphic graphs that can be discriminated by flow attention but not by standard attention. Through extensive experiments on two flow graph datasets (electronic circuits and power grids) we demonstrate that flow attention enhances the performance of attention-based GNNs on both graph-level classification and regression tasks.
