Skip to main content
QUICK REVIEW

[Paper Review] gSketch: On Query Estimation in Graph Streams

Peixiang Zhao, Charų C. Aggarwal|arXiv (Cornell University)|Nov 30, 2011
Graph Theory and AlgorithmsComputer Science25 references14 citations
TL;DR

gSketch proposes a sketch partitioning method for efficient query estimation in large, dynamic graph streams by leveraging local structural properties and vertex-specific statistics. It outperforms global sketching by reducing estimation error—sometimes by an order of magnitude—especially under memory constraints and skewed workloads.

ABSTRACT

Many dynamic applications are built upon large network infrastructures, such as social networks, communication networks, biological networks and the Web. Such applications create data that can be naturally modeled as graph streams, in which edges of the underlying graph are received and updated sequentially in a form of a stream. It is often necessary and important to summarize the behavior of graph streams in order to enable effective query processing. However, the sheer size and dynamic nature of graph streams present an enormous challenge to existing graph management techniques. In this paper, we propose a new graph sketch method, gSketch, which combines well studied synopses for traditional data streams with a sketch partitioning technique, to estimate and optimize the responses to basic queries on graph streams. We consider two different scenarios for query estimation: (1) A graph stream sample is available; (2) Both a graph stream sample and a query workload sample are available. Algorithms for different scenarios are designed respectively by partitioning a global sketch to a group of localized sketches in order to optimize the query estimation accuracy. We perform extensive experimental studies on both real and synthetic data sets and demonstrate the power and robustness of gSketch in comparison with the state-of-the-art global sketch method.

Motivation & Objective

  • To address the challenge of efficient and accurate query estimation in massive, dynamically updating graph streams.
  • To overcome the limitations of global sketching methods that fail to account for structural skewness in edge frequencies.
  • To design a method that adapts to local graph structures and query workloads for improved accuracy.
  • To ensure robustness against new vertices and edges in evolving graph streams.

Proposed method

  • gSketch partitions a global sketch into localized sketches based on vertex-specific statistics and structural properties of the graph stream.
  • It uses coarse, easily computable vertex statistics to guide the partitioning process, enhancing estimation accuracy.
  • The method supports two scenarios: using only a graph stream sample, or using both graph and query workload samples.
  • It employs a dedicated outlier sketch for high-frequency edges to minimize collision-related errors.
  • Query processing is fast and largely independent of allocated memory size, enabling real-time performance.
  • The sketch partitioning is designed to be lightweight, with minimal overhead in construction time.

Experimental results

Research questions

  • RQ1Can sketch partitioning based on local graph structure improve query estimation accuracy in graph streams?
  • RQ2How does gSketch perform compared to global sketching under memory constraints?
  • RQ3Does incorporating query workload samples further enhance estimation accuracy?
  • RQ4How robust is gSketch to the arrival of new vertices and edges in the graph stream?
  • RQ5What is the impact of workload skewness on gSketch’s estimation performance?

Key findings

  • gSketch reduces average relative error by up to an order of magnitude compared to global sketching, especially under memory constraints.
  • On the GTGraph dataset, gSketch achieved an average relative error of 0.7257 at 2GB memory, compared to 0.7837 for the outlier sketch, showing minimal degradation.
  • The inclusion of query workload samples significantly improves estimation accuracy, particularly when the workload is skewed.
  • Sketch partitioning and construction time remain marginal, enabling fast query processing regardless of memory allocation.
  • gSketch maintains robust performance even when new vertices and edges arrive, as the outlier sketch effectively handles high-frequency edges without increasing error.
  • The method is scalable and efficient, with query processing time relatively invariant to memory size.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.