Interpretable Graph Similarity Computation via Differentiable Optimal Alignment of Node Embeddings
Khoa D. Doan, Saurav Manchanda, Suchismit Mahapatra, Chandan K. Reddy
Abstract
Computing graph similarity is an important task in many graph-related applications such as retrieval in graph databases or graph clustering. While numerous measures have been proposed to capture the similarity between a pair of graphs, Graph Edit Distance (GED) and Maximum Common Subgraphs (MCS) are the two widely used measures in practice. GED and MCS are domain-agnostic measures of structural similarity between the graphs and define the similarity as a function of pairwise alignment of different entities (such as nodes, edges, and subgraphs) in the two graphs. The explicit explainability offered by the pairwise alignment provides transparency and justification of the similarity score, thus, GED and MCS have important practical applications. However, their exact computations are known to be NP-hard. While recently proposed neural-network based approximations have been shown to accurately compute these similarity scores, they have limited ability in providing comprehensive explanations compared to classical combinatorial algorithms, e.g., Beam search. This paper aims at efficiently approximating these domain-agnostic similarity measures through a neural network, and simultaneously learning the alignments (i.e., explanations) similar to those of classical intractable methods. Specifically, we formulate the similarity between a pair of graphs as the minimal "transformation" cost from one graph to another in the learnable node-embedding space. We show that, if node embedding is able to capture its neighborhood context closely, our proposed similarity function closely approximates both the alignment and the similarity score of classical methods. Furthermore, we also propose an efficient differentiable computation of our proposed objective for model training. Empirically, we demonstrate that the proposed method achieves up to 50%-100% reduction in the Mean Squared Error for the graph similarity approximation task and up to 20% improvement in the retrieval evaluation metrics for the graph retrieval task. The source code is available at https://github.com/khoadoan/GraphOTSim.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 3b8a73e0-b69e-4434-8963-8948f0977d9bCited by top-tier papers17
- LIRA: Learnable, Imperceptible and Robust Backdoor AttacksKhoa D. Doan, Yingjie Lao, Weijie Zhao, Ping LiICCV 2021 · 313 citations
- GREED: A Neural Framework for Learning Graph Distance FunctionsRishabh Ranjan, Siddharth Grover, Sourav Medya, Venkatesan T. Chakaravarthy et al.NeurIPS 2022 · 70 citations
- Interpretable Neural Subgraph Matching for Graph RetrievalIndradyumna Roy, Venkata Sai Baba Reddy Velugoti, Soumen Chakrabarti, Abir DeAAAI 2022 · 51 citations
- Efficient Graph Similarity Computation with Alignment RegularizationWei Zhuo, Guang TanNeurIPS 2022 · 48 citations
- One Loss for Quantization: Deep Hashing with Discrete Wasserstein Distributional MatchingKhoa D. Doan, Peng Yang, Ping LiCVPR 2022 · 46 citations
Builds on4
- MAGNN: Metapath Aggregated Graph Neural Network for Heterogeneous Graph EmbeddingXinyu Fu, Jiani Zhang, Ziqiao Meng, Irwin KingWWW 2020 · 1,149 citations
- Deep Graph Matching ConsensusMatthias Fey, Jan Eric Lenssen, Christopher Morris, Jonathan Masci et al.ICLR 2020 · 227 citations
- Graph Optimal Transport for Cross-Domain AlignmentLiqun Chen, Zhe Gan, Yu Cheng, Linjie Li et al.ICML 2020 · 193 citations
- Learning-Based Efficient Graph Similarity Computation via Multi-Scale Convolutional Set MatchingYunsheng Bai, Hao Ding, Ken Gu, Yizhou Sun et al.AAAI 2020 · 130 citations
Related papers
- GraSP: Simple Yet Effective Graph Similarity PredictionsHaoran Zheng, Jieming Shi, Renchi YangAAAI 2025 · 1 citation
- TaGSim: Type-aware Graph Similarity Learning and ComputationJiyang Bai, Peixiang ZhaoVLDB 2022 · 29 citations
- Noah: Neural-optimized A* Search Algorithm for Graph Edit Distance ComputationLei Yang, Lei ZouICDE 2021 · 20 citations
- Computing Graph Edit Distance via Neural Graph MatchingChengzhi Piao, Tingyang Xu, Xiangguo Sun, Yu Rong et al.VLDB 2023 · 49 citations
- Rethinking Flexible Graph Similarity Computation: One-Step Alignment with Global GuidanceZhouyang Liu, Ning Liu, Yixin Chen, Jiezhong He et al.ICDE 2026
