Abstract
SimRank is one of the most fundamental measures that evaluate the structural similarity between two nodes in a graph and has been applied in a plethora of data mining and machine learning tasks. These tasks often involve single-source SimRank computation that evaluates the SimRank values between a source node $u$ and all other nodes. Due to its high computation complexity, single-source SimRank computation for large graphs is notoriously challenging, and hence recent studies resort to distributed processing. To our surprise, although SimRank has been widely adopted for two decades, theoretical aspects of distributed SimRanks with provable results have rarely been studied. In this paper, we conduct a theoretical study on single-source SimRank computation in the Massive Parallel Computation (MPC) model, which is the standard theoretical framework modeling distributed systems. Existing distributed SimRank algorithms enforce either $\Omega(\log n)$ communication round complexity or $\Omega(n)$ machine space for a graph of $n$ nodes. We overcome this barrier. Particularly, given a graph of $n$ nodes, for any query node $v$ and constant error $\epsilon > 3/n$, we show that using $O(\log^2 \log n)$ rounds of communication among machines is enough to compute single-source SimRank values with at most $\epsilon$ absolute errors, while each machine only needs a space sub-linear to $n$. To the best of our knowledge, this is the first single-source SimRank algorithm in MPC that can overcome the $\Theta(\log n)$ round complexity barrier with provable result accuracy.
Introduction
SimRank is a cornerstone metric in graph analysis, based on the intuitive idea that "two nodes are similar if their neighbors are similar." While powerful for recommendation engines and link prediction, it is computationally expensive. For a graph with $n$ nodes, a single-source query (comparing one node to all others) traditionally requires $O(n^2)$ complexity.
In distributed environments, the bottleneck is often communication rounds rather than raw computation. Most existing distributed SimRank algorithms require at least $\Omega(\log n)$ rounds—proportional to the graph's diameter—or require a single machine to store the entire node set ($\Omega(n)$ space). As graphs grow to billions of edges, these constraints become deal-breakers. This research tackles the "round complexity barrier," seeking a way to compute SimRank faster and with less memory per machine using the Massive Parallel Computation (MPC) model.
Methodology
The proposed approach moves away from the standard recursive definition of SimRank and instead uses the $\sqrt{c}$-decay random walk interpretation: the SimRank between two nodes is the probability that two random walks starting from those nodes will eventually meet. To implement this in an MPC setting, the authors introduce a three-stage pipeline:
- Parallel Random Walk Generation: Instead of simulating walks step-by-step, which would take many rounds, they use an adapted version of the Weighted Random Walk Estimation (WRME) algorithm. This allows the generation of thousands of independent walks of length $l$ in just $O(\log^2 \log n)$ rounds.
- Walk Shuffling and Decomposition: To detect "meetings" across different machines, every random walk is decomposed into a set of 5-element tuples:
(walk_id, step, visited_node, total_steps, source_node). - Meeting Detection via PREDECESSOR: Using a distributed sorting and "PREDECESSOR" procedure, machines can cluster walks that visit the same node at the same time. This allows machines to pair up walks from the source node $u$ with walks from any other node $v$ in $O(1)$ additional rounds, effectively detecting a meeting without a central coordinator.
Key Insights
- Geometric Regularization: Rather than generating walks of non-deterministic lengths, the authors generate a specific number of walks for each possible length $i$, following a geometric distribution. This makes the workload predictable and easier to parallelize.
- Breaking the Diameter Dependency: Most graph algorithms are limited by the graph's diameter. By using the WRME technique, the authors decouple walk generation from step-by-step traversal, allowing for exponential progress in round complexity.
- The Tuple Trick: Decomposing walks into independent tuples transforms a complex path-matching problem into a distributed sorting and neighbor-finding problem, which the MPC model handles efficiently.
Key Results
This theoretical study provides rigorous mathematical proofs demonstrating that the algorithm works for any graph of $n$ nodes and $m$ edges within the stated complexity and error bounds. As shown in the comparison table below, the algorithm achieves a significant breakthrough in round complexity.
- Round Complexity: The algorithm completes in $O(\log^2 \log n)$ rounds. For a graph with a million nodes, $\log n$ is approximately 20, while $\log^2 \log n$ is approximately 4.3, representing a significant theoretical speedup.
- Space Efficiency: Each machine only needs $O(n^\alpha)$ space (where $\alpha < 1$), meaning no single machine needs to store the entire graph.
- Provable Accuracy: For any query node and a constant error threshold $\epsilon$, the algorithm guarantees $\epsilon$-absolute error with high probability ($1 - 1/n$).
Conclusion
This work presents the first single-source SimRank algorithm in the MPC model to achieve sub-logarithmic round complexity with provable results. While the algorithm relies on an "imperfect sampler" with a tiny probability of failure and involves some polylogarithmic factors in total space cost, it represents a major theoretical advancement. Future work includes practical implementation on frameworks like Apache Spark or Flink to evaluate real-world performance on massive clusters.
Summary updated