Deep Graph Similarity Learning: A Survey

Guixiang Ma, Nesreen K. Ahmed, Theodore L. Willke, Philip S. Yu

Abstract

Deep Graph Similarity Learning (GSL) is an emerging field that utilizes deep neural networks to quantify the structural similarity between graph-structured data. This survey provides a systematic taxonomy of existing GSL models, categorizing them into graph embeddings, Graph Neural Networks (GNNs), and deep graph kernels. By framing similarity as a machine learning task, these methods overcome the computational intractability of traditional topological metrics, enabling applications across diverse domains such as chemoinformatics, neuroscience, and computer security.

Introduction

Graphs are fundamental data structures used to represent complex relationships, ranging from molecular bonds in chemistry to social interactions and brain connectivity in neuroscience. A core challenge in these fields is determining the similarity between two graphs—a task essential for clustering, classification, and database search. Historically, researchers relied on exact topological metrics such as Graph Isomorphism, Graph Edit Distance (GED), or Maximum Common Subgraph. However, these calculations are NP-complete, making them computationally intractable for large-scale or real-time applications.

Deep Graph Similarity Learning addresses this bottleneck by framing similarity as a machine learning problem. Instead of calculating exact matches, deep learning models are trained to map graphs into a latent vector space where the distance between vectors approximates structural similarity. This approach offers a massive boost in speed and flexibility, allowing for the analysis of massive graph databases.

Taxonomy of Deep GSL

The authors propose a systematic taxonomy to categorize the existing landscape of Deep GSL based on model architecture and feature types.

Taxonomy of Deep Graph Similarity Learning: (a) Model Architecture and (b) Features.

Model Architectures

  1. Graph Embedding-based Methods: Models like node2vec or graph2vec learn vector representations for nodes or entire graphs in an unsupervised, isolated manner. Once embeddings are generated, standard distance metrics (e.g., Euclidean distance) are used to measure similarity. While highly scalable, these methods ignore cross-graph relationships during the learning phase.
  2. GNN-based Methods: These models learn similarity in an end-to-end fashion. Siamese GNNs use twin networks with shared weights to process two graphs simultaneously. More advanced Graph Matching Networks (GMNs) introduce cross-graph attention, allowing nodes in one graph to actively compare themselves to nodes in the paired graph during the message-passing phase.
  3. Deep Graph Kernels: These methods bridge the gap between traditional graph kernels (which count sub-structures like random walks) and deep learning, often using neural language models to learn latent representations of graph sub-structures.

Benchmark Datasets and Applications

The survey identifies several key benchmark datasets used to evaluate GSL models across various domains:

  • Bio/Chemoinformatics: Datasets like MUTAG, PROTEINS, and NCI1 are used for molecular similarity and drug discovery.
  • Social Networks: COLLAB and IMDB datasets help in identifying similar community structures.
  • Neuroscience: Brain networks from the ABIDE and UK Biobank datasets are analyzed to compare fMRI connectivity patterns, aiding in the diagnosis of neurological disorders.
  • Computer Security: Comparing function-call graphs to detect malware variants.

Key Insights and Performance

A critical insight from the survey is the impact of cross-graph interaction. Early methods embedded graphs in isolation, but newer architectures like GMNs allow for "cross-pollination" of features. This interaction consistently yields better similarity representations and higher classification accuracy (AUC/ROC) compared to traditional heuristics.

Furthermore, there is a distinct trade-off between speed and accuracy. Graph embedding methods are ideal for fast retrieval in massive databases, while end-to-end GNN models offer superior accuracy for direct pair-wise comparisons. Computationally, GNN-based models like SimGNN can approximate GED in $O(|E|)$ or polynomial time, a staggering improvement over traditional sub-exponential algorithms.

Future Directions

The authors outline several open challenges for the field:

  • Complex Graph Types: Most current models assume static, undirected graphs. Developing GSL models for directed, labeled, or dynamic/streaming graphs remains a major hurdle.
  • Interpretability: GNNs are often "black boxes." Improving the interpretability of similarity decisions is vital for domains like medicine.
  • Few-Shot Learning: Learning to generalize graph similarity metrics from only a handful of training examples is an area ripe for exploration.

Summary updated

BibTeX
@article{ma2021deep,
  author = {Guixiang Ma and Nesreen K. Ahmed and Theodore L. Willke and Philip S. Yu},
  title = {{Deep Graph Similarity Learning: A Survey}},
  journal = {Data Min. Knowl. Discov.},
  year = {2021},
  doi = {10.1007/s10618-020-00733-5},
}
Figure