Personalized PageRank dimensionality and algorithmic implications

Daniel Vial, Vijay G. SubramanianarXiv 2018

Introduction

Personalized PageRank (PPR) is a fundamental tool in graph analysis, providing a measure of node importance relative to a specific starting point. Unlike the global PageRank algorithm, which assigns a single score to each node, PPR generates a unique vector for every node $v$ in a graph, capturing the "local perspective" of that node. This granularity makes PPR essential for applications such as recommendation systems (e.g., Twitter's "Who to Follow"), local community detection, and web search personalization.

However, the computational cost of PPR is a significant barrier to its application in massive networks. For a graph with $n$ nodes, the full PPR matrix contains $n^2$ entries. In modern networks with millions or billions of nodes, computing and storing this matrix is traditionally viewed as an $O(n^2)$ impossibility. This paper addresses this challenge by investigating the "effective dimensionality" of the PPR space, proving that we can accurately estimate the entire matrix by computing only a vanishing fraction of its entries.

Defining Effective Dimensionality

The primary mathematical hurdle is that the PPR matrix is typically full rank, meaning standard linear algebra techniques for low-rank approximation do not apply directly. To circumvent this, the authors introduce a "soft" dimensionality measure, $\Delta_n(\epsilon)$. This measure counts the minimum number of basis vectors required to approximate all other PPR vectors within a specified error tolerance $\epsilon$.

By shifting the focus from exact rank to effective dimensionality, the authors provide a framework to understand why certain heuristic estimation schemes—such as those using a small set of "hub" nodes—perform remarkably well in practice.

Theoretical Framework: Random Graphs and Branching Processes

To provide rigorous bounds on $\Delta_n(\epsilon)$, the authors analyze the Directed Configuration Model (DCM). In this random graph model, in-degrees and out-degrees are pre-specified, allowing for the simulation of real-world power-law distributions.

The analysis relies on two key components:

  1. Branching Processes: The authors approximate the local neighborhood of a node as a tree. As $n \to \infty$, this approximation allows them to use branching process theory to track the spread of PageRank mass through the network.
  2. Scaling the Teleportation Parameter: A critical insight is the scaling of the "teleportation" parameter $\alpha$ (the probability of jumping back to the source node). The authors argue that $\alpha_n$ should scale as $O(1/\log n)$ in asymptotic analysis. This ensures that as the graph grows, the "local perspective" remains meaningful rather than being dominated by the immediate neighborhood of the starting node.

Algorithmic Implications and Hub Selection

The theoretical findings provide the first formal justification for a hub-based estimation scheme originally proposed by Jeh and Widom. The strategy involves:

  • Selecting a small set of "hub" nodes $K_n$.
  • Computing the PPR vectors only for these hubs.
  • Reconstructing the PPR vectors for all other nodes using these basis vectors.

The authors demonstrate that choosing nodes with the highest in-degree as hubs is a highly effective strategy. This aligns with their theoretical results, which suggest that high in-degree nodes capture the majority of the "influence" within the graph, acting as a natural basis for the PPR space.

Empirical Results

The paper validates its theoretical claims using several large-scale datasets from the Stanford Network Analysis Platform (SNAP), including social networks (soc-Pokec, soc-LiveJournal1) and web crawls (web-Google, web-BerkStan).

Key findings include:

  • Sublinear Scaling: The number of basis vectors required to maintain a constant error $\epsilon$ grows as $O(n^\kappa)$ where $\kappa < 1$. This implies that as a network grows, the percentage of the graph that must be sampled actually decreases.
  • Efficiency on Real-World Data: On the soc-Pokec dataset (approximately 1.6 million nodes), computing just 9% of the PPR vectors was sufficient to reduce the worst-case estimation error for the remaining 91% of nodes by a factor of three.
  • Vanishing Fraction: The total number of elements required to estimate the $n \times n$ matrix is $O(n \cdot \Delta_n)$, which is significantly lower than $n^2$ as $n$ becomes large.

Limitations and Future Directions

While the paper provides a robust theoretical foundation, several areas remain for future exploration:

  • Clustering Effects: The "locally treelike" assumption used in the DCM proofs is standard in random graph theory but may not fully account for the high clustering (triangles) found in real-world social networks.
  • Optimal Basis Selection: While high in-degree is a strong proxy for hub selection, finding the absolute optimal set of basis nodes remains an open optimization problem.
  • Error Metrics: The current study focuses on $l_1$ (absolute) error. Future work could extend these dimensionality results to relative error, which is often more relevant for ranking tasks but harder to bound theoretically.

Conclusion

This work bridges the gap between algorithmic intuition and formal theory in graph analysis. By proving that the PPR matrix is effectively low-rank and that its dimensionality scales sublinearly, the authors provide a theoretical guarantee that massive-scale personalization is computationally feasible.

Summary updated

BibTeX
@misc{vial2018personalized,
  author = {Daniel Vial and Vijay G. Subramanian},
  title = {{Personalized PageRank dimensionality and algorithmic implications}},
  year = {2018},
  eprint = {1804.02949},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.02949},
}
Figure