Graph Theory-Based Deep Graph Similarity Learning: A Unified Survey of Pipeline, Techniques, and Challenges

Zhouyang Liu, Ning Liu, Yixin Chen, Ziqing Wen, Jiezhong He, Dongsheng Li

Introduction

Graph similarity measurement is a cornerstone of structural data analysis, essential for applications ranging from bioinformatics to social network modeling. Traditionally, this field has been divided between the mathematical precision of classical graph theory and the computational efficiency of deep learning. Classical methods like Graph Edit Distance (GED) and Maximum Common Subgraph (MCS) offer interpretable results but suffer from NP-hard complexity, making them impractical for large-scale real-world graphs. Conversely, Graph Neural Networks (GNNs) provide rapid inference but often operate as "black boxes" with limited structural interpretability.

This survey explores the emerging field of Graph Theory-based Deep Graph Similarity Learning (GTDGSL). GTDGSL aims to bridge this divide by training deep learning models to approximate rigorous graph-theoretic metrics, combining the best of both worlds: the speed of neural networks and the structural grounding of traditional mathematics.

The Stringency Spectrum of Graph Similarity

A core contribution of this survey is the categorization of similarity measures along a "stringency spectrum." This spectrum defines how strictly a match must adhere to the original structure.

The spectrum of graph similarity from stringent Subgraph Isomorphism to loose Graph Edit Distance.
  • Subgraph Isomorphism (SI): The most stringent form, requiring an exact structural match of a known pattern within a larger graph.
  • Maximum Common Subgraph (MCS): Identifies the largest shared structure between two graphs, allowing for some non-matching components.
  • Graph Edit Distance (GED): The loosest measure, quantifying similarity based on the minimum number of "edits" (node/edge additions, deletions, or substitutions) required to transform one graph into another.

Methods: A Unified Training Pipeline

The authors propose a unified pipeline for GTDGSL models, breaking down the process into several critical stages:

  1. Input Preparation: Models are either end-to-end predictors or "learn-to-search" components that assist traditional algorithms.
  2. Preprocessing: Incorporating task-related features like node degrees or local profiles helps the model gauge matching difficulty.
  3. Node Encoding: Utilizing GNN backbones (e.g., GCN, GAT) to extract local structural embeddings.
  4. Fine-grained vs. Coarse-grained Scoring: Models may use explicit alignment (finding node-to-node correspondences) for high interpretability or global fingerprints (Euclidean distance) for maximum speed.
Comparison of preprocessing, ordering, and pruning techniques in graph similarity learning.

As shown in the table above, different approaches prioritize different components. For instance, "Learn-to-search" methods often rely on dynamic, score-based ordering and pruning to accelerate exact solvers.

Datasets and Benchmarks

Since no "native" GTDGSL datasets exist, researchers adapt existing benchmarks:

  • TUDataset: Pairwise similarity is precomputed for datasets like AIDS and IMDB-MULTI.
  • Synthetic Data: Erdos-Rényi or Barabasi-Albert models are used to generate small graphs where exact ground truth can be computed via brute-force solvers.
  • Large-scale Tests: Platforms like YouTube are used to evaluate how well neural approximations scale compared to traditional NP-hard algorithms.

Key Insights and Trade-offs

The survey highlights a fundamental trade-off between efficiency and interpretability. Models using "Explicit Alignment" (e.g., via Optimal Transport) provide a clear map of node correspondences, which is vital for high-stakes domains like drug discovery, but they often incur quadratic computational costs.

Another significant finding is the Scale Information Loss in standard GNNs. Because GNNs often normalize features, they can lose track of absolute graph size, which is a critical input for calculating metrics like GED. Addressing this loss is a key area for model improvement.

Future Frontiers

Despite rapid progress, several challenges remain:

  • Ground-Truth Bottlenecks: Training still depends on labels generated by slow, NP-hard solvers.
  • Complex Graphs: Most current models struggle with directed, heterogeneous, or multi-edged graphs.
  • Self-Supervised Learning: Shifting toward self-supervised objectives (like masked prediction) could reduce the reliance on expensive labeled data.

By unifying these disparate techniques, this survey provides a roadmap for developing the next generation of structurally-aware, efficient graph similarity models.

Summary updated

BibTeX
@article{liu2025graph,
  author = {Zhouyang Liu and Ning Liu and Yixin Chen and Ziqing Wen and Jiezhong He and Dongsheng Li},
  title = {{Graph Theory-Based Deep Graph Similarity Learning: A Unified Survey of Pipeline, Techniques, and Challenges}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2025},
}
Figure