TL;DR
This paper introduces Historic Inverse Probability (HIP) estimators for All-Distances Sketches (ADS), a technique used to analyze massive graphs with billions of edges. HIP estimators achieve a 2x reduction in variance for critical metrics like neighborhood size and closeness centrality, reaching near-theoretical optimality while outperforming state-of-the-art streaming algorithms like HyperLogLog.
What Problem Does This Paper Address?
In the era of massive social and web graphs, calculating exact shortest-path distances between all pairs of nodes is computationally impossible. To solve this, researchers use All-Distances Sketches (ADS)—compact, probabilistic summaries of a node's distance to every other node in the graph.
While ADS has existed since the late 90s, the "basic" estimators used to extract statistics from these sketches were not as accurate as they could be. They often suffered from high variance (noise in the estimate) and lacked a unified theoretical framework. This paper seeks to close that gap by providing a more powerful, unbiased, and elegant way to estimate graph properties at scale.
Methods
The author unifies three "flavors" of ADS—k-mins, bottom-k, and k-partition—and introduces the HIP Estimator.
The core innovation of HIP is how it calculates "adjusted weights" for nodes included in a sketch:
- Coordinated Sampling: ADS uses random "ranks" assigned to nodes. A node $j$ is included in node $i$'s sketch if its rank is among the $k$ smallest ranks of nodes at that distance or closer.
- Historic Probability: Instead of just looking at the final sketch, HIP considers the probability that a node would have been included at the moment it was processed, conditioned on the ranks of all nodes closer to the source.
- Inverse Probability Weighting: Each node in the sketch is assigned an adjusted weight equal to the inverse of its inclusion probability. Summing these weights provides an unbiased estimate of the total neighborhood size.
The paper also proposes LOCALUPDATES, a node-centric algorithm for computing these sketches that is designed to work efficiently on distributed platforms like MapReduce.
Datasets
The paper focuses heavily on theoretical proofs and validates them through extensive simulations:
- Graph Simulations: Used to evaluate the Normalized Root Mean Square Error (NRMSE) and Mean Relative Error (MRE) of neighborhood cardinality estimators.
- Streaming Simulations: Compared HIP against the HyperLogLog (HLL) algorithm using streams of distinct elements to test its performance in a data-stream context.
Key Insights and Ideas
- The Power of Conditioning: The "Aha!" moment is that by conditioning the inclusion probability on the ranks of closer nodes, we capture more information than the "basic" estimators that only look at the final $k$-th rank.
- Factor-2 Variance Reduction: The HIP estimator is proven to have at most half the variance of previous estimators. In the world of probabilistic estimation, a 2x improvement in variance is a massive leap.
- Asymptotic Optimality: The author shows that HIP is essentially the "Uniform Minimum Variance Unbiased Estimator" (UMVUE), meaning you literally cannot do better with the information contained in the sketch.
- Post-Sketch Filtering: HIP is remarkably flexible. You can compute the sketches once and then apply filters later (e.g., "estimate the number of female friends within 3 hops") without losing the unbiased nature of the estimator.
Key Results
- Accuracy Gain: HIP obtains a $\sqrt{2}$ improvement in relative error over basic estimators.
- HyperLogLog Improvement: When applied to the same memory footprint as the industry-standard HyperLogLog (HLL), HIP provides significantly more accurate distinct counts. Specifically, an HLL estimator requires roughly 56% more registers to achieve the same error rate as a HIP estimator.
- Efficiency: The expected size of an ADS is small ($O(k \ln n)$), and the computation time is nearly linear ($O(km \log n)$), making it truly scalable for graphs with billions of edges.
Limitations and Future Work
- Mergeability: While the sketches themselves are mergeable (you can combine sketches from two different sets), merging the HIP counts specifically requires more complex logic to estimate overlaps, which the author identifies as a task for future work.
- Tie-Breaking: The primary theory assumes unique distances between nodes. While the author provides a workaround for non-unique distances (using symmetry breaking or the modified definition in Appendix A), it adds a layer of implementation complexity.
- Discrete vs. Continuous: The current HIP theory relies on continuous rank values ($U[0,1]$). Adapting this perfectly to very low-precision discrete settings (like 1-bit or 2-bit counters) remains an area for further refinement.
Summary updated