Abstract
SimRank is a classic measure of the similarities of nodes in a graph. Given a node $u$ in graph $G =(V, E)$, a single-source SimRank query returns the SimRank similarities $s(u, v)$ between node $u$ and each node $v \in V$. This type of queries has numerous applications in web search and social networks analysis, such as link prediction, web mining, and spam detection. Existing methods for single-source SimRank queries, however, incur query cost at least linear to the number of nodes $n$, which renders them inapplicable for real-time and interactive analysis. This paper proposes PRSim, an algorithm that exploits the structure of graphs to efficiently answer single-source SimRank queries. PRSim uses an index of size $O(m)$, where $m$ is the number of edges in the graph, and guarantees a query time that depends on the reverse PageRank distribution of the input graph. In particular, we prove that PRSim runs in sub-linear time if the degree distribution of the input graph follows the power-law distribution, a property possessed by many real-world graphs. Based on the theoretical analysis, we show that the empirical query time of all existing SimRank algorithms also depends on the reverse PageRank distribution of the graph. Finally, we present the first experimental study that evaluates the absolute errors of various SimRank algorithms on large graphs, and we show that PRSim outperforms the state of the art in terms of query time, accuracy, index size, and scalability.
The SimRank Scalability Challenge
SimRank is a gold-standard measure for node similarity based on graph structure: "two nodes are similar if they are referenced by similar nodes." It is widely used in web search, social network analysis, and recommendation systems. However, SimRank is notoriously difficult to compute at scale. For a "single-source" query—finding the similarity between a starting node $u$ and every other node in the graph—existing algorithms typically require at least $O(n)$ time. On modern web-scale graphs with millions or billions of nodes, linear complexity is far too slow for real-time or interactive applications. PRSim addresses this by exploiting a common property of real-world graphs: the power-law distribution.
PRSim: A Hybrid Algorithmic Approach
PRSim unifies SimRank and Personalized PageRank (PPR) through the lens of the $\sqrt{c}$-walk (a random walk that terminates at each step with probability $1-\sqrt{c}$). The algorithm relies on three key technical innovations:
- Hub Indexing: PRSim identifies a small set of "hub" nodes—those with the highest reverse PageRank. It precomputes an index for these hubs using a backward search. By limiting the index to hubs, the space overhead remains manageable at $O(m)$.
- Variance Bounded Backward Walk: For nodes not in the index, PRSim employs a new sampling algorithm. Its complexity is proportional to the target node's reverse PageRank, ensuring that "unimportant" nodes do not consume excessive computation time.
- On-the-fly Probability Estimation: Unlike previous methods like SLING that require expensive precomputation of "last-meeting probabilities," PRSim estimates these values on-the-fly during the query phase, drastically reducing preprocessing time.
Theoretical Breakthrough: Sublinear Complexity
PRSim is the first algorithm proven to run in sublinear time for power-law graphs. Specifically, for graphs where the power-law exponent $1 < \gamma < 2$, the query time is $O(n^{1/\gamma}/\epsilon^{2-1/\gamma})$. This theoretical advancement moves SimRank from "theoretically possible" to "practically efficient" for massive datasets.
Key Insights: The Power of Skewness
The paper proves that the "hardness" of a graph for SimRank is tied to its power-law exponent $\gamma$. In graphs with highly skewed distributions, PRSim performs even better because a few hubs account for most of the "meeting" probability. The authors show that query time is directly related to the second moment of the reverse PageRank distribution, providing a quantifiable way to describe why some graphs are easier to search than others.
Experimental Evaluation
The authors evaluated PRSim on five massive real-world datasets, including the UK-Union graph with 5.5 billion edges. Key results include:
- Speedup: On the UK-Union graph, PRSim was the only index-based algorithm capable of finishing preprocessing and queries within a reasonable timeframe. It achieved a Precision@50 of 92% in just 5 seconds on the Twitter dataset, while competitors took over 50 seconds for lower accuracy.
- Accuracy: PRSim consistently outperformed competitors like ProbeSim, TSF, and READS in terms of absolute error and top-$k$ precision.
- Scalability: While other methods saw index sizes explode or query times skyrocket as graphs grew, PRSim maintained a stable $O(m)$ index size and sublinear query growth.
Conclusion
PRSim breaks the linear time barrier for SimRank queries by intelligently leveraging the structural properties of power-law graphs. By combining hub indexing with variance-bounded sampling, it provides a scalable, accurate, and theoretically sound solution for similarity search on the world's largest graphs.
Summary updated