Lune

SIGMOD2021顶会

Combining Sampling and Synopses with Worst-Case Optimal Runtime and Quality Guarantees for Graph Pattern Cardinality Estimation

Kyoungmin Kim, Hyeonji Kim, George Fletcher, Wook-Shin Han

摘要

Graph pattern cardinality estimation is the problem of estimating the number of embeddings |M| of a query graph in a data graph. This fundamental problem arises, for example, during query planning in subgraph matching algorithms. There are two major approaches to solving the problem: sampling and synopsis. Synopsis (or summary)-based methods are fast and accurate if synopses capture information of graphs well. However, these methods suffer from large errors due to loss of information during summarization and inherent assumptions. Sampling-based methods are unbiased but suffer from large estimation variance due to large sample space.

To address these limitations, we propose Alley, a hybrid method that combines both sampling and synopses. Alley employs 1) a novel sampling strategy, random walk with intersection, which effectively reduces the sample space, 2) branching to further reduce variance, and 3) a novel mining approach that extracts and indexes tangled patterns as synopses which are inherently difficult to estimate by sampling. By using them in the online estimation phase, we can effectively reduce the sample space while still ensuring unbiasedness. We establish that Alley has worst-case optimal runtime and approximation quality guarantees for any given error bound 𝜖 and required confidence 𝜇. In addition to the theoretical aspect of Alley, our extensive experiments show that Alley outperforms the state-of-the-art methods by up to orders of magnitude higher accuracy with similar efficiency.

used in fast approximate query answering when calculating the exact answer takes too long, and approximate results are sufficient for data analytics. An online aggregation method can even progress the estimation towards a more accurate answer [28].

In this paper, we focus on combining two major approachessampling and synopses -to solve the graph pattern cardinality estimation problem. Synopsis-based methods pre-build summary structures in the offline phase and use the structures to perform cardinality estimation in the online phase. Sampling-based methods perform sampling, calculate weights of samples, and aggregate these weights to estimate the cardinality in the online phase.

Synopsis-based methods have been mainly developed for RDF graphs. C-SET [35] summarizes the data graph into a set of starshaped structures, while SumRDF summarizes it into a smaller graph. These methods are fast and accurate if synopses capture information of data graphs well. However, it is a well-known problem that the information loss in summarization and the ad-hoc assumptions (e.g., uniformity and independence) in computing the estimates may produce large errors [27,31,38]. On various real and synthetic datasets, a very recent work by Park et al. [38] shows that these methods actually suffer from serious under-estimation problems due to these limitations.

Sampling-based methods have been mainly developed for relational data, but show good performance on graph data. Park and colleagues further show that, surprisingly, an online aggregation method designed for relational data, WanderJoin, significantly outperforms all techniques designed for graph data [38]. However, sampling-based methods suffer from large sample space that leads to large estimation variance and a high probability of sampling failures (i.e., samples have zero-weights). The failures lead to significant under-estimation in sampling-based methods, including WanderJoin, which we will show in Section 3. Here, the sample space is the set of all possible random walks following a particular sampling strategy and order. The set of candidates for each vertex/edge in order is called the local sample space. We illustrate these problems using an example in Figure 1 and WanderJoin.

WanderJoin for relational data can be translated into an estimator for graph data which performs edge-at-a-time sampling, by regarding query edges as relations and overlapping query vertices as join keys. For example, the query graph in Figure 1a is equivalent to a join graph in Figure 1c. WanderJoin first determines the order of query edges, e.g., ⟨(𝑢 1 , 𝑢 2 ), (𝑢 2 , 𝑢 4 ), (𝑢 1 , 𝑢 4 ), (𝑢 1 , 𝑢 3 ), (𝑢 3 , 𝑢 4 ), (𝑢 4 , 𝑢 5 )⟩. Following the order, it breaks cycles and transforms the query graph into a tree with split vertices, as in Figure 1b. For example, 𝑢 4 is first split into 𝑢 4 and 𝑢 ′ 4 since the first three edges form a cycle and 𝑢 4 is the latest visited. 𝑢 4 is then split into 𝑢 4 and 𝑢 ′′ 4 again due to (𝑢 3 , 𝑢 4 ). The sampling order is defined on the edges

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • COLOR: A Framework for Applying Graph Coloring to Subgraph Cardinality Estimation 引用了 G-CARE: A Framework for Performance Benchmarking of Cardinality Estimation Techniques for Subgraph Matching
  • COLOR: A Framework for Applying Graph Coloring to Subgraph Cardinality Estimation 引用了 In-Memory Subgraph Matching: An In-depth Study
  • COLOR: A Framework for Applying Graph Coloring to Subgraph Cardinality Estimation 引用了 Cardinality Estimation of Subgraph Matching: A Filtering-Sampling Approach
  • Efficient GPU-Accelerated Local Subgraph Counting 引用了 GSI: GPU-friendly Subgraph Isomorphism
  • Efficient GPU-Accelerated Local Subgraph Counting 引用了 G-CARE: A Framework for Performance Benchmarking of Cardinality Estimation Techniques for Subgraph Matching
  • Efficient GPU-Accelerated Local Subgraph Counting 引用了 In-Memory Subgraph Matching: An In-depth Study
  • Efficient GPU-Accelerated Local Subgraph Counting 引用了 Cardinality Estimation of Subgraph Matching: A Filtering-Sampling Approach
  • NeuSO: Neural Optimizer for Subgraph Queries 引用了 In-Memory Subgraph Matching: An In-depth Study
  • NeuSO: Neural Optimizer for Subgraph Queries 引用了 Cardinality Estimation of Subgraph Matching: A Filtering-Sampling Approach
  • Efficient and Accurate Subgraph Counting: A Bottom-up Flow-learning based Approach 引用了 In-Memory Subgraph Matching: An In-depth Study
  • Efficient and Accurate Subgraph Counting: A Bottom-up Flow-learning based Approach 引用了 Cardinality Estimation of Subgraph Matching: A Filtering-Sampling Approach
  • Cardinality Estimation of Subgraph Matching: A Filtering-Sampling Approach 引用了 G-CARE: A Framework for Performance Benchmarking of Cardinality Estimation Techniques for Subgraph Matching
  • Cardinality Estimation of Subgraph Matching: A Filtering-Sampling Approach 引用了 In-Memory Subgraph Matching: An In-depth Study
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper5

  1. Cardinality Estimation of Subgraph Matching: A Filtering-Sampling ApproachWonseok Shin, Siwoo Song, Kunsoo Park, Wook-Shin HanVLDB 2024 · 12 次引用
  2. COLOR: A Framework for Applying Graph Coloring to Subgraph Cardinality EstimationKyle B. Deeds, Diandre Sabale, Moe Kayali, Dan SuciuVLDB 2025 · 4 次引用
  3. Efficient and Accurate Subgraph Counting: A Bottom-up Flow-learning based ApproachQiuyu Guo, Jianye Yang, Wenjie Zhang, Hanchen Wang 等VLDB 2025 · 3 次引用
  4. Efficient GPU-Accelerated Local Subgraph CountingQiao He, Yiran Li, Man Lung Yiu, Jieming ShiVLDB 2026
  5. NeuSO: Neural Optimizer for Subgraph QueriesLinglin Yang, Lei Zou, Chunshan ZhaoSIGMOD 2026

它引用的 Paper3

  1. In-Memory Subgraph Matching: An In-depth StudyShixuan Sun, Qiong LuoSIGMOD 2020 · 159 次引用
  2. GSI: GPU-friendly Subgraph IsomorphismLi Zeng, Lei Zou, M. Tamer Özsu, Lin Hu 等ICDE 2020 · 62 次引用
  3. G-CARE: A Framework for Performance Benchmarking of Cardinality Estimation Techniques for Subgraph MatchingYeonsu Park, Seongyun Ko, Sourav S. Bhowmick, Kyoungmin Kim 等SIGMOD 2020 · 59 次引用

相关 Paper

  1. RapidMatch: A Holistic Approach to Subgraph Query ProcessingShixuan Sun, Xibo Sun, Yulin Che, Qiong Luo 等VLDB 2021 · 105 次引用
  2. SPACE: Cardinality Estimation for Path Queries Using Cardinality-Aware Sequence-based LearningMehmet Aytimur, Theodoros Chondrogiannis, Michael GrossniklausSIGMOD 2025 · 2 次引用
  3. Path-centric Cardinality Estimation for Subgraph MatchingZhengdong Wang, Qiang Yin, Longbin LaiVLDB 2025 · 1 次引用
  4. HOPS: Probabilistic Subtree Mining for Small and Large GraphsPascal Welke, Florian Seiffarth, Michael Kamp, Stefan WrobelKDD 2020 · 5 次引用
  5. Accurate Summary-based Cardinality Estimation Through the Lens of Cardinality Estimation GraphsJeremy Chen, Yuqing Huang, Mushi Wang, Semih Salihoglu 等VLDB 2022 · 30 次引用
黄昏的海面,两侧是细线勾勒的悬崖