TL;DR
This paper introduces a novel hierarchical framework for Graph Neural Networks (GNNs) based on the size and structure of their aggregation regions. By formally defining this hierarchy and proving its completeness, the authors provide a systematic way to construct GNNs with varying expressive power, demonstrating that certain GNN classes can surpass the capabilities of the standard Weisfeiler-Lehman graph isomorphism test.
What Problem Does This Paper Address?
Graph Neural Networks (GNNs) have become a powerful tool for learning from graph-structured data, but understanding and comparing different GNN architectures has been challenging. Existing GNNs primarily focus on aggregating information from immediate neighbors, limiting their ability to capture more complex graph structures. This paper addresses the lack of a systematic framework for understanding, comparing, and constructing GNNs with diverse representational capabilities, particularly concerning their ability to capture higher-order structural information beyond local neighborhoods.
Methods
The core contribution is the D-L hierarchy, a framework that categorizes GNNs based on the "aggregation region" around a node. Instead of just immediate neighbors, this framework considers subgraphs defined by walks of increasing length. Specifically, it defines two types of regions: $D_k(v)$ (nodes and edges within $2k$-length walks returning to $v$) and $L_k(v)$ (nodes and edges within $2k+1$-length walks returning to $v$). The paper proves that this hierarchy is complete for GNNs whose aggregation regions are defined by node distances. This hierarchy allows for the systematic construction of GNNs with increasing discriminative power. The authors also introduce building blocks that can be combined to create GNNs for specific classes within this hierarchy, enabling the construction of GNNs that can learn features like triangle counts, which are beyond the reach of simpler GNNs.
Datasets
The paper uses both synthetic and real-world datasets for evaluation:
- Synthetic Datasets: Two custom datasets were created to specifically test the ability of GNNs to count triangles and 4-cycles. These datasets consist of 1000 Erdos-Rényi random graphs with 100 nodes each.
- Real-World Benchmarks:
- Node Classification: Cora, Citeseer, PubMed
- Graph Classification: NCI1, Proteins, PTC-MR, MUTAG
- Graph Regression: QM7b, QM9
Key Insights and Ideas
- A Complete Hierarchy: The D-L hierarchy provides a formal and complete way to classify GNNs based on their aggregation regions, particularly when these regions are defined by node distances. This offers a principled way to understand the expressive power of different GNN architectures.
- Beyond Immediate Neighbors: The paper demonstrates that simply expanding the aggregation region beyond immediate neighbors (e.g., to include nodes involved in triangles) can significantly increase a GNN's discriminative power, even surpassing the 1-dimensional Weisfeiler-Lehman (WL) test.
- Targeted GNN Construction: The hierarchical framework allows for the systematic construction of GNNs tailored to learn specific graph structures or features. For instance, GCN-L1 is designed to count triangles, a capability that standard GCNs lack.
- Theoretical Power Translates to Practice: The theoretical findings about the discriminative power of different GNN classes are validated by experimental results, showing that GNNs constructed using the hierarchy achieve strong performance on various tasks.
Key Results
- Theoretical Superiority: The paper proves that GNNs in the $G(L_1)$ class (aggregating over regions including triangles) have strictly greater discriminative power than the 1-dimensional WL test. Furthermore, for any $k$, GNNs in the $G(L_k)$ class can be constructed to discriminate all graphs with up to $k+1$ nodes, implying arbitrarily powerful GNNs can be built.
- Synthetic Experiments:
- Standard GCNs (2- and 3-layer) failed to learn triangle and 4-cycle counts, performing worse than a simple mean prediction.
- GCN-L1 (designed to count triangles) significantly outperformed the baseline on the triangle counting task.
- GCN-D2 (designed to count 4-cycles) also showed strong performance on the 4-cycle counting task, while retaining the ability to count triangles.
- Real-World Benchmarks: GCN-L1 and GCN-D2 showed noticeable improvements over standard GCNs across various node classification, graph classification, and graph regression tasks. They matched or led in numerical averages on several datasets, particularly excelling on biological datasets where triangle information is relevant. The proposed models also significantly improved upon comparison architectures like k-GNN and N-GCN.
Limitations and Future Work
- Computational Complexity: While the D-L hierarchy offers increased expressive power, the computational complexity of aggregation regions generally increases with $k$. The paper notes that calculating $A^3$ naively is $O(N^3)$, but more efficient algorithms exist.
- Focus on Distance-Based Regions: The theoretical completeness proof relies on the assumption that aggregation regions are defined as a function of node distance. The paper acknowledges that extensions to more general settings are possible but not explored in depth.
- Future Work: The authors suggest that their framework can be extended to more general settings and that the building blocks can be further explored to construct GNNs for specific tasks. The experimental results on biological datasets highlight the potential for task-specific GNN design guided by the hierarchy.
Summary updated