[Paper Review] Improving Graph Neural Network Expressivity via Subgraph Isomorphism Counting
This paper proposes Graph Substructure Networks (GSN), a message-passing GNN architecture that enhances expressivity by incorporating subgraph isomorphism counts into the aggregation function. By encoding structural invariants through substructure counting, GSN surpasses the Weisfeiler-Leman (WL) test in expressive power while maintaining locality and linear complexity, achieving state-of-the-art performance on molecular and social network benchmarks.
While Graph Neural Networks (GNNs) have achieved remarkable results in a variety of applications, recent studies exposed important shortcomings in their ability to capture the structure of the underlying graph. It has been shown that the expressive power of standard GNNs is bounded by the Weisfeiler-Leman (WL) graph isomorphism test, from which they inherit proven limitations such as the inability to detect and count graph substructures. On the other hand, there is significant empirical evidence, e.g. in network science and bioinformatics, that substructures are often intimately related to downstream tasks. To this end, we propose "Graph Substructure Networks" (GSN), a topologically-aware message passing scheme based on substructure encoding. We theoretically analyse the expressive power of our architecture, showing that it is strictly more expressive than the WL test, and provide sufficient conditions for universality. Importantly, we do not attempt to adhere to the WL hierarchy; this allows us to retain multiple attractive properties of standard GNNs such as locality and linear network complexity, while being able to disambiguate even hard instances of graph isomorphism. We perform an extensive experimental evaluation on graph classification and regression tasks and obtain state-of-the-art results in diverse real-world settings including molecular graphs and social networks. The code is publicly available at https://github.com/gbouritsas/graph-substructure-networks.
Motivation & Objective
- To address the limited expressive power of standard GNNs, which are bounded by the Weisfeiler-Leman (WL) test and cannot distinguish certain non-isomorphic graphs.
- To enable GNNs to detect and count substructures—critical in bioinformatics, chemistry, and network science—without sacrificing invariance to graph isomorphism.
- To develop a message-passing framework that breaks local symmetries using structural inductive biases derived from substructure counts.
- To maintain computational efficiency and locality while achieving higher expressive power than standard GNNs.
- To empirically validate the model on real-world graph classification and regression tasks, including molecular and social networks.
Proposed method
- The method introduces Graph Substructure Networks (GSN), which augment message passing with substructure encoding by counting isomorphic subgraphs (e.g., cycles, graphlets) around each node or edge.
- For each neighbor, the message is weighted by a learnable function of substructure counts—either vertex-centered (GSN-v) or edge-centered (GSN-e)—to break symmetry and encode topological context.
- The aggregation uses a directional average operator where attention coefficients are derived from substructure counts: for GSN-e, α_v,u = |x^E_v,u| / (ε + Σ_u |x^E_v,u|), and for GSN-v, α_v,u = |x^V_v - x^V_u| / (ε + Σ_u |x^V_v - x^V_u|).
- The vertex representation is updated via a multilayer perceptron (MLP) on the aggregated messages, preserving the standard GNN message-passing structure with added structural invariance.
- The model is trained end-to-end with standard optimization, and substructure types (e.g., cycles of length 3–12) are selected via hyperparameter search on validation performance.
- A baseline using DeepSets with structural identifiers is used for comparison, with width and depth matched to GSN for fair evaluation.
Experimental results
Research questions
- RQ1Can GNNs be made more expressive than the Weisfeiler-Leman test by incorporating substructure counting in message passing?
- RQ2Does substructure encoding allow GNNs to distinguish hard cases of graph isomorphism, such as strongly regular graphs?
- RQ3Can substructure-based inductive biases improve performance on real-world graph learning tasks without increasing computational complexity?
- RQ4How does the choice of substructure (e.g., cycles, graphlets) affect model performance across different datasets?
- RQ5Does the inclusion of structural invariants via substructure counting preserve isomorphism invariance while enabling better generalization?
Key findings
- GSN achieves state-of-the-art performance on the ogbg-molhiv and ZINC datasets, with GSN-e using 6-vertex cycle graphlets achieving the best validation ROC-AUC.
- On the TUDatasets benchmark, GSN outperforms standard GNNs and baseline models, particularly on MUTAG and Proteins, where smaller GSN variants with reduced width or depth outperform larger ones due to reduced overfitting.
- The model's expressive power is strictly greater than that of standard GNNs and the WL test, as it can distinguish non-isomorphic graphs that the WL test cannot.
- The DeepSets baseline with structural identifiers achieved state-of-the-art results on MUTAG and Proteins, suggesting that structural features alone can be powerful, but GSN further improves performance by integrating them into message passing.
- The ablation study shows that substructure selection via validation performance is critical, with cycle-based graphlets of length 6 yielding optimal results on ogbg-molhiv.
- The model maintains linear complexity and locality, unlike higher-order GNNs that follow the WL hierarchy, making it scalable and practical for real-world graphs.
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.