GHashing: Semantic Graph Hashing for Approximate Similarity Search in Graph Databases
Zongyue Qin, Yunsheng Bai, Yizhou Sun
Abstract
Graph similarity search aims to find the most similar graphs to a query in a graph database in terms of a given proximity measure, say Graph Edit Distance (GED). It is a widely studied yet still challenging problem. Most of the studies are based on the pruning-verification framework, which first prunes non-promising graphs and then conducts verification on the small candidate set. Existing methods are capable of managing databases with thousands or tens of thousands of graphs, but fail to scale to even larger database, due to their exact pruning strategy. Inspired by the recent success of deep-learning-based semantic hashing in image and document retrieval, we propose a novel graph neural network (GNN) based semantic hashing, i.e. GHashing, for approximate pruning. We first train a GNN with ground-truth GED results so that it learns to generate embeddings and hash codes that preserve GED between graphs. Then a hash index is built to enable graph lookup in constant time. To answer a query, we use the hash codes and the continuous embeddings as two-level pruning to retrieve the most promising candidates, which are sent to the exact solver for final verification. Due to the approximate pruning strategy leveraged by our graph hashing technique, our approach achieves significantly faster query time compared to state-of-the-art methods while maintaining a high recall. Experiments show that our approach is on average 20x faster than the only baseline that works on million-scale databases, which demonstrates GHashing successfully provides a new direction in addressing graph search problem for large-scale graph databases.
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 72fdef01-1a51-4142-bcba-3786d557aeadCited by top-tier papers8
- Efficient Graph Similarity Computation with Alignment RegularizationWei Zhuo, Guang TanNeurIPS 2022 · 48 citations
- TaGSim: Type-aware Graph Similarity Learning and ComputationJiyang Bai, Peixiang ZhaoVLDB 2022 · 29 citations
- Community Search: A Meta-Learning ApproachShuheng Fang, Kangfei Zhao, Guanghua Li, Jeffrey Xu YuICDE 2023 · 19 citations
- Learning Temporal Point Processes for Efficient Retrieval of Continuous Time Event SequencesVinayak Gupta, Srikanta Bedathur, Abir DeAAAI 2022 · 16 citations
- LAN: Learning-based Approximate k-Nearest Neighbor Search in Graph DatabasesYun Peng, Byron Choi, Tsz Nam Chan, Jianliang XuICDE 2022 · 7 citations
Builds on1
Related papers
- Boosting Graph Similarity Search through Pre-ComputationJongik KimSIGMOD 2021 · 10 citations
- Noah: Neural-optimized A* Search Algorithm for Graph Edit Distance ComputationLei Yang, Lei ZouICDE 2021 · 20 citations
- Combinatorial Learning of Graph Edit Distance via Dynamic EmbeddingRunzhong Wang, Tianqi Zhang, Tianshu Yu, Junchi Yan et al.CVPR 2021
- Computing Graph Edit Distance via Neural Graph MatchingChengzhi Piao, Tingyang Xu, Xiangguo Sun, Yu Rong et al.VLDB 2023 · 49 citations
- Automatic Channel Pruning by Searching with Structure Embedding for Hash NetworkZifan Liu, Yuan Cao, Yifan Sun, Yanwei Yu et al.AAAI 2026
