Abstract
We consider stochastic transition matrices from large social and information networks. For these matrices, we describe and evaluate three fast methods to estimate one column of the matrix exponential. The methods are designed to exploit the properties inherent in social networks, such as a power-law degree distribution. Using only this property, we prove that one of our algorithms has a sublinear runtime. We present further experimental evidence showing that all of them run quickly on social networks with billions of edges and accurately identify the largest elements of the column.
Introduction
The matrix exponential ($\exp\{A\}$) is a fundamental tool in network science, used for calculating node centrality, predicting missing links, and clustering data. However, as social networks scale to billions of users, traditional computation methods face a "density trap." Standard approaches like Taylor series or Krylov subspace methods rely on repeated matrix-vector products. In "small-world" social networks, these operations quickly transform sparse vectors into dense ones, requiring $O(|E|)$ work per step (where $|E|$ is the number of edges). For massive graphs like Twitter or Friendster, this becomes computationally prohibitive. This paper introduces algorithms to approximate a single column of the matrix exponential for stochastic matrices in sublinear time by exploiting network localization.
Algorithms for Localized Approximation
To avoid the dense-vector bottleneck, we propose three algorithms that maintain sparsity by focusing on the most significant entries:
- gexpm: This flagship algorithm reformulates the matrix exponential as a large linear system and applies Gauss-Southwell coordinate relaxation. By using a heap to update only the coordinate with the largest residual error, it stays "local" within the graph.
- gexpmq: A queue-based variant of
gexpmthat replaces the heap with a simpler queue and uses a rounding threshold. While it sacrifices some theoretical guarantees, it is significantly faster in practice. - expmimv: A heuristic approach using "incomplete" matrix-vector products. At each step of a Horner’s rule evaluation, it retains only the $z$ largest entries, bounding the work to $O(Ndz \log z)$, where $d$ is the maximum degree.
Theoretical Foundations and Sublinearity
A key contribution of this work is the proof that gexpm achieves sublinear runtime on graphs following a power-law degree distribution. In such networks, influence tends to remain localized; only a small fraction of nodes carry significant weight in the matrix exponential column. By updating nodes individually rather than globally, the algorithm can terminate once the desired error tolerance $\epsilon$ is reached, often exploring only a tiny fraction of the total graph.
As shown in the table above, the actual number of iterations required to reach high precision is significantly lower than the theoretical upper bounds, highlighting the efficiency of the coordinate relaxation approach.
Experimental Results
The proposed methods were evaluated on diverse datasets, including the Twitter-2010 follower graph and the Friendster network (3.6 billion edges).
- Efficiency: On the LiveJournal network,
gexpmqidentified the top 100 nodes with near-perfect accuracy using less work than a single full matrix-vector product. - Scalability: The
expmimvheuristic processed graphs with billions of edges in seconds, a task that would take hours using standard global methods. - Precision: Unlike Monte Carlo approximations,
gexpmandgexpmqprovide rigorous 1-norm error guarantees, ensuring global reliability of the results.
Conclusion and Future Work
By leveraging the structural properties of social networks—specifically localization and power-law distributions—we have demonstrated that the matrix exponential can be computed with sublinear complexity. While expmimv offers extreme speed, future work will focus on providing it with formal accuracy guarantees. Additionally, the coordinate relaxation techniques explored here may be generalized to other matrix functions, such as the matrix inverse, further expanding the toolkit for large-scale network analysis.
Summary updated