Introduction
Measuring the structural relationship between complex graphs is a cornerstone of modern data science, with applications ranging from drug discovery and neuroscience to cybersecurity. Traditional combinatorial metrics, such as Graph Edit Distance (GED) or Maximum Common Subgraph (MCS), often fail to scale to the massive datasets encountered in real-world scenarios. This survey provides a comprehensive roadmap for the emerging field of Deep Graph Similarity Learning (GSL), exploring how neural networks can automatically learn to quantify graph similarity in an efficient and scalable manner.
The Challenge of Graph Similarity
The fundamental problem in GSL is determining how "similar" two graphs are. Traditional methods like GED are NP-complete, making them computationally prohibitive for large graphs. Moreover, these manual definitions of similarity are often rigid and fail to capture task-specific nuances. Deep GSL addresses these limitations by mapping graphs into a target vector space where their distance reflects structural similarity, moving from heuristic-based approaches to learnable, end-to-end frameworks.
A Dual Taxonomy of Deep GSL
The authors propose a dual taxonomy to categorize the diverse landscape of Deep GSL models, focusing on Model Architecture and Feature Type.
1. Model Architecture Taxonomy
- Graph Embedding-based: These models learn vector representations for each graph independently, often using unsupervised methods like
graph2vec. Similarity is then calculated in the resulting vector space. - GNN-based: These end-to-end models learn features specifically optimized for the similarity task.
- GNN-CNN Mixed: Combines GNNs for feature extraction with CNNs to process similarity matrices.
- Siamese GNNs: Employs "twin" networks with shared weights to process two graphs simultaneously.
- Graph Matching Networks (GMNs): These advanced models incorporate cross-graph interaction via attention mechanisms, allowing the representation of one graph to be informed by the structure of the other.
- Deep Graph Kernels: These leverage deep learning to learn underlying sub-structure representations, building upon traditional kernel methods.
2. Feature Type Taxonomy
- Single-graph features: Models learn representations for each graph in isolation, which is highly efficient for large-scale retrieval tasks.
- Cross-graph features: Models utilize cross-graph attention or interaction. While computationally more intensive, these models typically achieve higher accuracy by identifying fine-grained structural alignments.
Benchmarking and Applications
Deep GSL methods have been applied across a wide array of domains, including social network analysis, bioinformatics, chemoinformatics, and computer security. The survey highlights the versatility of these methods in handling different graph types, such as weighted, heterogeneous, and attributed graphs.
Key Insights and Results
- The End-to-End Advantage: Unlike traditional embeddings, GNN-based GSL models learn features optimized for specific similarity metrics, leading to superior performance.
- Interaction is Key: The shift from independent Siamese networks to Graph Matching Networks represents a significant leap. Cross-graph attention allows models to capture structural alignments that independent embeddings often miss.
- Efficiency vs. Effectiveness: There is an inherent trade-off between "factorized" models (ideal for fast retrieval) and "interaction" models (ideal for high-precision matching).
- Scalability: While traditional GED is limited to small graphs, GNN-based models like
SimGNNcan approximate distances for much larger graphs with a time complexity of $O(|E|)$, enabling real-time similarity search.
Limitations and Future Frontiers
Despite significant progress, several challenges remain:
- Complex Graph Types: Most research focuses on simple undirected graphs. There is a pressing need for models tailored to directed, labeled, and dynamic/streaming graphs.
- Interpretability: Explaining why two graphs are considered similar—identifying the specific sub-structures responsible—remains an open challenge.
- Few-shot Learning: Learning robust similarity metrics from limited examples is critical for fields like medical imaging.
- Combinatorial Optimization: Bridging the gap between deep learning approximations and the hard constraints of combinatorial graph matching is a promising future direction.
Summary updated