[Paper Review] Average Distance Queries through Weighted Samples in Graphs and Metric Spaces: High Scalability with Tight Statistical Guarantees
This paper presents a weighted sampling framework that enables highly scalable estimation of average distances and closeness centrality in graphs and metric spaces with tight statistical guarantees. By using a universal PPS (probability-proportional-to-size) sampling scheme with O(ǫ⁻²) samples, it achieves unbiased estimates with normalized mean square error ≤ ǫ, requiring only O(ǫ⁻²) single-source shortest path computations, enabling efficient large-scale network and metric space analysis.
The average distance from a node to all other nodes in a graph, or from a query point in a metric space to a set of points, is a fundamental quantity in data analysis. The inverse of the average distance, known as the (classic) closeness centrality of a node, is a popular importance measure in the study of social networks. We develop novel structural insights on the sparsifiability of the distance relation via weighted sampling. Based on that, we present highly practical algorithms with strong statistical guarantees for fundamental problems. We show that the average distance (and hence the centrality) for all nodes in a graph can be estimated using $O(ε^{-2})$ single-source distance computations. For a set $V$ of $n$ points in a metric space, we show that after preprocessing which uses $O(n)$ distance computations we can compute a weighted sample $S\subset V$ of size $O(ε^{-2})$ such that the average distance from any query point $v$ to $V$ can be estimated from the distances from $v$ to $S$. Finally, we show that for a set of points $V$ in a metric space, we can estimate the average pairwise distance using $O(n+ε^{-2})$ distance computations. The estimate is based on a weighted sample of $O(ε^{-2})$ pairs of points, which is computed using $O(n)$ distance computations. Our estimates are unbiased with normalized mean square error (NRMSE) of at most $ε$. Increasing the sample size by a $O(\log n)$ factor ensures that the probability that the relative error exceeds $ε$ is polynomially small.
Motivation & Objective
- Address the computational infeasibility of exact average distance and centrality computation in large-scale graphs and metric spaces.
- Develop a method to estimate average distances from any query point to all nodes using minimal distance computations.
- Provide strong statistical guarantees—unbiased estimates with normalized mean square error ≤ ǫ—while minimizing computational cost.
- Enable efficient 1-median computation and all-pairs sum estimation with sublinear sample complexity relative to input size.
- Design a universal sampling strategy that works for any query point in the metric space without reprocessing.
Proposed method
- Introduce a universal PPS (probability-proportional-to-size) sampling scheme based on structural insights into distance sparsifiability in metric spaces.
- Use weighted sampling where sampling probabilities are proportional to the inverse of node distances, ensuring representative coverage of the distance distribution.
- Construct a weighted sample of size O(ǫ⁻²) from O(n) distance computations to estimate W(v) = Σᵤ dist(v,u) for any query point v.
- Leverage the fact that the full pairwise distance matrix can be approximated by a rank-1 outer product of two vectors derived from single-source distances.
- Apply statistical concentration bounds to show that increasing sample size by O(log n) reduces the probability of relative error exceeding ǫ to polynomially small.
- Extend the framework to weighted centrality by adjusting sampling probabilities based on node importance weights β(v).
Experimental results
Research questions
- RQ1Can average distance and closeness centrality be estimated efficiently in large graphs and metric spaces with strong statistical guarantees?
- RQ2What is the minimal number of single-source distance computations required to achieve a relative error of ǫ in average distance estimation?
- RQ3Can a single, fixed weighted sample be used to estimate average distances from any query point in a metric space?
- RQ4Is it possible to approximate the all-pairs sum of distances using O(n + ǫ⁻²) distance computations with bounded error?
- RQ5How does the sampling strategy adapt to weighted centrality measures where nodes have varying importance?
Key findings
- The average distance for all nodes in a graph can be estimated using only O(ǫ⁻²) single-source shortest path computations, achieving unbiased estimates with normalized mean square error ≤ ǫ.
- For any set of n points in a metric space, a weighted sample of size O(ǫ⁻²) can be precomputed using O(n) distance computations to enable fast average distance estimation from any query point.
- The all-pairs sum of distances can be estimated using O(n + ǫ⁻²) distance computations by sampling O(ǫ⁻²) pairs with appropriate weights.
- The probability that the relative error exceeds ǫ is polynomially small when the sample size is increased by a factor of O(log n).
- The sampling probabilities form a universal PPS scheme that is effective for any query point, and the full distance matrix can be approximated by a rank-1 matrix via outer product of two vectors.
- The framework generalizes to weighted centrality by adjusting sampling probabilities according to node weights β(v), maintaining the same error guarantees.
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.