Introduction
Standard Message Passing Neural Networks (MPNNs) have become the workhorse of graph machine learning due to their scalability. However, they suffer from a fundamental theoretical limitation: their expressive power is upper-bounded by the 1st-order Weisfeiler-Lehman (1-WL) isomorphism test. This means standard GNNs are essentially "colorblind" to critical structural motifs, such as triangles or cycles, which are vital for understanding molecular chemistry or social network dynamics. While higher-order GNNs ($k$-GNNs) offer more power, they are computationally prohibitive for large-scale applications.
This paper introduces GNN-AK (GNN As Kernel), a general framework designed to uplift the expressiveness of any base GNN without the exponential complexity of traditional high-order methods.
The GNN-AK Framework
The core insight of GNN-AK is to move beyond "star-pattern" aggregation. In a standard MPNN, a node updates its state by aggregating information only from its immediate neighbors. GNN-AK instead extracts a local induced subgraph (e.g., a $k$-hop egonet) around each node.
The framework treats the base GNN as a "kernel" that is applied to these local subgraphs, much like how a Convolutional Neural Network (CNN) slides a kernel over image patches. This process involves three main stages:
- Subgraph Extraction: For every node, a local subgraph is identified.
- Subgraph Convolution: A base GNN (e.g., GCN, GIN, or PNA) encodes these subgraphs.
- Embedding Aggregation: The resulting embeddings are combined to form a new node representation.
The enhanced version, GNN-AK+, further improves this by utilizing three distinct encodings: Centroid Encoding (the root node's view), Subgraph Encoding (the collective view of the local neighborhood), and Context Encoding (how the node appears in other subgraphs). It also incorporates Distance-to-Centroid (D2C) features to provide structural cues that standard MPNNs lack.
Scalability via SubgraphDrop
A primary concern with subgraph-based methods is the computational overhead of processing overlapping subgraphs for every node. To address this, the authors propose SubgraphDrop. Similar to Dropout in standard neural networks, SubgraphDrop randomly samples a subset of subgraphs during training. This strategy ensures that the entire graph is covered over multiple epochs while significantly reducing memory consumption (by 1-3x) and accelerating training without sacrificing predictive accuracy.
Experimental Results
The authors evaluated GNN-AK across a variety of synthetic and real-world benchmarks. Theoretically, they proved that GNN-AK is strictly more powerful than 1-WL and 2-WL tests. Empirically, the results demonstrate massive performance leaps across different base architectures.
As shown in the results table, GNN-AK+ consistently outperforms base GNNs on tasks requiring structural awareness. For instance, on the ZINC-12K molecular dataset, GNN-AK+ achieved a state-of-the-art Mean Absolute Error (MAE) of 0.080, representing a relative error reduction of up to 60% compared to base models. It also achieved perfect accuracy on the EXP dataset, where standard 1-WL models fail.
Conclusion
GNN-AK provides a flexible, plug-and-play solution for the expressiveness-scalability trade-off in graph machine learning. By shifting the focus from individual nodes to local subgraphs and treating the GNN as a kernel, the framework allows simple, scalable models to capture complex structural information. With the addition of SubgraphDrop, GNN-AK remains practical for real-world datasets, setting new standards for performance across multiple graph-based tasks.
Summary updated