Skip to main content
QUICK REVIEW

[Paper Review] Graph Edit Distance Computation via Graph Neural Networks.

Yunsheng Bai, Hao Ding|arXiv (Cornell University)|Aug 16, 2018
Advanced Graph Neural NetworksComputer Science13 citations
TL;DR

This paper proposes SimGNN, a graph neural network-based approach for efficient and accurate computation of Graph Edit Distance (GED). By combining learnable graph-level embeddings with a pairwise node comparison mechanism, SimGNN achieves superior generalization and up to significant time reduction compared to baselines, while maintaining low error rates on real-world datasets.

ABSTRACT

Graph similarity search is among the most important graph-based applications, e.g. finding the chemical compounds that are most similar to a query compound. Graph similarity computation, such as Graph Edit Distance (GED) and Maximum Common Subgraph (MCS), is the core operation of graph similarity search and many other applications, but very costly to compute in practice. Inspired by the recent success of neural network approaches to several graph applications, such as node or graph classification, we propose a novel neural network based approach to address this classic yet challenging graph problem, aiming to alleviate the computational burden while preserving a good performance. The proposed approach, called SimGNN, combines two strategies. First, we design a learnable embedding function that maps every graph into a vector, which provides a global summary of a graph. A novel attention mechanism is proposed to emphasize the important nodes with respect to a specific similarity metric. Second, we design a pairwise node comparison method to supplement the graph-level embeddings with fine-grained node-level information. Our model achieves better generalization on unseen graphs, and in the worst case runs in quadratic time with respect to the number of nodes in two graphs. Taking GED computation as an example, experimental results on three real graph datasets demonstrate the effectiveness and efficiency of our approach. Specifically, our model achieves smaller error rate and great time reduction compared against a series of baselines, including several approximation algorithms on GED computation, and many existing graph neural network based models. To the best of our knowledge, we are among the first to adopt neural networks to explicitly model the similarity between two graphs, and provide a new direction for future research on graph similarity computation and graph similarity search.

Motivation & Objective

  • Address the high computational cost of exact Graph Edit Distance (GED) computation in graph similarity search applications.
  • Improve generalization on unseen graphs compared to existing neural network-based methods for graph similarity.
  • Reduce runtime complexity while preserving accuracy by combining global graph embeddings with fine-grained node-level comparisons.
  • Provide a novel neural network framework explicitly designed to model pairwise graph similarity, filling a gap in existing GNN applications.

Proposed method

  • Design a learnable embedding function that maps each graph into a vector representation, capturing global structural properties.
  • Introduce a novel attention mechanism to highlight nodes that are most relevant to the similarity metric, improving embedding quality.
  • Develop a pairwise node comparison mechanism to supplement graph-level embeddings with fine-grained node-level correspondence information.
  • Train the model end-to-end to predict GED values using a differentiable loss function, enabling effective optimization.
  • Use a combination of graph-level and node-level features to improve model expressiveness and generalization.
  • Achieve quadratic time complexity in the number of nodes, making it scalable for medium-sized graphs.

Experimental results

Research questions

  • RQ1Can a neural network be effectively trained to predict Graph Edit Distance with high accuracy and low computational cost?
  • RQ2How well does the proposed model generalize to unseen graphs compared to existing approximation algorithms and GNN baselines?
  • RQ3To what extent does incorporating both graph-level and node-level information improve similarity prediction performance?
  • RQ4Can the model achieve significant speedups over exact GED computation while maintaining low error rates?

Key findings

  • SimGNN achieves a smaller error rate than multiple approximation algorithms and existing GNN-based models on three real graph datasets.
  • The model demonstrates strong generalization performance on unseen graphs, indicating robustness to distribution shifts.
  • Runtime is reduced significantly compared to exact GED computation, with worst-case complexity quadratic in the number of nodes.
  • The attention mechanism effectively identifies critical nodes, improving the quality of graph embeddings for similarity tasks.
  • The combination of graph-level and pairwise node-level features leads to better performance than using either component alone.
  • To the best of the authors' knowledge, SimGNN is among the first models to explicitly model pairwise graph similarity using neural networks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.