skip to main content
10.1145/3589334.3645578acmconferencesArticle/Chapter ViewAbstractPublication PagesthewebconfConference Proceedingsconference-collections
research-article

Efficient Computation for Diagonal of Forest Matrix via Variance-Reduced Forest Sampling

Published: 13 May 2024 Publication History

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.

Supplemental Material

MP4 File
video presentation
MP4 File
Supplemental video

References

[1]
Dimitris Achlioptas. 2003. Database-friendly random projections: Johnson-Lindenstrauss with binary coins. J. Comput. System Sci. 66, 4 (2003), 671--687.
[2]
Rafig Pashaevich Agaev and P Yu Chebotarev. 2001. Spanning forests of a digraph and their applications. Automation and Remote Control 62, 3 (2001), 443--466.
[3]
Luca Avena, Fabienne Castell, Alexandre Gaudillière, and Clothilde Mélot. 2018. Random forests and networks analysis. Journal of Statistical Physics 173 (2018), 985--1027.
[4]
Luca Avena and Alexandre Gaudillière. 2018. Two applications of random spanning forests. Journal of Theoretical Probability 31, 4 (2018), 1975--2004.
[5]
Qi Bao and Zhongzhi Zhang. 2022. Discriminating power of centrality measures in complex networks. IEEE Transactions on Cybernetics 52, 11 (2022), 12583--12593.
[6]
Alex Bavelas. 1948. A mathematical model for group structures. Human organization 7, 3 (1948), 16--30.
[7]
Alex Bavelas. 1950. Communication patterns in task-oriented groups. The Journal of the Acoustical Society of America 22, 6 (1950), 725--730.
[8]
David Bindel, Jon Kleinberg, and Sigal Oren. 2015. How bad is forming your own opinion? Games and Economic Behavior 92 (2015), 248--265.
[9]
Seth Chaiken. 1982. A combinatorial proof of the all minors matrix tree theorem. SIAM J. Alg. Disc. Meth. 3, 3 (Sep. 1982), 319--329.
[10]
Gary Chartrand, Michelle Schultz, and Steven J Winters. 1996. On eccentric vertices in graphs. Networks 28, 4 (1996), 181--186.
[11]
Pavel Chebotarev and Rafig Agaev. 2002. Forest matrices around the Laplacian matrix. Linear Algebra Appl. 356, 1--3 (2002), 253--274.
[12]
Pavel Yu. Chebotarev and Elena Shamis. 2006. Matrix-Forest Theorems. ArXiv abs/math/0602575 (2006).
[13]
P. Yu Chebotarev and E. V. Shamis. 1997. The matrix-forest theorem and measuring relations in small social groups. Automation and Remote Control 58, 9 (1997), 1505--1514.
[14]
P. Yu Chebotarev and E. V. Shamis. 1998. On proximity measures for graph vertices. Automation and Remote Control 59, 10 (1998), 1443--1459.
[15]
Fan Chung and Linyuan Lu. 2006. Concentration inequalities and martingale inequalities: a survey. Internet mathematics 3, 1 (2006), 79--127.
[16]
Michael B Cohen, Rasmus Kyng, Gary L Miller, Jakub W Pachocki, Richard Peng, Anup B Rao, and Shen Chen Xu. 2014. Solving SDD linear systems in nearly m log1/2 n time. In Proceedings of the Forty-Sixth Annual ACM Symposium on Theory of Computing. ACM, 343--352.
[17]
Elizabeth M Daly and Mads Haahr. 2007. Social network analysis for routing in disconnected delay-tolerant manets. In Proceedings of the 8th ACM International Symposium on Mobile Ad hoc Networking and Computing. ACM, 32--40.
[18]
Linton C Freeman. 1977. A set of measures of centrality based on betweenness. Sociometry (1977), 35--41.
[19]
Noah E Friedkin and Eugene C Johnsen. 1990. Social influence and opinions. Journal of Mathematical Sociology 15, 3--4 (1990), 193--206.
[20]
Aristides Gionis, Evimaria Terzi, and Panayiotis Tsaparas. 2013. Opinion maximization in social networks. In Proceedings of the 2013 SIAM International Conference on Data Mining. SIAM, 387--395.
[21]
Felipe Grando, Lisandro Z Granville, and Luis C Lamb. 2018. Machine learning in network centrality measures: Tutorial and outlook. ACM Computing Surveys (CSUR) 51, 5 (2018), 102.
[22]
Lei Huang, Li Liao, and Cathy H Wu. 2018. Completing sparse and disconnected protein-protein network by deep learning. BMC Bioinformatics 19, 1 (2018), 103.
[23]
Yujia Jin, Qi Bao, and Zhongzhi Zhang. 2019. Forest distance closeness centrality in disconnected graphs. In 2018 IEEE International Conference on Data Mining. IEEE, 339--348.
[24]
William B Johnson and Joram Lindenstrauss. 1984. Extensions of Lipschitz mappings into a Hilbert space. Contemp. Math. 26 (1984), 189--206.
[25]
Alex Kulesza, Ben Taskar, et al. 2012. Determinantal point processes for machine learning. Foundations and Trends® in Machine Learning 5, 2--3 (2012), 123--286.
[26]
Jérôme Kunegis. 2013. Konect: the koblenz network collection. In Proceedings of the 22nd International World Wide Web Conference. ACM, 1343--1350.
[27]
Lawler and F. Gregory. 1980. A self-avoiding random walk. Duke Mathematical Journal 47, 3 (1980), 655--693.
[28]
Gregory Francis Lawler. 1979. A self-avoiding random walk. Ph.D. Dissertation. Princeton University.
[29]
Jure Leskovec and Rok Sosic. 2016. SNAP: A general-purpose network analysis and graph-mining library. ACM Transactions on Intelligent Systems and Technology 8, 1 (2016), 1.
[30]
Huan Li, Richard Peng, Liren Shan, Yuhao Yi, and Zhongzhi Zhang. 2019. Current flow group closeness centrality for complex networks. In Proceedings of World Wide Web Conference. ACM, 961--971.
[31]
Meihao Liao, Rong-Hua Li, Qiangqiang Dai, Hongyang Chen, Hongchao Qin, and Guoren Wang. 2023. Efficient Personalized PageRank Computation: The Power of Variance-Reduced Monte Carlo Approaches. Proceedings of the ACM on Management of Data 1, 2 (2023), 1--26.
[32]
Meihao Liao, Rong-Hua Li, Qiangqiang Dai, Hongyang Chen, Hongchao Qin, and Guoren Wang. 2023. Efficient Resistance Distance Computation: the Power of Landmark-based Approaches. Proceedings of the ACM on Management of Data 1, 1 (2023), 1--27.
[33]
Meihao Liao, Rong-Hua Li, Qiangqiang Dai, and Guoren Wang. 2022. Efficient Personalized PageRank Computation: A Spanning Forests Sampling Based Approach. In Proceedings of the 2022 International Conference on Management of Data (Philadelphia, PA, USA) (SIGMOD/PODS '22). Association for Computing Machinery, New York, NY, USA, 2048--2061.
[34]
Philippe Marchal. 2000. Loop-erased random walks, spanning trees and Hamiltonian cycles. Electronic Communications in Probability 5 (2000), 39--50.
[35]
Russell Merris. 1994. Laplacian matrices of graphs: a survey. Linear Algebra Appl. 197 (1994), 143--176.
[36]
Mark E. J. Newman. 2010. Networks: An Introduction. Oxford University Press, Oxford, UK.
[37]
Yusuf Y Pilavci, Pierre-Olivier Amblard, Simon Barthelme, and Nicolas Tremblay. 2020. Smoothing graph signals via random spanning forests. In IEEE International Conference on Acoustics, Speech and Signal Processing. IEEE, 5630--5634.
[38]
Yusuf Yigit Pilavci, Pierre-Olivier Amblard, Simon Barthelme, and Nicolas Tremblay. 2021. Graph Tikhonov regularization and interpolation via random spanning forests. IEEE transactions on Signal and Information Processing over Networks 7 (2021), 359--374.
[39]
Yusuf Yigit Pilavci, Pierre-Olivier Amblard, Simon Barthelme, and Nicolas Tremblay. 2022. Variance reduction for inverse trace estimation via random spanning forests. arXiv preprint arXiv:2206.07421 (2022).
[40]
Yusuf Yigit Pilavci, Pierre-Olivier Amblard, Simon Barthelmé, and Nicolas Tremblay. 2022. Variance Reduction in Stochastic Methods for Large-Scale Regularized Least-Squares Problems. In 2022 30th European Signal Processing Conference (EUSIPCO). IEEE, 1771--1775.
[41]
Wilbert Samuel Rossi, Paolo Frasca, and Fabio Fagnani. 2017. Distributed estimation from relative and absolute measurements. IEEE Trans. Automat. Control 62, 12 (2017), 6385--6391.
[42]
Youcef Saad and Martin H Schultz. 1986. GMRES: A generalized minimal residual algorithm for solving nonsymmetric linear systems. SIAM Journal on scientific and statistical computing 7, 3 (1986), 856--869.
[43]
Oskar Skibski, Tomasz P Michalak, and Talal Rahwan. 2018. Axiomatic Characterization of Game-Theoretic Centrality. Journal of Artificial Intelligence Research 62 (2018), 33--68.
[44]
Oskar Skibski, Talal Rahwan, Tomasz P Michalak, and Makoto Yokoo. 2019. Attachment Centrality: Measure for Connectivity in Networks. Artificial Intelligence 274 (2019), 151--179.
[45]
Haoxin Sun and Zhongzhi Zhang. 2023. Opinion Optimization in Directed Social Networks. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 37. 4623--4632.
[46]
Alexander van der Grinten, Eugenio Angriman, Maria Predari, and Henning Meyerhenke. 2021. New Approximation Algorithms for Forest Closeness Centrality--for Individual Vertices and Vertex Groups. In Proceedings of the 2021 SIAM International Conference on Data Mining. SIAM, 136--144.
[47]
David Bruce Wilson. 1996. Generating random spanning trees more quickly than the cover time. In Proceedings of the Twenty-Eighth Annual ACM Symposium on Theory of Computing. 296--303.
[48]
Wanyue Xu, Qi Bao, and Zhongzhi Zhang. 2021. Fast evaluation for relevant quantities of opinion dynamics. In Proceedings of The Web Conference. ACM, 2037--2045.

Cited By

View all

Index Terms

  1. Efficient Computation for Diagonal of Forest Matrix via Variance-Reduced Forest Sampling

      Recommendations

      Comments

      Information & Contributors

      Information

      Published In

      cover image ACM Conferences
      WWW '24: Proceedings of the ACM Web Conference 2024
      May 2024
      4826 pages
      ISBN:9798400701719
      DOI:10.1145/3589334
      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

      Sponsors

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      Published: 13 May 2024

      Permissions

      Request permissions for this article.

      Check for updates

      Author Tags

      1. Forest matrix
      2. Wilson's algorithm
      3. graph algorithm
      4. spanning converging forest
      5. variance reduction

      Qualifiers

      • Research-article

      Funding Sources

      Conference

      WWW '24
      Sponsor:
      WWW '24: The ACM Web Conference 2024
      May 13 - 17, 2024
      Singapore, Singapore

      Acceptance Rates

      Overall Acceptance Rate 1,899 of 8,196 submissions, 23%

      Contributors

      Other Metrics

      Bibliometrics & Citations

      Bibliometrics

      Article Metrics

      • Downloads (Last 12 months)59
      • Downloads (Last 6 weeks)5
      Reflects downloads up to 14 Sep 2024

      Other Metrics

      Citations

      Cited By

      View all

      View Options

      Get Access

      Login options

      View options

      PDF

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader

      Media

      Figures

      Other

      Tables

      Share

      Share

      Share this Publication link

      Share on social media