Approximating PageRank locally with sublinear query complexity

Marco Bressan, Enoch Peserico, Luca Pretto

Abstract

Traditional algorithms for computing graph centrality measures like PageRank often require global knowledge of the graph, making them computationally prohibitive for massive, billion-node networks. While local algorithms—which estimate the score of a single node by exploring its neighborhood—offer a solution, they have historically regressed to linear time complexity, $O(n)$, in the worst-case scenarios for general directed graphs. This paper introduces the first local algorithms capable of approximating PageRank and Heat Kernel centrality with sublinear query and computational complexity. By integrating forward random walk sampling with a novel weighted subgraph estimator for backward exploration, the authors achieve near-optimal performance and break the long-standing $O(n)$ complexity barrier.

Introduction

Graph centrality measures, particularly PageRank, are foundational to modern information retrieval, social network analysis, and cybersecurity. As the scale of digital graphs continues to expand, the demand for efficient local estimation techniques has grown. Previous research successfully developed sublinear local algorithms for undirected graphs; however, directed graphs presented a significant challenge. In directed environments, the lack of symmetry between in-links and out-links often forced local estimators to explore a significant fraction of the graph to guarantee accuracy. This work addresses this gap by providing worst-case sublinear bounds for any node within any directed graph.

Methodology

The proposed approach utilizes a sophisticated hybrid of forward and backward exploration primitives, optimized through a novel estimation framework.

1. Forward Random Walk Sampling

The algorithm employs standard forward random walks to estimate the probability of reaching a target node. While intuitive, forward sampling alone suffers from high variance, particularly when the target node has a low centrality score. To achieve high precision, an impractical number of samples would typically be required.

2. Backward Subgraph Exploration and the Weighted Subgraph Estimator

To mitigate the variance of forward walks, the authors explore the graph "upstream" from the target node $v$ to its ancestors. The core innovation is the Weighted Subgraph Estimator. Rather than relying on a single backward search, the algorithm constructs a sequence of expanding subgraphs around the target. It then computes a weighted average of estimators derived from these subgraphs. By carefully calibrating the expansion criteria and the weights ($\beta_i$), the authors produce a "perfect" estimator. In this state, the variance is drastically reduced, allowing standard concentration bounds (such as Chernoff bounds) to guarantee accuracy with a sublinear number of samples.

3. Blacklisting High-Indegree Nodes

A significant hurdle in backward exploration is the presence of "heavy" nodes with massive indegrees, which could trigger an exponential explosion in the search space. The authors implement a Blacklisting phase to handle this. By using a limited number of initial random walks, the algorithm identifies nodes with high scores and treats them as boundary conditions. This prevents the backward search from becoming trapped in high-degree neighborhoods, maintaining the sublinear complexity.

Theoretical Insights

The efficiency of the algorithm rests on several key mathematical insights:

  • Variance Balancing: The authors demonstrate that while individual subgraph estimators may be unbalanced—where a single ancestor disproportionately influences the score—a weighted sum of a sequence of estimators can be balanced. This ensures that all random variables have similar weights, facilitating high accuracy with minimal sampling.
  • Indegree-Score Link: The paper proves "indegree inequalities," establishing that if a node possesses a small PageRank score, its indegree cannot be arbitrarily large relative to the graph's average and maximum degrees. This link provides the theoretical "budget" necessary to keep backward exploration sublinear.
  • Model Optimality: In the specific graph access model common in social network analysis (allowing random node jumps and neighbor discovery), the authors prove that their $\tilde{O}(n^{2/3})$ complexity is optimal up to sub-logarithmic factors.

Key Results

This research provides the first sublinear upper bounds for local centrality estimation in general directed graphs. The results are summarized as follows:

  • Query Complexity: The algorithm achieves a $(1 \pm \epsilon)$-approximation of PageRank using $\tilde{O}(\min(m^{2/3}\Delta^{1/3}d^{-2/3}, m^{4/5}d^{-3/5}))$ queries, where $m$ is the number of arcs, $\Delta$ is the maximum outdegree, and $d$ is the average outdegree.
  • Computational Complexity: The total operations are bounded by $\tilde{O}(\min(m^{3/4}\Delta^{1/4}d^{-3/4}, m^{6/7}d^{-5/7}))$.
  • Lower Bounds: The authors establish that any algorithm requires at least $\Omega(\min(m^{1/2}\Delta^{1/2}d^{-1/2}, m^{2/3}d^{-1/3}))$ queries, indicating that the proposed upper bounds are reasonably tight.

Conclusion and Future Work

This paper represents a significant theoretical advancement in local graph algorithms, breaking the linear complexity barrier for directed graphs. While the bounds are nearly optimal in certain models, a polynomial gap remains between the proven lower and upper bounds in the general case. Future research may focus on closing this gap and extending the weighted estimator technique to other walk-based centralities, such as Katz centrality or general Markov chain stationary distributions. Additionally, while this work is theoretical, the implementation of these estimators on real-world massive graphs remains an important step to evaluate the practical impact of the constants hidden within the sublinear notation.

Summary updated

BibTeX
@article{bressan2014approximating,
  author = {Marco Bressan and Enoch Peserico and Luca Pretto},
  title = {{Approximating PageRank locally with sublinear query complexity}},
  journal = {SIAM Journal on Computing},
  year = {2014},
}
Figure