Two-Level Graph Neural Network

Xing Ai, Chengyu Sun, Zhihong Zhang, Edwin R. Hancock

TL;DR

This paper introduces the Two-Level Graph Neural Network (TL-GNN), a novel architecture designed to overcome the "Local Permutation Invariance" (LPI) problem in existing Graph Neural Networks (GNNs). By simultaneously capturing both node-level and subgraph-level structural information, TL-GNN significantly enhances representational capacity and achieves state-of-the-art performance on graph classification tasks.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) have shown great promise in analyzing graph-structured data. However, a fundamental limitation, known as Local Permutation Invariance (LPI), prevents them from distinguishing between graphs that have identical node-level information but different underlying structures. This occurs because traditional GNNs primarily focus on aggregating information from immediate neighbors, effectively ignoring higher-level structural patterns. This limitation can lead to misclassifications, especially when graphs are structurally similar at the node level but differ in their overall organization. The paper aims to address this by incorporating subgraph-level information to enrich the GNN's understanding of graph structures.

Methods

The core innovation of TL-GNN lies in its two-level approach:

  • Subgraph Counting: The authors propose a novel subgraph counting algorithm based on dynamic programming. This algorithm efficiently identifies and categorizes basic subgraph structures (trees, paths, circuits) within a specified "D-hop" neighborhood of each node. The time complexity of this algorithm is O(n³), where n is the number of nodes.
  • Generated Graph: Based on the identified subgraphs, a "generated graph" is constructed. In this graph, "supernodes" represent the detected subgraphs, and edges represent relationships between them. This generated graph captures macroscopic structural information.
  • Two-Level GNN Architecture: The TL-GNN framework processes both the original graph (for node-level information) and the generated graph (for subgraph-level information) in parallel. Each layer of the TL-GNN consists of two separate GNN blocks.
  • AGG_SUB and MERG Functions: Two key functions, AGG_SUB and MERG, are introduced to merge the subgraph-level representations into the node-level representations. These functions are designed to be injective to ensure that distinct subgraph information is preserved. The paper emphasizes that injective functions are crucial for distinguishing graphs that are otherwise indistinguishable due to LPI.

Datasets

The paper evaluates TL-GNN on seven standard real-world graph classification benchmarks: MUTAG, PTC, NCI1, PROTEINS, COX2, IMDB-M, and IMDB-B. Additionally, a synthetic dataset named SPNG was created to specifically test the model's ability to distinguish Permutation Non-isomorphic Graphs (PNGs).

Key Insights and Ideas

  • LPI is a Fundamental Limitation: The paper provides a clear theoretical and empirical demonstration of how LPI limits the representational power of existing GNNs, particularly in distinguishing Permutation Non-isomorphic Graphs (PNGs).
  • Subgraph-Level Information is Crucial: The core insight is that incorporating higher-level structural information (subgraphs) is essential to overcome the limitations imposed by LPI and to enrich the overall graph representation.
  • Two-Level Architecture Effectively Merges Information: The proposed TL-GNN architecture, by processing node-level and subgraph-level information in parallel and merging them, effectively captures both microscopic and macroscopic structural details.
  • Injective Functions are Key for Distinction: The theoretical analysis highlights the importance of using injective functions for merging subgraph and node information to ensure that distinct graph structures can be differentiated.

Key Results

  • State-of-the-Art Performance: TL-GNN consistently achieves state-of-the-art results on 6 out of 7 real-world benchmarks, often showing significant improvements over existing GNN methods. For instance, it achieved 2.6% and 5.2% margins on PTC and COX2, respectively.
  • Superiority over GIN: TL-GNN outperforms the Graph Isomorphism Network (GIN) on most datasets, demonstrating the benefit of its two-level approach even when using the same GNN layers.
  • Effective PNG Distinction: On the synthetic SPNG dataset, TL-GNN achieves 100% training accuracy, perfectly distinguishing PNGs, while other methods struggle.
  • Faster Convergence: TL-GNN exhibits a faster convergence rate on the SPNG dataset compared to many other deep learning methods.
  • Attention Mechanism Insights: Visualization of attention weights reveals that while node-level information is generally more important, subgraph-level information becomes increasingly significant in deeper layers, helping to combat the oversmoothing problem.

Limitations and Future Work

  • Computational Cost: The subgraph counting algorithm and the two-level processing introduce additional computational overhead compared to standard GNNs. The paper notes that TL-GNN costs more time on both training and test than GIN due to additional subgraph convolution operations.
  • Parameter D Sensitivity: The choice of the "D" parameter (determining the depth of subgraph neighborhood considered) impacts performance and computation time. The paper suggests that D=3 or 4 often yields the best results.
  • Future Work: The authors plan to extend TL-GNN to heterogeneous graphs by treating different subgraph types as heterogeneous nodes. They also aim to further explore the influence of LPI on node classification tasks.

Summary updated

BibTeX
@article{ai2022two,
  author = {Xing Ai and Chengyu Sun and Zhihong Zhang and Edwin R. Hancock},
  title = {{Two-Level Graph Neural Network}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2022},
  doi = {10.1109/tnnls.2022.3144343},
}
Figure