Unsupervised Inductive Graph-Level Representation Learning via Graph-Graph Proximity

Yunsheng Bai, Hao Ding, Yang Qiao, Agustin Marinovic, Ken Gu, Ting Chen, Yizhou Sun, Wei Wang

Introduction

In the field of Graph Neural Networks (GNNs), embedding individual nodes is a well-established task. However, representing an entire graph—such as a molecule or a social community—as a single vector remains a significant challenge. Existing approaches often struggle with two main issues: the Supervision Gap, where high-performing models require expensive labels, and the Transductive Limitation, where models like graph2vec cannot handle unseen graphs without retraining.

UGRAPHEMB addresses these hurdles by proposing an unsupervised framework that learns graph representations by preserving mutual proximity (e.g., Graph Edit Distance) between graphs, rather than just internal node structures.

Methodology

The UGRAPHEMB pipeline operates in three distinct stages to create inductive, high-quality embeddings:

  1. Node Embedding: The framework utilizes Graph Isomorphism Networks (GIN) to generate initial node embeddings, capturing fundamental structural properties.
  2. Multi-Scale Node Attention (MSNA): To capture both local patterns and global structures, MSNA aggregates node embeddings from every GNN layer. An attention mechanism identifies which nodes and scales are most critical for the final graph-level vector.
  3. Proximity-Preserving Loss: The model is trained on pairs of graphs to ensure that the distance between their learned embeddings mirrors a "ground truth" proximity metric, specifically Graph Edit Distance (GED).
Overview of the UGRAPHEMB framework, from dataset processing to downstream tasks.

Because the model learns a mapping function (GNN + Attention), it is fully inductive, allowing it to generate embeddings for brand-new graphs instantly after training.

Experimental Setup

The model was evaluated across five diverse real-world datasets: PTC and NCI109 (bioinformatics), IMDBM (social networks), WEB (web link structures), and REDDIT12K (large-scale social threads).

Key Results and Insights

Inter-graph Signals and Data Efficiency

A core insight of this work is that "inter-graph" signals (how graphs relate to one another) provide a more meaningful training anchor for unsupervised learning than internal links alone. Surprisingly, the model is highly data-efficient; using as little as 0.001% of all possible training pairs still yields performance superior to many baseline methods.

Performance in Classification and Ranking

UGRAPHEMB consistently outperformed unsupervised baselines like graph2vec and NetMF in graph classification. In similarity ranking tasks, it surpassed several state-of-the-art approximate GED solvers, demonstrating its ability to capture structural similarity more effectively than algorithms designed specifically for that purpose.

Visualization

Using t-SNE to project embeddings into 2D space, the authors demonstrated that UGRAPHEMB creates significantly tighter and more distinct clusters of similar graphs compared to traditional methods, which often produce overlapping "hairballs."

t-SNE visualization comparing UGRAPHEMB against various graph kernels and embedding baselines.

Conclusion and Future Work

While UGRAPHEMB is highly efficient during inference, the initial computation of the proximity metric (GED) for training pairs can be computationally expensive for massive datasets. Future research may explore pre-training these models on massive, generic graph databases—similar to language models like BERT—to enable rapid adaptation to specific domains like drug discovery with minimal additional effort.

Summary updated

BibTeX
@inproceedings{bai2019unsupervised,
  author = {Yunsheng Bai and Hao Ding and Yang Qiao and Agustin Marinovic and Ken Gu and Ting Chen and Yizhou Sun and Wei Wang},
  title = {{Unsupervised Inductive Graph-Level Representation Learning via Graph-Graph Proximity}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/275},
}
Figure