[Paper Review] Path Neural Networks: Expressive and Accurate Graph Neural Networks
This paper introduces Path Neural Networks (PathNNs), a novel graph neural network that enhances expressive power by aggregating representations of paths—specifically single shortest paths, all shortest paths, and all simple paths up to length K—using recurrent layers. The authors prove that two variants exceed the expressive power of the 1-dimensional Weisfeiler-Leman (1-WL) algorithm and empirically validate this on synthetic and real-world graph datasets, where PathNNs outperform state-of-the-art models in graph classification and regression tasks.
Graph neural networks (GNNs) have recently become the standard approach for learning with graph-structured data. Prior work has shed light into their potential, but also their limitations. Unfortunately, it was shown that standard GNNs are limited in their expressive power. These models are no more powerful than the 1-dimensional Weisfeiler-Leman (1-WL) algorithm in terms of distinguishing non-isomorphic graphs. In this paper, we propose Path Neural Networks (PathNNs), a model that updates node representations by aggregating paths emanating from nodes. We derive three different variants of the PathNN model that aggregate single shortest paths, all shortest paths and all simple paths of length up to K. We prove that two of these variants are strictly more powerful than the 1-WL algorithm, and we experimentally validate our theoretical results. We find that PathNNs can distinguish pairs of non-isomorphic graphs that are indistinguishable by 1-WL, while our most expressive PathNN variant can even distinguish between 3-WL indistinguishable graphs. The different PathNN variants are also evaluated on graph classification and graph regression datasets, where in most cases, they outperform the baseline methods.
Motivation & Objective
- To address the limited expressive power of standard message-passing GNNs, which are at most as powerful as the 1-WL algorithm in distinguishing non-isomorphic graphs.
- To develop a GNN architecture that leverages path structures—known to distinguish graphs beyond 1-WL—while maintaining polynomial-time computability.
- To design and evaluate multiple variants of PathNNs based on different path subsets: single shortest paths, all shortest paths, and all simple paths up to length K.
- To theoretically and empirically demonstrate that PathNNs surpass 1-WL in expressive power and achieve state-of-the-art performance on real graph learning benchmarks.
Proposed method
- PathNNs compute node representations by aggregating encoded representations of paths emanating from each node, using a recurrent layer to encode each path into a vector.
- Three variants are proposed: PathNN-SP (single shortest paths), PathNN-AP (all shortest paths), and PathNN-AP* (all simple paths up to length K).
- Each path is encoded via a recurrent neural network (RNN), and the outputs are aggregated via a differentiable pooling mechanism to form the final node representation.
- The model is trained end-to-end using standard GNN optimization objectives for graph classification and regression.
- Theoretical analysis shows that PathNN-AP and PathNN-AP* are strictly more expressive than 1-WL, as they can distinguish graphs that 1-WL cannot.
- The path computation is restricted to polynomial-time solvable subsets: shortest paths (Dijkstra’s algorithm) and bounded-length simple paths (via dynamic programming).
Experimental results
Research questions
- RQ1Can path-based aggregation in GNNs surpass the expressive power of the 1-WL algorithm in distinguishing non-isomorphic graphs?
- RQ2Which path subsets (e.g., shortest paths, all simple paths) yield the most expressive GNN variants while remaining computationally feasible?
- RQ3Do PathNNs achieve state-of-the-art performance on real-world graph learning benchmarks compared to existing SOTA GNNs?
- RQ4Can PathNNs effectively model long-range dependencies in graphs, as evidenced by improved performance on graph classification and regression tasks?
Key findings
- Two PathNN variants—PathNN-AP (all shortest paths) and PathNN-AP* (all simple paths up to length K)—are strictly more expressive than the 1-WL algorithm, as proven theoretically.
- On synthetic datasets, PathNNs successfully distinguish non-isomorphic graphs that are indistinguishable by 1-WL, including some that are also indistinguishable by the 3-WL algorithm.
- On the Peptides-Functional dataset, PathNN-SP+ achieved an 8.86% absolute improvement in average precision over GCN, and on Peptides-Structural, it improved mean absolute error by 8.80% over GatedGCN.
- On the ogbg-molhiv graph classification benchmark, PathNN-SP+ achieved a ROC-AUC score of 79.17%, ranking third among all methods tested.
- On the ZINC12K graph regression dataset, PathNN-AP achieved the best mean absolute error of 0.090 ± 0.004, outperforming all baselines including state-of-the-art models like CIN and Graphormer.
- The PathNN-AP* variant, despite being the most expressive, showed slightly lower performance than PathNN-SP+ on ogbg-molhiv, suggesting a trade-off between expressiveness and optimization stability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.