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 Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
3 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Efficient Personalized PageRank Computation: The Power of Variance-Reduced Monte Carlo Approaches cites Efficient Personalized PageRank Computation: A Spanning Forests Sampling Based Approach
- Fast Computation for the Forest Matrix of an Evolving Graph cites Opinion Optimization in Directed Social Networks
- Fast Computation for the Forest Matrix of an Evolving Graph cites Fast Evaluation for Relevant Quantities of Opinion Dynamics
- Opinion Optimization in Directed Social Networks cites Fast Evaluation for Relevant Quantities of Opinion Dynamics
- Fast Computation and Optimization for Opinion-Based Quantities of Friedkin-Johnsen Model cites Fast Computation for the Forest Matrix of an Evolving Graph
- Fast Computation and Optimization for Opinion-Based Quantities of Friedkin-Johnsen Model cites Opinion Optimization in Directed Social Networks
- Fast Computation and Optimization for Opinion-Based Quantities of Friedkin-Johnsen Model cites Fast Evaluation for Relevant Quantities of Opinion Dynamics
- Fast Estimation for Forest Matrix of Signed Graphs cites Efficient Personalized PageRank Computation: The Power of Variance-Reduced Monte Carlo Approaches
- Fast Estimation for Forest Matrix of Signed Graphs cites Opinion Optimization in Directed Social Networks
- Fast Estimation for Forest Matrix of Signed Graphs cites Fast Evaluation for Relevant Quantities of Opinion Dynamics
- Fast Estimation for Forest Matrix of Signed Graphs cites Efficient Personalized PageRank Computation: A Spanning Forests Sampling Based Approach
- Fast Estimation for Forest Matrix of Signed Graphs cites Fast Computation and Optimization for Opinion-Based Quantities of Friedkin-Johnsen Model
Cited 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
- A Sublinear Time Algorithm for Opinion Optimization in Directed Social Networks via Edge RecommendationXiaotian Zhou, Liwang Zhu, Wei Li, Zhongzhi ZhangKDD 2023 · 9 citations
- Efficient Algorithms for Relevant Quantities of Friedkin-Johnsen Opinion Dynamics ModelGengyu Wang, Runze Zhang, Zhongzhi ZhangKDD 2025
- Fast Algorithms for Group Markov Centrality OptimizationGengyu Wang, Haisong Xia, Runze Zhang, Zhongzhi ZhangKDD 2026
