Abstract
Despite the great achievements of Graph Neural Networks (GNNs) in graph learning, conventional GNNs struggle to break through the upper limit of the expressiveness of the first-order Weisfeiler-Leman graph isomorphism test algorithm (1-WL). This is due to the consistency of the propagation paradigm of GNNs with the 1-WL. Based on the observation that it is easier to distinguish graphs through their subgraphs, we propose a novel framework called Substructure Aware Graph Neural Networks (SAGNN). We introduce the "Cut" subgraph, obtained by selectively removing edges, and extend the random walk encoding paradigm to capture structural information as node features. We theoretically prove that SAGNN is more powerful than 1-WL. Our experiments demonstrate state-of-the-art performance, including an 83% performance improvement on molecular property prediction and perfect scores on graphs where 3-WL fails.
Introduction
Most modern Graph Neural Networks (GNNs) rely on a message-passing paradigm. While effective, this approach is theoretically bounded by the 1-Weisfeiler-Leman (1-WL) graph isomorphism test. Consequently, standard GNNs often fail to distinguish between structurally distinct graphs that share certain local symmetries. They particularly struggle with complex substructures like rings or specific cliques, which are vital in chemical and biological applications.
While higher-order GNNs (e.g., k-WL GNNs) can address these limitations, they are often computationally prohibitive. SAGNN addresses this by injecting structural information from "Cut" and "Ego" subgraphs into a standard message-passing framework, achieving higher-order structural awareness without excessive computational costs.
Methodology
The SAGNN framework operates through a multi-channel pipeline designed to enrich node representations with topological fingerprints.
Dual Subgraph Extraction
The core of SAGNN lies in its dual subgraph extraction strategy:
- Ego Subgraphs: These capture the local neighborhood information around a node, providing a standard view of local connectivity.
- Cut Subgraphs: This novel approach involves selectively removing edges with high Edge Betweenness Centrality (EBC). EBC identifies "bridge" edges that connect different communities. By "cutting" these bridges, the graph is decomposed into distinct blocks, making global structural patterns more apparent to the model.
Random Walk Return Probability (RWRP) Encoding
To transform these subgraphs into usable features, SAGNN employs Random Walk Return Probability (RWRP) encoding. For each node, the model calculates the probability that a random walker starting at that node will return to it within $s$ steps within the context of the specific subgraph. This creates a unique "topological fingerprint" that captures the presence of cycles and other complex local structures.
Information Injection and Message Passing
These structural fingerprints are injected back into the nodes as additional features. The architecture then uses a dual-channel system—one for Ego information and one for Cut information—to process the enriched data through standard message-passing layers. Finally, the results are pooled to form a comprehensive graph representation ($h_G$).
Experimental Results
SAGNN was evaluated across diverse benchmarks, demonstrating significant improvements in both expressiveness and predictive accuracy.
Expressiveness and Theoretical Power
On the EXP and SR25 datasets—designed specifically to challenge the limits of 1-WL and 3-WL tests—SAGNN achieved 100% accuracy. This empirically supports the theoretical proof that SAGNN is strictly more powerful than the 1-WL test.
Molecular Property Prediction
The model showed exceptional performance on large-scale molecular benchmarks:
- ZINC-FULL: SAGNN achieved an 83% reduction in Mean Absolute Error (MAE) compared to base models and a 32% improvement over previous state-of-the-art methods.
- TUDatasets: The framework outperformed established benchmarks on datasets like MUTAG (reaching 95.2% accuracy), PTC, and PROTEINS.
Conclusion
SAGNN provides a robust and efficient solution to the expressiveness bottleneck of standard GNNs. By leveraging the power of "Cut" subgraphs and random walk encodings, it captures critical structural information that traditional message-passing ignores. While calculating Edge Betweenness Centrality for extremely large graphs remains a challenge, the significant performance gains on molecular and structural tasks highlight SAGNN as a powerful tool for the next generation of graph learning.
Summary updated