Efficient Computation for Diagonal of Forest Matrix via Variance-Reduced Forest Sampling
Haoxin Sun, Zhongzhi Zhang
Abstract
The forest matrix of a graph, particularly its diagonal elements, has far-reaching implications in network science and machine learning. The state-of-the-art algorithms for the diagonal of forest matrix computation are based on the fast Laplacian solver. However, these algorithms encounter limitations when applied to digraphs due to the incapacity of the Laplacian solver. To overcome the issue, in this paper, we propose three novel sampling-based algorithms: SCF, SCFV, and SCFV+. Our first algorithm SCF leverages a probability interpretation of the diagonal of the forest matrix and utilizes an extension of Wilson's algorithm to sample spanning converging forests. To reduce the variance in the forest sampling, we develop two novel variance-reduced techniques. The first technique, leading to the proposal of the SCFV algorithm, is inspired by opinion dynamics in graphs and applies matrix-vector iteration to the spanning forest sampling. While SCFV achieves reduced variance compared to SCF, the cross-product term in its variance expression can be complex and potentially large in certain graphs. Therefore, we develop another technique, leading to a new iteration equation and the SCFV+ algorithm. SCFV+ achieves further reduced variance without the cross-product term in the variance of SCFV. We prove that SCFV+ can achieve a relative error guarantee with high probability and maintain a linear time complexity relative to the number of nodes in the graph, presenting a superior theoretical result compared to state-of-the-art algorithms. Finally, we conduct extensive experiments on various real-world networks, showing that our algorithms achieve better estimation accuracy and are more time-efficient than the state-of-the-art algorithms. Particularly, our algorithms are scalable to massive graphs with more than twenty million nodes in both undirected and directed graphs.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 53d34325-048b-40fd-a000-6deb1cd8cec8Cited by top-tier papers3
- Fast Computation for the Forest Matrix of an Evolving GraphHaoxin Sun, Xiaotian Zhou, Zhongzhi ZhangKDD 2024 · 2 citations
- Fast Computation and Optimization for Opinion-Based Quantities of Friedkin-Johnsen ModelHaoxin Sun, Yubo Sun, Xiaotian Zhou, Zhongzhi ZhangNeurIPS 2025 · 2 citations
- Fast Estimation for Forest Matrix of Signed GraphsHaoxin Sun, Zhongzhi ZhangICML 2026
Builds on5
- Fast Evaluation for Relevant Quantities of Opinion DynamicsWanyue Xu, Qi Bao, Zhongzhi ZhangWWW 2021 · 29 citations
- Opinion Optimization in Directed Social NetworksHaoxin Sun, Zhongzhi ZhangAAAI 2023 · 23 citations
- Efficient Personalized PageRank Computation: A Spanning Forests Sampling Based ApproachMeihao Liao, Rong-Hua Li, Qiangqiang Dai, Guoren WangSIGMOD 2022 · 16 citations
- Efficient Personalized PageRank Computation: The Power of Variance-Reduced Monte Carlo ApproachesMeihao Liao, Rong-Hua Li, Qiangqiang Dai, Hongyang Chen et al.SIGMOD 2023 · 15 citations
- Efficient Resistance Distance Computation: The Power of Landmark-based ApproachesMeihao Liao, Rong-Hua Li, Qiangqiang Dai, Hongyang Chen et al.SIGMOD 2023 · 13 citations
Related papers
- Scalable Algorithms for Forest-Based Centrality on Large GraphsYubo Sun, Haoxin Sun, Zhongzhi ZhangWWW 2025
- SigFJProp: Lightweight and Scalable Signed Graph Learning via Opinion DynamicsYubo Sun, Haoxin Sun, Zhongzhi ZhangKDD 2026
- Efficient Algorithms for Relevant Quantities of Friedkin-Johnsen Opinion Dynamics ModelGengyu Wang, Runze Zhang, Zhongzhi ZhangKDD 2025
- A Sublinear Time Algorithm for Opinion Optimization in Directed Social Networks via Edge RecommendationXiaotian Zhou, Liwang Zhu, Wei Li, Zhongzhi ZhangKDD 2023 · 9 citations
- Fast Algorithms for Group Markov Centrality OptimizationGengyu Wang, Haisong Xia, Runze Zhang, Zhongzhi ZhangKDD 2026
