Skip to main content
QUICK REVIEW

[Paper Review] Catching the head, tail, and everything in between: a streaming algorithm for the degree distribution

Olivia Simpson, C. Seshadhri|arXiv (Cornell University)|Jun 8, 2015
Complex Network Analysis TechniquesPhysics and Astronomy32 references6 citations
TL;DR

This paper presents headtail, a streaming algorithm that accurately estimates the complementary cumulative degree histogram (ccdh) of large graphs using sublinear storage. By combining uniform vertex sampling for frequent degrees and a novel estimator based on truncated geometric random variables for rare, high-degree vertices, headtail achieves high accuracy across all degree scales—demonstrating RH distance < 0.1 with less than 1% of the stream size in storage, outperforming existing methods even with significantly more memory.

ABSTRACT

The degree distribution is one of the most fundamental graph properties of interest for real-world graphs. It has been widely observed in numerous domains that graphs typically have a tailed or scale-free degree distribution. While the average degree is usually quite small, the variance is quite high and there are vertices with degrees at all scales. We focus on the problem of approximating the degree distribution of a large streaming graph, with small storage. We design an algorithm headtail, whose main novelty is a new estimator of infrequent degrees using truncated geometric random variables. We give a mathematical analysis of headtail and show that it has excellent behavior in practice. We can process streams will millions of edges with storage less than 1% and get extremely accurate approximations for all scales in the degree distribution. We also introduce a new notion of Relative Hausdorff distance between tailed histograms. Existing notions of distances between distributions are not suitable, since they ignore infrequent degrees in the tail. The Relative Hausdorff distance measures deviations at all scales, and is a more suitable distance for comparing degree distributions. By tracking this new measure, we are able to give strong empirical evidence of the convergence of headtail.

Motivation & Objective

  • To design a small-space, one-pass streaming algorithm that accurately estimates the degree distribution of massive graphs across all degree scales.
  • To address the challenge of estimating both frequent low-degree vertices and rare high-degree vertices with uniform accuracy, despite limited storage.
  • To introduce a new distance metric, Relative Hausdorff distance, suitable for comparing tailed or heavy-tailed degree distributions.
  • To empirically validate the convergence and robustness of the algorithm under various stream orderings and real-world graph workloads.

Proposed method

  • The algorithm uses uniform vertex sampling for degrees below a threshold $d_{\text{thr}}$, leveraging the fact that low-degree vertices are abundant and easily sampled.
  • For degrees above $d_{\text{thr}}$, it employs a novel estimator based on truncated geometric random variables to efficiently estimate infrequent high-degree counts.
  • It introduces the Relative Hausdorff distance as a new metric to quantify deviations in degree distributions, especially in the heavy-tailed regions.
  • The algorithm dynamically balances sampling probabilities $p_h$ and $p_t$ to control memory usage and estimation accuracy across the degree spectrum.
  • It combines head and tail estimators via a fixed formula for $d_{\text{thr}}$, avoiding costly cross-validation or tuning per dataset.
  • The method is evaluated using real-world graphs (as-Skitter, com-LiveJournal, com-Orkut) with varying sizes and degree distributions.

Experimental results

Research questions

  • RQ1Can a single streaming algorithm achieve high-accuracy estimation of the degree distribution across all scales—low, intermediate, and high degrees—using minimal storage?
  • RQ2How can infrequent, high-degree vertices be estimated accurately in a streaming setting with limited memory?
  • RQ3Is the Relative Hausdorff distance a more suitable metric than standard distribution distances for comparing heavy-tailed degree distributions?
  • RQ4Does the algorithm’s performance remain robust under different edge stream orderings, including adversarial or structured orderings?
  • RQ5Can headtail outperform hybrid combinations of existing algorithms (e.g., head estimator + frequent, space saving, lossy counting) even when those methods use significantly more memory?

Key findings

  • headtail achieves a Relative Hausdorff (RH) distance of less than 0.1 with only 31KB of storage on the as-Skitter graph, which has 11 million edges and 1.7 million vertices.
  • With 31KB storage, headtail outperforms hybrid methods combining head estimator and other algorithms (e.g., frequent, space saving, lossy counting), which required over 150KB to achieve comparable RH distances.
  • The RH distance for headtail remains stable across different stream orderings, with a standard deviation of only 0.009, indicating robustness to input ordering.
  • Even when the competing hybrid methods were given 50KB of storage and optimal threshold selection, their RH distance was 0.33 (frequent), 0.5 (space saving), and 1.5 (lossy counting), significantly worse than headtail’s 0.1.
  • The algorithm’s estimates for the ccdh closely match the true values across all degree scales, as shown in visual comparisons on real-world graphs with less than 1% storage.
  • The use of truncated geometric random variables enables accurate estimation of rare, high-degree vertices without requiring explicit tracking of each vertex’s degree.

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.