TGNN: A Joint Semi-supervised Framework for Graph-level Classification

Wei Ju, Xiao Luo, Meng Qu, Yifan Wang, Chong Chen, Minghua Deng, Xian-Sheng Hua, Ming Zhang

Abstract

Graph-level classification is a critical task in domains such as biochemistry and social network analysis, yet it is often hampered by the high cost of data labeling and the limitations of Message Passing Neural Networks (MPNNs) in capturing explicit topological structures. We present TGNN (Twin Graph Neural Network), a novel semi-supervised framework that bridges the gap between the implicit structural learning of MPNNs and the explicit topological exploration of Graph Kernels. TGNN utilizes a memory bank of labeled "anchor" graphs to enforce consistency between these two complementary views. Experimental results across multiple benchmarks demonstrate that TGNN achieves state-of-the-art performance, particularly in scenarios where labeled data is extremely scarce.

Introduction

Predicting properties of entire graphs—such as molecular toxicity or community types in social networks—is a cornerstone of modern data mining. While MPNNs have become the standard architecture for these tasks, they face two significant hurdles: high sensitivity to label scarcity and a tendency to capture graph structure only implicitly through neighborhood aggregation. Consequently, they often struggle to model high-order substructures like long paths or specific cycles. TGNN addresses these issues by leveraging unlabeled data through a dual-module architecture that combines semantic and topological perspectives.

Methodology

The TGNN architecture consists of two "twin" modules designed to provide complementary views of the graph structure.

The Twin Architecture

  1. Message Passing Module: Utilizing a GIN-based architecture, this module learns node representations through standard neighborhood aggregation, effectively capturing local semantic features.
  2. Graph Kernel Module: To capture topology explicitly, this module employs random walk kernels. It compares input graphs against trainable "hidden graphs" (topological prototypes) by counting common random walks, allowing the model to identify specific structural patterns like paths of length $P$.
The TGNN framework architecture, illustrating the dual Message Passing and Graph Kernel modules and the consistency loss mechanism.

Consistency via Memory Bank

To integrate these modules in a semi-supervised setting, TGNN employs a Memory Bank of labeled anchor graphs. For any unlabeled graph, the model calculates its similarity to these anchors in both the MPNN and Graph Kernel embedding spaces. A Consistency Loss, based on Kullback-Leibler divergence, is then applied to align these two similarity distributions. This ensures that if the MPNN identifies an unlabeled graph as similar to specific anchors, the Graph Kernel module must agree, facilitating robust knowledge exchange between the "twins."

Experimental Evaluation

TGNN was evaluated on seven public benchmarks, including bioinformatics (PROTEINS, DD) and social networks (IMDB, REDDIT), as well as large-scale OGB datasets.

Key Results

TGNN consistently outperformed classical semi-supervised methods and graph-specific self-supervised approaches like GraphCL and InfoGraph.

  • Performance on Benchmarks: On the PROTEINS dataset, TGNN achieved an accuracy of 71.0%, surpassing the previous state-of-the-art.
  • Low-Label Robustness: In large-scale scenarios like OGB-HIV with only a 1% labeling rate, TGNN maintained a significant lead over competitors, achieving a ROC-AUC of 53.3 compared to GraphCL's 45.1.
Accuracy comparison of TGNN against baselines on PROTEINS and DD datasets across different label rates (1%, 5%, 10%).

Discussion and Conclusion

The success of TGNN highlights the synergy between implicit and explicit graph modeling. While MPNNs excel at feature-rich local neighborhoods, trainable kernels are superior at identifying rigid structural motifs. By using similarity distributions to anchors as a bridge, TGNN avoids the difficulties of direct embedding alignment.

Future work will focus on reducing the computational overhead associated with kernel calculations and exploring active learning strategies for anchor selection to further enhance performance in data-constrained environments.

Summary updated

BibTeX
@inproceedings{ju2022tgnn,
  author = {Wei Ju and Xiao Luo and Meng Qu and Yifan Wang and Chong Chen and Minghua Deng and Xian-Sheng Hua and Ming Zhang},
  title = {{TGNN: A Joint Semi-supervised Framework for Graph-level Classification}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/295},
}
Figure