Linear complexity SimRank computation based on the iterative diagonal estimation

Ivan V. Oseledets, G. V. Ovchinnikov, Alexandr M. KatrutsaarXiv 2015

TL;DR

This paper introduces IDE-SimRank, a novel method for efficiently computing SimRank, a graph-based similarity measure. It achieves linear time complexity by approximating the solution to a discrete Lyapunov equation using an iterative approach with the GMRES algorithm, making large-scale graph similarity analysis feasible.

What Problem Does This Paper Address?

SimRank is a powerful similarity measure that captures the intuition that "objects are similar if they are related to similar objects." However, directly computing SimRank for large graphs is computationally prohibitive, requiring O(n³) time and O(n²) memory per iteration. Existing methods struggle with either high complexity or introduce significant errors by approximating the underlying discrete Lyapunov equation without proper estimation of its diagonal components. This paper aims to bridge this gap by providing a method that computes SimRank with linear time complexity and a provable error bound, making it practical for real-world applications.

Methods

The core of the IDE-SimRank method lies in reformulating the SimRank computation as a discrete Lyapunov equation: $S = WSW + D$, where $S$ is the SimRank matrix, $W$ is a scaled adjacency matrix, and $D$ is a diagonal matrix. The challenge is efficiently computing $D$. The authors propose estimating $D$ by solving a linear system derived from the equation $I = \text{diag}(W^T S W) + D$.

Instead of direct computation, they leverage the Iterative Diagonal Estimation (IDE) approach. This involves:

  1. Approximating the Discrete Lyapunov Equation Solution: They use a truncated series expansion of the solution to the Lyapunov equation, $S = \sum_{k=0}^\infty (W^k) D (W^T)^k$, to approximate $S$. This is done efficiently using a sparse matrix-by-vector product algorithm (Algorithm 1) that achieves O(n) complexity by thresholding small elements.
  2. Estimating the Diagonal Matrix D: The diagonal matrix $D$ is estimated by iteratively computing the diagonal of $W^T S W$ using the approximated $S$ from step 1.
  3. Solving the Linear System for D: The estimated diagonal components of $D$ form a linear system. The authors show that this system has a bounded condition number and can be solved efficiently using the Inexact Generalized Minimal Residual (IGMRES) method. IGMRES is well-suited for this problem because it can handle inexact matrix-by-vector products, which arise from the approximate computation of $S$.

The overall algorithm results in a pre-computation step with O(n) complexity and allows for efficient single-source or single-pair SimRank queries.

Datasets

The paper evaluates its method on:

  • Synthetic datasets: Randomly generated graphs with varying numbers of non-zero elements (nnz) to demonstrate the O(n) complexity and memory usage.
  • DIMACS10 Challenge Collection: A collection of real-world graphs used to assess the approximation accuracy of the method using the 1-NDCG@n metric.
  • Simple English Wikipedia corpus: Used to extract semantic relatedness between concepts, demonstrating the practical utility of the computed SimRank scores.

No new benchmarks were introduced; existing collections were used for evaluation.

Key Insights and Ideas

  • Reformulating SimRank for Iterative Diagonal Estimation: The key insight is that the computational bottleneck in SimRank lies in estimating the diagonal matrix $D$ in the Lyapunov equation. By focusing on this estimation using iterative methods, they unlock linear complexity.
  • The Power of Inexact GMRES: The paper highlights the effectiveness of IGMRES for solving the linear system for $D$. Its ability to handle inexact matrix-vector products, stemming from the approximate calculation of $S$, is crucial for achieving the desired efficiency.
  • Provable Error Bounds: The method comes with a provable error bound, which is a significant advantage over many heuristic approximation techniques. This allows users to understand the trade-off between accuracy and computation time.
  • Sparse Matrix Arithmetic is Key: The O(n) complexity is achieved by leveraging sparse matrix arithmetic throughout the process, particularly in the approximate matrix-by-vector product.

Key Results

  • Linear Time Complexity: The proposed IDE-SimRank method achieves O(n) time complexity for pre-computation, a significant improvement over O(n³) methods.
  • Reduced Memory Footprint: The method requires O(n) memory, making it suitable for large-scale graphs.
  • High Accuracy: Experimental results on the DIMACS10 collection show competitive NDCG accuracy, demonstrating that the approximation is effective. For example, Figure 3 shows that NDCG values are generally high across various thresholds.
  • Practical Performance: Figures 1 and 2 illustrate that the computation time and memory usage scale linearly or sub-linearly with the number of vertices, confirming the theoretical complexity. Figure 4 shows that computation time is relatively insensitive to the threshold $\tau$. Figure 5 demonstrates the convergence of the GMRES algorithm with different thresholds.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that the exact solution of the Sylvester equation (a related problem) can be unstable. While their method addresses this by using iterative solvers and approximations, the inherent nature of the problem might still pose challenges for extremely ill-conditioned matrices.
  • The approximation quality depends on the chosen threshold $\tau$ and the number of iterations $K$ in Algorithm 1.
  • Future Work:
    • Investigating the application of SimRank to hypergraphs, which would require replacing adjacency matrices with adjacency tensors.
  • Exploring more advanced iterative methods beyond IGMRES for potentially further improvements in computation.
  • Further technical work is needed to adapt IGMRES for the specific requirements of this problem.

Summary updated

BibTeX
@misc{oseledets2015linear,
  author = {Ivan V. Oseledets and G. V. Ovchinnikov and Alexandr M. Katrutsa},
  title = {{Linear complexity SimRank computation based on the iterative diagonal estimation}},
  year = {2015},
  eprint = {1502.07167},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1502.07167},
}
Figure