Abstract
Standard Graph Neural Networks (GNNs) are limited in their ability to detect complex topological structures. We present Graph Substructure Networks (GSN), an architecture that incorporates subgraph isomorphism counts as structural features, significantly enhancing expressivity while maintaining scalability.
Introduction: The Expressivity Bottleneck
Most Graph Neural Networks (GNNs) rely on a message-passing scheme where nodes aggregate information from their immediate neighbors. While effective, this approach is mathematically bounded by the 1-Weisfeiler-Leman (1-WL) graph isomorphism test. Consequently, standard GNNs are "blind" to critical topological features like cycles, cliques, and paths. For example, they may fail to distinguish between a single 6-node ring and two disjoint 3-node triangles.
This limitation is significant because such substructures often define the properties of real-world data, such as aromaticity in chemistry or community structures in social networks. While higher-order GNNs can address this, they typically suffer from poor computational scaling ($O(n^k)$).
Methodology: Graph Substructure Networks (GSN)
GSN addresses the expressivity gap by explicitly injecting structural information into the message-passing process. The approach involves a pre-computation step where the graph is searched for a "dictionary" of small, domain-relevant subgraphs. The counts of these subgraphs are then used as additional features for nodes or edges.
The authors introduce two primary variants:
- GSN-v (Vertex-based): Counts how many times each node participates in specific subgraphs.
- GSN-e (Edge-based): Counts how many times each edge participates in specific subgraphs.
By appending these counts to the initial features, GSN breaks the local symmetries that confuse standard MPNNs while preserving permutation invariance and maintaining the linear $O(|E|)$ complexity of standard message passing.
Experimental Results and Insights
The GSN framework was evaluated on both synthetic and real-world benchmarks:
- Synthetic Isomorphism: GSN achieved a 100% success rate in distinguishing Strongly Regular graphs (up to size 35), a task where 1-WL and 2-FWL equivalent models fail completely.
- Molecular Regression (ZINC): GSN reached state-of-the-art performance with a Mean Absolute Error (MAE) of 0.115, significantly outperforming the standard MPNN baseline of 0.209.
- Data Efficiency: Due to its strong inductive bias, GSN matched the performance of a full-dataset MPNN using only 20% of the training data on ZINC.
- Large-Scale Benchmarks: On the OGB-MOLHIV dataset, GSN achieved a competitive ROC-AUC of 0.8039.
The results indicate that edge-based counts (GSN-e) are generally more expressive than vertex-based counts (GSN-v). Furthermore, using domain-specific substructures acts as a powerful inductive bias, improving generalization compared to methods that rely on pure memorization or random identifiers.
Conclusion and Future Directions
GSN provides a scalable and provably more powerful alternative to standard GNNs by leveraging subgraph isomorphism counting. While the pre-computation of small subgraphs is efficient for sparse graphs, future work may focus on automatically learning the most relevant substructures from data to eliminate the need for manual dictionary selection.
Summary updated