Abstract
SimRank is a popular measurement for evaluating the node-to-node similarities based on the graph topology. In recent years, single-source and top-k SimRank queries have received increasing attention due to their applications in web mining, social network analysis, and spam detection. However, a fundamental obstacle in studying SimRank has been the lack of ground truths. The only exact algorithm, Power Method, is computationally infeasible on graphs with more than 10^6 nodes. Consequently, no existing work has evaluated the actual trade-offs between query time and accuracy on large real-world graphs. In this paper, we present ExSim, the first algorithm that computes the exact single-source and top-k SimRank results on large graphs. With high probability, this algorithm produces ground truths with a rigorous theoretical guarantee. We conduct extensive experiments on real-world datasets to demonstrate the efficiency of ExactSim. The results show that ExactSim provides the ground truth for any single-source SimRank query with a precision up to 7 decimal places within a reasonable query time.
Introduction
SimRank is a gold-standard metric for measuring node similarity based on graph topology, rooted in the intuition that "two nodes are similar if they are referenced by similar nodes." Despite its utility in web mining and social network analysis, it is notoriously difficult to compute at scale.
For years, the field has faced a "ground truth" crisis. The traditional Power Method for obtaining exact SimRank values requires $O(n^2)$ time and space, making it infeasible for modern graphs with millions or billions of nodes. Consequently, researchers developing fast, approximate SimRank algorithms lacked a reliable benchmark for accuracy on large-scale data, often evaluating their tools only on small graphs where the Power Method remains viable.
Methodology
The authors introduce ExactSim, an algorithm that shifts the complexity of "exact" computation from a quadratic dependency on the number of nodes ($n$) to a logarithmic dependency ($\log n$). The mathematical framework relies on several key notations and matrices defined below.
Key components of the ExactSim approach include:
- Linearization: Rather than using the standard recursive definition, SimRank is treated as a linear summation of matrix-vector multiplications.
- Diagonal Correction Matrix ($D$): A major hurdle in SimRank is the "correction" factor that prevents nodes from being considered trivially similar to themselves. ExactSim estimates this matrix using a specific number of random walks.
- Sparse Linearization: To mitigate the memory overhead of storing transition vectors, the algorithm "sparsifies" them by discarding values below a specific threshold, maintaining a $10^{-7}$ error guarantee.
- Variance Reduction: The algorithm employs "Sampling according to $\pi_i(k)^2$" and "Local Deterministic Exploitation." It uses exact calculations for the initial steps of a random walk—where the graph structure is most impactful—and utilizes random sampling only for the "long tail" of the walk.
The authors redefine "exact" not as zero error, but as an error smaller than machine precision ($\epsilon_{min} = 10^{-7}$). Achieving this threshold provides results equivalent to the "ground truth" in standard floating-point types.
Experimental Evaluation
The study evaluates ExactSim on a variety of benchmarks, ranging from small citation networks to massive social graphs:
- Small Graphs: ca-GrQc, CA-HepTh, Wikivote, and CA-HepPh.
- Large Graphs: DBLP-Author (5.4M nodes), IndoChina (7.4M nodes), It-2004 (41.2M nodes), and Twitter (41.6M nodes, 1.4B edges).
Key Results
- Unprecedented Precision: ExactSim is the first algorithm to achieve an additive error of less than $10^{-6}$ on all four large-scale datasets.
- Efficiency at Scale: On the Twitter graph (1.4 billion edges), ExactSim computed single-source results with high precision in under 3 hours (10,000 seconds).
- Optimization Impact: The optimized version of ExactSim provided a 10x to 100x speedup over the baseline version while maintaining identical error bounds.
- Memory Efficiency: Sparse linearization reduced memory usage by 5–6x, enabling the algorithm to run on a single machine with 196GB of RAM even for the largest graphs.
Conclusion
ExactSim represents a significant leap in graph analytics, scaling "exact" SimRank computation from $O(n^2)$ to $O(m \log(1/\epsilon))$, where $m$ is the number of edges. While $10^{-7}$ precision is a breakthrough, achieving "double precision" ($10^{-14}$) remains a challenge due to the $O(\log n / \epsilon^2)$ complexity bottleneck. Future work aims to develop algorithms with $O(\log n / \epsilon)$ complexity, which would enable true double-precision SimRank on a global scale.
Summary updated