Efficient SimRank Computation via Linearization

Takanori Maehara, Mitsuru Kusumoto, Ken-ichi KawarabayashiarXiv 2014

Abstract: SimRank, proposed by Jeh and Widom, provides a good similarity measure that has been successfully used in numerous applications. While there are many algorithms proposed for computing SimRank, their computational costs are very high. In this paper, we propose a new computational technique, "SimRank linearization," for computing SimRank, which converts the SimRank problem to a linear equation problem. By using this technique, we can solve many SimRank problems, such as single-pair compuation, single-source computation, all-pairs computation, top k searching, and similarity join problems, efficiently.

Introduction

SimRank is a widely used measure for determining node similarity in graphs, based on the recursive principle that "two objects are similar if they are referenced by similar objects." Despite its utility in web search and social network analysis, SimRank is notoriously difficult to compute at scale. The standard recursive definition typically requires $O(n^2)$ space and time, making it impractical for modern datasets like the World Wide Web or social networks with billions of edges. Previous attempts to speed this up often relied on expensive matrix iterations or Monte Carlo simulations that required massive numbers of samples to achieve high accuracy.

The Linearization Approach

The core innovation of this work is the transformation of the non-linear SimRank equation into a solvable linear system. Traditionally, the SimRank equation is defined as $S = (cP^\top SP) \vee I$, where the element-wise maximum with the identity matrix $I$ (to ensure diagonal entries are 1) introduces non-linearity. The authors propose replacing this with a linearized version: $S = cP^\top SP + D$, where $D$ is a diagonal correction matrix.

Table of symbols and the linearized SimRank equation.

To handle the unknown matrix $D$, the authors employ an alternating iterative method combined with Monte Carlo sampling. This allows for the efficient estimation of diagonal entries without the need to compute the full similarity matrix $S$. Furthermore, the paper introduces pruning strategies for top-$k$ search using L1 and L2 bounds derived from the Cauchy-Schwarz inequality and random walk properties. For the "SimRank Join" problem, a "stochastic thresholding" technique is used to manage memory probabilistically, preventing the accumulation of errors that usually plagues deterministic truncation.

Performance and Scalability

The linearization technique allows SimRank to scale to massive real-world networks that were previously untouchable. The authors evaluated their approach on a wide array of datasets, including soc-LiveJournal (68M edges) and twitter-2010 (1.4B edges).

Comparison of the proposed linearization technique against existing SimRank algorithms.

As shown in the comparison table, the proposed algorithms achieve significantly better time and space complexities for various query types. For instance, single-pair computation is reduced to $O(Tm)$, where $m$ is the number of edges. In practice, this translated to reducing query times for top-20 searches on billion-edge graphs to just a few seconds. Additionally, the proposed method uses roughly 10x less memory than previous state-of-the-art methods while maintaining high accuracy (achieving ~97% precision in join tasks).

Conclusion

By treating the diagonal identity as a correction factor, the authors have unlocked the ability to apply optimized linear algebra techniques to SimRank. This linearization approach enables high-accuracy similarity search on graphs with billions of edges, outperforming previous methods in both speed and memory efficiency. While preprocessing for the largest graphs can still take several hours, the resulting query efficiency represents a significant leap forward for graph analytics. Future work may involve extending this linearization framework to dynamic graphs where edges are frequently updated.

Summary updated

BibTeX
@misc{maehara2014efficient,
  author = {Takanori Maehara and Mitsuru Kusumoto and Ken-ichi Kawarabayashi},
  title = {{Efficient SimRank Computation via Linearization}},
  year = {2014},
  eprint = {1411.7228},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1411.7228},
}
Figure