[Paper Review] Graph Sample and Hold: A Framework for Big-Graph Analytics
This paper introduces Graph Sample and Hold (gSH), a single-pass, streaming framework for big-graph analytics that maintains a small sample state to enable unbiased estimation of multiple graph properties. By using Horvitz-Thompson estimation with edge-specific sampling probabilities, gSH achieves low relative error (0.02–0.95%) on real-world graphs with under 40K sampled edges, outperforming prior methods in accuracy and storage efficiency.
Sampling is a standard approach in big-graph analytics; the goal is to efficiently estimate the graph properties by consulting a sample of the whole population. A perfect sample is assumed to mirror every property of the whole population. Unfortunately, such a perfect sample is hard to collect in complex populations such as graphs (e.g. web graphs, social networks etc), where an underlying network connects the units of the population. Therefore, a good sample will be representative in the sense that graph properties of interest can be estimated with a known degree of accuracy. While previous work focused particularly on sampling schemes used to estimate certain graph properties (e.g. triangle count), much less is known for the case when we need to estimate various graph properties with the same sampling scheme. In this paper, we propose a generic stream sampling framework for big-graph analytics, called Graph Sample and Hold (gSH). To begin, the proposed framework samples from massive graphs sequentially in a single pass, one edge at a time, while maintaining a small state. We then show how to produce unbiased estimators for various graph properties from the sample. Given that the graph analysis algorithms will run on a sample instead of the whole population, the runtime complexity of these algorithm is kept under control. Moreover, given that the estimators of graph properties are unbiased, the approximation error is kept under control. Finally, we show the performance of the proposed framework (gSH) on various types of graphs, such as social graphs, among others.
Motivation & Objective
- To address the challenge of efficiently estimating multiple graph properties in massive graphs with limited computational resources.
- To design a generic sampling framework that supports unbiased estimation of diverse graph properties using a small, dynamically maintained sample.
- To ensure estimation accuracy with provable variance bounds and confidence intervals for graph metrics such as triangle counts, node degrees, and subgraph frequencies.
- To outperform existing streaming algorithms in both estimation accuracy and storage efficiency for real-world graphs like social and web networks.
- To enable scalable, parallelizable computation of unbiased estimators for graph analytics in dynamic or static streaming settings.
Proposed method
- gSH processes edges sequentially in a single pass, maintaining a small state that tracks sampled edges and their individual sampling probabilities.
- The framework uses a parameterized sampling rule: an edge is sampled with probability $p$ if it has no adjacent sampled edges, otherwise with probability $q$, enabling control over sample composition.
- Unbiased estimators for graph properties are constructed using Horvitz-Thompson weighting, where each sampled subgraph’s contribution is scaled by the inverse of its joint edge selection probability.
- Variance of the estimators is computed directly from the sampling probabilities of selected edges, enabling confidence interval estimation without additional storage.
- The framework supports parallel computation of variance estimators, significantly reducing runtime for large-scale graphs.
- The sampling strategy can be tuned to favor high-degree nodes or uniform node sampling, enabling targeted estimation of properties like triangle counts per node.
Experimental results
Research questions
- RQ1Can a single-pass, streaming sampling framework provide unbiased estimators for multiple graph properties with minimal storage overhead?
- RQ2How does the choice of sampling parameters $p$ and $q$ affect the representativeness and size of the sample in real-world graphs?
- RQ3To what extent does gSH reduce estimation error compared to state-of-the-art streaming algorithms like Streaming-Triangles?
- RQ4Can gSH maintain low relative error (e.g., <1%) while using less than 1% of the total edges as a sample?
- RQ5How efficiently can variance estimators and confidence bounds be computed in parallel within the gSH framework?
Key findings
- gSH achieves relative estimation error between 0.02% and 0.95% on real-world graphs, including Facebook and web graphs, using samples of at most 40,000 edges.
- The framework produces unbiased estimators for four key graph properties—triangle counts, node degrees, and subgraph frequencies—with variance estimators derived directly from sampling probabilities.
- gSH reduces relative error by orders of magnitude compared to the Streaming-Triangles algorithm, which is specifically optimized for triangle counting.
- The storage overhead of gSH is significantly smaller than that of the Streaming-Triangles algorithm, which requires over 128,000 edge estimators for accurate results.
- The sampling distribution is centered and balanced around true values, with error decreasing as sample size increases.
- Parallelization of variance computation in gSH leads to significant reductions in runtime, enabling scalable deployment on large graphs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.