Accelerating Personalized PageRank Vector Computation

Zhen Chen, Xingzhi Guo, Baojian Zhou, Deqing Yang, Steven Skiena · DOI

Abstract

Personalized PageRank (PPR) is a cornerstone of modern graph mining, utilized for tasks ranging from spam detection to training Graph Neural Networks (GNNs). Despite its utility, the industry-standard FwdPush algorithm exhibits significant performance bottlenecks when high-precision results are required. This paper establishes a theoretical link between FwdPush and the classical Gauss-Seidel iterative method. Leveraging this connection, we propose three acceleration techniques: Successive Over-Relaxation (SOR), momentum-based acceleration (NAG and HB), and a local heuristic called FwdPush-Mean. Our evaluations on large-scale real-world graphs demonstrate that these methods achieve 2-3x speedups and reduce computational operations by up to 50%.

Introduction

Personalized PageRank Vectors (PPVs) serve as a "Swiss Army Knife" for analyzing local proximity within massive graphs. By measuring the importance of nodes relative to a specific starting point, PPVs enable sophisticated node embeddings and anomaly detection. The FwdPush algorithm has become the standard for computing these vectors because it is "local"—it explores only the relevant neighborhood of a target node rather than the entire graph.

However, FwdPush faces a critical limitation: as the demand for precision increases (i.e., smaller error margins), the algorithm's convergence slows dramatically, mirroring the inefficiencies of the classic power iteration method. This research addresses this gap by investigating the convergence rates of FwdPush and applying optimization techniques from numerical linear algebra to accelerate the computation of high-precision PPR.

The Gauss-Seidel Connection

A primary contribution of this work is the mathematical proof that the FwdPush algorithm is essentially a variant of the Gauss-Seidel method. This discovery is significant because it bridges modern graph theory with decades of established research in classical numerical linear algebra. By identifying FwdPush as a form of Gauss-Seidel, we can apply well-understood acceleration frameworks to graph-local computations.

Furthermore, the authors prove that FwdPush converges at a locally linear rate. This implies that the time complexity is governed by the "volume" of the local neighborhood being explored rather than the total size of the graph, even when high precision is required. This theoretical foundation justifies the use of local updates for global-scale graph analysis.

Proposed Acceleration Methods

Based on the Gauss-Seidel insight, three primary algorithmic improvements were developed:

1. FwdPushSOR

By treating FwdPush as a Gauss-Seidel variant, the authors applied Successive Over-Relaxation (SOR). In this approach, the algorithm uses a relaxation factor ($\omega$) to "over-correct" the residual updates. Instead of moving just enough magnitude to satisfy the current iteration, SOR pushes more magnitude at once, allowing the algorithm to reach the solution in fewer steps.

2. Momentum-Based Acceleration (NAG & HB)

For undirected graphs, the PPR computation can be reformulated as a quadratic optimization problem. This allows for the integration of Nesterov’s Accelerated Gradient (NAG) and Polyak’s Heavy-Ball (HB) methods. These techniques utilize the history of previous updates to prevent overshooting and accelerate the trajectory toward the solution. Notably, these momentum-based improvements can often be implemented as simple one-line updates to existing FwdPush codebases.

3. FwdPush-Mean

This new local heuristic introduces a "lazy" processing strategy. It calculates the average residual-to-degree ratio across all active nodes. If a specific node's ratio falls below this mean, the algorithm postpones its processing. This allows residuals to accumulate, leading to more impactful "pushes" later and reducing the total number of operations by 10-50%.

Experimental Evaluation

The proposed methods were evaluated on six diverse, large-scale datasets, including co-authorship networks (dblp), social networks (orkut, livejournal, pokec), and web graphs (web-Stanford). These datasets range from 300,000 to nearly 5 million nodes.

Key Results

  • Consistent Speedups: SOR-based methods (FwdPushSOR) were consistently 2-3 times faster than standard FwdPush across both directed and undirected graphs, particularly with a damping factor ($\alpha$) of 0.15.
  • High-Precision Efficiency: On undirected graphs, momentum methods (NAG/HB) outperformed standard versions by a factor of $O(1/\sqrt{\alpha})$. This advantage becomes increasingly pronounced as the required precision increases.
  • Operational Reduction: The FwdPush-Mean heuristic successfully reduced the total number of push operations by 10-50% for the majority of target nodes, though the wall-clock time reduction varied based on the overhead of calculating the mean.
  • Convergence Behavior: In several instances, SOR methods exhibited "superlinear" convergence, accelerating as they approached the final solution, a behavior typically associated with more complex conjugate gradient methods.

Conclusion and Future Work

This research demonstrates that classical optimization techniques can significantly enhance the efficiency of modern graph algorithms. By identifying the link between FwdPush and Gauss-Seidel, we have provided a path toward high-precision PPR computation that is both faster and more computationally efficient.

While momentum-based methods show great promise for undirected graphs, their application to directed graphs remains an open challenge due to the non-symmetric nature of the underlying linear systems. Future research will focus on extending these acceleration techniques to non-symmetric cases and further optimizing the implementation of local heuristics like FwdPush-Mean to minimize computational overhead.

Summary updated

BibTeX
@inproceedings{chen2023accelerating,
  author = {Zhen Chen and Xingzhi Guo and Baojian Zhou and Deqing Yang and Steven Skiena},
  title = {{Accelerating Personalized PageRank Vector Computation}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2023},
  doi = {10.1145/3580305.3599251},
}
Figure