Approximate Pattern Matching in Massive Graphs with Precision and Recall Guarantees
Tahsin Reza, Matei Ripeanu, Geoffrey Sanders, Roger Pearce
Abstract
There are multiple situations where supporting approximation in graph pattern matching tasks is highly desirable: (i) the data acquisition process can be noisy; (ii) a user may only have an imprecise idea of the search query; and (iii) approximation can be used for high volume vertex labeling when extracting machine learning features from graph data. We present a new algorithmic pipeline for approximate matching that combines edit-distance based matching with systematic graph pruning. We formalize the problem as identifying all exact matches for up to k edit-distance subgraphs of a user-supplied template. We design a solution which exploits unique optimization opportunities within the design space, not explored previously. Our solution is (i) highly scalable, (ii) supports arbitrary patterns and edit-distance, (iii) offers 100% precision and 100% recall guarantees, and (vi) supports a set of popular data analysis scenarios. We demonstrate its advantages through an implementation that offers good strong and weak scaling on massive real-world (257 billion edges) and synthetic (1.1 trillion edges) labeled graphs, respectively, and when operating on a massive cluster (256 nodes/9,216 cores), orders of magnitude larger than previously used for similar problems. Empirical comparison with the state-of-the-art highlights the advantages of our solution when handling massive graphs and complex patterns.
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.
Cited by top-tier papers2
- Mint: An Accelerator For Mining Temporal MotifsNishil Talati, Haojie Ye, Sanketh Vedula, Kuan-Yu Chen et al.MICRO 2022 · 6 citations
- Geo: A Query Rewrite Framework for Graph Pattern MiningNazanin Yousefian, Kasra Jamshidi, Keval Vora, Anders MiltnerOOPSLA 2026
Related papers
- GHashing: Semantic Graph Hashing for Approximate Similarity Search in Graph DatabasesZongyue Qin, Yunsheng Bai, Yizhou SunKDD 2020 · 29 citations
- Arya: Arbitrary Graph Pattern Mining with Decomposition-based SamplingZeying Zhu, Kan Wu, Zaoxing LiuNSDI 2023 · 6 citations
- BICE: Exploring Compact Search Space by Using Bipartite Matching and Cell-Wide VerificationYunyoung Choi, Kunsoo Park, Hyunjoon KimVLDB 2023 · 20 citations
- Gelato: Graph Edit Distance via Autoregressive Neural Combinatorial OptimizationPaolo Pellizzoni, Till Hendrik Schulz, Karsten M. BorgwardtICLR 2026
- Efficient Exact Subgraph Matching via GNN-based Path Dominance EmbeddingYutong Ye, Xiang Lian, Mingsong ChenVLDB 2024 · 35 citations
