Edge-based Local Push for Personalized PageRank

Hanzhi Wang, Zhewei Wei, Junhao Gan, Ye Yuan, Xiaoyong Du, Ji-Rong Wen · DOI

Abstract

Personalized PageRank (PPR) is a fundamental tool for graph analysis, yet traditional algorithms like LocalPush suffer from significant inefficiencies on weighted, unbalanced graphs. This paper introduces EdgePush, a novel algorithm that shifts the computational focus from nodes to individual edges. By maintaining edge-specific thresholds and utilizing a two-level data structure, EdgePush avoids redundant processing of low-weight edges. Theoretical analysis demonstrates that EdgePush can achieve sub-linear complexity on highly skewed graphs. Empirical evaluations on large-scale datasets, including Spotify and Bitcoin transaction networks, show that EdgePush provides up to two orders of magnitude speedup over state-of-the-art baselines without sacrificing accuracy.

Introduction

Personalized PageRank (PPR) measures the importance of nodes in a graph relative to a specific source node. It is widely employed in recommendation systems, such as Twitter's "Who-To-Follow," and in local community detection. The standard computational approach, the LocalPush algorithm, operates by iteratively "pushing" probability mass from a node to all its neighbors. While efficient for unweighted graphs, LocalPush encounters a "computational tax" when applied to real-world weighted graphs, which are often highly unbalanced.

The Challenge of Unbalanced Graphs

In many real-world networks, edge weights are not distributed uniformly. Consider a node with a high degree where a small fraction of edges carries the vast majority of the total weight. In a standard LocalPush operation, every time the node is processed, the algorithm must iterate through its entire adjacency list. This results in a massive amount of "insignificant" work, as most edges receive negligible probability mass.

An example of an unbalanced graph where the edge (u, v1) dominates the weight distribution.

As illustrated in Figure 1, if $n$ is large, the weight $1 - 1/n$ on the edge $(u, v_1)$ dominates. Traditional methods would still process all $v_2 \dots v_n$ neighbors every time $u$ is updated, leading to inefficiencies that scale with the number of edges rather than the amount of significant information transferred.

Methods: From Node-Push to Edge-Push

To address these inefficiencies, the authors propose EdgePush. The core innovation is the decomposition of the atomic node-push operation into finer-grained edge-based pushes.

Edge-level Granularity

Unlike LocalPush, which uses a single threshold for an entire node, EdgePush maintains an individual termination threshold $\theta(u, v)$ for every edge. This allows the algorithm to selectively push mass only across edges where the accumulated probability is high enough to be meaningful. Using the Cauchy-Schwarz inequality, the authors derived optimal settings for these edge thresholds to minimize total running time while staying within a target error bound.

Comparison between node-based push and edge-based push operations.

As shown in Figure 2, the node-based push (left) resets the node's residual $r_u$ to zero and updates all neighbors proportionally. In contrast, the edge-based push (right) targets a specific edge $\langle u, v_1 \rangle$, updating only that neighbor and resetting only the edge-specific residual $R_{uv_1}$.

Two-Level Data Structure

Managing edge-level residuals could potentially introduce significant bookkeeping overhead. EdgePush mitigates this with a two-level architecture:

  1. Local Priority Queues: Each node $u$ maintains a priority queue of its outgoing edges, sorted by their pending probability mass.
  2. Global Candidate Set: A global linked list tracks nodes that have at least one edge ready for a push operation. This design ensures that each edge-based push operation takes only $O(1)$ amortized time.

Theoretical Insights and Complexity

The authors introduce a geometric metric, $\cos^2 \phi$, to quantify the "unbalancedness" of a graph's weight distribution. Their theoretical analysis proves that the performance gain of EdgePush over LocalPush is directly proportional to this metric. Remarkably, for certain classes of unbalanced graphs, EdgePush can approximate PPR values in sub-linear time relative to the total number of edges, effectively ignoring the "long tail" of insignificant connections.

Experimental Evaluation

EdgePush was evaluated against state-of-the-art baselines like MAPPR, SpeedPPR, and FORA across eight large-scale datasets. These included motif-based weighted graphs (YouTube, LiveJournal, IndoChina, Orkut-Links) and naturally weighted real-world datasets (Stack Overflow Tags/Threads, BlockChair, Spotify).

  • Speedup: On the Orkut-Links dataset, EdgePush achieved high-precision results in 0.0002 seconds, outperforming MAPPR by a factor of 130x.
  • Precision: In "Top-50" recommendation tasks, EdgePush consistently reached higher accuracy levels faster than its competitors.
  • Robustness: Even on graphs with relatively balanced weights, EdgePush remained competitive, demonstrating its utility as a robust replacement for traditional LocalPush.

Conclusion and Future Work

EdgePush represents a significant advancement in the efficient computation of Personalized PageRank for weighted graphs. By optimizing at the edge level, it bypasses the inherent bottlenecks of node-based methods in unbalanced networks. Future research directions include adapting EdgePush for dynamic graphs where weights evolve over time and developing distributed implementations to handle web-scale data across multiple machines.

Summary updated

BibTeX
@article{wang2022edge,
  author = {Hanzhi Wang and Zhewei Wei and Junhao Gan and Ye Yuan and Xiaoyong Du and Ji-Rong Wen},
  title = {{Edge-based Local Push for Personalized PageRank}},
  journal = {Proc. VLDB Endow.},
  year = {2022},
  doi = {10.14778/3523210.3523216},
}
Figure