TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/SimGNN: A Neural Network Approach to Fast Graph Similarity...

SimGNN: A Neural Network Approach to Fast Graph Similarity Computation

Yunsheng Bai, Hao Ding, Song Bian, Ting Chen, Yizhou Sun, Wei Wang

2018-08-16WSDM '19 Proceedings of the Twelfth ACM International Conference on Web Search and Data Mining 2019 2Graph ClassificationGraph Similarity
PaperPDFCodeCodeCode

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.

Results

TaskDatasetMetricValueModel
Graph SimilarityIMDbmse (10^-3)1.264SimGNN

Related Papers

Pieceformer: Similarity-Driven Knowledge Transfer via Scalable Graph Transformer in VLSI2025-06-18Density-aware Walks for Coordinated Campaign Detection2025-06-16Positional Encoding meets Persistent Homology on Graphs2025-06-06Weisfeiler and Leman Follow the Arrow of Time: Expressive Power of Message Passing in Temporal Event Graphs2025-05-30Improving the Effective Receptive Field of Message-Passing Neural Networks2025-05-29Graph Style Transfer for Counterfactual Explainability2025-05-23Scalable Graph Generative Modeling via Substructure Sequences2025-05-22SCENIR: Visual Semantic Clarity through Unsupervised Scene Graph Retrieval2025-05-21