A Learned Sketch for Subgraph Counting
Kangfei Zhao, Jeffrey Xu Yu, Hao Zhang, Qiyan Li, Yu Rong
Abstract
Subgraph counting, as a fundamental problem in network analysis, is to count the number of subgraphs in a data graph that match a given query graph by either homomorphism or subgraph isomorphism. The importance of subgraph counting derives from the fact that it provides insights of a large graph, in particular a labeled graph, when a collection of query graphs with different sizes and labels are issued. The problem of counting is challenging. On one hand, exact counting by enumerating subgraphs is NP-hard. % On the other hand, approximate counting by subgraph isomorphism can only support 3/5-node query graphs over unlabeled graphs. % Another way for subgraph counting is to specify it as an query and estimate the cardinality of the query in . Existing approaches for cardinality estimation can only support subgraph counting by homomorphism up to some extent, as it is difficult to deal with sampling failure when a query graph becomes large. A question that arises is if subgraph counting can be supported by machine learning (ML) and deep learning (DL). The existing DL approach for subgraph isomorphism can only support small data graphs. The ML/DL approaches proposed in context for approximate query processing and cardinality estimation cannot be used, as subgraph counting is to do complex self-joins over one relation, whereas existing approaches focus on multiple relations. In this paper, we propose an Active Learned Sketch for Subgraph Counting () with two main components: a sketch learned (ŁSS) and an active learner (). The sketch is learned by a neural network regression model, and the active learner is to perform model updates based on new arrival test query graphs. % We conduct extensive experimental studies to confirm the effectiveness and efficiency of using large real labeled graphs. Moreover, we show that can assist query optimizers to find a better query plan for complex multi-way self-joins.
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 681c13ac-3ad2-4f1a-bf59-77242c4be6f3Cited by top-tier papers21
- Query Driven-Graph Neural Networks for Community Search: From Non-Attributed, Attributed, to Interactive AttributedYuli Jiang, Yu Rong, Hong Cheng, Xin Huang et al.VLDB 2022 · 58 citations
- Computing Graph Edit Distance via Neural Graph MatchingChengzhi Piao, Tingyang Xu, Xiangguo Sun, Yu Rong et al.VLDB 2023 · 49 citations
- Learning to Count Isomorphisms with Graph Neural NetworksXingtong Yu, Zemin Liu, Yuan Fang, Xinming ZhangAAAI 2023 · 24 citations
- Community Search: A Meta-Learning ApproachShuheng Fang, Kangfei Zhao, Guanghua Li, Jeffrey Xu YuICDE 2023 · 19 citations
- Cardinality Estimation over Knowledge Graphs with Embeddings and Graph Neural NetworksTim Schwabe, Maribel AcostaSIGMOD 2024 · 17 citations
Builds on11
- An End-to-End Learning-based Cost EstimatorJi Sun, Guoliang LiVLDB 2020 · 251 citations
- Deep Unsupervised Cardinality EstimationZongheng Yang, Eric Liang, Amog Kamsetty, Chenggang Wu et al.VLDB 2020 · 206 citations
- In-Memory Subgraph Matching: An In-depth StudyShixuan Sun, Qiong LuoSIGMOD 2020 · 159 citations
- Deep Learning Models for Selectivity Estimation of Multi-Attribute QueriesShohedul Hasan, Saravanan Thirumuruganathan, Jees Augustine, Nick Koudas et al.SIGMOD 2020 · 101 citations
- Homogeneous Network Embedding for Massive Graphs via Reweighted Personalized PageRankRenchi Yang, Jieming Shi, Xiaokui Xiao, Yin Yang et al.VLDB 2020 · 77 citations
Related papers
- Neural Subgraph Counting with Wasserstein EstimatorHanchen Wang, Rong Hu, Ying Zhang, Lu Qin et al.SIGMOD 2022 · 37 citations
- LearnSC: An Efficient and Unified Learning-Based Framework for Subgraph Counting ProblemWenzhe Hou, Xiang Zhao, Bo TangICDE 2024 · 5 citations
- Fast Local Subgraph CountingQiyan Li, Jeffrey Xu YuVLDB 2024 · 4 citations
- NeuSO: Neural Optimizer for Subgraph QueriesLinglin Yang, Lei Zou, Chunshan ZhaoSIGMOD 2026
- [Experiment, Analysis, and Benchmark] BEACON: A Benchmark for Efficient and Accurate Counting of SubgraphsXiangju Zhu, Mohammad Matin Najafi, Chrysanthi Kosyfaki, Xiaodong Li et al.ICDE 2026
