A Fast Relaxation Method for Computing a Column of the Matrix Exponential of Stochastic Matrices from Large, Sparse Networks

Kyle Kloster, David F. Gleich

Authors: David F. Gleich and Kyle Kloster

In the era of massive social and information networks, computing node centrality and link prediction metrics often requires calculating the matrix exponential. However, for graphs with billions of edges, traditional methods become computationally prohibitive. This paper presents a breakthrough: "local" relaxation algorithms that estimate a single column of the matrix exponential in sublinear time by exploiting the inherent sparsity and power-law structures of real-world networks.

The Small-World Bottleneck

The matrix exponential ($\exp(A)$) is a fundamental tool in network science. It measures the reachability and influence of nodes by summing paths of all lengths, weighted by their inverse factorial. While powerful, computing $\exp(A)$ for modern social networks is a significant challenge.

Social networks are typically "small-world" graphs with small diameters. When using standard iterative algorithms—such as Taylor series or Krylov subspace methods—to compute a column of the matrix exponential, the intermediate vectors become "dense" almost immediately. This phenomenon, known as fill-in, forces the algorithm to touch nearly every edge in the graph ($O(|E|)$ work). For networks like Twitter or Friendster, which contain billions of edges, this global approach is too slow, especially when the user only requires information about a specific node's local neighborhood.

Proposed Relaxation Methods

To overcome the density problem, the authors introduce three algorithms designed to maintain vector sparsity throughout the computation:

  1. gexpm (Gauss-Southwell Relaxation): This is the core theoretical innovation. The authors reformulate the Taylor series approximation as a large, block-triangular linear system. They solve this system using the Gauss-Southwell method, which iteratively "relaxes" the coordinate with the largest residual (error). By using a heap to prioritize updates, the algorithm focuses computational effort only where the signal is strongest.
  2. gexpmq (Queue-based Relaxation): A faster, heuristic variant of gexpm. It replaces the priority heap with a simple queue and employs a rounding threshold to prune small values. This version sacrifices some theoretical rigor for significant practical speedups.
  3. expmimv (Incomplete Matrix-Vector Products): A greedy heuristic that performs standard matrix-vector products but "prunes" the resulting vector at each step, retaining only the $z$ largest entries to ensure the vector remains sparse.
Comparison of 1-norm error versus the number of non-zeros for the proposed relaxation methods.

As shown in the figure above, these methods allow for a fine-grained trade-off between accuracy (1-norm error) and computational cost (represented by the number of non-zeros processed).

Theoretical Insights: Localization and Sublinearity

The success of these methods rests on the "Power of Localization." While the matrix exponential of a connected graph is technically dense (every entry is non-zero), the authors demonstrate that for social networks, the vast majority of the mathematical "mass" is concentrated in a tiny fraction of the nodes.

Magnitude of vector entries and the decay of 1-norm error as the number of retained non-zeros increases.

The most significant theoretical contribution is the proof that if a graph follows a power-law degree distribution—a hallmark of social networks—the gexpm algorithm runs in sublinear time relative to the number of nodes $n$. This means the algorithm can provide accurate estimates without ever needing to process the entire graph.

Empirical Performance and Scaling

The algorithms were evaluated on diverse real-world datasets, ranging from small bibliography networks to massive graphs like twitter-2010 (1.4B edges) and friendster (3.6B edges). Key findings include:

  • Massive Scaling: The relaxation methods successfully processed the Friendster graph, a feat difficult for standard global methods. On the webbase graph, these methods were nearly 100x faster than state-of-the-art Taylor methods like expmv.
  • Top-K Accuracy: For applications like finding the "top 100" most central nodes relative to a source, a loose error tolerance (e.g., $\epsilon = 10^{-4}$) is sufficient to identify the correct set of nodes perfectly.
  • Predictable Scaling: Experiments on synthetic "forest-fire" graphs confirmed that runtime scales with the square of the maximum degree ($d^2$), validating the theoretical predictions for power-law networks.

Conclusion

By reframing the matrix exponential problem as a sparse linear system relaxation, Gleich and Kloster have provided a practical path forward for analyzing massive graphs. While currently optimized for column-stochastic matrices, this work sets the stage for future extensions to general matrices and parallelized asynchronous implementations, making complex graph analytics feasible at the scale of modern big data.

Summary updated

BibTeX
@article{kloster2015fast,
  author = {Kyle Kloster and David F. Gleich},
  title = {{A Fast Relaxation Method for Computing a Column of the Matrix Exponential of Stochastic Matrices from Large, Sparse Networks}},
  journal = {Internet Math.},
  year = {2015},
  doi = {10.1080/15427951.2014.971203},
}
Figure