[Paper Review] Convolutional Set Matching for Graph Similarity
This paper proposes GSimCNN, a novel deep learning framework that computes graph similarity by transforming the NP-hard Graph Edit Distance (GED) computation into a learnable, end-to-end problem. It uses multi-scale graph convolutional networks to generate node embeddings, constructs multi-scale similarity matrices via node-wise inner products, and applies 2D convolutional neural networks to detect optimal matching patterns, achieving state-of-the-art accuracy and efficiency on benchmark datasets including IMDB, LINUX, and AIDS.
We introduce GSimCNN (Graph Similarity Computation via Convolutional Neural Networks) for predicting the similarity score between two graphs. As the core operation of graph similarity search, pairwise graph similarity computation is a challenging problem due to the NP-hard nature of computing many graph distance/similarity metrics. We demonstrate our model using the Graph Edit Distance (GED) as the example metric. Experiments on three real graph datasets demonstrate that our model achieves the state-of-the-art performance on graph similarity search.
Motivation & Objective
- Address the computational intractability of exact Graph Edit Distance (GED) computation, which is NP-hard and expensive for large graphs.
- Develop an end-to-end deep learning model that predicts graph similarity scores with high accuracy and efficiency.
- Overcome limitations of existing methods that rely on fixed heuristics or lack multi-scale structural modeling of graph differences.
- Enable scalable graph similarity search by replacing costly GED computation with a differentiable, parallelizable neural approach.
Proposed method
- Employ multi-scale Graph Convolutional Networks (GCNs) to generate hierarchical node embeddings by aggregating features from increasing neighborhood depths.
- Compute node-to-node similarity matrices via inner products between embeddings of two graphs at multiple GCN layer outputs.
- Apply max-padding and bilinear interpolation to align similarity matrices to a fixed size M×M, enabling CNN processing.
- Process each fixed-size similarity matrix with 2D convolutional neural networks to detect spatial patterns of node matching across scales.
- Concatenate CNN outputs and pass them through fully connected layers to predict a final graph-pair similarity score.
- Train the model using mean squared error loss to minimize the difference between predicted and ground-truth GED-based similarity scores.
Experimental results
Research questions
- RQ1Can a deep learning model effectively approximate the NP-hard Graph Edit Distance (GED) with high accuracy and efficiency?
- RQ2How does multi-scale modeling of node embeddings improve graph similarity prediction compared to single-scale or fixed-structure methods?
- RQ3To what extent do different preprocessing strategies—such as max-padding versus bilinear resizing—impact performance on graphs of varying sizes?
- RQ4Can convolutional pattern recognition on similarity matrices outperform existing Siamese or MPNN-based approaches in capturing complex structural alignments?
Key findings
- GSimCNN achieves the lowest mean squared error (MSE) of 0.787 on the AIDS dataset, outperforming variants and baselines.
- On the IMDB dataset, GSimCNN achieves a Kendall’s tau rank correlation of 0.847 and p@10 of 0.828, indicating strong ranking performance.
- The model reduces prediction error significantly on large graphs (e.g., IMDB) by leveraging multi-scale similarity matrices and resizing over padding.
- The use of bilinear interpolation for matrix resizing improves performance on IMDB (MSE: 0.743) compared to max-padding (MSE: 0.807), especially due to high graph size variance.
- GSimCNN outperforms both GED approximation baselines and simpler variants like GSimCNN-L1-Pad and GSimCNN-L1-Resize in both accuracy and ranking quality.
- Visualization results confirm that GSimCNN correctly identifies the most and least similar graphs in retrieval tasks, with plausible similarity matrix patterns.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.