arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.16356cs.DS
收藏

可扩展且可证明的静态和动态图上Kemeny常数计算:一种2森林采样方法

Scalable and Provable Kemeny Constant Computation on Static and Dynamic Graphs: A 2-Forest Sampling Approach

Beijing Institute of Technology(北京理工大学)

Cheng Li, Meihao Liao, Rong-Hua Li, Guoren Wang

AI总结:

本文提出了一种基于2森林采样的方法,用于高效计算静态和动态图上的Kemeny常数,通过理论分析和实验验证,提升了计算效率和准确性。

摘要:

Kemeny常数定义为随机游走从源节点到随机选择的目标节点的预期到达时间,是图数据管理中的基本度量,具有许多实际应用。然而,在大规模图上精确计算它极具挑战性,因为这需要求解大规模图矩阵的逆。现有解决方案主要依赖于近似随机游走方法,但仍需要大规模样本,并缺乏强有力的理论保证。在本文中,我们提出了一种新的近似Kemeny常数的方法,即通过2森林采样。我们首先通过引入路径映射技术,推导出一个通过生成树表达的无偏估计器,该技术建立了生成树与某些类型的2森林之间的直接对应关系。与基于随机游走的估计器相比,基于2森林的估计器能够获得更好的理论界。我们进一步设计了高效的算法来采样和遍历生成树,利用二进制索引树(BIT)等数据结构进行优化。我们的理论分析表明,Kemeny常数可以在O(Δ²\ar{d}²/ε²(τ + n min(log n, Δ)))时间内以相对误差ε进行近似,其中τ是树采样时间,\ar{d}是平均度数,Δ是图直径。该复杂度在实践中接近线性。此外,现有方法主要针对静态图,并缺乏高效的动态更新机制。为了解决这个问题,我们提出了两种样本维护策略,可以在动态图上部分更新样本,同时保持准确性。在10个大规模真实世界数据集上的广泛实验表明,我们的方法在静态和动态图上都优于最先进的方法,在效率和准确性方面均表现优异。

英文摘要:

Kemeny constant, defined as the expected hitting time of random walks from a source node to a randomly chosen target node, is a fundamental metric in graph data management with many real-world applications. However, computing it exactly on large graphs is highly challenging, as it requires inverting large graph matrices. Existing solutions mainly rely on approximate random-walk-based methods, which still need large sample sizes and lack strong theoretical guarantees. In this paper, we propose a new approach for approximating the Kemeny constant via 2-forest sampling. We first derive an unbiased estimator expressed through spanning trees by introducing a path mapping technique that establishes a direct correspondence between spanning trees and certain classes of 2-forests. Compared to random walk-based estimators, 2-forest-based estimators yield leads to a better theoretical bound. We further design efficient algorithms to sample and traverse spanning trees, leveraging data structures such as the Binary Indexed Tree (BIT) for optimization. Our theoretical analysis shows that the Kemeny constant can be approximated with relative error $ε$ in $O\left(\frac{Δ^2\bar{d}^2}{ε^2}(τ+ n\min(\log n, Δ))\right)$ time, where $τ$ is the tree-sampling time, $\bar{d}$ is the average degree, and $Δ$ is the graph diameter. This complexity is near-linear in practice. Moreover, existing methods largely target static graphs and lack efficient mechanisms for dynamic updates. To address this, we propose two sample maintenance strategies that partially update samples while preserving accuracy on dynamic graphs. Extensive experiments on 10 large real-world datasets demonstrate that our method consistently outperforms state-of-the-art approaches in both efficiency and accuracy on static and dynamic graphs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑