Efficient Exact Subgraph Matching via GNN-based Path Dominance Embedding
Yutong Ye, Xiang Lian, Mingsong Chen
Abstract
The classic problem of exact subgraph matching returns those subgraphs in a large-scale data graph that are isomorphic to a given query graph, which has gained increasing importance in many real-world applications such as social network analysis, knowledge graph discovery in the Semantic Web, bibliographical network mining, and so on. In this paper, we propose a novel and effective graph neural network (GNN)-based path embedding framework (GNN-PE), which allows efficient exact subgraph matching without introducing false dismissals. Unlike traditional GNN-based graph embeddings that only produce approximate subgraph matching results, in this paper, we carefully devise GNN-based embeddings for paths, such that: if two paths (and 1-hop neighbors of vertices on them) have the subgraph relationship, their corresponding GNN-based embedding vectors will strictly follow the dominance relationship. With such a newly designed property of path dominance embeddings, we are able to propose effective pruning strategies based on path label/dominance embeddings and guarantee no false dismissals for subgraph matching. We build multidimensional indexes over path embedding vectors, and develop an efficient subgraph matching algorithm by traversing indexes over graph partitions in parallel and applying our pruning methods. We also propose a cost-model-based query plan that obtains query paths from the query graph with low query cost. To further optimize our GNN-PE approach, we also propose a more efficient GNN-based path group embedding (GNN-PGE) technique, which performs subgraph matching over grouped path embedding vectors. We design effective pruning strategies (w.r.t. grouped path embeddings) that can significantly reduce the search space during the index traversal. Through extensive experiments, we confirm the efficiency and effectiveness of our proposed GNN-PE and GNN-PGE approaches for exact subgraph matching on both real and synthetic graph data.
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 a194b3d9-d23d-4218-af60-8aecdf6410b7Cited by top-tier papers10
- Envisage: Towards Expressive Visual Graph QueryingXiaolin Wen, Qishuang Fu, Shuangyue Han, Yichen Guo et al.IEEE VIS 2025 · 6 citations
- S^3AND: Efficient Subgraph Similarity Search Under Aggregated Neighbor Difference SemanticsQi Wen, Yutong Ye, Xiang Lian, Mingsong ChenVLDB 2025 · 3 citations
- Efficient and Accurate Subgraph Counting: A Bottom-up Flow-learning based ApproachQiuyu Guo, Jianye Yang, Wenjie Zhang, Hanchen Wang et al.VLDB 2025 · 3 citations
- Continuous Subgraph Matching via Cost-Model-based Dynamic Vertex Dominance EmbeddingsYutong Ye, Xiang Lian, Nan Zhang, MingSong ChenSIGMOD 2026 · 1 citation
- Structure Guided Retrieval-Augmented Generation for Factual QueriesMiao Xie, Xiao Zhang, Yi Li, Chunli LvACL 2026 · 1 citation
Builds on14
- Can Graph Neural Networks Count Substructures?Zhengdao Chen, Lei Chen, Soledad Villar, Joan BrunaNeurIPS 2020 · 392 citations
- What graph neural networks cannot learn: depth vs widthAndreas LoukasICLR 2020 · 336 citations
- In-Memory Subgraph Matching: An In-depth StudyShixuan Sun, Qiong LuoSIGMOD 2020 · 159 citations
- RapidMatch: A Holistic Approach to Subgraph Query ProcessingShixuan Sun, Xibo Sun, Yulin Che, Qiong Luo et al.VLDB 2021 · 105 citations
- Versatile Equivalences: Speeding up Subgraph Query Processing and Subgraph MatchingHyunjoon Kim, Yunyoung Choi, Kunsoo Park, Xuemin Lin et al.SIGMOD 2021 · 75 citations
Related papers
- GNN-based Anchor Embedding for Efficient Subgraph RetrievalBin Yang, Jianxiong Ye, Zhaonian ZouSIGIR 2026
- OptMatch: An Efficient and Generic Neural Network-Assisted Subgraph Matching ApproachWenzhe Hou, Xiang Zhao, Bo TangICDE 2025 · 1 citation
- Reinforcement Learning Based Query Vertex Ordering Model for Subgraph MatchingHanchen Wang, Ying Zhang, Lu Qin, Wei Wang et al.ICDE 2022 · 19 citations
- Semantic Guided and Response Times Bounded Top-k Similarity Search over Knowledge GraphsYuxiang Wang, Arijit Khan, Tianxing Wu, Jiahui Jin et al.ICDE 2020 · 45 citations
- Neural Graph Navigation for Intelligent Subgraph MatchingYuchen Ying, Yiyang Dai, Wenda Li, Wenjie Huang et al.AAAI 2026
