TL;DR
This paper introduces novel methods (GEDIOT, GEDGW, GEDHOT) that leverage optimal transport (OT) to significantly improve the accuracy and efficiency of computing Graph Edit Distance (GED), a crucial metric for graph similarity. By integrating OT into both supervised and unsupervised learning frameworks, the authors achieve state-of-the-art performance in GED computation and edit path generation, while also demonstrating improved generalizability.
What Problem Does This Paper Address?
Graph Edit Distance (GED) is a fundamental measure of similarity between two graphs, quantifying the minimum number of edit operations (node/edge insertion, deletion, relabeling) needed to transform one graph into another. While essential for applications like graph matching, similarity search, and classification, computing GED exactly is NP-hard. Existing approximate methods, particularly those based on graph neural networks (GNNs), often struggle to capture the global context of graph pairs, leading to suboptimal performance. They typically rely on pairwise vertex features to estimate coupling costs, neglecting the more holistic relationships that optimal transport can model. This paper addresses this gap by proposing a new family of GED computation methods that harness the power of optimal transport to better model global graph relationships and improve accuracy and generalizability.
Methods
The paper proposes three main methods:
- GEDIOT (Supervised Learning): This method uses Inverse Optimal Transport (IOT) to learn a cost matrix that better captures global graph context. It employs a learnable Sinkhorn algorithm to generate the node coupling matrix, which is then used to predict GED. A key innovation is the use of a dummy supernode to handle graph size differences and the learnable regularization coefficient for the Sinkhorn algorithm, improving stability and performance.
- GEDGW (Unsupervised Learning): This approach models GED computation as a combination of Optimal Transport (for node edits) and Gromov-Wasserstein (GW) discrepancy (for edge edits). It's an optimization-based method that doesn't require ground truth labels, making it suitable for scenarios where such data is scarce.
- GEDHOT (Ensemble Method): This method combines GEDIOT and GEDGW to leverage the strengths of both supervised and unsupervised approaches, achieving superior performance.
All methods utilize GNNs for node embedding and MLPs for feature processing. For edit path generation, they employ a k-best matching framework.
Datasets
The authors evaluate their methods on three real-world graph datasets:
- AIDS: Chemical compounds, where nodes represent atoms and edges represent covalent bonds.
- Linux: Program dependence graphs from the Linux kernel.
- IMDB: Ego-networks of movie actors and actresses.
For training and evaluation, they use standard splits and also create synthetic graphs to test generalizability and performance on larger, unseen graphs.
Key Insights and Ideas
- Optimal Transport for Global Context: The core insight is that optimal transport provides a principled way to model the global relationships between nodes in two graphs, going beyond simple pairwise feature comparisons. This leads to more accurate GED estimations.
- Learnable Sinkhorn Algorithm: Making the regularization coefficient in the Sinkhorn algorithm learnable significantly improves the robustness and performance of the supervised method.
- Unsupervised GED with GW: Combining OT with Gromov-Wasserstein discrepancy offers a powerful unsupervised approach to GED, demonstrating that high-quality GED can be achieved without ground truth labels.
- Ensembling for Robustness: The ensemble method GEDHOT effectively combines the strengths of supervised and unsupervised learning, achieving state-of-the-art results and improved generalizability.
Key Results
- GED Computation: GEDIOT significantly outperforms existing learning-based methods like GEDGNN, reducing Mean Absolute Error (MAE) by up to 63.8%. GEDHOT consistently achieves the best performance across all datasets and metrics. GEDGW shows competitive performance even without supervision.
- GEP Generation: GEDHOT also leads in edit path generation quality, with GEDIOT and GEDGW performing strongly as well.
- Generalizability: GEDIOT demonstrates strong generalizability to unseen graphs, even when trained on smaller datasets.
- Efficiency: While learning-based methods are generally efficient, GEDGW offers a competitive unsupervised alternative with good speed. The proposed methods are significantly faster than exact algorithms for larger graphs.
Limitations and Future Work
- Computational Cost: While efficient, the k-best matching framework for GEP generation can still be computationally intensive for very large k.
- Supervised Data Dependency: GEDIOT, like other supervised methods, relies on ground truth data for training, which can be challenging to obtain for large graphs.
- Future Work: The authors suggest exploring GED computation for edge-labeled graphs and further investigating the generalizability of their methods. They also highlight the potential for their OT-based framework in other graph-related tasks.
Summary updated